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

Skip to content

Commit 263670e

Browse files
committed
Generate OSGi-compliant MANIFEST.MF files
1 parent ca1fbcd commit 263670e

File tree

5 files changed

+48
-16
lines changed

5 files changed

+48
-16
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>

esapi/src/main/java/org/owasp/encoder/esapi/ESAPIEncoder.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
package org.owasp.encoder.esapi;
3636

3737
import java.io.IOException;
38-
import java.net.URI;
39-
4038
import org.owasp.encoder.Encode;
4139
import org.owasp.esapi.Encoder;
4240
import org.owasp.esapi.codecs.Codec;
@@ -238,15 +236,5 @@ public String encodeForBase64(byte[] bytes, boolean wrap) {
238236
public byte[] decodeFromBase64(String s) throws IOException {
239237
return _referenceEncoder.decodeFromBase64(s);
240238
}
241-
242-
/** {@inheritDoc} */
243-
public String encodeForLDAP(String input, boolean encodeWildcards) {
244-
return _referenceEncoder.encodeForLDAP(input, encodeWildcards);
245-
}
246-
247-
/** {@inheritDoc} */
248-
public String getCanonicalizedURI(URI dirtyUri) {
249-
return _referenceEncoder.getCanonicalizedURI(dirtyUri);
250-
}
251239
}
252240
}

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)