Category Archives: Maven

C7 – Maven profile for multiple environments deployment

Maven profiles for multiple environments deployment In case that you need to deploy your application on to multiple environments for different purposes, such as one for test  and one for production, you might need different configuration respectively (ie link to … Continue reading

Posted in Maven | Leave a comment

C6 Using Maven – Internal Repository Management

Install Archiva   If you are using Maven in a corporate environment, then you probably need a repository manager. There are few program such as Archiva , Proximity or Maven Proxy are out there for options. For this article, I … Continue reading

Posted in Maven | Leave a comment

C5 Using Maven (Cont.)

Build JSF Application with eclipse WTP and Maven To build the JSF application, we need to collect all required dependencies.            <dependency>                   <groupId>javax.faces</groupId>                   <artifactId>jsf-impl</artifactId>                   <version>1.2-b19</version>            </dependency>            <dependency>                   <groupId>javax.faces</groupId>                   <artifactId>jsf-api</artifactId>                   <version>1.2-b19</version>            </dependency> … Continue reading

Posted in Maven | Leave a comment

C3 Using Maven (Cont.)

Customising setting.xml Rather than pom.xml, to help you configure the default setting that apply to all your maven structured projects, you could build a setting.xml and place it at C:\Documents and Settings\your username\.m2 folder. For more information about the structure … Continue reading

Posted in Maven | Leave a comment

C4 Using Maven (Cont.)

           <pluginRepositories>                <pluginRepository>                    <id>Codehaus</id>                    <url>http://repository.codehaus.org/</url&gt;                    <snapshots>                        <enabled>false</enabled>                    </snapshots>                    <releases>                        <enabled>true</enabled>                    </releases>                </pluginRepository>            </pluginRepositories>        </profile>    </profiles>    <activeProfiles>        <activeProfile>default</activeProfile>    </activeProfiles> </settings> Deploy your project automatically to … Continue reading

Posted in Maven | Leave a comment

C2 Using Maven (Cont.)

Using AxisTool plug-in Create a folder to hold the WSDL.  Create another two folders within it to hold the artifacts that will be generated for client and server side respectively. Create pom.xml for each folder including the parent folder. (The … Continue reading

Posted in Maven | 1 Comment

C1 Using Maven

Install Maven Download the maven package from its website and unzip the file. Set environment variables path to Maven’s bin directory, ie E:\maven-2.0.7-bin\maven-2.0.7\bin. Please also make sure that java classpath has been already provided.   Type the follwing command to … Continue reading

Posted in Maven | Leave a comment