License generation hotfix
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6e496e67 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6e496e67 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6e496e67 Branch: refs/heads/ignite-1108 Commit: 6e496e67e7b3a1c7cd6e31555a3198a833252f1d Parents: b031525 Author: Anton Vinogradov <vinogradov.an...@gmail.com> Authored: Thu Aug 6 13:44:36 2015 +0300 Committer: Anton Vinogradov <vinogradov.an...@gmail.com> Committed: Thu Aug 6 13:44:36 2015 +0300 ---------------------------------------------------------------------- parent/pom.xml | 97 ++++++++++++++++++++++++++--------------------------- 1 file changed, 48 insertions(+), 49 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6e496e67/parent/pom.xml ---------------------------------------------------------------------- diff --git a/parent/pom.xml b/parent/pom.xml index e703502..efa6494 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -140,6 +140,13 @@ <version>4.11</version> <scope>test</scope> </dependency> + + <dependency> + <groupId>org.apache.ignite</groupId> + <artifactId>ignite-apache-license-gen</artifactId> + <version>${project.version}</version> + <scope>test</scope><!-- hack to have ignite-apache-license-gen at first place at mvn reactor --> + </dependency> </dependencies> <build> @@ -567,60 +574,52 @@ </execution> </executions> </plugin> + + <plugin><!-- generates dependencies licenses --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-remote-resources-plugin</artifactId> + <executions> + <execution> + <id>ignite-dependencies</id> + <goals> + <goal>process</goal> + </goals> + <configuration> + <resourceBundles> + <resourceBundle>org.apache.ignite:ignite-apache-license-gen:${project.version}</resourceBundle> + </resourceBundles> + <excludeTransitive>true</excludeTransitive> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + <executions> + <execution> + <id>licenses-file-rename</id> + <goals> + <goal>run</goal> + </goals> + <phase>compile</phase> + <configuration> + <target> + <!-- moving licenses generated by "ignite-dependencies" --> + <move file="${basedir}/target/classes/META-INF/licenses.txt" tofile="${basedir}/target/licenses/${project.artifactId}-licenses.txt"/> + </target> + <failOnError>false</failOnError> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> <profiles> <profile> - <id>apache-release</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-remote-resources-plugin</artifactId> - <executions> - <execution> - <id>ignite-dependencies</id> - <goals> - <goal>process</goal> - </goals> - <configuration> - <resourceBundles> - <resourceBundle>org.apache.ignite:ignite-apache-license-gen:${project.version}</resourceBundle> - </resourceBundles> - <excludeTransitive>true</excludeTransitive> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.7</version> - <executions> - <execution> - <id>licenses-file-rename</id> - <goals> - <goal>run</goal> - </goals> - <phase>compile</phase> - <configuration> - <target> - <!-- moving licenses generated by "ignite-dependencies" --> - <move file="${basedir}/target/classes/META-INF/licenses.txt" tofile="${basedir}/target/licenses/${project.artifactId}-licenses.txt"/> - </target> - <failOnError>false</failOnError> - </configuration> - </execution> - </executions> - </plugin> - - </plugins> - </build> - </profile> - - <profile> <id>check-licenses</id> <build> <plugins>