Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created March 14, 2014 14:14
Show Gist options
  • Save hamnis/9548464 to your computer and use it in GitHub Desktop.
Save hamnis/9548464 to your computer and use it in GitHub Desktop.
<project>
<parent>
<groupId>com.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>rpm</artifactId>
<packaging>jar</packaging>
<name>Project :: RPM</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>compile</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>services</artifactId>
<version>${project.version}</version>
<classifier>jetty</classifier>
<type>xml</type>
<outputDirectory>${project.build.directory}/build/contexts/</outputDirectory>
<destFileName>jetty.xml</destFileName>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>services</artifactId>
<version>${project.version}</version>
<type>war</type>
<outputDirectory>${project.build.directory}/build/webapps/</outputDirectory>
<destFileName>services.war</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all</artifactId>
<version>9.1.3.v20140225</version>
<outputDirectory>${project.build.directory}/build/lib</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-start</artifactId>
<version>9.1.3.v20140225</version>
<outputDirectory>${project.build.directory}/build</outputDirectory>
<destFileName>start.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment