Pom minimale avec Mavenpom4redmineAndCentral
Préambule
Cette page décrit un pom minimal qui utilise correctement mavenpom4redmineAndCentral.
Le pom
<?xml version="1.0" encoding="UTF-8"?>
<project 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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- ************************************************************* -->
<!-- *** POM Relationships *************************************** -->
<!-- ************************************************************* -->
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
<version>3.0</version>
</parent>
<artifactId>myProject</artifactId>
<version>0.1-SNAPSHOT</version>
<dependencies>
<!-- your dependencies -->
</dependencies>
<!-- ************************************************************* -->
<!-- *** Project Information ************************************* -->
<!-- ************************************************************* -->
<name>Maven License Plugin</name>
<description>myProject description</description>
<inceptionYear>2010</inceptionYear>
<url>projectUrl</url>
<developers>
<!-- project developpers -->
</developers>
<!-- ************************************************************* -->
<!-- *** Build Environment ************************************** -->
<!-- ************************************************************* -->
<!-- Source control management. -->
<scm>
<connection>scm:svn:http://svn.${platform}/svn/myProject/trunk</connection>
<developerConnection>scm:svn:http://svn.${platform}/svn/myProject/trunk</developerConnection>
<url>http://www.${platform}/repositories/browse/myProject/trunk</url>
</scm>
<!-- ************************************************************* -->
<!-- *** Build Settings ****************************************** -->
<!-- ************************************************************* -->
<packaging>your packaging (pom, jar, war, ear, plugin, ...)</packaging>
<properties>
<!-- use this on a multi-module -->
<projectId>myProject</projectId>
<!-- if documentation is not in french, oveerides it -->
<siteLocales>fr,en</siteLocales>
<!-- if documentation is not in rst format, overrides it -->
<siteSourcesType>rst</siteSourcesType>
</properties>
<distributionManagement>
<site>
<id>${platform}</id>
<url>${our.site.repository}/${projectId}</url>
</site>
</distributionManagement>
<build>
<plugins>
<!-- extra build plugins -->
</plugins>
<pluginManagement>
<plugins>
<!-- extra plugins -->
<plugin>
<!-- use this conf for documentation in rst -->
<artifactId>maven-site-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.nuiton.jrst</groupId>
<artifactId>doxia-module-jrst</artifactId>
<version>${jrstPluginVersion}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>