【发布时间】:2017-06-23 06:04:57
【问题描述】:
我有一个非常基本的项目设置,没有子模块或任何东西。只是一个没有花哨的 pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.acme.product</groupId>
<artifactId>org.acme.product</artifactId>
<version>0.0.9</version>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>0.26.0</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>0.26.0</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>org.acme.product</groupId>
<artifactId>org.acme.product</artifactId>
<version>${project.version}</version>
<classifier>platform</classifier>
</artifact>
</target>
<ignoreTychoRepositories>true</ignoreTychoRepositories>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</project>
当然有一个名为 platform.target 的目标平台,其特性为 org.eclipse.equinox.executable.feature.group。最后有一个(空的)具有相同 ID 和版本的产品。
现在我想用 Tycho 来更新这个版本。我知道只有两个文件。还是。
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=1.0.0
pom.xml 会更新,但产品不会。同样的事情适用于插件和功能,我不明白为什么它也不适用于产品。
有人可以帮忙更改产品的版本吗?
【问题讨论】:
-
我误读了您的问题,因此我删除了考虑多个模块的答案。
标签: tycho