Changes for page Quick Start Maven Settings Configuration Guide
Last modified by Paul Hoadley on 2023/12/25 05:57
From version 5.1
edited by Paul Hoadley
on 2023/12/25 05:57
on 2023/12/25 05:57
Change comment:
'noformat' → 'code' macro.
To 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.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. paulh1 +XWiki.ldeck - Content
-
... ... @@ -1,85 +1,86 @@ 1 1 === Configuring Maven for use with WOCommunity artifacts === 2 2 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.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. 4 4 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: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: 6 6 7 -{{code}} 7 +{{noformat}} 8 + 8 8 <settings xmlns="http://maven.apache.org/POM/4.0.0" 9 - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"10 - xsi:schemaLocation="http://maven.apache.org/POM/4.0.010 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 11 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 11 11 http://maven.apache.org/xsd/settings-1.0.0.xsd"> 12 - <pluginGroups>13 - <pluginGroup>org.objectstyle.woproject.maven2</pluginGroup>14 - </pluginGroups>13 + <pluginGroups> 14 + <pluginGroup>org.objectstyle.woproject.maven2</pluginGroup> 15 + </pluginGroups> 15 15 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/public28 - </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-snapshots41 - </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/public56 - </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-snapshots69 - </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>17 + <profiles> 18 + <profile> 19 + <id>default</id> 20 + <activation> 21 + <activeByDefault>true</activeByDefault> 22 + </activation> 23 + <repositories> 24 + <repository> 25 + <id>wocommunity.releases</id> 26 + <name>WOCommunity Releases Repository</name> 27 + <url> 28 + http://maven.wocommunity.org/content/groups/public 29 + </url> 30 + <releases> 31 + <enabled>true</enabled> 32 + </releases> 33 + <snapshots> 34 + <enabled>false</enabled> 35 + </snapshots> 36 + </repository> 37 + <repository> 38 + <id>wocommunity.snapshots</id> 39 + <name>WOCommunity Snapshots Repository</name> 40 + <url> 41 + http://maven.wocommunity.org/content/groups/public-snapshots 42 + </url> 43 + <releases> 44 + <enabled>false</enabled> 45 + </releases> 46 + <snapshots> 47 + <enabled>true</enabled> 48 + </snapshots> 49 + </repository> 50 + </repositories> 51 + <pluginRepositories> 52 + <pluginRepository> 53 + <id>wocommunity.releases</id> 54 + <name>WOCommunity Releases Repository</name> 55 + <url> 56 + http://maven.wocommunity.org/content/groups/public 57 + </url> 58 + <releases> 59 + <enabled>true</enabled> 60 + </releases> 61 + <snapshots> 62 + <enabled>false</enabled> 63 + </snapshots> 64 + </pluginRepository> 65 + <pluginRepository> 66 + <id>wocommunity.snapshots</id> 67 + <name>WOCommunity Snapshots Repository</name> 68 + <url> 69 + http://maven.wocommunity.org/content/groups/public-snapshots 70 + </url> 71 + <releases> 72 + <enabled>false</enabled> 73 + </releases> 74 + <snapshots> 75 + <enabled>true</enabled> 76 + </snapshots> 77 + </pluginRepository> 78 + </pluginRepositories> 79 + </profile> 80 + </profiles> 80 80 </settings> 81 81 82 -{{/ code}}83 +{{/noformat}} 83 83 84 84 === What does this do? === 85 85