Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'hudson-war/pom.xml')
-rw-r--r--hudson-war/pom.xml63
1 files changed, 41 insertions, 22 deletions
diff --git a/hudson-war/pom.xml b/hudson-war/pom.xml
index ebdc3446..f873cc67 100644
--- a/hudson-war/pom.xml
+++ b/hudson-war/pom.xml
@@ -50,13 +50,16 @@
<webResources>
<resource>
+ <directory>${project.build.directory}/classes</directory>
+ </resource>
+ <resource>
<directory>${project.build.directory}/generated-resources</directory>
</resource>
</webResources>
- <!-- Main Class to Start Jetty -->
+ <!-- Main bootstrap Class to make war executable -->
<archive>
<manifest>
- <mainClass>org.eclipse.hudson.war.executable.StartJetty</mainClass>
+ <mainClass>org.eclipse.hudson.war.Executable</mainClass>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
@@ -89,10 +92,12 @@
<goals>
<goal>unpack</goal>
</goals>
+
<configuration>
- <excludes>
- META-INF/*
- </excludes>
+ <!-- Copy only the bootstrap class -->
+ <includes>
+ **/Executable*
+ </includes>
<artifactItems>
<artifactItem>
@@ -104,42 +109,56 @@
<outputDirectory>target/generated-resources</outputDirectory>
</artifactItem>
- <!-- Jetty Classes -->
+ </artifactItems>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>copyResources</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+
+ <!-- Jetty war executable libraries -->
+
+ <artifactItem>
+ <groupId>org.eclipse.hudson.main</groupId>
+ <artifactId>hudson-jetty-war-executable</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>target/generated-resources/libs</outputDirectory>
+ <destFileName>hudson-jetty-war-executable.jar</destFileName>
+ </artifactItem>
+
<artifactItem>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.26</version>
<overWrite>true</overWrite>
- <outputDirectory>target/generated-resources</outputDirectory>
+ <outputDirectory>target/generated-resources/libs</outputDirectory>
+ <destFileName>jetty.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-util</artifactId>
<version>6.1.26</version>
<overWrite>true</overWrite>
- <outputDirectory>target/generated-resources</outputDirectory>
+ <outputDirectory>target/generated-resources/libs</outputDirectory>
+ <destFileName>jetty-util.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>org.mortbay.jetty</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5-20081211</version>
<overWrite>true</overWrite>
- <outputDirectory>target/generated-resources</outputDirectory>
+ <outputDirectory>target/generated-resources/libs</outputDirectory>
+ <destFileName>jetty-servlet-api.jar</destFileName>
</artifactItem>
- </artifactItems>
- </configuration>
- </execution>
-
- <execution>
- <id>copyResources</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
-
<!-- dependencies that goes to WEB-INF for unusual usage -->
<artifactItem>

Back to the top