Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Could not resolve target platform specification" on Linux, works on OS X and Windows

Hi,

I have a build using a target platform specification. The build is working both on Mac OS X and on Windows. But it is not working on Linux (I first tried to run Jenkins job on a remote build machine running on Linux, and then on a local Linux machine via command line).

Here is the error output (with -e -X) on Linux: (shortened)
------------------------------------------------------------------
...
[DEBUG] target-platform-configuration for MavenProject: my.proj:my.proto.sample:0.1.0-SNAPSHOT @ /home/user/temp/somegit/plugins/my.proto.sample/pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <resolver>p2</resolver>
  <target>
    <artifact>
      <groupId>my.proj</groupId>
      <artifactId>my.proto.targetplatform</artifactId>
      <version>0.1.0-SNAPSHOT</version>
    </artifact>
  </target>
  <pomDependencies>consider</pomDependencies>
</configuration>
[DEBUG] Could not find metadata my.proj:my.proto.targetplatform:0.1.0-SNAPSHOT/maven-metadata.xml in local (/home/user/.m2/repository) [ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact my.proj:my.proto.targetplatform:target:0.1.0-SNAPSHOT -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact my.proj:my.proto.targetplatform:target:0.1.0-SNAPSHOT
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    ...
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact my.proj:my.proto.targetplatform:target:0.1.0-SNAPSHOT at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:334)
...
------------------------------------------------------------------

This debug output already contains the configuration snippet (which actually is defined in some parent pom, but I figure that doesn't matter). The target definition is found in a folder with pom and target definition:
+ my.proto.targetplatform
  - my.proto.targetplatform.target
  - pom.xml
with pom.xml looks like that:
------------------------------------------------------------------
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>my.proj</groupId>
    <artifactId>my.proto.targetplatform</artifactId>
    <packaging>eclipse-target-definition</packaging>
    <parent>
        <groupId>my.proj</groupId>
        <artifactId>my.proto.releng</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
</project>
-----------------------------------------------------------------

So, it cannot resolve my.proj:my.proto.targetplatform:target:0.1.0-SNAPSHOT -- but this is what I defined, isn't it? What am I missing? In particular since the build is working fine on Mac and Windows.

Regards,
Jens


Back to the top