license-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>2.5.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- #%L License Maven Plugin %% Copyright (C) 2011-2012 CodeLutin, Codehaus, tony Chzemit %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Lesser Public License for more details. You should have received a copy of the GNU General Lesser Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>. #L% --> <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> <parent> <groupId>org.codehaus.mojo</groupId> <artifactId>mojo-parent</artifactId> <version>86</version> </parent> <artifactId>license-maven-plugin</artifactId> <version>2.5.0</version> <packaging>maven-plugin</packaging> <name>License Maven Plugin</name> <description>Maven plugin to download and collect license files from project dependencies.</description> <url>https://www.mojohaus.org/license-maven-plugin</url> <inceptionYear>2010</inceptionYear> <licenses> <license> <name>The GNU Lesser General Public License, Version 3.0</name> <url>https://www.gnu.org/licenses/lgpl-3.0.txt</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <name>Tony Chemit</name> <email>dev@tchemit.fr</email> <organization>Ultreia.io</organization> <organizationUrl>https://www.ultreia.io</organizationUrl> <roles> <role>Lead Developer</role> </roles> <timezone>Europe/Paris</timezone> </developer> <developer> <name>Paul Gier</name> <email>pgier at redhat</email> <roles> <role>Developer</role> </roles> </developer> <developer> <name>Slawomir Jaranowski</name> <email>sjaranowski@apache.org</email> <roles> <role>Developer</role> </roles> <timezone>Europe/Warsaw</timezone> </developer> </developers> <contributors> <contributor> <name>Curtis Rueden</name> </contributor> <contributor> <name>Chris Manning</name> </contributor> <contributor> <name>Jérôme Joslet</name> </contributor> <contributor> <name>Benson Margulies</name> <email>bimargulies at apache</email> </contributor> <contributor> <name>Cedric Pronzato</name> </contributor> <contributor> <name>Jan-Hendrik Diederich</name> </contributor> </contributors> <prerequisites> <maven>${mavenVersion}</maven> </prerequisites> <scm> <connection>scm:git:https://github.com/mojohaus/license-maven-plugin.git</connection> <developerConnection>scm:git:ssh://git@github.com/mojohaus/license-maven-plugin.git</developerConnection> <tag>2.5.0</tag> <url>https://github.com/mojohaus/license-maven-plugin/tree/master</url> </scm> <issueManagement> <system>github</system> <url>https://github.com/mojohaus/license-maven-plugin/issues/</url> </issueManagement> <ciManagement> <system>github</system> <url>https://github.com/mojohaus/license-maven-plugin/actions</url> </ciManagement> <properties> <mavenVersion>3.6.3</mavenVersion> <mojo.java.target>8</mojo.java.target> <processorVersion>1.3</processorVersion> <doxiaVersion>2.0.0</doxiaVersion> <!-- ASF project maven-doxia-sitetools:1.8.1 has different release cycle and it is dependent on maven-doxia:1.8 --> <doxiaRendererVersion>2.0.0</doxiaRendererVersion> <mavenReportingApiVersion>4.0.0</mavenReportingApiVersion> <mavenReportingImplVersion>4.0.0</mavenReportingImplVersion> <version.httpcomponents.httpclient>4.5.14</version.httpcomponents.httpclient> <version.httpcomponents.httpcore>4.4.16</version.httpcomponents.httpcore> <!-- license configuration --> <license.useMissingFile>true</license.useMissingFile> <license.failOnMissing>true</license.failOnMissing> <license.licenseName>lgpl_v3</license.licenseName> <!-- the same version as in Maven core --> <maven-resolver.version>1.4.1</maven-resolver.version> <project.build.outputTimestamp>2024-11-29T07:11:05Z</project.build.outputTimestamp> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${version.httpcomponents.httpclient}</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>${version.httpcomponents.httpcore}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.36</version> </dependency> <dependency> <!-- due to security error in transitive dependencies --> <groupId>org.apache.maven</groupId> <artifactId>maven-archiver</artifactId> <version>3.6.3</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven.resolver</groupId> <artifactId>maven-resolver-api</artifactId> <version>${maven-resolver.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <!-- Doxia --> <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-core</artifactId> <version>${doxiaVersion}</version> </dependency> <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-sink-api</artifactId> <version>${doxiaVersion}</version> </dependency> <dependency> <groupId>org.apache.maven.reporting</groupId> <artifactId>maven-reporting-api</artifactId> <version>${mavenReportingApiVersion}</version> </dependency> <dependency> <groupId>org.apache.maven.reporting</groupId> <artifactId>maven-reporting-impl</artifactId> <version>${mavenReportingImplVersion}</version> </dependency> <!-- dependencies to annotations --> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>4.0.2</version> </dependency> <dependency> <groupId>org.nuiton.processor</groupId> <artifactId>nuiton-processor</artifactId> <version>${processorVersion}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.17.0</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.2</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.18.0</version> </dependency> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.33</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <!-- redirect log4j to slf4j --> <!-- avoid errors as Log4j2 could not find a logging implementation --> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-to-slf4j</artifactId> <version>2.24.2</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <!-- Needed for extended constants in JARs MANIFEST.MF --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>6.0.0</version> </dependency> <!-- Microsoft Excel XLSX export --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.3.0</version> </dependency> <!-- LibreOffice Calc ODT export --> <dependency> <groupId>org.odftoolkit</groupId> <artifactId>odfdom-java</artifactId> <!-- There are later versions, but that versions need JDKs after version 8 --> <version>0.9.0</version> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <doclint>none</doclint> </configuration> </plugin> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>2.1.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <configuration> <!-- due to freemarker mixed jar FREEMARKER-228 --> <requiredJavaVersion>8</requiredJavaVersion> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <headerLocation>config/checkstyle-header.txt</headerLocation> <!-- these are generated --> <excludes>**/HelpMojo.java,**/SpdxLicenseListData.java</excludes> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java18</artifactId> <version>1.0</version> </signature> </configuration> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.eclipse.sisu</groupId> <artifactId>sisu-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <dependencies> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${version.httpcomponents.httpclient}</version> </dependency> </dependencies> <executions> <execution> <!-- Not bound to any phase. Invoke manually using --> <!-- mvn groovy:execute@GenerateSpdxLicenseList --> <!-- to re-generate SpdxLicenseListData --> <id>GenerateSpdxLicenseList</id> <goals> <goal>execute</goal> </goals> <configuration> <source>${project.basedir}/src/build/scripts/GenerateSpdxLicenseList.groovy</source> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>run-its</id> <build> <defaultGoal>verify</defaultGoal> <plugins> <!-- To test reading third party data from an artifact, we need an artifact. In the aggregate case, we can't depend on it in the reactor, since there's no way to get any other reactor execution to create it in the forked execution of aggregate-add-third-party, not unless we want involved in a custom lifecycle. So this barnicle exists so that the tests can use it. It's a pity it will end up on Central. --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>attach-artifacts</id> <goals> <goal>attach-artifact</goal> </goals> <phase>package</phase> <configuration> <artifacts> <artifact> <file>src/license-test/test.license.properties</file> <type>license.properties</type> <classifier>test-third-party</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-invoker-plugin</artifactId> <configuration> <debug>true</debug> <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> <settingsFile>src/it/settings.xml</settingsFile> <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> <environmentVariables> <MAVEN_OPTS>-Duser.country=US -Duser.language=en</MAVEN_OPTS> </environmentVariables> <scriptVariables> <projectVersion>${project.version}</projectVersion> </scriptVariables> </configuration> <dependencies> <!-- Microsoft Excel XLSX export --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.3.0</version> </dependency> <!-- LibreOffice Calc ODT export --> <dependency> <groupId>org.odftoolkit</groupId> <artifactId>odfdom-java</artifactId> <version>0.9.0</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.18.0</version> </dependency> <dependency> <groupId>org.wiremock</groupId> <artifactId>wiremock-standalone</artifactId> <version>3.9.2</version> </dependency> </dependencies> <executions> <execution> <id>all-integration-test</id> <goals> <goal>install</goal> <goal>integration-test</goal> <goal>verify</goal> </goals> <configuration> <skipInvocation /> <extraArtifacts> <extraArtifact>${project.groupId}:${project.artifactId}:${project.version}:license.properties:test-third-party</extraArtifact> <!-- needed by download-licenses-proxy test --> <extraArtifact>commons-logging:commons-logging:1.0</extraArtifact> </extraArtifacts> <pomExcludes> <!-- failed test on GH use remote resources --> <pomExclude>download-licenses-basic/pom.xml</pomExclude> <pomExclude>download-licenses-force/pom.xml</pomExclude> </pomExcludes> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>mojo-release</id> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <executions> <execution> <goals> <goal>add-third-party</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>reporting</id> <activation> <property> <name>skipReports</name> <value>!true</value> </property> </activation> <reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <reportSets> <reportSet> <reports> <report>third-party-report</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> </profile> </profiles> </project>