Change product version

I have a very simple project setup without submodules or anything else. Just pom.xml with no fantasies:

<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>

Of course, there is a target platform called platform.target with a function org.eclipse.equinox.executable.feature.group. Finally, there is a (empty) product with the same identifier and version.

Now I want to use Tycho to update this version. I know only two files. Nonetheless.

mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=1.0.0

pom.xml will be updated, but the product will not. The same thing works with plugins and functions, I can’t understand why it will not work with products either.

Does anyone help me change the version of the product?

+4
source share

Source: https://habr.com/ru/post/1679941/


All Articles