Changes for page Quick Start Maven Settings Configuration Guide
Last modified by Paul Hoadley on 2023/12/25 05:57
From version 4.2
edited by Lachlan Deck
on 2023/11/13 11:56
on 2023/11/13 11:56
Change comment:
Update document after refactoring.
To version 5.1
edited by Paul Hoadley
on 2023/12/25 05:57
on 2023/12/25 05:57
Change comment:
'noformat' → 'code' macro.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.l deck1 +XWiki.paulh - Content
-
... ... @@ -1,86 +1,85 @@ 1 1 === Configuring Maven for use with WOCommunity artifacts === 2 2 3 -(% style="color: rgb(51,51,51);" %)Before start using Maven, you have to configure it in order to use the plug-ins provided by WOCommunity, or specifically the woproject. General Maven configuration is made in a settings.xml file. This file can be found in a folder called {{code language="none"}}.m2{{/code}} in each user's home directory (~~/.m2 on Unix systems and C:\Documents and Settings\UserName\.m2 on Windows). If this file does not yet exist, you can just create it.3 +(% style="color:#333333" %)Before start using Maven, you have to configure it in order to use the plug-ins provided by WOCommunity, or specifically the woproject. General Maven configuration is made in a settings.xml file. This file can be found in a folder called {{code language="none"}}.m2{{/code}} in each user's home directory (~~/.m2 on Unix systems and C:\Documents and Settings\UserName\.m2 on Windows). If this file does not yet exist, you can just create it. 4 4 5 -(% style="color: rgb(51,51,51);" %)You have to define the WOProject plug-in group and the repositories to download the plug-ins. The following xml is sufficient to configure maven for using WOProject-maven plugin:5 +(% style="color:#333333" %)You have to define the WOProject plug-in group and the repositories to download the plug-ins. The following xml is sufficient to configure maven for using WOProject-maven plugin: 6 6 7 -{{noformat}} 8 - 7 +{{code}} 9 9 <settings xmlns="http://maven.apache.org/POM/4.0.0" 10 - 11 - 9 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 10 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 12 12 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 13 - 14 - 15 - 12 + <pluginGroups> 13 + <pluginGroup>org.objectstyle.woproject.maven2</pluginGroup> 14 + </pluginGroups> 16 16 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - 53 - 54 - 55 - 56 - 57 - 58 - 59 - 60 - 61 - 62 - 63 - 64 - 65 - 66 - 67 - 68 - 69 - 70 - 71 - 72 - 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - 16 + <profiles> 17 + <profile> 18 + <id>default</id> 19 + <activation> 20 + <activeByDefault>true</activeByDefault> 21 + </activation> 22 + <repositories> 23 + <repository> 24 + <id>wocommunity.releases</id> 25 + <name>WOCommunity Releases Repository</name> 26 + <url> 27 + http://maven.wocommunity.org/content/groups/public 28 + </url> 29 + <releases> 30 + <enabled>true</enabled> 31 + </releases> 32 + <snapshots> 33 + <enabled>false</enabled> 34 + </snapshots> 35 + </repository> 36 + <repository> 37 + <id>wocommunity.snapshots</id> 38 + <name>WOCommunity Snapshots Repository</name> 39 + <url> 40 + http://maven.wocommunity.org/content/groups/public-snapshots 41 + </url> 42 + <releases> 43 + <enabled>false</enabled> 44 + </releases> 45 + <snapshots> 46 + <enabled>true</enabled> 47 + </snapshots> 48 + </repository> 49 + </repositories> 50 + <pluginRepositories> 51 + <pluginRepository> 52 + <id>wocommunity.releases</id> 53 + <name>WOCommunity Releases Repository</name> 54 + <url> 55 + http://maven.wocommunity.org/content/groups/public 56 + </url> 57 + <releases> 58 + <enabled>true</enabled> 59 + </releases> 60 + <snapshots> 61 + <enabled>false</enabled> 62 + </snapshots> 63 + </pluginRepository> 64 + <pluginRepository> 65 + <id>wocommunity.snapshots</id> 66 + <name>WOCommunity Snapshots Repository</name> 67 + <url> 68 + http://maven.wocommunity.org/content/groups/public-snapshots 69 + </url> 70 + <releases> 71 + <enabled>false</enabled> 72 + </releases> 73 + <snapshots> 74 + <enabled>true</enabled> 75 + </snapshots> 76 + </pluginRepository> 77 + </pluginRepositories> 78 + </profile> 79 + </profiles> 81 81 </settings> 82 82 83 -{{/ noformat}}82 +{{/code}} 84 84 85 85 === What does this do? === 86 86