...
Code Block |
---|
|
<parent>
<groupId>org.sakaiproject.purepoms</groupId>
<artifactId>sakai-standard-tool</artifactId>
<version>2.7.0-build03</version>
</parent>
|
Child poms:
Code Block |
---|
|
<parent>
<groupId>org.sakaiproject.emailtemplateservice</groupId>
<artifactId>emailtemplateservice</artifactId>
<version>0.4-SNAPSHOT</version>
</parent>
|
Delete this: redundant
Code Block |
---|
|
<relativePath>../pom.xml</relativePath>
|
Properties
Code Block |
---|
|
<properties>
<url.localsite>scp://source.sakaiproject.org/var/www/html/release/emailtemplateservice/${project.version} </url.localsite>
</properties>
|
scm
Code Block |
---|
|
<scm>
<connection>scm:svn:https://source.sakaiproject.org/svn/emailtemplateservice/trunk</connection>
<developerConnection>scm:svn:https://source.sakaiproject.org/svn/emailtemplateservice/trunk</developerConnection>
<url>https://source.sakaiproject.org/svn/emailtemplateservice/trunk</url>
</scm>
|
...
Code Block |
---|
|
<distributionManagement>
<downloadUrl>http://source.sakaiproject.org/maven2/</downloadUrl>
<snapshotRepository>
<uniqueVersion>false</uniqueVersion>
<id>sakai-maven-snapshots-scp</id>
<name>Sakai snapshot Repo</name>
<url>scp://source.sakaiproject.org/var/www/html/maven2-snapshots</url>
<layout>default</layout>
</snapshotRepository>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>sakai-maven2-scp</id>
<name>Sakai maven2 repository</name>
<url>scp://source.sakaiproject.org/var/www/html/maven2</url>
<layout>default</layout>
</repository>
<site>
<id>sakai-site</id>
<name>Sakai release Site</name>
<url>${url.localsite}</url>
</site>
</distributionManagement>
|
Dependency Management
Code Block |
---|
|
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-api</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-impl</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
|
Child poms:
Impl
Code Block |
---|
|
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-api</artifactId>
</dependency>
</dependencies>
|
Impl: accomodate change from <parent> master to purepom:
Code Block |
---|
|
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>${sakai.ehcache.version}</version>
<scope>provided</scope>
</dependency>
|
Code Block |
---|
|
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
</dependency>
|
Reporting
Code Block |
---|
|
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<reportSets>
<reportSet>
<id>aggregate</id>
<configuration>
<aggregate>true</aggregate>
<source>1.5</source>
<encoding>UTF-8</encoding>
<links>
<link>http://java.sun.com/j2se/1.5.0/docs/api</link>
<link>http://java.sun.com/products/servlet/2.3/javadoc/</link>
</links>
<breakiterator>true</breakiterator>
<verbose>false</verbose>
<maxmemory>512m</maxmemory>
<additionalJOption>
-J-Xms168m -J-Xmx512m -J-XX:PermSize=128m -J-XX:NewSize=64m
</additionalJOption>
</configuration>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
|
Assembly: base pom
Code Block |
---|
|
<modules>
<module>api</module>
<module>assembly</module>
<module>impl/logic</module>
<module>pack</module>
<module>tool</module>
</modules>
|
h3 Assembly: pom
Code Block |
---|
|
<?xml version="1.0"?>
<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>
<parent>
<groupId>org.sakaiproject.emailtemplateservice</groupId>
<artifactId>emailtemplateservice</artifactId>
<version>0.4-SNAPSHOT</version>
</parent>
<name>Sakai emailtemplate Assembly (emailtemplateservice-assembly)</name>
<groupId>org.sakaiproject.emailtemplateservice</groupId>
<artifactId>emailtemplateservice-assembly</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-api</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-impl</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-pack</artifactId>
<version>${project.version}</version>
<type>war</type>
<!-- <type>sakai-component</type> -->
<scope>compile</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>emailtemplateservice-tool</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin
</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/deploy.xml
</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- append to the packaging phase. -->
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|
h3 Assembly: deploy.xml
Code Block |
---|
|
<?xml version="1.0"?>
<assembly>
<id>tomcat-overlay</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>shared/lib/</outputDirectory>
<useTransitiveDependencies>false
</useTransitiveDependencies>
<includes>
<include>org.sakaiproject.emailtemplateservice:emailtemplateservice-api:jar:*</include>
</includes>
<unpack>false</unpack>
</dependencySet>
<dependencySet>
<outputDirectory>components/emailtemplateservice-pack</outputDirectory>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.sakaiproject.emailtemplateservice:emailtemplateservice-pack:war:*</include>
</includes>
<unpack>true</unpack>
</dependencySet>
<dependencySet>
<outputDirectory>webapps/</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}.war</outputFileNameMapping>
<useTransitiveDependencies>false</useTransitiveDependencies>
<includes>
<include>org.sakaiproject.emailtemplateservice:emailtemplateservice-tool:war:*</include>
</includes>
<unpack>false</unpack>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<outputDirectory></outputDirectory>
<includes>
<include>${project.basedir}/README*</include>
</includes>
</fileSet>
</fileSets>
</assembly>
|