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

Transitive dependencies of WAR artifacts file not picked up by add-third-party goal #417

Open
stefanroeck opened this issue Dec 3, 2021 · 2 comments

Comments

@stefanroeck
Copy link

Steps:

  1. Add a dependency to a war artifact that has transitive depdendencies, e.g.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <artifactId>simplewar</artifactId>
    <packaging>war</packaging>

    <dependencies>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.4</version>
        </dependency>
    </dependencies>
</project>
  1. Run add-third-party goal

Expected

  • License for commons-lang detected

Actual

  • No license found

If the packaging of simplewar is changed from war to jar, the license is picked up.

@stefanroeck
Copy link
Author

The same applies for artifacts with packaging type ear.

@RangerRick
Copy link

This also applies to type bundle which is just a jar with extra (OSGi) metadata in META-INF/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants