←Older revision |
Revision as of 13:38, 29 November 2014 |
Line 60: |
Line 60: |
| </source> | | </source> |
| | | |
- | And that is all! After building the project, you'll get an [[OSGi]] bundle that contains all the classes from the specified dependency found in ''exported'' and ''private'' packages. Copy the above file into pom.xml and execute: | + | And that is all! After building the project, you'll get an [[OSGi]] bundle that contains all the classes from the specified dependency found in ''exported'' and ''private'' packages. Just copy the above text into '''pom.xml''' file and in its directory execute yourself: |
| | | |
| <source lang="bash"> | | <source lang="bash"> |
Line 70: |
Line 70: |
| 5109 2014-02-14 11:53 javax/annotation/processing/AbstractProcessor.class | | 5109 2014-02-14 11:53 javax/annotation/processing/AbstractProcessor.class |
| # ...shortened | | # ...shortened |
| + | $ unzip -p target/jar-id-1.0-SNAPSHOT.jar META*MAN* |
| + | Manifest-Version: 1.0 |
| + | Bnd-LastModified: 1417267436493 |
| + | Build-Jdk: 1.8.0_25 |
| + | Bundle-ManifestVersion: 2 |
| + | Bundle-Name: jar-id |
| + | Bundle-SymbolicName: your.group.id.jar-id |
| + | Bundle-Version: 1.0.0.SNAPSHOT |
| + | Created-By: Apache Maven Bundle Plugin |
| + | Export-Package: javax.annotation.processing;uses:="javax.lang.model,java |
| + | x.tools,javax.lang.model.element,javax.lang.model.util";version="1.0.0. |
| + | SNAPSHOT",javax.lang.model.util;uses:="javax.annotation.processing,java |
| + | x.lang.model,javax.lang.model.element,javax.lang.model.type";version="1 |
| + | .0.0.SNAPSHOT",javax.lang.model;uses:="javax.lang.model.element";versio |
| + | n="1.0.0.SNAPSHOT",javax.tools;uses:="javax.lang.model.element,javax.an |
| + | notation.processing,javax.lang.model";version="1.0.0.SNAPSHOT",javax.la |
| + | ng.model.type;uses:="javax.lang.model.element,javax.lang.model";version |
| + | ="1.0.0.SNAPSHOT",javax.lang.model.element;uses:="javax.lang.model.type |
| + | ,javax.lang.model";version="1.0.0.SNAPSHOT" |
| + | Import-Package: javax.annotation.processing,javax.lang.model.element,jav |
| + | ax.lang.model.type,javax.lang.model.util,javax.tools |
| + | Tool: Bnd-1.50.0 |
| </source> | | </source> |
| | | |
- | Wrap your [[JAR]]'s into [[OSGi]] bundles and let [[Bck2Brwsr]] obfuscate them [[ObfuscatePerLibrary|per library]]. | + | Wrap your [[JAR]]'s into [[OSGi]] bundles and let [[Bck2Brwsr]] obfuscate them effectively [[ObfuscatePerLibrary|per library]]! |