Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a02ff1

Browse files
committed
Generate OSGi-compliant MANIFEST.MF file
1 parent ca1fbcd commit 3a02ff1

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<parent>
4343
<groupId>org.owasp.encoder</groupId>
4444
<artifactId>encoder-parent</artifactId>
45-
<version>1.2.2</version>
45+
<version>1.2.3-SNAPSHOT</version>
4646
</parent>
4747

4848
<artifactId>encoder</artifactId>

esapi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<parent>
4343
<groupId>org.owasp.encoder</groupId>
4444
<artifactId>encoder-parent</artifactId>
45-
<version>1.2.2</version>
45+
<version>1.2.3-SNAPSHOT</version>
4646
</parent>
4747

4848
<artifactId>encoder-esapi</artifactId>

jsp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<parent>
4343
<groupId>org.owasp.encoder</groupId>
4444
<artifactId>encoder-parent</artifactId>
45-
<version>1.2.2</version>
45+
<version>1.2.3-SNAPSHOT</version>
4646
</parent>
4747

4848
<artifactId>encoder-jsp</artifactId>

pom.xml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<groupId>org.owasp.encoder</groupId>
4343
<artifactId>encoder-parent</artifactId>
44-
<version>1.2.2</version>
44+
<version>1.2.3-SNAPSHOT</version>
4545
<packaging>pom</packaging>
4646

4747
<name>OWASP Java Encoder Project</name>
@@ -238,6 +238,11 @@
238238
<artifactId>maven-pmd-plugin</artifactId>
239239
<version>3.6</version>
240240
</plugin>
241+
<plugin>
242+
<groupId>org.apache.felix</groupId>
243+
<artifactId>maven-bundle-plugin</artifactId>
244+
<version>3.3.0</version>
245+
</plugin>
241246
<plugin>
242247
<groupId>org.codehaus.mojo</groupId>
243248
<artifactId>versions-maven-plugin</artifactId>
@@ -265,6 +270,26 @@
265270
<target>1.5</target>
266271
</configuration>
267272
</plugin>
273+
<plugin>
274+
<groupId>org.apache.felix</groupId>
275+
<artifactId>maven-bundle-plugin</artifactId>
276+
<executions>
277+
<execution>
278+
<id>default-bundle</id>
279+
<phase>process-classes</phase>
280+
<goals>
281+
<goal>manifest</goal>
282+
</goals>
283+
<configuration>
284+
<excludeDependencies>true</excludeDependencies>
285+
<instructions>
286+
<_noee>true</_noee>
287+
<_nouses>true</_nouses>
288+
</instructions>
289+
</configuration>
290+
</execution>
291+
</executions>
292+
</plugin>
268293
<plugin>
269294
<groupId>org.codehaus.mojo</groupId>
270295
<artifactId>cobertura-maven-plugin</artifactId>
@@ -297,6 +322,25 @@
297322
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
298323
</configuration>
299324
</plugin>
325+
<plugin>
326+
<groupId>org.apache.maven.plugins</groupId>
327+
<artifactId>maven-jar-plugin</artifactId>
328+
<executions>
329+
<execution>
330+
<id>default-jar</id>
331+
<phase>package</phase>
332+
<goals>
333+
<goal>jar</goal>
334+
</goals>
335+
<configuration>
336+
<skipIfEmpty>true</skipIfEmpty>
337+
<archive>
338+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
339+
</archive>
340+
</configuration>
341+
</execution>
342+
</executions>
343+
</plugin>
300344
<plugin>
301345
<groupId>org.apache.maven.plugins</groupId>
302346
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)