Skip to content

Instantly share code, notes, and snippets.

@tdonohue
Created January 15, 2015 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdonohue/28989d4d73d27265a8b8 to your computer and use it in GitHub Desktop.
Save tdonohue/28989d4d73d27265a8b8 to your computer and use it in GitHub Desktop.
Third party licenses Profile
Run by doing: "mvn clean verify -Dthird.party.licenses=true"
<!-- Generate a list of all THIRD PARTY licenses which are in use by DSpace -->
<profile>
<id>third-party-licenses</id>
<activation>
<activeByDefault>false</activeByDefault>
<!-- This profile should ONLY be active when user specifies
-Dthird.party.licenses=true on command-line. -->
<property>
<name>third.party.licenses</name>
</property>
</activation>
<modules>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>aggregate-add-third-party</goal>
</goals>
<configuration>
<outputDirectory>${root.basedir}</outputDirectory>
<thirdPartyFileName>LICENSES_THIRD_PARTY.txt</thirdPartyFileName>
<excludedGroups>org\.dspace.*</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment