在我的父pom中,我获得了这个配置来部署源jars:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>但是tycho构建模块忽略了这一点,因此它们的源代码没有安装/部署在maven存储库中。这意味着我不能将它们包含在程序集中(特别是如果组装模块位于另一个git存储库中)。
可以配置一个tycho插件来构建和部署源jars吗?
发布于 2011-04-18 14:47:06
用这个:
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-source-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>请参阅https://github.com/jsievers/tycho-demo/blob/master/tychodemo.parent/pom.xml
https://stackoverflow.com/questions/5702701
复制相似问题