Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Force Tycho plugin goal to a certain phase

Hi

I'm new to Tycho (0.12.0), but have used Maven for a couple of years.

As far as I know, there's no solution for the difference of Mavens version and OSGi versions ('-SNAPSHOT' vs. '.qualifier').
That's why for the former PDE build (which was one big Maven project kicking off the PDE build), we wrote a Maven plugin that copied the Maven version into the MANIFEST.MF file.

I want to do the same now, but it doesn't work.

We use the tycho-packaging-plugin, and its 'validate-version' goal is the reason why things fail. I get 'OSGi version 1.8.0.SNAPSHOT must have .qualifier qualifier for SNAPSHOT builds ', even though I want to force 'validate-version' to check the version only in the 'initialize' phase. Does Tycho have a special lifecycle compared to Maven?

Also, as you can see, I tried setting 'strictVersions' to 'false', but it stayed 'true' (I checked with mvn -X) - how come?

Here's what's configured in the POM:

...
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-packaging-plugin</artifactId>
        <version>${tycho.version}</version>
        <executions>

          <execution>
            <id>create-build-qualifier</id>
            <phase>validate</phase>
            <goals>
              <goal>build-qualifier</goal>
            </goals>
          </execution>

          <execution>
            <id>check-osgi-version</id>
            <phase>initialize</phase>
            <goals>
              <goal>validate-version</goal>
            </goals>
            <configuration>
              <strictVersions>false</strictVersions>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>ch.ipi</groupId>
        <artifactId>rcp-manifest</artifactId>
        <executions>

          <execution>
            <id>synchronize-versions</id>
            <phase>validate</phase>
            <goals>
              <goal>synchronize</goal>
            </goals>
          </execution>

        </executions>
      </plugin>


I may be wrong, but it looks like the tycho-packaging-plugin is being started somehow in a different way than what I configured by some other lifecycle...
Any help is greatly appreciated!

Best regards,
Eric


Back to the top