wordnik/swagger-core — Issue #10: Build Failure on Mac OS
Author: erictheise
Created: 2012-02-01 23:02:31+00:00
State: open

Trying to install the 31 January 2012 update in this environment

Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

I get a build failure in samples/java-jaxrs/

$ mvn jetty:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wordnik:swagger-java-sample-app:war:1.02-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.scala-lang:scala-library:jar -> duplicate declaration of version ${scala-version} @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 393, column 16
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.scala-tools:maven-scala-plugin @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 214, column 13
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 159, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 166, column 12
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${pom.url} is deprecated. Please use ${project.url} instead.
[WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead.
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 314, column 12
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 332, column 12
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ com.wordnik:swagger-project:1.02-SNAPSHOT, /Users/erictheise/.m2/repository/com/wordnik/swagger-project/1.02-SNAPSHOT/swagger-project-1.02-SNAPSHOT.pom, line 339, 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]
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.pom (14 KB at 17.7 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/16/maven-plugins-16.pom (13 KB at 29.4 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.1/maven-site-plugin-2.1.jar (83 KB at 54.6 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.pom (9 KB at 18.2 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/release/maven-release/2.1/maven-release-2.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/release/maven-release/2.1/maven-release-2.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/release/maven-release/2.1/maven-release-2.1.pom (7 KB at 17.9 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.1/maven-release-plugin-2.1.jar (40 KB at 45.5 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.pom (7 KB at 15.2 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.1.1/maven-war-plugin-2.1.1.jar (76 KB at 55.2 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.pom (12 KB at 26.4 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/surefire/surefire/2.6/surefire-2.6.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.6/surefire-2.6.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.6/surefire-2.6.pom (9 KB at 16.5 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-failsafe-plugin/2.6/maven-failsafe-plugin-2.6.jar (44 KB at 49.4 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.pom
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.pom
Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.pom (7 KB at 13.8 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-integration-project/7.6.0.RC4/jetty-integration-project-7.6.0.RC4.pom
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-integration-project/7.6.0.RC4/jetty-integration-project-7.6.0.RC4.pom
Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-integration-project/7.6.0.RC4/jetty-integration-project-7.6.0.RC4.pom (8 KB at 18.8 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-parent/13/jetty-parent-13.pom
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-parent/13/jetty-parent-13.pom
Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-parent/13/jetty-parent-13.pom (4 KB at 7.4 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/eclipse/jetty/jetty-parent/19/jetty-parent-19.pom
Downloading: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-parent/19/jetty-parent-19.pom
Downloaded: http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-parent/19/jetty-parent-19.pom (20 KB at 47.6 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.jar
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.jar
Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.6.0.RC4/jetty-maven-plugin-7.6.0.RC4.jar (67 KB at 48.1 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building swagger-java-jaxrs-app 1.02-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.pom (6 KB at 13.6 KB/sec)
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/maven-resources-plugin-2.4.3.jar (24 KB at 44.4 KB/sec)
[INFO]
[INFO] >>> jetty-maven-plugin:7.6.0.RC4:run (default-cli) @ swagger-java-sample-app >>>
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-jaxrs_2.8.1/1.02-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-jaxrs_2.8.1/1.02-SNAPSHOT/swagger-jaxrs_2.8.1-1.02-SNAPSHOT.pom
[WARNING] The POM for com.wordnik:swagger-jaxrs_2.8.1:jar:1.02-SNAPSHOT is missing, no dependency information available
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-core_2.8.1/1.02-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-core_2.8.1/1.02-SNAPSHOT/swagger-core_2.8.1-1.02-SNAPSHOT.pom
[WARNING] The POM for com.wordnik:swagger-core_2.8.1:jar:1.02-SNAPSHOT is missing, no dependency information available
Downloading: http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.6.3/slf4j-log4j12-1.6.3.pom
Downloaded: http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.6.3/slf4j-log4j12-1.6.3.pom (2 KB at 4.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.6.3/slf4j-parent-1.6.3.pom
Downloaded: http://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.6.3/slf4j-parent-1.6.3.pom (11 KB at 22.0 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.3/slf4j-api-1.6.3.pom
Downloaded: http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.3/slf4j-api-1.6.3.pom (3 KB at 5.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.pom
Downloaded: http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.pom (20 KB at 26.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/scalatest/scalatest_2.8.1/1.5.RC3/scalatest_2.8.1-1.5.RC3.pom
Downloaded: http://repo1.maven.org/maven2/org/scalatest/scalatest_2.8.1/1.5.RC3/scalatest_2.8.1-1.5.RC3.pom (5 KB at 15.7 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.pom
Downloaded: http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.pom (2 KB at 2.9 KB/sec)
Downloading: http://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1.pom
Downloaded: http://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1.pom (949 B at 1.9 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-jaxrs_2.8.1/1.02-SNAPSHOT/swagger-jaxrs_2.8.1-1.02-SNAPSHOT.jar
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-core_2.8.1/1.02-SNAPSHOT/swagger-core_2.8.1-1.02-SNAPSHOT.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.6.3/slf4j-log4j12-1.6.3.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.3/slf4j-api-1.6.3.jar
Downloading: http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar
Downloading: http://repo1.maven.org/maven2/org/scalatest/scalatest_2.8.1/1.5.RC3/scalatest_2.8.1-1.5.RC3.jar
Downloading: http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.jar
Downloaded: http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.6.3/slf4j-log4j12-1.6.3.jar (10 KB at 7.3 KB/sec)
Downloading: http://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar
Downloaded: http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.3/slf4j-api-1.6.3.jar (26 KB at 16.1 KB/sec)
Downloaded: http://repo1.maven.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar (232 KB at 56.2 KB/sec)
Downloaded: http://repo1.maven.org/maven2/log4j/log4j/1.2.16/log4j-1.2.16.jar (471 KB at 79.5 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/scalatest/scalatest_2.8.1/1.5.RC3/scalatest_2.8.1-1.5.RC3.jar (2589 KB at 70.4 KB/sec)
Downloaded: http://repo1.maven.org/maven2/org/scala-lang/scala-library/2.8.1/scala-library-2.8.1.jar (6344 KB at 69.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:55.488s
[INFO] Finished at: Wed Feb 01 14:49:34 PST 2012
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project swagger-java-sample-app: Could not resolve dependencies for project com.wordnik:swagger-java-sample-app:war:1.02-SNAPSHOT: The following artifacts could not be resolved: com.wordnik:swagger-jaxrs_2.8.1:jar:1.02-SNAPSHOT, com.wordnik:swagger-core_2.8.1:jar:1.02-SNAPSHOT: Could not find artifact com.wordnik:swagger-jaxrs_2.8.1:jar:1.02-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) -> [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/DependencyResolutionException