Replies: 3 comments 17 replies
The main problem is that these maven coordinates are most often wrong, so we only map those that are valid maven coordinates. For the consumer pom we try a bit harder (e.g. query maven central for the hashsum) but this is of course much slower. According to the docs:
It actually should be possible with the tool as well, you should ask the to handle |
|
This is completely tangential. The Foundation has been working on SBOM directly from a p2 repository, a product zip/tar.gz, or for installation: https://eclipse.dev/eclipse/markdown/?file=eclipse-cbi/p2repo-sbom/main/docs/index.md E.g., this is generated for the 4.36 repository: https://download.eclipse.org/cbi/archive/sboms/cbi.p2repo.sbom-general-generator/98/index.html It has lots of useful detail, including dependencies and traceability back to maven central... |
|
At least from a technical perspective, Tycho is already perfectly capable of mapping p2 to Maven coordinates (if available on Maven Central of course). Since we also have to use BlackDuck, I eventually came up with something like this, which was executed from our own Tycho-based Mojo: However, we eventually gave up on this and simply created one huge mapping table for those coordinates. Primarily because it's a) incredibly brittle, b) incredibly slow and c) abusing the Maven Central API, which is why I don't think it's a good idea for Tycho to provide such functionality directly. |
Uh oh!
There was an error while loading. Please reload this page.
Currently,
dependency:treeoutputs p2 dependencies in the formeven if they have maven-mapped coordinates: https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.equinox.common/3.20.200
Is there a way to instead derive an output in the maven form?
This would enable the usage of analysis tools such as BlackDuck, which essentially make use of
dependecy:tree: https://documentation.blackduck.com/bundle/detect/page/gettingstarted/howitworks.htmlAll reactions