Last modified by Vincent Massol on 2024/04/08 16:22

From version 1.29
edited by VincentMassol
on 2007/06/23 13:57
Change comment: There is no comment for this version
To version 1.30
edited by VincentMassol
on 2007/06/23 13:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -17,8 +17,33 @@
17 17  1.1 Building with Maven2
18 18  
19 19  * Install [Maven>http://maven.apache.org]. Make sure you install Maven 2.1 or greater as there are issues with Maven 2.0.6 or lesser (you can use this [Maven 2.1 SNAPHOT distribution>http://xwiki.org/maven-2.1-SNAPSHOT.zip]). Create an M2_HOME environment variable pointing to where you have installed Maven. Add ~~M2_HOME/bin~~ to your PATH environment variable
20 -* Execute "mvn install" in any module you wish to build
20 +* Create a <tt>~/.m2/settings.xml</tt> file with the XWiki custom remote repository defined:
21 21  
22 +{code}
23 +<settings>
24 + <profiles>
25 + <profile>
26 + <id>xwiki</id>
27 + <repositories>
28 + <repository>
29 + <id>xwiki</id>
30 + <name>XWiki Maven2 Remote Repository</name>
31 + <url>http://maven.xwiki.org</url>
32 + <releases>
33 + <enabled>true</enabled>
34 + </releases>
35 + </repository>
36 + </repositories>
37 + </profile>
38 + </profiles>
39 + <activeProfiles>
40 + <activeProfile>xwiki</activeProfile>
41 + </activeProfiles>
42 +</settings>
43 +{code}
44 +
45 +* Execute <tt>mvn install</tt> in any module you wish to build
46 +
22 22  You'll find below some common build tasks.
23 23  
24 24  1.1.1 Building everything

Get Connected