-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from ppalaga/i298
Fix #298 Add removeOrphanLicenseFiles param to AbstractDownloadLicens…
- Loading branch information
Showing
10 changed files
with
230 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
invoker.goals = license:download-licenses | ||
invoker.goals = license:download-licenses -e |
39 changes: 39 additions & 0 deletions
39
src/it/download-licenses-configured/licenses-delete-orphans.expected.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<licenseSummary> | ||
<dependencies> | ||
<dependency> | ||
<groupId>aopalliance</groupId> | ||
<artifactId>aopalliance</artifactId> | ||
<version>1.0</version> | ||
<licenses> | ||
<license> | ||
<name>Public Domain</name> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>asm</groupId> | ||
<artifactId>asm</artifactId> | ||
<version>3.1</version> | ||
<licenses> | ||
<license> | ||
<name>BSD 3-Clause ASM</name> | ||
<url>https://gitlab.ow2.org/asm/asm/raw/ASM_3_1_MVN/LICENSE.txt</url> | ||
<file>bsd-3-clause-asm-license.txt</file> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
<version>1.0</version> | ||
<licenses> | ||
<license> | ||
<name>Apache License 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
<file>apache-license-2.0-license-2.0.txt</file> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
</dependencies> | ||
</licenseSummary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/it/download-licenses-configured/src/license/licenses-config-delete-orphans.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<licenseSummary> | ||
<dependencies> | ||
<dependency> | ||
<groupId>\Qcommons-logging</groupId> | ||
<artifactId>\Qcommons-logging</artifactId> | ||
<matchLicenses> | ||
<!-- match empty license list --> | ||
</matchLicenses> | ||
<licenses> | ||
<license> | ||
<name>Apache License 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>\Qaopalliance\E</groupId> | ||
<artifactId>\Qaopalliance\E</artifactId> | ||
<matchLicenses> | ||
<license> | ||
<name>\QPublic Domain\E</name> | ||
</license> | ||
</matchLicenses> | ||
<licenses approved="true" /> | ||
</dependency> | ||
<dependency> | ||
<groupId>\Qasm\E</groupId> | ||
<artifactId>\Qasm\E</artifactId> | ||
<matchLicenses> | ||
<!-- match empty license list --> | ||
</matchLicenses> | ||
<licenses> | ||
<license> | ||
<name>BSD 3-Clause ASM</name> | ||
<url>https://gitlab.ow2.org/asm/asm/raw/ASM_3_1_MVN/LICENSE.txt</url> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
</dependencies> | ||
</licenseSummary> |
51 changes: 51 additions & 0 deletions
51
src/it/download-licenses-configured/target-initial/delete-orphans/licenses.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<licenseSummary> | ||
<dependencies> | ||
<dependency> | ||
<groupId>aopalliance</groupId> | ||
<artifactId>aopalliance</artifactId> | ||
<version>1.0</version> | ||
<licenses> | ||
<license> | ||
<name>Public Domain</name> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>asm</groupId> | ||
<artifactId>asm</artifactId> | ||
<version>3.1</version> | ||
<licenses> | ||
<license> | ||
<name>BSD 3-Clause ASM</name> | ||
<url>https://gitlab.ow2.org/asm/asm/raw/ASM_3_1_MVN/LICENSE.txt</url> | ||
<file>bsd-3-clause-asm-license.txt</file> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>foo</groupId> | ||
<artifactId>bar</artifactId> | ||
<version>1.2.3</version> | ||
<licenses> | ||
<license> | ||
<name>The Foo Bar License v42</name> | ||
<url>https://foo.bar/LICENSE.txt</url> | ||
<file>foo-bar-license.txt</file> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
<version>1.0</version> | ||
<licenses> | ||
<license> | ||
<name>Apache License 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
<file>apache-license-2.0-license-2.0.txt</file> | ||
</license> | ||
</licenses> | ||
</dependency> | ||
</dependencies> | ||
</licenseSummary> |
1 change: 1 addition & 0 deletions
1
...nses-configured/target-initial/delete-orphans/licenses/apache-license-2.0-license-2.0.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fake content that should not get overwritten without forceDownload=true |
1 change: 1 addition & 0 deletions
1
...d-licenses-configured/target-initial/delete-orphans/licenses/bsd-3-clause-asm-license.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fake content that should not get overwritten without forceDownload=true |
1 change: 1 addition & 0 deletions
1
...t/download-licenses-configured/target-initial/delete-orphans/licenses/foo-bar-license.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Should be deleted due to removeOrphanLicenseFiles=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters