Closed richiesgr closed 13 years ago
Hi there,
on the first glance I would suspect your artifactory configuration. The artifacts that are reported as not resolvable are present in the central repo. I.e. http://repo2.maven.org/maven2/org/apache/maven/maven-model/3.0/
Best regards Andreas
Are you compiling for maven 3? I will take a look at home, unfortunately I only have time to do this tomorrow evening.
regards,
Oscar
Just tried a clean build against maven 3.0.1.Works for me ....
Andreas
Hello thanks for support I succeed to install the scala-mojo-support
However when I try to use it in my project It's failed like this :
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wixpress.ci:wix-scala-maven-plugin:maven-plugin:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ line 76, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Wix maven plugin 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-scala-plugin:2.15.0:add-source (default) @ wix-scala-maven-plugin ---
[INFO] Add Source directory: /home/richiesgr/dev/wix-project/wix-scala-maven-plugin/src/main/scala
[INFO] Add Test Source directory: /home/richiesgr/dev/wix-project/wix-scala-maven-plugin/src/test/scala
[INFO]
[INFO] --- maven-plugin-plugin:2.6:descriptor (default-descriptor) @ wix-scala-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: scala
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.166s
[INFO] Finished at: Thu Dec 02 16:23:14 IST 2010
[INFO] Final Memory: 10M/215M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.6:descriptor (default-descriptor) on project wix-scala-maven-plugin: The API of the mojo scanner is not compatible with this plugin version. Please check the plugin dependencies configured in the POM and ensure the versions match. scala.collection.JavaConversions$.asScalaBuffer(Ljava/util/List;)Lscala/collection/mutable/Buffer; -> [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
The test project included in the Git failed to install too may be you've idea ?? My computer use maven 2 and now I add the version 3 but the local repository and artifactory are working with maven 2 Could it be the problem ?
Thanks
Am I understanding correctly that you are trying to build with Maven 2.x ? - That won't work as the underlying API changed.
Best regards Andreas
Hi
No it take me time to understand this but now I've switched to maven 3.0.1 the problem is this :
Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:2.6:descriptor (default-descriptor) on project wix-scala-maven-plugin: The API of the mojo scanner is not compatible with this plugin version. Please check the plugin dependencies configured in the POM and ensure the versions match. scala.collection.JavaConversions$.asScalaBuffer(Ljava/util/List;)Lscala/collection/mutable/Buffer; -> [Help 1]
you probably need a newer version of that plugin (maven plugin:plugin), my guess you need a 3.x of that plugin.
I try to use it but nothing even compile. I get always missing artifact like this:
12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-model:jar:3.0:compile 12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-artifact:jar:3.0:compile 12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-aether-provider:jar:3.0:runtime 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile 12/2/10 11:05:06 AM IST: Missing artifact org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice:spice-inject-plexus:jar:1.3.4.1:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice:spice-inject-bean:jar:1.3.4:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice.inject:guice-patches:jar:noaop:2.1.6:compile 12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-model:jar:3.0:compile 12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-artifact:jar:3.0:compile 12/2/10 11:05:06 AM IST: Missing artifact org.apache.maven:maven-aether-provider:jar:3.0:runtime 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile 12/2/10 11:05:06 AM IST: Missing artifact org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice:spice-inject-plexus:jar:1.3.4.1:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice:spice-inject-bean:jar:1.3.4:compile 12/2/10 11:05:06 AM IST: Missing artifact org.sonatype.spice.inject:guice-patches:jar:noaop:2.1.6:compile 12/2/10 11:05:09 AM IST: Generating sources /scala-mojo-support/pom.xml 12/2/10 11:05:09 AM IST: Adding source folder /scala-mojo-support/src/main/java 12/2/10 11:05:09 AM IST: Adding resource folder /scala-mojo-support/src/main/resources 12/2/10 11:05:09 AM IST: Adding source folder /scala-mojo-support/src/test/java 12/2/10 11:05:12 AM IST: Refreshing [/scala-mojo-support/pom.xml] 12/2/10 11:05:12 AM IST: Project import completed 207 sec 12/2/10 11:05:12 AM IST: [WARN] The POM for jline:jline:jar:0.9.94 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details 12/2/10 11:05:12 AM IST: Missing artifact org.apache.maven:maven-model:jar:3.0:compile 12/2/10 11:05:12 AM IST: Missing artifact org.apache.maven:maven-artifact:jar:3.0:compile 12/2/10 11:05:12 AM IST: Missing artifact org.apache.maven:maven-aether-provider:jar:3.0:runtime 12/2/10 11:05:12 AM IST: Missing artifact org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile 12/2/10 11:05:12 AM IST: Missing artifact org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile 12/2/10 11:05:12 AM IST: Missing artifact org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile 12/2/10 11:05:12 AM IST: Missing artifact org.sonatype.spice:spice-inject-plexus:jar:1.3.4.1:compile 12/2/10 11:05:12 AM IST: Missing artifact org.sonatype.spice:spice-inject-bean:jar:1.3.4:compile 12/2/10 11:05:12 AM IST: Missing artifact org.sonatype.spice.inject:guice-patches:jar:noaop:2.1.6:compile 12/2/10 11:05:14 AM IST: Missing artifact org.apache.maven:maven-model:jar:3.0:compile 12/2/10 11:05:14 AM IST: Missing artifact org.apache.maven:maven-artifact:jar:3.0:compile 12/2/10 11:05:14 AM IST: Missing artifact org.apache.maven:maven-aether-provider:jar:3.0:runtime 12/2/10 11:05:14 AM IST: Missing artifact org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile 12/2/10 11:05:14 AM IST: Missing artifact org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile 12/2/10 11:05:15 AM IST: Missing artifact org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile 12/2/10 11:05:15 AM IST: Missing artifact org.sonatype.spice:spice-inject-plexus:jar:1.3.4.1:compile 12/2/10 11:05:15 AM IST: Missing artifact org.sonatype.spice:spice-inject-bean:jar:1.3.4:compile 12/2/10 11:05:15 AM IST: Missing artifact org.sonatype.spice.inject:guice-patches:jar:noaop:2.1.6:compile 12/2/10 11:05:17 AM IST: Maven Builder: FULL_BUILD 12/2/10 11:05:18 AM IST: [WARN] 12/2/10 11:05:18 AM IST: [WARN] Some problems were encountered while building the effective model for org.scala-tools:scala-mojo-support:jar:0.3-SNAPSHOT 12/2/10 11:05:18 AM IST: [WARN] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.maven:maven-plugin-api:jar -> duplicate declaration of version ${maven.version} @ line 31, column 17 12/2/10 11:05:18 AM IST: [WARN] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.scala-tools:scala-tools-parent:1.4, line 73, column 15 12/2/10 11:05:18 AM IST: [WARN] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.scala-tools:scala-tools-parent:1.4, line 80, column 15 12/2/10 11:05:18 AM IST: [WARN] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ org.scala-tools:scala-tools-parent:1.4, line 89, column 15 12/2/10 11:05:18 AM IST: [WARN] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. 12/2/10 11:05:18 AM IST: [WARN] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. 12/2/10 11:05:18 AM IST: [WARN] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. 12/2/10 11:05:18 AM IST: [WARN] 'reporting.plugins.plugin.version' for org.codehaus.mojo:taglist-maven-plugin is missing. 12/2/10 11:05:18 AM IST: [WARN] 12/2/10 11:05:18 AM IST: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 12/2/10 11:05:18 AM IST: [WARN] 12/2/10 11:05:18 AM IST: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 12/2/10 11:05:18 AM IST: [WARN] 12/2/10 11:05:20 AM IST: [WARN] The POM for jline:jline:jar:0.9.94 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details 12/2/10 11:05:20 AM IST: Build errors for scala-mojo-support; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project scala-mojo-support: Could not resolve dependencies for project org.scala-tools:scala-mojo-support:jar:0.3-SNAPSHOT: The following artifacts could not be resolved: org.apache.maven:maven-model:jar:3.0, org.apache.maven:maven-artifact:jar:3.0, org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2, org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7, org.codehaus.plexus:plexus-component-annotations:jar:1.5.5, org.sonatype.spice:spice-inject-plexus:jar:1.3.4.1, org.sonatype.spice:spice-inject-bean:jar:1.3.4, org.sonatype.spice.inject:guice-patches:jar:noaop:2.1.6: Failure to find org.apache.maven:maven-model:jar:3.0 in http://192.168.30.163:5051/artifactory/libs-releases was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced 12/2/10 11:05:20 AM IST: Maven Builder: AUTO_BUILD 12/2/10 11:10:15 AM IST: Maven Builder: AUTO_BUILD