任何人都可以指导我如何将生成的OSGi
捆绑包复制到磁盘上的其他位置?使用maven将OSGi捆绑包导出到特定文件夹
我正在使用maven来构建OSGi
包。
完整的解决方案:更新2014年1月9日: 我得到了一个更好的办法,并与下面的插件更新pom.xml
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-installed</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>some-other-place</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
这是能够复制一次捆绑一代人做了一个我也可以给目的地文件夹。