Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] target-platform-configuration replacing artifact version when plugin version

Hi,

I have following project layout

platform
plugins
pom.xml (master)

In the master pom, I declare the target platform in pluginManagement section. I would like build a plugin with a specific version (it's a repacked jar). However tycho tries to override the target-platform-configuration and replacing the target platform artifact version with the exact plugin version.

If I sync the versions, it works. Any suggestions?

[DEBUG] org.eclipse.tycho:tycho-maven-plugin:0.19.0 configured in MavenProject: com.mentor.vsc.tpl:target-platform:2.0.5-SNAPSHOT @ C:\work\hg\vsc-dev\src\build\tpl\platform\pom.xml
[DEBUG] org.eclipse.tycho:tycho-maven-plugin:0.19.0 configured in MavenProject: com.mentor.vsc.tpl:parent:2.0.5-SNAPSHOT @ C:\work\hg\vsc-dev\src\build\tpl\pom.xml
[DEBUG] target-platform-configuration for MavenProject: com.mentor.vsc.tpl:com.mentor.vsc.antlr.internal:3.4.0-SNAPSHOT @ C:\work\hg\vsc-dev\src\build\tpl\plugins\com.mentor.vsc.antlr.internal\pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <resolver>p2</resolver>
  <ignoreTychoRepositories>true</ignoreTychoRepositories>
  <target>
    <artifact>
      <groupId>com.mentor.vsc.tpl</groupId>
      <artifactId>target-platform</artifactId>
      <version>3.4.0-SNAPSHOT</version>
      <classifier>tpl-target-platform</classifier>
    </artifact>
  </target>
  <environments>
    <environment>
      <os>win32</os>
      <ws>win32</ws>
      <arch>x86</arch>
    </environment>
    <environment>
      <os>win32</os>
      <ws>win32</ws>
      <arch>x86_64</arch>
    </environment>
    <environment>
      <os>linux</os>
      <ws>gtk</ws>
      <arch>x86</arch>
    </environment>
    <environment>
      <os>linux</os>
      <ws>gtk</ws>
      <arch>x86_64</arch>
    </environment>
  </environments>
  <filters>
    <filter>
      <type>java-package</type>
      <id>javax.persistence</id>
      <restrictTo>
        <type>eclipse-plugin</type>
        <id>javax.persistence</id>
      </restrictTo>
    </filter>
    <filter>
      <type>p2-installable-unit</type>
      <id>org.eclipse.equinox.servletbridge.extensionbundle</id>
      <removeAll/>
    </filter>
  </filters>
  <dependency-resolution>
    <optionalDependencies>ignore</optionalDependencies>
  </dependency-resolution>
</configuration>
[DEBUG] Could not find metadata com.mentor.vsc.tpl:target-platform:3.4.0-SNAPSHOT/maven-metadata.xml in local (C:\Users\bvarnai\.m2\repository)
[DEBUG] Failure to find com.mentor.vsc.tpl:target-platform:3.4.0-SNAPSHOT/maven-metadata.xml in http://ies-sle-bld-01.ies.mentorg.com:8080/artifactory/libs-snapshot was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact com.mentor.vsc.tpl:target-platform:target:tpl-target-platform:3.4.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact com.mentor.vsc.tpl:target-platform:target:tpl-target-platform:3.4.0-SNAPSHOT
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact com.mentor.vsc.tpl:target-platform:target:tpl-target-platform:3.4.0-SNAPSHOT
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:319)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:273)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:71)
at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:78)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:70)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
... 11 more

Thanks!

Regards,
Balazs

Back to the top