Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2014-09-05 03:49:17 -0400
committerJan Bartel2014-09-05 04:35:15 -0400
commit7c882d76c5d6198cf142a224f2726487a7a0278f (patch)
treed8fa53226555d730664a4366e464d6515090d860 /tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml
parent7199c6ceca5420d2792c4751622374271c084f2c (diff)
downloadorg.eclipse.jetty.project-7c882d76c5d6198cf142a224f2726487a7a0278f.tar.gz
org.eclipse.jetty.project-7c882d76c5d6198cf142a224f2726487a7a0278f.tar.xz
org.eclipse.jetty.project-7c882d76c5d6198cf142a224f2726487a7a0278f.zip
Make annotations and JNDI wortk with OSGi
Diffstat (limited to 'tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml')
-rw-r--r--tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml49
1 files changed, 41 insertions, 8 deletions
diff --git a/tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml b/tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml
index 158d51c131..e832bacbaa 100644
--- a/tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml
+++ b/tests/test-webapps/test-servlet-spec/test-container-initializer/pom.xml
@@ -16,6 +16,47 @@
<verbose>false</verbose>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>artifact-jar</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <archive>
+ <manifestFile>target/classes/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.eclipse.jetty.tests.test-servlet-container-initializer;singleton:=true</Bundle-SymbolicName>
+ <Bundle-Description>A bundle containing a ServletContainerInitializer for testing</Bundle-Description>
+ <Require-Capability>osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"</Require-Capability>
+ <Provide-Capability>osgi.serviceloader; osgi.serviceloader=javax.servlet.ServletContainerInitializer</Provide-Capability>
+ <Export-Package>com.acme.initializer;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</Export-Package>
+ <_nouses>true</_nouses>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
<dependencies>
@@ -24,13 +65,5 @@
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
-
-<!--
- <dependency>
- <groupId>org.eclipse.jetty.orbit</groupId>
- <artifactId>javax.servlet</artifactId>
- <scope>provided</scope>
- </dependency>
--->
</dependencies>
</project>

Back to the top