Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] Issues setting up Egit project

Hello,

 

I would like to make contribution to the Egit Github project, I’m trying to get the source code running on my local machine but couldn’t build the project.

 

I’m following https://wiki.eclipse.org/EGit/Contributor_Guide#Automated_Developer_Setup , so far I followed all the steps and the source coded has been properly setup. My default target was set to egit-4.6 automatically during the setup.

 

Now, whenever I maven build a project (e.g. the tests project or the docs), I get the following error - Could not resolve target platform specification artifact org.eclipse.egit:org.eclipse.egit.target:target:egit-4.6:5.1.0-SNAPSHOT

 

I’ve tried the setup on two different machines and ended up at the same error message. I’ve attached a complete log with this email.

 

Please let me know if you have any suggestions on how to proceed with this.


Thanks,
Prashant

 

ÿþApache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)

Maven home: C:\apache-maven-3.5.0\bin\..

Java version: 1.8.0_151, vendor: Oracle Corporation

Java home: C:\Program Files\Java\jdk1.8.0_151\jre

Default locale: en_US, platform encoding: Cp1252

OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

[DEBUG] Created new class realm maven.api

[DEBUG] Importing foreign packages into class realm maven.api

[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core

[DEBUG]   Imported: javax.enterprise.util.* < plexus.core

[DEBUG]   Imported: javax.inject.* < plexus.core

[DEBUG]   Imported: org.apache.maven.* < plexus.core

[DEBUG]   Imported: org.apache.maven.artifact < plexus.core

[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core

[DEBUG]   Imported: org.apache.maven.cli < plexus.core

[DEBUG]   Imported: org.apache.maven.configuration < plexus.core

[DEBUG]   Imported: org.apache.maven.exception < plexus.core

[DEBUG]   Imported: org.apache.maven.execution < plexus.core

[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core

[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core

[DEBUG]   Imported: org.apache.maven.model < plexus.core

[DEBUG]   Imported: org.apache.maven.monitor < plexus.core

[DEBUG]   Imported: org.apache.maven.plugin < plexus.core

[DEBUG]   Imported: org.apache.maven.profiles < plexus.core

[DEBUG]   Imported: org.apache.maven.project < plexus.core

[DEBUG]   Imported: org.apache.maven.reporting < plexus.core

[DEBUG]   Imported: org.apache.maven.repository < plexus.core

[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core

[DEBUG]   Imported: org.apache.maven.settings < plexus.core

[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core

[DEBUG]   Imported: org.apache.maven.usability < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core

[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core

[DEBUG]   Imported: org.codehaus.classworlds < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core

[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core

[DEBUG]   Imported: org.eclipse.aether.* < plexus.core

[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core

[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core

[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core

[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core

[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core

[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core

[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core

[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core

[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core

[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core

[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core

[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core

[DEBUG]   Imported: org.eclipse.aether.version < plexus.core

[DEBUG]   Imported: org.fusesource.jansi.* < plexus.core

[DEBUG]   Imported: org.slf4j.* < plexus.core

[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core

[DEBUG]   Imported: org.slf4j.spi.* < plexus.core

[DEBUG] Populating class realm maven.api

[INFO] Error stacktraces are turned on.

[DEBUG] Message scheme: color

[DEBUG] Message styles: debug info warning error success failure strong mojo project

[DEBUG] Reading global settings from C:\apache-maven-3.5.0\bin\..\conf\settings.xml

[DEBUG] Reading user settings from C:\Users\Hawk\.m2\settings.xml

[DEBUG] Reading global toolchains from C:\apache-maven-3.5.0\bin\..\conf\toolchains.xml

[DEBUG] Reading user toolchains from C:\Users\Hawk\.m2\toolchains.xml

[DEBUG] Using local repository at C:\Users\Hawk\.m2\repository

[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for C:\Users\Hawk\.m2\repository

[INFO] Scanning for projects...

[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1, ConflictMarker.markTime=1, ConflictMarker.nodeCount=97, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=45, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=7, ConflictResolver.conflictItemCount=96, DefaultDependencyCollector.collectTime=340, DefaultDependencyCollector.transformTime=12}

[DEBUG] org.eclipse.tycho:tycho-maven-plugin:jar:1.2.0:

[DEBUG]    org.eclipse.tycho:tycho-core:jar:1.2.0:compile

[DEBUG]       org.apache.maven:maven-core:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-model:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-settings:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-settings-builder:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-repository-metadata:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-artifact:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-model-builder:jar:3.0:compile

[DEBUG]          org.apache.maven:maven-aether-provider:jar:3.0:runtime

[DEBUG]          org.sonatype.aether:aether-impl:jar:1.7:compile

[DEBUG]             org.sonatype.aether:aether-spi:jar:1.7:compile

[DEBUG]          org.sonatype.aether:aether-api:jar:1.7:compile

[DEBUG]          org.sonatype.aether:aether-util:jar:1.7:compile

[DEBUG]          org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile

[DEBUG]             org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile

[DEBUG]                org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile

[DEBUG]          org.codehaus.plexus:plexus-interpolation:jar:1.14:compile

[DEBUG]          org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile

[DEBUG]          org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile

[DEBUG]             org.sonatype.plexus:plexus-cipher:jar:1.7:compile

[DEBUG]       org.apache.maven:maven-plugin-api:jar:3.0:compile

[DEBUG]       org.codehaus.plexus:plexus-utils:jar:3.0.24:compile

[DEBUG]       org.codehaus.plexus:plexus-archiver:jar:3.4:compile

[DEBUG]          org.codehaus.plexus:plexus-io:jar:2.7.1:compile

[DEBUG]          commons-io:commons-io:jar:2.5:compile

[DEBUG]          org.apache.commons:commons-compress:jar:1.15:compile

[DEBUG]             org.objenesis:objenesis:jar:2.6:compile

[DEBUG]          org.iq80.snappy:snappy:jar:0.4:compile

[DEBUG]          org.tukaani:xz:jar:1.5:runtime

[DEBUG]       org.eclipse.tycho:org.eclipse.osgi.compatibility.state:jar:1.1.100.v20180131-1413:compile

[DEBUG]       org.eclipse.tycho:sisu-equinox-embedder:jar:1.2.0:compile

[DEBUG]          org.eclipse.tycho:org.eclipse.osgi:jar:3.13.0.v20180226-1711:compile

[DEBUG]          org.eclipse.tycho:sisu-equinox-api:jar:1.2.0:compile

[DEBUG]       org.eclipse.tycho:tycho-metadata-model:jar:1.2.0:compile

[DEBUG]          de.pdark:decentxml:jar:1.3:compile

[DEBUG]       org.eclipse.tycho:tycho-embedder-api:jar:1.2.0:compile

[DEBUG]          org.eclipse.tycho:org.eclipse.tycho.embedder.shared:jar:1.2.0:compile

[DEBUG]       org.eclipse.tycho:org.eclipse.tycho.core.shared:jar:1.2.0:compile

[DEBUG]       org.apache.maven:maven-compat:jar:3.0:compile

[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-6:compile

[DEBUG]    org.eclipse.tycho:tycho-p2-facade:jar:1.2.0:compile

[DEBUG]       org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile

[DEBUG]       org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared:jar:1.2.0:compile

[DEBUG]       org.eclipse.tycho:org.eclipse.tycho.p2.tools.shared:jar:1.2.0:compile

[DEBUG] Created new class realm extension>org.eclipse.tycho:tycho-maven-plugin:1.2.0

[DEBUG] Importing foreign packages into class realm extension>org.eclipse.tycho:tycho-maven-plugin:1.2.0

[DEBUG]   Imported:  < maven.api

[DEBUG] Populating class realm extension>org.eclipse.tycho:tycho-maven-plugin:1.2.0

[DEBUG]   Included: org.eclipse.tycho:tycho-maven-plugin:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:tycho-core:jar:1.2.0

[DEBUG]   Included: org.apache.maven:maven-aether-provider:jar:3.0

[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.7

[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2

[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7

[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.14

[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3

[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.7

[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.24

[DEBUG]   Included: org.codehaus.plexus:plexus-archiver:jar:3.4

[DEBUG]   Included: org.codehaus.plexus:plexus-io:jar:2.7.1

[DEBUG]   Included: commons-io:commons-io:jar:2.5

[DEBUG]   Included: org.apache.commons:commons-compress:jar:1.15

[DEBUG]   Included: org.objenesis:objenesis:jar:2.6

[DEBUG]   Included: org.iq80.snappy:snappy:jar:0.4

[DEBUG]   Included: org.tukaani:xz:jar:1.5

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.osgi.compatibility.state:jar:1.1.100.v20180131-1413

[DEBUG]   Included: org.eclipse.tycho:sisu-equinox-embedder:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.osgi:jar:3.13.0.v20180226-1711

[DEBUG]   Included: org.eclipse.tycho:sisu-equinox-api:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:tycho-metadata-model:jar:1.2.0

[DEBUG]   Included: de.pdark:decentxml:jar:1.3

[DEBUG]   Included: org.eclipse.tycho:tycho-embedder-api:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.tycho.embedder.shared:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.tycho.core.shared:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:tycho-p2-facade:jar:1.2.0

[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.7.1

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared:jar:1.2.0

[DEBUG]   Included: org.eclipse.tycho:org.eclipse.tycho.p2.tools.shared:jar:1.2.0

[DEBUG] Extension realms for project org.eclipse.egit:org.eclipse.egit.core.test:eclipse-test-plugin:5.1.0-SNAPSHOT: [ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:1.2.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]]

[DEBUG] Created new class realm project>org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT

[DEBUG] Populating class realm project>org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT

[DEBUG] Looking up lifecycle mappings for packaging eclipse-test-plugin from ClassRealm[project>org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]

[DEBUG] Extension realms for project org.eclipse.egit:egit-parent:pom:5.1.0-SNAPSHOT: [ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:1.2.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]]

[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[project>org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]

[DEBUG] org.eclipse.tycho:tycho-maven-plugin:1.2.0 configured in MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml

[DEBUG] org.eclipse.tycho:tycho-surefire-plugin:1.2.0 configured in MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml

[DEBUG] org.eclipse.tycho:tycho-packaging-plugin:1.2.0 configured in MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml

[DEBUG] org.eclipse.tycho:tycho-p2-plugin:1.2.0 configured in MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml

[DEBUG] org.eclipse.tycho:tycho-compiler-plugin:1.2.0 configured in MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml

[DEBUG] target-platform-configuration for MavenProject: org.eclipse.egit:org.eclipse.egit.core.test:5.1.0-SNAPSHOT @ C:\Users\Hawk\egit-master\git\egit\org.eclipse.egit.core.test\pom.xml:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

  <dependency-resolution>

    <extraRequirements>

      <requirement>

        <type>eclipse-feature</type>

        <id>org.eclipse.jgit</id>

        <versionRange>0.0.0</versionRange>

      </requirement>

      <requirement>

        <type>eclipse-plugin</type>

        <id>org.eclipse.egit.core</id>

        <versionRange>0.0.0</versionRange>

      </requirement>

    </extraRequirements>

  </dependency-resolution>

  <target>

    <artifact>

      <groupId>org.eclipse.egit</groupId>

      <artifactId>org.eclipse.egit.target</artifactId>

      <version>5.1.0-SNAPSHOT</version>

      <classifier>egit-4.6</classifier>

    </artifact>

  </target>

  <resolver>p2</resolver>

  <pomDependencies>consider</pomDependencies>

  <environments>

    <environment>

      <os>linux</os>

      <ws>gtk</ws>

      <arch>x86</arch>

    </environment>

    <environment>

      <os>linux</os>

      <ws>gtk</ws>

      <arch>x86_64</arch>

    </environment>

    <environment>

      <os>win32</os>

      <ws>win32</ws>

      <arch>x86</arch>

    </environment>

    <environment>

      <os>win32</os>

      <ws>win32</ws>

      <arch>x86_64</arch>

    </environment>

    <environment>

      <os>macosx</os>

      <ws>cocoa</ws>

      <arch>x86_64</arch>

    </environment>

  </environments>

</configuration>

[DEBUG] Could not find metadata org.eclipse.egit:org.eclipse.egit.target:5.1.0-SNAPSHOT/maven-metadata.xml in local (C:\Users\Hawk\.m2\repository)

[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.egit:org.eclipse.egit.target:target:egit-4.6:5.1.0-SNAPSHOT -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.egit:org.eclipse.egit.target:target:egit-4.6:5.1.0-SNAPSHOT

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

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

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

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

	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 org.eclipse.egit:org.eclipse.egit.target:target:egit-4.6:5.1.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:267)

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

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

	... 11 more

[ERROR] 

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException


Back to the top