takari / m2e-discovery-catalog

8 stars 22 forks source link

still can not build the catalog locally #41

Closed hgschmie closed 9 years ago

hgschmie commented 9 years ago

I get

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.eclipse.m2e.discovery-directory ................ SUCCESS [  0.155 s]
[INFO] org.eclipse.m2e.discovery.oss ...................... FAILURE [  0.525 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.094 s
[INFO] Finished at: 2014-09-12T12:15:34-07:00
[INFO] Final Memory: 15M/587M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.takari.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.maven-plugin:0.1.0:generate (catalog) on project org.eclipse.m2e.discovery.oss: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime: Missing:
[ERROR] ----------
[ERROR] 1) org.sonatype.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.p2.facade:jar:0.0.1-SNAPSHOT
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.sonatype.m2e.discovery.publisher -DartifactId=org.sonatype.m2e.discovery.publisher.p2.facade -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.sonatype.m2e.discovery.publisher -DartifactId=org.sonatype.m2e.discovery.publisher.p2.facade -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact:
[ERROR] org.sonatype.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.p2.facade:jar:0.0.1-SNAPSHOT
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR] c-central (http://nexus-dev/content/groups/public, releases=true, snapshots=false),
[ERROR] c-snapshots (http://nexus-dev/content/groups/public-snapshots, releases=false, snapshots=true),
[ERROR] central (http://nexus-dev/content/groups/public, releases=true, snapshots=false),
[ERROR] central-snapshots (http://nexus-dev/content/groups/public-snapshots, releases=false, snapshots=true),
[ERROR] tesla-snapshots (http://repository.takari.io:8081/nexus/content/repositories/snapshots/, releases=true, snapshots=true)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.eclipse.m2e.discovery.oss

I can fix this locally by adding

diff --git a/pom.xml b/pom.xml
index a31b4ec..b430524 100644
--- a/pom.xml
+++ b/pom.xml
@@ -85,5 +85,21 @@
         <enabled>true</enabled>
       </snapshots>
     </pluginRepository>
+    <pluginRepository>
+      <id>sonatype-snapshots</id>
+      <url>https://repository.sonatype.org/content/repositories/snapshots/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </pluginRepository>
   </pluginRepositories>
-</project>
\ No newline at end of file
+  <repositories>
+    <repository>
+      <id>sonatype-snapshots</id>
+      <url>https://repository.sonatype.org/content/repositories/snapshots/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+</project>

to the main pom but that is clearly not the right fix (because there is an io.takari...:org.sonatype.m2e.discovery.publisher.p2.facade available but for whatever reason it is not used).

ifedorenko commented 9 years ago

Can you try to run the build with no or empty settings.xml? I just want to make sure your nexus does not interfere with plugin resolution.

hgschmie commented 9 years ago
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.eclipse.m2e.discovery-directory ................ SUCCESS [  0.159 s]
[INFO] org.eclipse.m2e.discovery.oss ...................... FAILURE [ 20.659 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.358 s
[INFO] Finished at: 2014-09-12T15:15:19-07:00
[INFO] Final Memory: 13M/465M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.takari.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.maven-plugin:0.1.0:generate (catalog) on project org.eclipse.m2e.discovery.oss: org.apache.maven.MavenExecutionException: Could not resolve tycho-p2-runtime: Missing:
[ERROR] ----------
[ERROR] 1) org.sonatype.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.p2.facade:jar:0.0.1-SNAPSHOT
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.sonatype.m2e.discovery.publisher -DartifactId=org.sonatype.m2e.discovery.publisher.p2.facade -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.sonatype.m2e.discovery.publisher -DartifactId=org.sonatype.m2e.discovery.publisher.p2.facade -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact:
[ERROR] org.sonatype.m2e.discovery.publisher:org.sonatype.m2e.discovery.publisher.p2.facade:jar:0.0.1-SNAPSHOT
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR] tesla-snapshots (http://repository.takari.io:8081/nexus/content/repositories/snapshots/, releases=true, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.eclipse.m2e.discovery.oss

Same result

ifedorenko commented 9 years ago

I don't know, sorry. Everything builds for me locally with empty local repo and no settings.xml and in our CI system.

[INFO] Reading assembly descriptor: src/main/assembly/catalog.xml
[INFO] Reading assembly descriptor: src/main/assembly/catalog-1.1.xml
[INFO] Reading assembly descriptor: src/main/assembly/catalog-1.3.xml
[INFO] Reading assembly descriptor: src/main/assembly/catalog-1.4.xml
[INFO] Reading assembly descriptor: src/main/assembly/catalog-1.5.xml
[INFO] Reading assembly descriptor: src/main/assembly/assembly.xml
[INFO] Building jar: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-catalog.jar
[INFO] Building jar: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-catalog-1.1.jar
[INFO] Building jar: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-catalog-1.3.jar
[INFO] Building jar: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-catalog-1.4.jar
[INFO] Building jar: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-catalog-1.5.jar
[INFO] Building zip: /tmp/m2e-discovery-catalog/org.eclipse.m2e.discovery.oss/target/org.eclipse.m2e.discovery.oss-assembly.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.eclipse.m2e.discovery-directory ................ SUCCESS [  4.718 s]
[INFO] org.eclipse.m2e.discovery.oss ...................... SUCCESS [06:32 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:01 min
[INFO] Finished at: 2014-09-12T19:01:53-04:00
[INFO] Final Memory: 19M/51M
[INFO] ------------------------------------------------------------------------
igor@ubuntu-x86:/tmp/m2e-discovery-catalog$ 
ifedorenko commented 9 years ago

Never mind, I didn't notice your commit. I see the problem once I reset to commit 0410771ef471de652f496bc0f19e26edb26eba9a

hgschmie commented 9 years ago

Jason fixed this in 383199eab42431b41458e389a1b0f4a63368408f.