<build>
<finalName>${project.artifactId}
</finalName>
<plugins>
<plugin>
<groupId>org.mortbay.jetty
</groupId>
<artifactId>jetty-maven-plugin
</artifactId>
<version>${jetty.version}
</version>
<configuration>
<systemProperties>
</systemProperties>
<webApp>
<contextPath>/
</contextPath>
</webApp>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-compiler-plugin
</artifactId>
<version>2.5.1
</version>
<configuration>
<source>1.7
</source>
<target>1.7
</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-source-plugin
</artifactId>
<version>2.2
</version>
<executions>
<execution>
<id>attach-sources
</id>
<goals>
<goal>jar
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-dependency-plugin
</artifactId>
<version>2.5.1
</version>
<executions>
<execution>
<id>jetty-classpath
</id>
<phase>prepare-package
</phase>
<goals>
<goal>unpack-dependencies
</goal>
</goals>
<configuration>
<includeGroupIds>org.eclipse.jetty,org.mortbay.jetty,javax.servlet,org.glassfish.web
</includeGroupIds>
<excludeArtifactIds>servlet-api-3.0,jsp-api,jsp-impl,jstl
</excludeArtifactIds>
<outputDirectory>
${project.build.directory}/${project.artifactId}
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-antrun-plugin
</artifactId>
<version>1.7
</version>
<executions>
<execution>
<id>main-class-placement
</id>
<phase>prepare-package
</phase>
<configuration>
<tasks>
<echo message="*** Moving launcher.class..." />
<move todir="${project.build.directory}/${project.artifactId}/">
<fileset dir="${project.build.directory}/classes/">
<include name="Launcher.class" />
</fileset>
</move>
<echo message="*** Moving launcher.class done." />
<echo message="*** Removing *.SF, *.RSA in META-INF ..." />
<delete>
<fileset
dir=
"${project.build.directory}/${project.artifactId}/META-INF/"
includes=
"*.SF,*.RSA" />
</delete>
<echo message="*** Removing *.SF, *.RSA in META-INF done." />
<echo message="*** Copying logback-test.xml..." />
<copy todir="${project.build.directory}/${project.artifactId}/">
<fileset dir="${project.build.directory}/../src/main/resources/">
<include name="logback-test.xml" />
</fileset>
</copy>
<echo message="*** Copying logback-test.xml done." />
<echo message="*** Copying conf.properties ..." />
<copy todir="${project.build.directory}/${project.artifactId}/../">
<fileset dir="${project.build.directory}/../src/main/resources/">
<include name="conf.properties" />
</fileset>
</copy>
<echo message="*** Copying conf.properties done." />
<echo message="*** Copying run.sh ..." />
<copy todir="${project.build.directory}/${project.artifactId}/../">
<fileset dir="${project.build.directory}/../src/main/resources/">
<include name="run.sh" />
</fileset>
</copy>
<echo message="*** Copying run.sh done." />
</tasks>
</configuration>
<goals>
<goal>run
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
</groupId>
<artifactId>maven-war-plugin
</artifactId>
<version>2.2
</version>
<configuration>
<failOnMissingWebXml>false
</failOnMissingWebXml>
<archive>
<manifest>
<mainClass>Launcher
</mainClass>
</manifest>
</archive>
<warSourceExcludes>docs/**
</warSourceExcludes>
<packagingExcludes>docs/**
</packagingExcludes>
</configuration>
</plugin>
<!-- <plugin> <groupId>org.codehaus.enunciate</groupId> <artifactId>maven-enunciate-plugin</artifactId>
<version>1.26.2</version> <executions> <execution> <goals> <goal>assemble</goal>
</goals> <configuration> <configFile>src/main/resources/enunciate.xml</configFile>
</configuration> </execution> </executions> </plugin> -->
</plugins>
</build>