關鍵字:
http://jlorenzen.blogspot.com/2007/09/how-to-create-release-using-maven2.html
http://wiki.open-esb.java.net/Wiki.jsp?page=GestaltCreatingRelease
pom.xml Sample from https://rss-bc.dev.java.net/source/browse/*checkout*/rss-bc/trunk/rssbc/pom.xml?content-type=text%2Fplain&rev=166 -->
-------------------------------------------------------------------------------------
<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>
<groupId>com.gestalt.jbi.components.binding.rss</groupId>
<artifactId>rss-binding-component</artifactId>
<name>Gestalt :: JBI Components :: Binding Components :: Server Neutral :: RSS Binding Component</name>
<packaging>pom</packaging>
<version>0.9.2-SNAPSHOT</version>
<modules>
<module>build-tools</module>
<module>extensions</module>
<module>jar</module>
<module>zip</module>
</modules>
<properties>
<common.jbi.runtime.version>0.9.2-SNAPSHOT</common.jbi.runtime.version>
<jalopy.maven.plugin.version>1.0-SNAPSHOT</jalopy.maven.plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>rss-binding-component-extensions-impl</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>rss-binding-component-impl</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.gestalt.jbi.components.common</groupId>
<artifactId>common-jbi-runtime</artifactId>
<version>${common.jbi.runtime.version}</version>
</dependency>
<dependency>
<groupId>com.gestalt.jbi.components.common</groupId>
<artifactId>wsdl-common-jbi-runtime</artifactId>
<version>${common.jbi.runtime.version}</version>
</dependency>
<dependency>
<groupId>com.gestalt.jbi.components.common</groupId>
<artifactId>nmr-common-jbi-runtime</artifactId>
<version>${common.jbi.runtime.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<!-- Fix for cobertura html report, remove when patched -->
<!-- http://jira.codehaus.org/browse/MCOBERTURA-61 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>net.sourceforge.cobertura.datafile</name>
<value>target/cobertura/cobertura.ser</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<version>${jalopy.maven.plugin.version}</version>
<configuration>
<convention>rss-bc/jalopy.xml</convention>
<failOnError>false</failOnError>
</configuration>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>build-tools</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>java.util.logging.config.file</name>
<value>${logging.location}</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>build-tools</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>2.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock</artifactId>
<version>2.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-legacy</artifactId>
<version>2.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>1.1-BETA-1</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>snapshots.codehaus.org</id>
<name>Snapshot Repository for Codehaus</name>
<url>http://snapshots.repository.codehaus.org/</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
<scm>
<connection>scm:svn:https://rss-bc.dev.java.net/svn/rss-bc/trunk</connection>
<developerConnection>scm:svn:https://rss-bc.dev.java.net/svn/rss-bc/trunk</developerConnection>
<url>https://rss-bc.dev.java.net/source/browse/rss-bc/</url>
</scm>
<issueManagement>
<system>Bugzilla</system>
<url>https://rss-bc.dev.java.net/servlets/ProjectIssues</url>
</issueManagement>
<distributionManagement>
<site>
<id>jopdev01</id>
<name>Gestalt internal jopdev01</name>
<url>scp://jopdev01/web/rssbc</url>
</site>
<snapshotRepository>
<id>gestalt-maven2-repository</id>
<name>Internal Snapshot Repository</name>
<url>scp://phlbld01/snapshots/maven2repo</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
</distributionManagement>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<targetJdk>1.5</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>rss-bc/checkstyle.xml</configLocation>
<headerLocation>rss-bc/LICENSE.txt</headerLocation>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
沒有留言:
張貼留言