|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + This program and the accompanying materials are made available under the |
| 5 | + terms of the Eclipse Distribution License v. 1.0, which is available at |
| 6 | + http://www.eclipse.org/org/documents/edl-v10.php. |
| 7 | +
|
| 8 | + SPDX-License-Identifier: BSD-3-Clause |
| 9 | +
|
| 10 | +--> |
| 11 | + |
| 12 | +<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/xsd/maven-4.0.0.xsd"> |
| 13 | + |
| 14 | + <modelVersion>4.0.0</modelVersion> |
| 15 | + |
| 16 | + <parent> |
| 17 | + <groupId>org.glassfish.jersey.examples</groupId> |
| 18 | + <artifactId>osgi-helloworld-webapp-jetty-12</artifactId> |
| 19 | + <version>2.42-SNAPSHOT</version> |
| 20 | + </parent> |
| 21 | + |
| 22 | + <groupId>org.glassfish.jersey.examples.osgi-helloworld-jetty-12-webapp</groupId> |
| 23 | + <artifactId>war-bundle</artifactId> |
| 24 | + <name>jersey-examples-osgi-helloworld-jetty-12-webapp-wab</name> |
| 25 | + <packaging>war</packaging> |
| 26 | + |
| 27 | + <description>OSGi Helloworld Webapp WAR bundle for Jetty 12</description> |
| 28 | + |
| 29 | + <dependencies> |
| 30 | + <dependency> |
| 31 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 32 | + <artifactId>jersey-container-servlet-core</artifactId> |
| 33 | + <scope>provided</scope> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>jakarta.ws.rs</groupId> |
| 37 | + <artifactId>jakarta.ws.rs-api</artifactId> |
| 38 | + <scope>provided</scope> |
| 39 | + </dependency> |
| 40 | + <dependency> |
| 41 | + <groupId>javax.servlet</groupId> |
| 42 | + <artifactId>servlet-api</artifactId> |
| 43 | + <version>${servlet2.version}</version> |
| 44 | + <scope>provided</scope> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>org.apache.felix</groupId> |
| 49 | + <artifactId>org.apache.felix.eventadmin</artifactId> |
| 50 | + <scope>provided</scope> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>org.apache.felix</groupId> |
| 54 | + <artifactId>org.apache.felix.framework</artifactId> |
| 55 | + <scope>provided</scope> |
| 56 | + </dependency> |
| 57 | + </dependencies> |
| 58 | + |
| 59 | + <build> |
| 60 | + <plugins> |
| 61 | + <!-- to generate the MANIFEST-FILE required by the bundle --> |
| 62 | + <plugin> |
| 63 | + <groupId>org.apache.felix</groupId> |
| 64 | + <artifactId>maven-bundle-plugin</artifactId> |
| 65 | + <extensions>true</extensions> |
| 66 | + <executions> |
| 67 | + <execution> |
| 68 | + <id>bundle-manifest</id> |
| 69 | + <phase>process-classes</phase> |
| 70 | + <goals> |
| 71 | + <goal>manifest</goal> |
| 72 | + </goals> |
| 73 | + </execution> |
| 74 | + </executions> |
| 75 | + <configuration> |
| 76 | + <manifestLocation>${project.build.directory}/META-INF</manifestLocation> |
| 77 | + <supportedProjectTypes> |
| 78 | + <supportedProjectType>bundle</supportedProjectType> |
| 79 | + <supportedProjectType>war</supportedProjectType> |
| 80 | + </supportedProjectTypes> |
| 81 | + <instructions> |
| 82 | + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 83 | + <Import-Package> |
| 84 | + org.glassfish.jersey.servlet, |
| 85 | + * |
| 86 | + </Import-Package> |
| 87 | + <Export-Package> |
| 88 | + org.glassfish.jersey.examples.osgi.helloworld |
| 89 | + </Export-Package> |
| 90 | + <Webapp-Context>helloworld</Webapp-Context> |
| 91 | + <Web-ContextPath>helloworld</Web-ContextPath> |
| 92 | + <Jetty-Environment>ee8</Jetty-Environment> |
| 93 | + <_wab>src/main/webapp</_wab> |
| 94 | + </instructions> |
| 95 | + </configuration> |
| 96 | + </plugin> |
| 97 | + |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-war-plugin</artifactId> |
| 101 | + <configuration> |
| 102 | + <attachClasses>true</attachClasses> |
| 103 | + <archive> |
| 104 | + <manifestFile>${project.build.directory}/META-INF/MANIFEST.MF</manifestFile> |
| 105 | + </archive> |
| 106 | + </configuration> |
| 107 | + </plugin> |
| 108 | + </plugins> |
| 109 | + </build> |
| 110 | + |
| 111 | + <profiles> |
| 112 | + <profile> |
| 113 | + <id>release</id> |
| 114 | + <!-- do not create source zip bundles --> |
| 115 | + <build> |
| 116 | + <plugins> |
| 117 | + <plugin> |
| 118 | + <groupId>org.apache.maven.plugins</groupId> |
| 119 | + <artifactId>maven-assembly-plugin</artifactId> |
| 120 | + <configuration> |
| 121 | + <skipAssembly>true</skipAssembly> |
| 122 | + </configuration> |
| 123 | + </plugin> |
| 124 | + </plugins> |
| 125 | + </build> |
| 126 | + </profile> |
| 127 | + <profile> |
| 128 | + <id>moxy</id> |
| 129 | + <activation> |
| 130 | + <property> |
| 131 | + <name>moxy</name> |
| 132 | + </property> |
| 133 | + </activation> |
| 134 | + <dependencies> |
| 135 | + <dependency> |
| 136 | + <groupId>org.eclipse.persistence</groupId> |
| 137 | + <artifactId>org.eclipse.persistence.moxy</artifactId> |
| 138 | + <version>${moxy.version}</version> |
| 139 | + <scope>provided</scope> |
| 140 | + </dependency> |
| 141 | + </dependencies> |
| 142 | + </profile> |
| 143 | + </profiles> |
| 144 | + |
| 145 | +</project> |
0 commit comments