0
我有一个多模块构建与相当多的依赖关系。每个子项目都有自己的依赖关系报告,并且有一个项目依赖于(所有其他项目)。现在有很多依赖项缺少授权信息。我想将所有这些缺少的许可证包含在依赖关系报告中。但我似乎无法得到这个工作。有没有人有建议?license-maven-plugin:在依赖关系报告中包含缺少的许可证
什么我目前正在为:
- 在父项目中,我加入定义的各种第三方许可,如“最终用户许可协议”,“potix_eula”,“bsd_pgsql”,......在SRC /许可证这些名称
- 在这些目录中我有许可证的header.txt和LICENSE.TXT文件子目录 这SRC /许可证目录
- 我有条目的licenses.properties如“potix_eula = potix_eula”
- 在这个src/license目录中我也有一个licenses.xml机智像
<dependency> <groupId>org.postgresql</groupId> <artifactId>jdbc4</artifactId> <licenses><license><name>bsd_pgsql</name></license></licenses> </dependency>
- 在父项目的POM^h项我配置许可证Maven的插件:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>1.5</version> <configuration> <useMissingFile>true</useMissingFile> <licensesConfigFile>C:/eclipse-workspace-kepler/TheParentProject/src/license/licenses.xml</licensesConfigFile> <licenseName>zk_potix_eula</licenseName> <licenseName>bsd_pgsql</licenseName> <licenseResolver>file://${project.basedir}/src/license</licenseResolver> <licenseMerges>...</licenseMerges> </configuration> <executions> <execution> <id>first</id> <goals> <goal>update-file-header</goal> </goals> <phase>process-sources</phase> </execution> <execution> <id>download-licenses</id> <phase>process-resources</phase> <goals> <goal>download-licenses</goal> </goals> </execution> <execution> <id>add-third-party</id> <phase>process-resources</phase> <goals> <goal>aggregate-add-third-party</goal> </goals> </execution> </executions> </plugin>
- 我已经产生THIRD-PARTY.properties在所有项目中,并定义像这样的许可证:commons.apache.org - commons-configuration - 1.7 = apache_v2
- 我也曾尝试将src/license目录从父级复制到所有src模块的目录。它仍然不起作用。