Comments (7)
So you would like to be able to edit the Manifest.MF file of an artifact that's already a bundle without using the 'override' option - basically without bundling it once more using BND? Do I get it correctly?
What do you mean by the "bnd prevent instruction"?
from p2-maven-plugin.
Yes, I want to change only the file name and the bundle symbolic name manifest element.
Like
<artifact>
<id>org.apache.log4j:com.springsource.org.apache.log4j:1.2.16</id>
<transitive>false</transitive>
<bundled>true</bundled>
<instructions>
<Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>
</instructions>
</artifact>
This "bundled" setting prevent the normal BND bundle process and only the specified instructions will be executed (like changing the manifest imports or exports).
from p2-maven-plugin.
The 'bundled' switch is not a good idea since there is already the 'override' switch.
It would have to be then:
override -> bundle
override -> manifest
I just do not get the business case why you would like to rename the bundles...
Forgeting p2 and OSGi - you cannot add a dependency in the pure maven renaming it at the same time...
from p2-maven-plugin.
My case is: I need org.apache.log4j:1.2.16 as dependency and spring source already offers a bundle (in their maven repo). But I do not find this bundle in a public P2 repo (only v1.2.15), so I want to host it myself.
from p2-maven-plugin.
I found https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_16/pom.xml so I use the same BND instructions and the result matches.
from p2-maven-plugin.
Perfect. Thanks
from p2-maven-plugin.
Wow, if the BSN in the manifest already is correct, then your plugin changes the file name correctly. This saves a lot of work.
groupId and artifactId are useless, but so I have to do anything. Thx 👍
from p2-maven-plugin.
Related Issues (20)
- [BUG] Embebbed BND Tool ends with errors but build is sucessfull HOT 1
- Support for Multi-release JAR
- create binary identical JARs for unmodified input HOT 1
- [ENH] Sanitize broken manifest in source bundles HOT 7
- Allow exclude at root level HOT 2
- Move from Github Action to Drone
- Publish Maven Site as Gihub Page
- Automate Writing Release Notes
- [Maintenance] Maven Build fails when running with Maven 3.8.1 HOT 2
- Mapping javadoc attachment
- Documentation request: Cutting a recursion
- Dependency Dashboard
- API Incopatibility when using the plugin with tycho version > 1.3.0 HOT 5
- Is there a way to sign the jars before creating the artifacts.jar? HOT 6
- Making a local site that _mimic_ a `.target` results in `ZipException: zip END header not found` HOT 2
- Support using maven BOMs to specify library versions HOT 1
- Update JUnit Tests to JUnit 5 HOT 1
- Tycho 3.0.0 incompatibilities HOT 19
- How to exclude certain file while generating a bundle from jar? HOT 3
- Option to remove osgi.ee capability requirements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2-maven-plugin.