To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Configuring Maven for use with WOCommunity artifacts

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 .m2 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.

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:

No Format
<settings xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
	<pluginGroups>
		<pluginGroup>org.objectstyle.woproject.maven2</pluginGroup>
	</pluginGroups>

	<profiles>
		<profile>
			<id>default</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<repositories>
				<repository>
					<id>wocommunity.releases</id>
					<name>WOCommunity Releases Repository</name>
					<url>
						http://maven.wocommunity.org/content/groups/public
					</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
				<repository>
					<id>wocommunity.snapshots</id>
					<name>WOCommunity Snapshots Repository</name>
					<url>
						http://maven.wocommunity.org/content/groups/public-snapshots
					</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>wocommunity.releases</id>
					<name>WOCommunity Releases Repository</name>
					<url>
						http://maven.wocommunity.org/content/groups/public
					</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</pluginRepository>
				<pluginRepository>
					<id>wocommunity.snapshots</id>
					<name>WOCommunity Snapshots Repository</name>
					<url>
						http://maven.wocommunity.org/content/groups/public-snapshots
					</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
</settings>

...