Last modified by Lucas Charpentier (Sereza7) on 2024/01/19 11:27

<
From version < 80.1 >
edited by Thomas Mortagne
on 2014/02/13 08:24
To version < 81.1 >
edited by Thomas Mortagne
on 2014/02/13 08:25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,20 +20,17 @@
20 20  
21 21  = Installing Maven =
22 22  
23 -* Install [[Maven 3.0 or greater>>http://maven.apache.org/]]. Create an ##M2_HOME## environment variable pointing to where you have installed Maven. Add ##M2_HOME/bin## to your PATH environment variable.
24 -(((
23 +* Install [[Maven 3.0 or greater>>http://maven.apache.org/]]. Create an ##M2_HOME## environment variable pointing to where you have installed Maven. Add ##M2_HOME/bin## to your PATH environment variable.(((
25 25  {{info}}
26 26  For more information on how to install Maven or how to use it check this [[excellent Maven book>>http://www.sonatype.com/books/mvnref-book/reference/]].
27 27  {{/info}}
28 28  )))
29 -* Make sure you give Maven's JVM enough memory. XWiki's build uses Aspects and GWT compilers which need lots of memory. A good value is to give the JVM 512MB. To do that set an environment variable named ##MAVEN_OPTS##. For example on Unix add the following to your shell startup script (depending on your shell you might need to prefix the variable with ##export##):
30 -(((
28 +* Make sure you give Maven's JVM enough memory. XWiki's build uses Aspects and GWT compilers which need lots of memory. A good value is to give the JVM 512MB. To do that set an environment variable named ##MAVEN_OPTS##. For example on Unix add the following to your shell startup script (depending on your shell you might need to prefix the variable with ##export##):(((
31 31  {{code language="none"}}
32 32  MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m"
33 33  {{/code}}
34 -)))
35 -* Create a ##~~/.m2/settings.xml## file with the XWiki custom remote repository defined as shown below. If you are on Windows, create the directory ##.m2## in your home directory, e.g. ##C:\Documents and Settings\Administrator\.m2##. If you cannot do this from Windows Explorer, open a command line and use ##md .m2##.
36 -(((
32 +)))
33 +* Create a ##~~/.m2/settings.xml## file with the XWiki custom remote repository defined as shown below. If you are on Windows, create the directory ##.m2## in your home directory, e.g. ##C:\Documents and Settings\Administrator\.m2##. If you cannot do this from Windows Explorer, open a command line and use ##md .m2##.(((
37 37  {{code language="xml"}}
38 38  <settings>
39 39   <profiles>
... ... @@ -96,7 +96,8 @@
96 96  {{/code}}
97 97  
98 98  {{info}}
99 -Depending on your geographical location, you should use closer Maven repositories to speed up your build process. For more information refer to the [[Maven Mirror Settings Guide>>http://maven.apache.org/guides/mini/guide-mirror-settings.html]].{{/info}}
96 +Depending on your geographical location, you should use closer Maven repositories to speed up your build process. For more information refer to the [[Maven Mirror Settings Guide>>http://maven.apache.org/guides/mini/guide-mirror-settings.html]].
97 +{{/info}}
100 100  )))
101 101  
102 102  = Building with Maven =
... ... @@ -131,8 +131,7 @@
131 131  * ##legacy##: Includes the [[legacy modules>>DevelopmentPractices#HDeprecationRules]] in the build.
132 132  * ##integration-tests##: Executes integration and functional tests in the build.
133 133  * ##jetty##, ##glassfish##: Run the build for the specified container (##jetty## is the default when not specified).
134 -* ##hsqldb## (Hypersonic SQL), ##mysql## (MySQL), ##pgsql## (PostgreSQL), ##derby## (Derby): Run the build for the specified database (##hsqldb## is the default when not specified).
135 -(((
132 +* ##hsqldb## (Hypersonic SQL), ##mysql## (MySQL), ##pgsql## (PostgreSQL), ##derby## (Derby): Run the build for the specified database (##hsqldb## is the default when not specified).(((
136 136  {{warning}}
137 137  Hypersonic and Derby are embedded database so you won't need anything setup to execute the build for them. However for MySQL and PostgreSQL you'll need to have the database installed, set up and running before you can run the build with their profiles.
138 138  {{/warning}}
... ... @@ -178,12 +178,12 @@
178 178  ** Verify that all plugins are versions specified
179 179  ** Verify the correct Junit artifact is used (##junit-dep## and not ##junit##)
180 180  ** Verify we don't use Commons Logging or Log4j (since we use SLF4J)
181 -** Verify that the Java version is 6 (in the release profile)
178 +** Verify that the Java version is 7 starting with XWiki 6.0 and Java 6 before (in the release profile)
182 182  ** Verify that Javadoc exist (in the release profile, this is a Maven Central requirement)
183 183  ** In Commons: Verify that Commons modules don't have a dependency on Rendering and Platform modules
184 184  ** In Rendering: Verify that Rendering modules don't have a dependency on Platform modules
185 185  
186 -= Tips ==
183 += Tips =
187 187  
188 188  == Skipping Tests ==
189 189  
... ... @@ -235,7 +235,7 @@
235 235  </settings>
236 236  {{/code}}
237 237  
238 -==Failed to execute CLIRR on xwiki-archetype-macro module ==
235 +== Failed to execute CLIRR on xwiki-archetype-macro module ==
239 239  
240 240  If you're using Maven 3.0.1 or 3.0.2 you might see the following build issue (reported in [[MNG-4973>>http://jira.codehaus.org/browse/MNG-4973]]):
241 241  

Get Connected