<artifactId>odl-license</artifactId>
<name>ODL :: odlparent :: ${project.artifactId}</name>
+ <packaging>pom</packaging>
<build>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>3.1.1</version>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.1.0</version>
- </plugin>
- </plugins>
- </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>src/main/resources/LICENSE</file>
+ <type>license</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</project>
<artifactId>checkstyle</artifactId>
<version>6.0.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odl-license</artifactId>
- <version>6.0.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>com.github.sevntu-checkstyle</groupId>
<artifactId>sevntu-checkstyle-maven-plugin</artifactId>
<execution>
<id>unpack-license</id>
<phase>generate-resources</phase>
- <goals><goal>unpack</goal></goals>
+ <goals>
+ <goal>copy</goal>
+ </goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odl-license</artifactId>
<version>6.0.0-SNAPSHOT</version>
+ <type>license</type>
+ <outputDirectory>${project.build.outputDirectory}</outputDirectory>
+ <destFileName>LICENSE</destFileName>
+ <overWrite>false</overWrite>
</artifactItem>
</artifactItems>
- <outputDirectory>${project.build.outputDirectory}</outputDirectory>
- <excludes>META-INF/**</excludes>
<silent>true</silent>
</configuration>
</execution>