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