license-maven-plugin
license-maven-plugin copied to clipboard
Transitive dependencies of WAR artifacts file not picked up by add-third-party goal
Steps:
- 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>
- 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.
The same applies for artifacts with packaging type ear
.
This also applies to type bundle
which is just a jar
with extra (OSGi) metadata in META-INF/
.