Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION] WARN and stacktrace on dependency that has bundle packaging #272

Closed
hboutemy opened this issue Feb 4, 2023 · 3 comments · Fixed by #278
Closed

[REGRESSION] WARN and stacktrace on dependency that has bundle packaging #272

hboutemy opened this issue Feb 4, 2023 · 3 comments · Fixed by #278
Labels

Comments

@hboutemy
Copy link
Contributor

hboutemy commented Feb 4, 2023

reported in #259

when adding org.xerial.snappy:snappy-java:1.1.8.4 dependency, new stacktrace is displayed with [WARNING] An unexpected issue occurred attempting to resolve the effective pom for ... in the build output, but it does not fail the build nor makes an invalid BOM content:

[INFO] --- cyclonedx-maven-plugin:2.7.4:makeAggregateBom (default) @ server ---
...
[WARNING] An unexpected issue occurred attempting to resolve the effective pom for  org.xerial.snappy:snappy-java:1.1.8.4
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unknown packaging: bundle @ line 6, column 16
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:207)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:342)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:299)
    at org.cyclonedx.maven.BaseCycloneDxMojo.getEffectiveMavenProject (BaseCycloneDxMojo.java:449)
    at org.cyclonedx.maven.BaseCycloneDxMojo.convert (BaseCycloneDxMojo.java:406)
    at org.cyclonedx.maven.CycloneDxAggregateMojo.analyze (CycloneDxAggregateMojo.java:144)
    at org.cyclonedx.maven.BaseCycloneDxMojo.execute (BaseCycloneDxMojo.java:609)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
...
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.xerial.snappy:snappy-java:1.1.8.4
[ERROR] Unknown packaging: bundle @ line 6, column 16
    at org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException (DefaultModelProblemCollector.java:197)
    at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:568)
    at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:454)
    at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:267)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:173)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:342)
    at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:299)
    at org.cyclonedx.maven.BaseCycloneDxMojo.getEffectiveMavenProject (BaseCycloneDxMojo.java:449)
    at org.cyclonedx.maven.BaseCycloneDxMojo.convert (BaseCycloneDxMojo.java:406)
    at org.cyclonedx.maven.CycloneDxAggregateMojo.analyze (CycloneDxAggregateMojo.java:144)
    at org.cyclonedx.maven.BaseCycloneDxMojo.execute (BaseCycloneDxMojo.java:609)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
...

reproduced in a67bee2

@hboutemy
Copy link
Contributor Author

hboutemy commented Feb 4, 2023

it seems it has been introduced in 374b3c5#diff-fefd41f1516192deb7ae633e70ebca2920b4f3b546f1f994441912a7b30d6570R541

@hboutemy
Copy link
Contributor Author

hboutemy commented Feb 10, 2023

@hboutemy
Copy link
Contributor Author

just for reference: while investigating on this snappy-java jar file which pom has a "bundle" packaging, it seems this library is built with sbt https://github.com/xerial/snappy-java
then the pom.xml is purely generated, not really expected to buildable by Maven but only consumable during dependency resolution

hboutemy added a commit that referenced this issue Feb 13, 2023
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
hboutemy added a commit that referenced this issue Feb 13, 2023
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
hboutemy added a commit that referenced this issue Feb 13, 2023
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant