Comments (17)
In progress. It will be a bigger change, as I have noticed some other issues regarding the instructions
from p2-maven-plugin.
Not sure if I should report this here or open another bug, but it appears that the Bundle-SymbolicName doesn't always get set. In particularl I'm having issues with the jackson-core-lgpl.jar from maven which I need to change the symbolic name. I've specified it, but not being changed.
from p2-maven-plugin.
Maybe you can check in your changes until today in a separate branch and we could help you ?
from p2-maven-plugin.
Thanks for your feedback. I have almost finished the implementation though. I will try to push it in the next days.
If you would like to contribute I will create some feature-requests issues so that you can work on that. Thanks!
from p2-maven-plugin.
Any update pn this, or a suggestion where this bug is. I'm running into it with the following as well.
<artifact>
<id>org.slf4j:slf4j-api:1.7.2</id>
<source>true</source>
<transitive>false</transitive>
<instructions>
<Bundle-SymbolicName>org.slf4j.api</Bundle-SymbolicName>
<Bundle-Version>1.7.2</Bundle-Version>
</instructions>
</artifact>
I may have to go through and try to fix this locally, since I can create test case for this.
from p2-maven-plugin.
Hi, sorry I did not have much time to finish this. I have fixed it along with some other bugs. I am working on it just now coding some integration tests. I hope I will manage to commit it today or tomorrow.
from p2-maven-plugin.
Please recheck now. There's a lot that has been changed. This bug should be solved now.
- The override option is more intuitive.
- The handling of the instructions has been changed. Please see: https://github.com/reficio/p2-maven-plugin/blob/master/examples/quickstart/pom.xml
- The logging has been improved
- Tycho has been changed to 0.16.0 (and unified)
- I also added an option to exclude specified transitive dependencies (line in maven) using the switch. Please see: https://github.com/reficio/p2-maven-plugin/blob/master/examples/excludes/pom.xml
- Finally, an integration tests layer has been added. There's around 20 integration tests that invoke the plugin and verify the results.
from p2-maven-plugin.
The newest snapshot should be build and deployed at night
from p2-maven-plugin.
Snapshots were deployed to the reficio repo (http://repo.reficio.org/)
from p2-maven-plugin.
Thanks I'm testing this out now. Will report back the results.
from p2-maven-plugin.
There is a compilation error in the BundleWrapper code. I can submit a pull request to fix it but it is a one line change need to change: log.debug to log().debug. Once that is fixed, the renaming issue I was having seems to be fixed once I added the overrides.
from p2-maven-plugin.
Are you sure you have the newest code?
The version from git compiles on jenkins (and on my machine) and there is no debug statement in the BundleWrapper code...
https://github.com/reficio/p2-maven-plugin/blob/master/src/main/java/org/reficio/p2/utils/BundleWrapper.java
from p2-maven-plugin.
And the link to jenkins: https://reficio.ci.cloudbees.com/job/p2-maven-plugin/
from p2-maven-plugin.
Hmmm...odd line 137, used to contain the following line:
log.debug("Unsign Jar: " + jarToUnsign.getName());
Which was causing compilation errors. Latest code doesn't seem to contain that.
from p2-maven-plugin.
OK. I understand - I will add this log line later.
The override option is required now - otherwise it may be difficult to spot mistakes if you specify instructions for artifacts that are already OSGi bundles.
So, may I close this issue?
from p2-maven-plugin.
Yep. I'm closing the issue.
from p2-maven-plugin.
Cool, thanks. I will have a closer look at the code doing the code review, but I think we have got a release candidate for the 1.0.0 version.
I am pretty proud of the 19 integration tests (run by the maven-invoker-plugin) that increased the test coverage to around 90% :) Now, I am confident that the code is more or less stable...
from p2-maven-plugin.
Related Issues (20)
- 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
- Thank you 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.