Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] POM-less Target Platforms

by the way if you like to debug the output at least under recent linux the following will work:

tail --retry --follow <path-to-polyglotfile>

now start your build and you will see the generated pom.xml

Am 15.01.20 um 16:33 schrieb Gunnar Wagenknecht:
Greetings,

What is the best way to debug issues in a pom-less tyco build?

My build is currently failing with:
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact parent.groupId:targetArtifactId:target:1.0.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:264)


I can see that Tycho generates a .polyglot.targetArtifactId.target file. Thus, it is processing the target platform definition. I have configured the target platform in the parent.


The thing that is different than the example (https://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/tree/tycho-extras/tycho-extras-its/src/test/resources/testpomless-structured/pom.xml) is my folder structure.

pom.xml
/releng/target-platforms/xyz
/bundles
/features
...

Is that supported?

-Gunnar



Back to the top