Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Automatically keeping version numbers in sync

Hi,

I'm having similiar 'issues'. As I am a lazy developer I started to write
a small tool syncing my MANIFEST.MF and pom.xml files. This is very
simple cmdline java tool.

https://github.com/muuki88/tycho-version-sync

It's not production-ready a well tested. I'm glad to hear suggestions
(even "this is bulls***, do it like this....).

cheers,
Muki

Am 21.06.2012 13:56, schrieb Jesper Eskilson:

Is it possible to run the tycho-versions-plugin:update-pom goal automatically as part of the build so that the poms are always updated with the version from the manifest? I imagined that this would do the trick in the top-level pom:

            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-versions-plugin</artifactId>
                <version>${tycho-version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>update-pom</goal>
                        </goals>
                        <phase>validate</phase>
                    </execution>
                </executions>
            </plugin>

But it does not work. My guess is that the goal modifies the pom.xml files, but the modified pom is never reloaded.

Is there a way to do this?

--

Jesper Eskilson Development Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Phone: +46 18 16 78 00
E-mail: jesper.eskilson@xxxxxxx Website: www.iar.com
Twitter: www.twitter.com/iarsystems



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top