任何人都可以指導我如何將生成的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>
這是能夠複製一次捆綁一代人做了一個我也可以給目的地文件夾。