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 of setting.xml http://maven.apache.org/settings.html

<settings>

   <servers>

       <server>

           <id>tom</id>

           <username>manager</username>

           <password>manager</password>

       </server>

   </servers>

   <localRepository>d:\devel\m2-repo</localRepository>

   <profiles>

       <profile>

           <id>default</id>

           <properties>

               <tomcat.home>${env.CATALINA_HOME}</tomcat.home>

               <tomcat.deploy.dir>${tomcat.home}\webapps</tomcat.deploy.dir>

               <tomcat.startup.script>${tomcat.home}\bin\startup.bat</tomcat.startup.script>

               <tomcat.shutdown.script>${tomcat.home}\bin\shutdown.bat</tomcat.shutdown.script>

               <tomcat.port>8080</tomcat.port>

           </properties>

           <repositories>

               <repository>

                   <id>Codehaus</id>

                   <url>http://repository.codehaus.org/</url>

                   <snapshots>

                       <enabled>false</enabled>

                   </snapshots>

                   <releases>

                       <enabled>true</enabled>

                   </releases>

               </repository>

           </repositories>

Advertisements
This entry was posted in Maven. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s