Discussion:
[tycho-user] internal error with target specifucation
Александр Горлов
2017-08-15 17:36:40 UTC
Permalink
Dear Tycho community

Could you please help me to resolve the following issue?

I observed the internal error in build

[INFO] Scanning for
projects...

[ERROR] Internal error: java.lang.RuntimeException: Could not resolve
target platform specification artifact
com.psl.atom:com.psl.atom.target:target:1.0.0 -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Could not resolve target platform specification
artifact com.psl.atom:com.psl.atom.ta
rget:target:1.0.0

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

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

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: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
com.psl.atom:com.psl.atom.target:target:1.0.0
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:310)

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

... 11
more

[ERROR]

if I add version tag to target module pom something like
<version>1.0.0</version>

The error message says that target definition 1.0.0-snapshot is not found

if I add version tag to target module pom something like
<version>1.0.0-snapshot</version>

The error message says that target definition 1.0.0 not found.
--
Thanks
Alexander
Александр Горлов
2017-08-15 18:36:11 UTC
Permalink
The reason of issue was one pom files of child modules contains tag
versions for given module

2017-08-15 20:36 GMT+03:00 АлексаМЎр ГПрлПв <
Post by Александр Горлов
Dear Tycho community
Could you please help me to resolve the following issue?
I observed the internal error in build
[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve
target platform specification artifact com.psl.atom:com.psl.atom.target:target:1.0.0
-> [Help 1]
java.lang.RuntimeException: Could not resolve target platform specification
artifact com.psl.atom:com.psl.atom.ta
rget:target:1.0.0
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:166)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
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: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 com.psl.atom:com.psl.atom.
target:target:1.0.0
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigura
tionReader.addTargetArtifact(DefaultTargetPlatformConfigura
tionReader.java:389)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigura
tionReader.setTarget(DefaultTargetPlatformConfigura
tionReader.java:342)
at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigura
tionReader.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)
310)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
... 11 more
[ERROR]
if I add version tag to target module pom something like
<version>1.0.0</version>
The error message says that target definition 1.0.0-snapshot is not found
if I add version tag to target module pom something like
<version>1.0.0-snapshot</version>
The error message says that target definition 1.0.0 not found.
--
Thanks
Alexander
--
АлексаМЎр
Loading...