Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Target Platform Definition: Could not resolve target platform specification artifact

Hi,

I think I got it working by cleaning everything and having a fresh start on travis CI. Tycho is now picking up the target definition file properly, so this issue can be considered as being closed.

Thanks for your insights and the time you took to look into this matter.

Cheers,

Robert

 

From: Hilbrich, Robert
Sent: Thursday, Ap
ril 05, 2018 11:01 AM
To: 'Tycho user list'
Subject: RE: [tycho-user] Target Platform Definition: Could not resolve target platform specification artifact

 

Hi,

I changed the parent pom [1] according to your mail:

 

                  <plugin>

                        <groupId>org.eclipse.tycho</groupId>

                        <artifactId>target-platform-configuration</artifactId>

                        <version>${tycho.version}</version>

                        <configuration>

                             <target>

                                   <artifact>

                                         <groupId>assist</groupId>

                                         <artifactId>ch.hilbri.assist.releng.targetplatform</artifactId>

                                         <version>2.4.0-SNAPSHOT</version>

                                   </artifact>

                             </target>

 

 

But the error remains:

 

[INFO] Scanning for projects...

[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact assist:ch.hilbri.assist.releng.targetplatform:target:2.4.0-SNAPSHOT -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact assist:ch.hilbri.assist.releng.targetplatform:target:2.4.0-SNAPSHOT

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)

      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      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 assist:ch.hilbri.assist.releng.targetplatform:target:2.4.0-SNAPSHOT

      at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:389)

      at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:342)

      at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:75)

      at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:87)

      at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:90)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

      ... 11 more

 

 

I think this is something elseā€¦ but I have no idea, where to look :/ Any more ideas?

 

Best,

Robert

 

 

[1]: https://github.com/RobertHilbrich/assist-public/blob/master/ch.hilbri.assist.releng/pom.xml

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Mickael Istria
Sent: Thursday, April 05, 2018 10:06 AM
To: Tycho user list
Subject: Re: [tycho-user] Target Platform Definition: Could not resolve target platform specification artifact

 

Hi,

The error message is relatively explicit. It says it cannot find version 1.0.1-SNAPSHOT of your .target artifact, and indeed, the artifact is actually in version 2.4.0-SNAPSHOT. You should avoid using ${project.version} to reference your eclipse-target-definition module if the bundles that use it have different versions. As a reminder, this ${project.version} is resolved for each module, so it basically will resolve to the version of the bundle being build, not to the version of the pom that declares the plugin configuration.

HTH


Back to the top