I'm trying to maven install my projects.
I keep getting this error. I was wondering whether anyone can help me. How to resolve this.
As far as I understood It's trying to compile some (org.codehaus.mojo:gwt-maven-plugin) maven's plugin (jar file) and couldn't find some class in it. Correct me if I'm wrong.
[INFO]
[INFO] --- gwt-maven-plugin:2.1.0-1:compile (default) # admin-war ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.430s]
[INFO] admin ............................................. SUCCESS [2.816s]
[INFO] core .............................................. SUCCESS [0.738s]
[INFO] admin-war ......................................... FAILURE [1.444s]
[INFO] site .............................................. SKIPPED
[INFO] site-war .......................................... SKIPPED
[INFO] test .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.749s
[INFO] Finished at: Sat Mar 31 17:31:43 IST 2012
[INFO] Final Memory: 18M/260M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:compile (default) on project admin-war: Execution default of goal org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:compile failed: A required class was missing while executing org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:compile: org/apache/commons/io/IOUtils
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.codehaus.mojo:gwt-maven-plugin:2.1.0-1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/ravi/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/2.1.0-1/gwt-maven-plugin-2.1.0-1.jar
[ERROR] urls[1] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[2] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.1/maven-reporting-impl-2.1.jar
[ERROR] urls[3] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar
[ERROR] urls[4] = file:/C:/Users/ravi/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
[ERROR] urls[5] = file:/C:/Users/ravi/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
[ERROR] urls[6] = file:/C:/Users/ravi/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
[ERROR] urls[7] = file:/C:/Users/ravi/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[8] = file:/C:/Users/ravi/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[ERROR] urls[9] = file:/C:/Users/ravi/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[10] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar
[ERROR] urls[11] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.1.4/doxia-site-renderer-1.1.4.jar
[ERROR] urls[12] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1.4/doxia-logging-api-1.1.4.jar
[ERROR] urls[13] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.1.4/doxia-decoration-model-1.1.4.jar
[ERROR] urls[14] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.1.4/doxia-module-xhtml-1.1.4.jar
[ERROR] urls[15] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.1.4/doxia-module-fml-1.1.4.jar
[ERROR] urls[16] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[17] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
[ERROR] urls[18] = file:/C:/Users/ravi/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[19] = file:/C:/Users/ravi/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
[ERROR] urls[20] = file:/C:/Users/ravi/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar
[ERROR] urls[21] = file:/C:/Users/ravi/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar
[ERROR] urls[22] = file:/C:/Users/ravi/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[23] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
[ERROR] urls[24] = file:/C:/Users/ravi/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar
[ERROR] urls[25] = file:/C:/Users/ravi/.m2/repository/freemarker/freemarker/2.3.6/freemarker-2.3.6.jar
[ERROR] urls[26] = file:/C:/Users/ravi/.m2/repository/com/google/gwt/gwt-dev/2.1.0/gwt-dev-2.1.0.jar
[ERROR] urls[27] = file:/C:/Users/ravi/.m2/repository/com/google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar
[ERROR] urls[28] = file:/C:/Users/ravi/.m2/repository/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet-2.1.0.jar
[ERROR] urls[29] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
[ERROR] urls[30] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
[ERROR] urls[31] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar
[ERROR] urls[32] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
[ERROR] urls[33] = file:/C:/Users/ravi/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
[ERROR] urls[34] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.jar
[ERROR] urls[35] = file:/C:/Users/ravi/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
[ERROR] urls[36] = file:/C:/Users/ravi/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[37] = file:/C:/Users/ravi/.m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar
[ERROR] urls[38] = file:/C:/Users/ravi/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar
[ERROR] urls[39] = file:/C:/Users/ravi/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
[ERROR] urls[40] = file:/C:/Users/ravi/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
[ERROR] urls[41] = file:/C:/Users/ravi/.m2/repository/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar
[ERROR] urls[42] = file:/C:/Users/ravi/.m2/repository/xom/xom/1.0/xom-1.0.jar
[ERROR] urls[43] = file:/C:/Users/ravi/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
[ERROR] urls[44] = file:/C:/Users/ravi/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar
[ERROR] urls[45] = file:/C:/Users/ravi/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar
[ERROR] urls[46] = file:/C:/Users/ravi/.m2/repository/org/apache/bcel/bcel/5.2/bcel-5.2.jar
[ERROR] urls[47] = file:/C:/Users/ravi/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar
[ERROR] urls[48] = file:/C:/Users/ravi/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[49] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
[ERROR] urls[50] = file:/C:/Users/ravi/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.commons.io.IOUtils
[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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :admin-war
Maven cannot find class org.apache.commons.io.IOUtils. This is included in the GWT Dev package.
Consider adding this to your pom:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
The build will give you some warning about including the gwt-dev in your dependencies, but I've never had any problem with that....
Related
I am trying to follow instructions mentioned on below page. However, getting error while building the package.
https://debezium.io/blog/2016/05/31/Debezium-on-Kubernetes/
would someone please let me know how to install Debezium on kubernates
Error
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2.115:json (json) on project mysql56: Execution json of goal io.fabric8:fabric8-maven-plugin:2.2.115:json failed: A required class was missing while executing io.fabric8:fabric8-maven-plugin:2.2.115:json: javax/xml/bind/ValidationException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>io.fabric8:fabric8-maven-plugin:2.2.115
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/fki/.m2/repository/io/fabric8/fabric8-maven-plugin/2.2.115/fabric8-maven-plugin-2.2.115.jar
[ERROR] urls[1] = file:/C:/Users/fki/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[2] = file:/C:/Users/fki/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[3] = file:/C:/Users/fki/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[4] = file:/C:/Users/fki/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[5] = file:/C:/Users/fki/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/C:/Users/fki/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[7] = file:/C:/Users/fki/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/C:/Users/fki/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/C:/Users/fki/.m2/repository/io/fabric8/kubernetes-api/2.2.115/kubernetes-api-2.2.115.jar
[ERROR] urls[10] = file:/C:/Users/fki/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
[ERROR] urls[11] = file:/C:/Users/fki/.m2/repository/io/fabric8/openshift-client/1.3.82/openshift-client-1.3.82.jar
[ERROR] urls[12] = file:/C:/Users/fki/.m2/repository/io/fabric8/kubernetes-client/1.3.82/kubernetes-client-1.3.82.jar
[ERROR] urls[13] = file:/C:/Users/fki/.m2/repository/io/fabric8/kubernetes-model/1.0.45/kubernetes-model-1.0.45.jar
[ERROR] urls[14] = file:/C:/Users/fki/.m2/repository/com/squareup/okhttp/okhttp/2.7.2/okhttp-2.7.2.jar
[ERROR] urls[15] = file:/C:/Users/fki/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar
[ERROR] urls[16] = file:/C:/Users/fki/.m2/repository/com/squareup/okhttp/logging-interceptor/2.7.2/logging-interceptor-2.7.2.jar
[ERROR] urls[17] = file:/C:/Users/fki/.m2/repository/com/squareup/okhttp/okhttp-ws/2.7.2/okhttp-ws-2.7.2.jar
[ERROR] urls[18] = file:/C:/Users/fki/.m2/repository/org/slf4j/jul-to-slf4j/1.7.12/jul-to-slf4j-1.7.12.jar
[ERROR] urls[19] = file:/C:/Users/fki/.m2/repository/com/github/mifmif/generex/0.0.4/generex-0.0.4.jar
[ERROR] urls[20] = file:/C:/Users/fki/.m2/repository/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.jar
[ERROR] urls[21] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.6.4/jackson-dataformat-yaml-2.6.4.jar
[ERROR] urls[22] = file:/C:/Users/fki/.m2/repository/org/yaml/snakeyaml/1.17/snakeyaml-1.17.jar
[ERROR] urls[23] = file:/C:/Users/fki/.m2/repository/org/json/json/20160212/json-20160212.jar
[ERROR] urls[24] = file:/C:/Users/fki/.m2/repository/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar
[ERROR] urls[25] = file:/C:/Users/fki/.m2/repository/io/fabric8/fabric8-devops-connector/2.2.115/fabric8-devops-connector-2.2.115.jar
[ERROR] urls[26] = file:/C:/Users/fki/.m2/repository/io/fabric8/fabric8-devops/2.2.115/fabric8-devops-2.2.115.jar
[ERROR] urls[27] = file:/C:/Users/fki/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
[ERROR] urls[28] = file:/C:/Users/fki/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar
[ERROR] urls[29] = file:/C:/Users/fki/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[30] = file:/C:/Users/fki/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
[ERROR] urls[31] = file:/C:/Users/fki/.m2/repository/io/fabric8/letschat-api/2.2.115/letschat-api-2.2.115.jar
[ERROR] urls[32] = file:/C:/Users/fki/.m2/repository/io/fabric8/taiga-api/2.2.115/taiga-api-2.2.115.jar
[ERROR] urls[33] = file:/C:/Users/fki/.m2/repository/io/fabric8/gitrepo-api/2.2.115/gitrepo-api-2.2.115.jar
[ERROR] urls[34] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.4/jackson-core-2.6.4.jar
[ERROR] urls[35] = file:/C:/Users/fki/.m2/repository/org/slf4j/slf4j-log4j12/1.7.12/slf4j-log4j12-1.7.12.jar
[ERROR] urls[36] = file:/C:/Users/fki/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
[ERROR] urls[37] = file:/C:/Users/fki/.m2/repository/io/fabric8/gerrit-api/2.2.115/gerrit-api-2.2.115.jar
[ERROR] urls[38] = file:/C:/Users/fki/.m2/repository/io/fabric8/cxf-utils/2.2.115/cxf-utils-2.2.115.jar
[ERROR] urls[39] = file:/C:/Users/fki/.m2/repository/net/oauth/core/oauth/20100527/oauth-20100527.jar
[ERROR] urls[40] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.6.4/jackson-module-jaxb-annotations-2.6.4.jar
[ERROR] urls[41] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.4/jackson-databind-2.6.4.jar
[ERROR] urls[42] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.4/jackson-annotations-2.6.4.jar
[ERROR] urls[43] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.6.4/jackson-jaxrs-json-provider-2.6.4.jar
[ERROR] urls[44] = file:/C:/Users/fki/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.7.2/jackson-jaxrs-base-2.7.2.jar
[ERROR] urls[45] = file:/C:/Users/fki/.m2/repository/org/apache/cxf/cxf-rt-rs-client/3.1.4/cxf-rt-rs-client-3.1.4.jar
[ERROR] urls[46] = file:/C:/Users/fki/.m2/repository/org/apache/cxf/cxf-rt-transports-http/3.1.4/cxf-rt-transports-http-3.1.4.jar
[ERROR] urls[47] = file:/C:/Users/fki/.m2/repository/org/apache/cxf/cxf-core/3.1.4/cxf-core-3.1.4.jar
[ERROR] urls[48] = file:/C:/Users/fki/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar
[ERROR] urls[49] = file:/C:/Users/fki/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar
[ERROR] urls[50] = file:/C:/Users/fki/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar
[ERROR] urls[51] = file:/C:/Users/fki/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxrs/3.1.4/cxf-rt-frontend-jaxrs-3.1.4.jar
[ERROR] urls[52] = file:/C:/Users/fki/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar
[ERROR] urls[53] = file:/C:/Users/fki/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar
[ERROR] urls[54] = file:/C:/Users/fki/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar
[ERROR] urls[55] = file:/C:/Users/fki/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar
[ERROR] urls[56] = file:/C:/Users/fki/.m2/repository/javax/el/javax.el-api/2.2.5/javax.el-api-2.2.5.jar
[ERROR] urls[57] = file:/C:/Users/fki/.m2/repository/org/glassfish/web/javax.el/2.2.5/javax.el-2.2.5.jar
[ERROR] urls[58] = file:/C:/Users/fki/.m2/repository/io/fabric8/fabric8-utils/2.2.115/fabric8-utils-2.2.115.jar
[ERROR] urls[59] = file:/C:/Users/fki/.m2/repository/org/jolokia/jolokia-client-java/1.3.3/jolokia-client-java-1.3.3.jar
[ERROR] urls[60] = file:/C:/Users/fki/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
[ERROR] urls[61] = file:/C:/Users/fki/.m2/repository/org/apache/httpcomponents/httpclient-osgi/4.3.3/httpclient-osgi-4.3.3.jar
[ERROR] urls[62] = file:/C:/Users/fki/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/4.3.0.201604071810-r/org.eclipse.jgit-4.3.0.201604071810-r.jar
[ERROR] urls[63] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch/0.1.53/jsch-0.1.53.jar
[ERROR] urls[64] = file:/C:/Users/fki/.m2/repository/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar
[ERROR] urls[65] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.jsch/0.0.9/jsch.agentproxy.jsch-0.0.9.jar
[ERROR] urls[66] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.core/0.0.9/jsch.agentproxy.core-0.0.9.jar
[ERROR] urls[67] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.connector-factory/0.0.9/jsch.agentproxy.connector-factory-0.0.9.jar
[ERROR] urls[68] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.usocket-jna/0.0.9/jsch.agentproxy.usocket-jna-0.0.9.jar
[ERROR] urls[69] = file:/C:/Users/fki/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
[ERROR] urls[70] = file:/C:/Users/fki/.m2/repository/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar
[ERROR] urls[71] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.usocket-nc/0.0.9/jsch.agentproxy.usocket-nc-0.0.9.jar
[ERROR] urls[72] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.sshagent/0.0.9/jsch.agentproxy.sshagent-0.0.9.jar
[ERROR] urls[73] = file:/C:/Users/fki/.m2/repository/com/jcraft/jsch.agentproxy.pageant/0.0.9/jsch.agentproxy.pageant-0.0.9.jar
[ERROR] urls[74] = file:/C:/Users/fki/.m2/repository/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.jar
[ERROR] urls[75] = file:/C:/Users/fki/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[76] = file:/C:/Users/fki/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
[ERROR] urls[77] = file:/C:/Users/fki/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
[ERROR] urls[78] = file:/C:/Users/fki/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[79] = file:/C:/Users/fki/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.1/plexus-utils-3.0.1.jar
[ERROR] urls[80] = file:/C:/Users/fki/.m2/repository/junit/junit/4.12/junit-4.12.jar
[ERROR] urls[81] = file:/C:/Users/fki/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.xml.bind.ValidationException
[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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :mysql56
I had the same issue and resolved the problem with the following changes in the main pom.xml file:
<properties>
<fabric8.version>2.2.217</fabric8.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<docker.maven.plugin.version>0.15.1</docker.maven.plugin.version>
</properties>
Set fabric8.version to the latest 2.2.x and set the default compiler version to Java 1.8.
I've below build.sbt file
name := "tads-akka-cluster-events"
organization := "technorati"
version := "0.0.3"
scalaVersion := "2.11.12"
crossScalaVersions := Seq("2.12.9", "2.13.0")
publishMavenStyle := true
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"
credentials += Credentials("Artifactory Realm", "artifactory.svcs.opal.synacor.com", "admin", "password")
publishTo := {
val nexus = "http://artifactory.svcs.opal.synacor.com/"
if (isSnapshot.value)
Some("repository.synacor.com-snapshots" at nexus + "artifactory/synacor-local")
else
Some("repository.synacor.com-releases" at nexus + "artifactory/synacor-local")
}
When I did sbt publish, I get below error -
sbt:tads-akka-cluster-events> publish
[info] Packaging /Users/rajkumar.natarajan/Documents/Coding/misc/tads-akka-cluster-events/target/scala-2.11/tads-akka-cluster-events_2.11-0.0.3-sources.jar ...
[info] Done packaging.
[info] Wrote /Users/rajkumar.natarajan/Documents/Coding/misc/tads-akka-cluster-events/target/scala-2.11/tads-akka-cluster-events_2.11-0.0.3.pom
[info] Updating ...
[info] Done updating.
[info] Packaging /Users/rajkumar.natarajan/Documents/Coding/misc/tads-akka-cluster-events/target/scala-2.11/tads-akka-cluster-events_2.11-0.0.3.jar ...
[info] Packaging /Users/rajkumar.natarajan/Documents/Coding/misc/tads-akka-cluster-events/target/scala-2.11/tads-akka-cluster-events_2.11-0.0.3-javadoc.jar ...
[info] Done packaging.
[info] Done packaging.
[info] published tads-akka-cluster-events_2.11 to http://artifactory.svcs.opal.synacor.com/artifactory/synacor-local/technorati/tads-akka-cluster-events_2.11/0.0.3/tads-akka-cluster-events_2.11-0.0.3.pom
[error] java.io.IOException: PUT operation to URL http://artifactory.svcs.opal.synacor.com/artifactory/synacor-local/technorati/tads-akka-cluster-events_2.11/0.0.3/tads-akka-cluster-events_2.11-0.0.3.jar failed with status code 400: Bad Request
[error] at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:82)
[error] at sbt.internal.librarymanagement.ivyint.GigahorseUrlHandler.upload(GigahorseUrlHandler.scala:191)
[error] at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82)
[error] at org.apache.ivy.util.FileUtil.copy(FileUtil.java:150)
[error] at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
[error] at sbt.internal.librarymanagement.ConvertResolver$LocalIfFileRepo.put(ConvertResolver.scala:366)
[error] at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
[error] at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put(ConvertResolver.scala:118)
[error] at sbt.internal.librarymanagement.ConvertResolver$ChecksumFriendlyURLResolver.put$(ConvertResolver.scala:105)
[error] at sbt.internal.librarymanagement.ConvertResolver$$anonfun$defaultConvert$lzycompute$1$PluginCapableResolver$1.put(ConvertResolver.scala:165)
[error] at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:216)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$5(IvyActions.scala:497)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$5$adapted(IvyActions.scala:496)
[error] at scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:788)
[error] at scala.collection.Iterator.foreach(Iterator.scala:937)
[error] at scala.collection.Iterator.foreach$(Iterator.scala:937)
[error] at scala.collection.AbstractIterator.foreach(Iterator.scala:1425)
[error] at scala.collection.IterableLike.foreach(IterableLike.scala:70)
[error] at scala.collection.IterableLike.foreach$(IterableLike.scala:69)
[error] at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[error] at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:787)
[error] at sbt.internal.librarymanagement.IvyActions$.publish(IvyActions.scala:496)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$3(IvyActions.scala:144)
[error] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] at sbt.internal.librarymanagement.IvyActions$.withChecksums(IvyActions.scala:157)
[error] at sbt.internal.librarymanagement.IvyActions$.withChecksums(IvyActions.scala:151)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$1(IvyActions.scala:144)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$publish$1$adapted(IvyActions.scala:134)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:239)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:238)
[error] at sbt.internal.librarymanagement.IvyActions$.publish(IvyActions.scala:134)
[error] at sbt.Classpaths$.$anonfun$publishTask$4(Defaults.scala:2416)
[error] at sbt.Classpaths$.$anonfun$publishTask$4$adapted(Defaults.scala:2416)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:40)
[error] at sbt.std.Transform$$anon$4.work(System.scala:67)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:269)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:278)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:269)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (publish) java.io.IOException: PUT operation to URL http://artifactory.svcs.opal.synacor.com/artifactory/synacor-local/technorati/tads-akka-cluster-events_2.11/0.0.3/tads-akka-cluster-events_2.11-0.0.3.jar failed with status code 400: Bad Request
[error] Total time: 2 s, completed Sep 3, 2019 4:12:46 PM
sbt:tads-akka-cluster-events>
When I checked the repository I see pom, pom.md5 and pom.sha1.
But it is missing jar, jar.md5 and jar.sha1.
Why I'm getting this error? What I'm missing and how can I fix this issue?
I've to add the setting updateOptions := updateOptions.value.withGigahorse(false) or run sbt like sbt -Dsbt.gigahorse=false clean publish.
For more details please see this github sbt issue.
I can't seem to find why scala packages are being "thought of" by maven as a member of package org.apache.kafka.streams.scala. I usually use sbt but I have to use maven on this one. Any help would be appreciated.
/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/jcena1/IdeaProjects/datapipe-scala-merge-transform "-Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=65172:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.2.1 install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.confluent:Jointransform:jar:4.1.1
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.scala-lang:scala-library:jar -> duplicate declaration of version ${scala.version} # io.confluent:Jointransform:[unknown-version], /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/pom.xml, line 259, column 21
[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] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: x86_64
[INFO] os.detected.version: 10.13
[INFO] os.detected.version.major: 10
[INFO] os.detected.version.minor: 13
[INFO] os.detected.classifier: osx-x86_64
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Jointransform 4.1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) # Jointransform ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) # Jointransform ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.10:add-source (add-source) # Jointransform ---
[INFO] Source directory: /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala added.
[INFO] Source directory: /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/target/generated-sources added.
[INFO]
[INFO] --- avro-maven-plugin:1.8.2:schema (default) # Jointransform ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # Jointransform ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 28 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # Jointransform ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/target/classes
[INFO]
[INFO] --- scala-maven-plugin:3.2.1:compile (default) # Jointransform ---
[INFO] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala:-1: info: compiling
[INFO] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/target/generated-sources:-1: info: compiling
[INFO] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/target/generated-sources/annotations:-1: info: compiling
[INFO] Compiling 16 source files to /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/target/classes at 1536749088682
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Filtertransform.scala:10: error: object language is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.language.implicitConversions
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Filtertransform.scala:14: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.mutable
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Filtertransform.scala:75: error: Symbol 'type org.apache.kafka.streams.Consumed' is missing from the classpath.
[ERROR] This symbol is required by 'value com.lightbend.kafka.scala.streams.StreamsBuilderS.consumed'.
[ERROR] Make sure that type Consumed is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[ERROR] A full rebuild may help if 'StreamsBuilderS.class' was compiled against an incompatible version of org.apache.kafka.streams.
[ERROR] val stream: KStreamS[String, Array[Byte]] = builder.stream(inputTopic)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:12: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.JavaConverters._
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:11: error: object language is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.language.implicitConversions
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:20: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.mutable
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:21: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.mutable.ListBuffer
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:39: error: Symbol 'type org.apache.kafka.streams.Consumed' is missing from the classpath.
[ERROR] This symbol is required by 'method com.lightbend.kafka.scala.streams.ImplicitConversions.consumedFromSerde'.
[ERROR] Make sure that type Consumed is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
[ERROR] A full rebuild may help if 'ImplicitConversions.class' was compiled against an incompatible version of org.apache.kafka.streams.
[ERROR] (out:+ s)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:57: error: value asScala is not a member of java.util.List[String]
[ERROR] possible cause: maybe a semicolon is missing before `value asScala'?
[ERROR] .asScala
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:147: error: not found: value Consumed
[ERROR] implicit val c = Consumed.`with`(Serdes.String(), Serdes.ByteArray())
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:149: error: polymorphic expression cannot be instantiated to expected type;
[ERROR] found : [K, V]org.apache.kafka.streams.kstream.KTable[K,V]
[ERROR] required: org.apache.kafka.streams.scala.kstream.KTable[String,Array[Byte]]
[ERROR] val table: KTable[String, Array[Byte]] = builder.table(inputTopic)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:156: error: not found: value Serialized
[ERROR] implicit val sb = Serialized.`with`(Serdes.String(), Serdes.ByteArray())
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:157: error: not found: value Serialized
[ERROR] implicit val ss = Serialized.`with`(Serdes.String(), Serdes.String())
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:158: error: not found: value Produced
[ERROR] implicit val p = Produced.`with`(Serdes.String(),Serdes.String())
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:241: error: value asScala is not a member of java.util.List[String]
[ERROR] possible cause: maybe a semicolon is missing before `value asScala'?
[ERROR] .asScala
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:245: error: value asScala is not a member of java.util.List[String]
[ERROR] val newValue = getValFromJSONMessage(lv, aggregateColumnList.asScala.toList.head)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:232: error: diverging implicit expansion for type org.apache.kafka.streams.kstream.Serialized[KR,VR]
[ERROR] starting with method consumedFromSerde in object ImplicitConversions
[ERROR] val groupedK = table.groupBy{ (key: String, value: Array[Byte]) =>
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:252: error: not found: type Aggregator
[ERROR] val newAggregator: Aggregator[String, Array[Byte], Array[Byte]] = new Aggregator[String, Array[Byte], Array[Byte]] {
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/GroupBytransform.scala:252: error: not found: type Aggregator
[ERROR] val newAggregator: Aggregator[String, Array[Byte], Array[Byte]] = new Aggregator[String, Array[Byte], Array[Byte]] {
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:10: error: object language is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.language.implicitConversions
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:11: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.JavaConverters._
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:18: error: object collection is not a member of package org.apache.kafka.streams.scala
[ERROR] import scala.collection.mutable.ListBuffer
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:37: error: not found: type ListBuffer
[ERROR] val lst = new ListBuffer[String]
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:84: error: value asScala is not a member of java.util.List[String]
[ERROR] Note: implicit value j is not applicable here because it comes after the application point and it lacks an explicit result type
[ERROR] val leftRekeyColumnList = if(rekeyLeftNeeded) joinStep.getStringList("joinOn.leftFields").asScala.toList else List.empty
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:85: error: value asScala is not a member of java.util.List[String]
[ERROR] Note: implicit value j is not applicable here because it comes after the application point and it lacks an explicit result type
[ERROR] val rightRekeyColumnList = if(rekeyRightNeeded) joinStep.getStringList("joinOn.rightFields").asScala.toList else List.empty
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:96: error: value asScala is not a member of java.util.List[String]
[ERROR] Note: implicit value j is not applicable here because it comes after the application point and it lacks an explicit result type
[ERROR] if(!JoinUtils.validateFilterExpression(filterExpression.asScala.toList)) {
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:147: error: value asScala is not a member of java.util.List[String]
[ERROR] JoinUtils.joinValues(lv, rv, node, outputFields.asScala.toList)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:157: error: value asScala is not a member of java.util.List[String]
[ERROR] val filterPredicate = JoinUtils.buildPostJoinPredicate(filterExpression.asScala.toList, lv)
[ERROR] ^
[ERROR] /Users/jcena1/IdeaProjects/datapipe-scala-merge-transform/src/main/scala/acme/Jointransform.scala:165: error: value asScala is not a member of java.util.List[String]
[ERROR] val ba: Array[Byte] = JoinUtils.removeEntryFromJsonNode(extraFields.asScala.toList, value)
[ERROR] ^
[ERROR] 29 errors found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.937 s
[INFO] Finished at: 2018-09-12T06:44:53-04:00
[INFO] Final Memory: 35M/376M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.1:compile (default) on project Jointransform: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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
Process finished with exit code 1
I needed to prefix _root_ to all the Scala core packages like for example
import _root_.scala.collection.JavaConverters._
it might be a newbie question but i'm trying to learn more about scala in intellij. I firstly created a simple HelloWorld project that worked fine. Next i watched a tutorial to create a WordCount project, but i'm getting exception error that i can't figure out.
The error i get is:
Error:Error while importing SBT project:<br/>...<br/><pre>
[error] at
sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:107)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:101)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:57)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:42)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:34)
[error] at sbt.StandardMain$.runManaged(Main.scala:113)
[error] at sbt.xMain.run(Main.scala:76)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.ClassNotFoundException:
org.jetbrains.sbt.CreateTasks$
[error] Use 'last' for the full log.
[info] shutting down server
My build.sbt file is:
name := "Scalaprogramms"
version := "1.0"
scalaVersion:="2.11.8"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-streaming" % "2.2.0" % "provided"
My java version is 8
Last the last log file is
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=384M;
support was removed in 8.0
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from
/home/user/IdeaProjects/Scalaprogramms/project
[info] Loading settings from build.sbt ...
[info] Set current project to Scalaprogramms (in build
file:/home/user/IdeaProjects/Scalaprogramms/)
[info] sbt server started at
local:///home/user/.sbt/1.0/server/fc2d3f3386938f38b259/sock
sbt:Scalaprogramms>
[info] Defining Global / sbtStructureOptions, Global /
sbtStructureOutputFile, shellPrompt
[info] The new values will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to Scalaprogramms (in build
file:/home/user/IdeaProjects/Scalaprogramms/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks
from /home/user/.IdeaIC2017.2/config/plugins/Scala/launcher/sbt-
structure-1.1.jar
[error] java.lang.ClassNotFoundException:
org.jetbrains.sbt.CreateTasks$
[error] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[error] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[error] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[error] at java.lang.Class.forName0(Native Method)
[error] at java.lang.Class.forName(Class.java:348)
[error] at sbt.internal.inc.ModuleUtilities$.getObject(ModuleUtilities.scala:20)
[error] at sbt.BasicCommands$.$anonfun$call$5(BasicCommands.scala:203)
[error] at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
[error] at scala.collection.immutable.List.foreach(List.scala:389)
[error] at scala.collection.TraversableLike.map(TraversableLike.scala:234)
[error] at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
[error] at scala.collection.immutable.List.map(List.scala:295)
[error] at sbt.BasicCommands$.$anonfun$call$2(BasicCommands.scala:203)
[error] at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134)
[error] at sbt.Command$.$anonfun$applyEffect$2(Command.scala:130)
[error] at sbt.MainLoop$.processCommand(MainLoop.scala:153)
[error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:136)
[error] at sbt.State$$anon$1.runCmd$1(State.scala:242)
[error] at sbt.State$$anon$1.process(State.scala:248)
[error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:136)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.MainLoop$.next(MainLoop.scala:136)
[error] at sbt.MainLoop$.run(MainLoop.scala:129)
[error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:107)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:101)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:57)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:42)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:34)
[error] at sbt.StandardMain$.runManaged(Main.scala:113)
[error] at sbt.xMain.run(Main.scala:76)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.ClassNotFoundException: org.jetbrains.sbt.CreateTasks$
[error] Use 'last' for the full log.
[info] shutting down server
Also, my code is:
package scala.SparkApps
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
object WordCount {
def main(args: Array[String]): Unit = {
val inputFile = args(0)
val outputFile = args(1)
val conf = new SparkConf().setMaster("local(*)").setAppName("wordcount")
val sc = new SparkContext(Conf)
val input = sc.textFile(inputFile)
val words = input.flatMap(_.split(" "))
val counts = words.map(word => (word, 1)).reduceByKey(_+_)
counts.saveAsTextFile(outputFile)
}
}
Any ideas?
I'm trying to work through the Atlassian hello world tutorial. I'm trying to execute the atlas-create-jira-plugin-module command in step 4-3 here: https://developer.atlassian.com/docs/getting-started/set-up-the-atlassian-plugin-sdk-and-build-a-project/put-the-final-polish-on-the-project-in-eclipse, but when I do I'm hit with this huge error. Does anyone know what the problem is? Sorry in advance for the huge wall of text.
atlas-create-jira-plugin-module
Executing: /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1/bin/mvn com.atlassian.maven.plugins:maven-jira-plugin:6.1.2:create-plugin-module -gs /Applications/Atlassian/atlassian-plugin-sdk-6.1.0/apache-maven-3.2.1/conf/settings.xml
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.atlassian.tutorial:helloworld:atlassian-plugin:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 163, column 21
[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] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: file:///Applications/Atlassian/atlassian-plugin-sdk-6.1.0/repository/org/apache/velocity/velocity/maven-metadata.xml
Downloading: https://maven.atlassian.com/repository/public/org/apache/velocity/velocity/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/apache/velocity/velocity/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/velocity/velocity/maven-metadata.xml (598 B at 0.9 KB/sec)
Downloaded: https://maven.atlassian.com/repository/public/org/apache/velocity/velocity/maven-metadata.xml (2 KB at 0.7 KB/sec)
[INFO]
[INFO] --- maven-jira-plugin:6.1.2:create-plugin-module (default-cli) # helloworld ---
[WARNING] Error injecting: com.atlassian.maven.plugins.jira.JiraPluginModuleGenerationMojo
java.lang.TypeNotPresentException: Type com.atlassian.maven.plugins.jira.JiraPluginModuleGenerationMojo not present
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115)
at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
at com.google.inject.Scopes$1$1.get(Scopes.java:59)
at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:462)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.UnsupportedClassVersionError: com/atlassian/maven/plugins/jira/JiraPluginModuleGenerationMojo : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:389)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:242)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
... 41 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.006 s
[INFO] Finished at: 2015-10-26T10:47:22-05:00
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.1.2:create-plugin-module (default-cli) on project helloworld: Execution default-cli of goal com.atlassian.maven.plugins:maven-jira-plugin:6.1.2:create-plugin-module failed: Unable to load the mojo 'create-plugin-module' in the plugin 'com.atlassian.maven.plugins:maven-jira-plugin:6.1.2' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com/atlassian/maven/plugins/jira/JiraPluginModuleGenerationMojo : Unsupported major.minor version 51.0
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.atlassian.maven.plugins:maven-jira-plugin:6.1.2
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/maven/plugins/maven-jira-plugin/6.1.2/maven-jira-plugin-6.1.2.jar
[ERROR] urls[1] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/maven/archetypes/jira-plugin-archetype/6.1.2/jira-plugin-archetype-6.1.2.jar
[ERROR] urls[2] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/maven/plugins/maven-amps-plugin/6.1.2/maven-amps-plugin-6.1.2.jar
[ERROR] urls[3] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/core/atlassian-core/4.0/atlassian-core-4.0.jar
[ERROR] urls[4] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/profiling/atlassian-profiling/1.3/atlassian-profiling-1.3.jar
[ERROR] urls[5] = file:/Users/jnissenbaum/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
[ERROR] urls[6] = file:/Users/jnissenbaum/.m2/repository/p6spy/p6spy/1.3/p6spy-1.3.jar
[ERROR] urls[7] = file:/Users/jnissenbaum/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
[ERROR] urls[8] = file:/Users/jnissenbaum/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
[ERROR] urls[9] = file:/Users/jnissenbaum/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[10] = file:/Users/jnissenbaum/.m2/repository/osuser/osuser/1.0-dev-log4j-1.4jdk-7Dec05/osuser-1.0-dev-log4j-1.4jdk-7Dec05.jar
[ERROR] urls[11] = file:/Users/jnissenbaum/.m2/repository/opensymphony/propertyset/1.3-21Nov03/propertyset-1.3-21Nov03.jar
[ERROR] urls[12] = file:/Users/jnissenbaum/.m2/repository/opensymphony/sitemesh/2.3/sitemesh-2.3.jar
[ERROR] urls[13] = file:/Users/jnissenbaum/.m2/repository/dom4j/dom4j/1.4/dom4j-1.4.jar
[ERROR] urls[14] = file:/Users/jnissenbaum/.m2/repository/jaxen/jaxen/1.0-FCS/jaxen-1.0-FCS.jar
[ERROR] urls[15] = file:/Users/jnissenbaum/.m2/repository/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar
[ERROR] urls[16] = file:/Users/jnissenbaum/.m2/repository/msv/msv/20020414/msv-20020414.jar
[ERROR] urls[17] = file:/Users/jnissenbaum/.m2/repository/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar
[ERROR] urls[18] = file:/Users/jnissenbaum/.m2/repository/isorelax/isorelax/20020414/isorelax-20020414.jar
[ERROR] urls[19] = file:/Users/jnissenbaum/.m2/repository/opensymphony/oscore/2.2.7/oscore-2.2.7.jar
[ERROR] urls[20] = file:/Users/jnissenbaum/.m2/repository/log4j/log4j/1.2.7/log4j-1.2.7.jar
[ERROR] urls[21] = file:/Users/jnissenbaum/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
[ERROR] urls[22] = file:/Users/jnissenbaum/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
[ERROR] urls[23] = file:/Users/jnissenbaum/.m2/repository/mockobjects/alt-jdk1.3/0.07/alt-jdk1.3-0.07.jar
[ERROR] urls[24] = file:/Users/jnissenbaum/.m2/repository/oscache/oscache/DEV/oscache-DEV.jar
[ERROR] urls[25] = file:/Users/jnissenbaum/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] urls[26] = file:/Users/jnissenbaum/.m2/repository/biz/aQute/bnd/biz.aQute.bndlib/2.4.1-pr-916-atlassian-002/biz.aQute.bndlib-2.4.1-pr-916-atlassian-002.jar
[ERROR] urls[27] = file:/Users/jnissenbaum/.m2/repository/junit/junit/4.12/junit-4.12.jar
[ERROR] urls[28] = file:/Users/jnissenbaum/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] urls[29] = file:/Users/jnissenbaum/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
[ERROR] urls[30] = file:/Users/jnissenbaum/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
[ERROR] urls[31] = file:/Users/jnissenbaum/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[32] = file:/Users/jnissenbaum/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[33] = file:/Users/jnissenbaum/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[34] = file:/Users/jnissenbaum/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
[ERROR] urls[35] = file:/Users/jnissenbaum/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[36] = file:/Users/jnissenbaum/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[37] = file:/Users/jnissenbaum/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar
[ERROR] urls[38] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.19/plexus-interpolation-1.19.jar
[ERROR] urls[39] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[40] = file:/Users/jnissenbaum/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[41] = file:/Users/jnissenbaum/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[42] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
[ERROR] urls[43] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
[ERROR] urls[44] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
[ERROR] urls[45] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/maven-archiver/2.3/maven-archiver-2.3.jar
[ERROR] urls[46] = file:/Users/jnissenbaum/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar
[ERROR] urls[47] = file:/Users/jnissenbaum/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar
[ERROR] urls[48] = file:/Users/jnissenbaum/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
[ERROR] urls[49] = file:/Users/jnissenbaum/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[50] = file:/Users/jnissenbaum/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[ERROR] urls[51] = file:/Users/jnissenbaum/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[52] = file:/Users/jnissenbaum/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
[ERROR] urls[53] = file:/Users/jnissenbaum/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
[ERROR] urls[54] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/amps/plugin-module-codegen-maven-client/6.1.2/plugin-module-codegen-maven-client-6.1.2.jar
[ERROR] urls[55] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/amps/plugin-module-codegen-engine/6.1.2/plugin-module-codegen-engine-6.1.2.jar
[ERROR] urls[56] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/amps/plugin-module-codegen-api/6.1.2/plugin-module-codegen-api-6.1.2.jar
[ERROR] urls[57] = file:/Users/jnissenbaum/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
[ERROR] urls[58] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/fugue/fugue/1.0/fugue-1.0.jar
[ERROR] urls[59] = file:/Users/jnissenbaum/.m2/repository/com/googlecode/guava-osgi/guava-osgi/10.0.1/guava-osgi-10.0.1.jar
[ERROR] urls[60] = file:/Users/jnissenbaum/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[ERROR] urls[61] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[62] = file:/Users/jnissenbaum/.m2/repository/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
[ERROR] urls[63] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/maven/archetypes/refapp-plugin-archetype/6.1.2/refapp-plugin-archetype-6.1.2.jar
[ERROR] urls[64] = file:/Users/jnissenbaum/.m2/repository/com/dmurph/JGoogleAnalyticsTracker/1.2.1-atlassian/JGoogleAnalyticsTracker-1.2.1-atlassian.jar
[ERROR] urls[65] = file:/Users/jnissenbaum/.m2/repository/org/slf4j/slf4j-nop/1.6.2/slf4j-nop-1.6.2.jar
[ERROR] urls[66] = file:/Users/jnissenbaum/.m2/repository/org/slf4j/slf4j-api/1.6.2/slf4j-api-1.6.2.jar
[ERROR] urls[67] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/plugins/rest/atlassian-rest-doclet/2.9.2/atlassian-rest-doclet-2.9.2.jar
[ERROR] urls[68] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/plugins/rest/atlassian-rest-common/2.9.2/atlassian-rest-common-2.9.2.jar
[ERROR] urls[69] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/plugins/rest/com.atlassian.jersey-library/2.9.2/com.atlassian.jersey-library-2.9.2.pom
[ERROR] urls[70] = file:/Users/jnissenbaum/.m2/repository/com/sun/jersey/jersey-server/1.8-atlassian-13/jersey-server-1.8-atlassian-13.jar
[ERROR] urls[71] = file:/Users/jnissenbaum/.m2/repository/asm/asm/3.1/asm-3.1.jar
[ERROR] urls[72] = file:/Users/jnissenbaum/.m2/repository/com/sun/jersey/jersey-json/1.8-atlassian-13/jersey-json-1.8-atlassian-13.jar
[ERROR] urls[73] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar
[ERROR] urls[74] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.1/jackson-core-asl-1.9.1.jar
[ERROR] urls[75] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.1/jackson-mapper-asl-1.9.1.jar
[ERROR] urls[76] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.1/jackson-jaxrs-1.9.1.jar
[ERROR] urls[77] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.1/jackson-xc-1.9.1.jar
[ERROR] urls[78] = file:/Users/jnissenbaum/.m2/repository/commons-fileupload/commons-fileupload/1.3/commons-fileupload-1.3.jar
[ERROR] urls[79] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/security/atlassian-secure-random/3.1.5/atlassian-secure-random-3.1.5.jar
[ERROR] urls[80] = file:/Users/jnissenbaum/.m2/repository/com/sun/jersey/jersey-core/1.8-atlassian-13/jersey-core-1.8-atlassian-13.jar
[ERROR] urls[81] = file:/Users/jnissenbaum/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
[ERROR] urls[82] = file:/Users/jnissenbaum/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar
[ERROR] urls[83] = file:/Users/jnissenbaum/.m2/repository/org/hibernate/hibernate-validator/4.0.2.GA/hibernate-validator-4.0.2.GA.jar
[ERROR] urls[84] = file:/Users/jnissenbaum/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
[ERROR] urls[85] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/jersey/atlassian-jersey-restdoc/1.0.3/atlassian-jersey-restdoc-1.0.3.jar
[ERROR] urls[86] = file:/Users/jnissenbaum/.m2/repository/com/sun/jersey/contribs/wadl-resourcedoc-doclet/1.8-atlassian-13/wadl-resourcedoc-doclet-1.8-atlassian-13.jar
[ERROR] urls[87] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/annotations/atlassian-annotations/0.8.1/atlassian-annotations-0.8.1.jar
[ERROR] urls[88] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/amps/standalone/6.1.2/standalone-6.1.2.pom
[ERROR] urls[89] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/plugins/atlassian-plugins-osgi-testrunner/1.2.3/atlassian-plugins-osgi-testrunner-1.2.3.jar
[ERROR] urls[90] = file:/Users/jnissenbaum/.m2/repository/org/apache/wink/wink-client/1.1.3-incubating/wink-client-1.1.3-incubating.jar
[ERROR] urls[91] = file:/Users/jnissenbaum/.m2/repository/org/apache/wink/wink-common/1.1.3-incubating/wink-common-1.1.3-incubating.jar
[ERROR] urls[92] = file:/Users/jnissenbaum/.m2/repository/org/apache/geronimo/specs/geronimo-annotation_1.1_spec/1.0/geronimo-annotation_1.1_spec-1.0.jar
[ERROR] urls[93] = file:/Users/jnissenbaum/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.1.1/jaxb-impl-2.2.1.1.jar
[ERROR] urls[94] = file:/Users/jnissenbaum/.m2/repository/com/google/code/gson/gson/2.2.2-atlassian-1/gson-2.2.2-atlassian-1.jar
[ERROR] urls[95] = file:/Users/jnissenbaum/.m2/repository/com/atlassian/upm/upm-api/2.15/upm-api-2.15.jar
[ERROR] urls[96] = file:/Users/jnissenbaum/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar
[ERROR] urls[97] = file:/Users/jnissenbaum/.m2/repository/com/google/javascript/closure-compiler/rr2079.1/closure-compiler-rr2079.1.jar
[ERROR] urls[98] = file:/Users/jnissenbaum/.m2/repository/args4j/args4j/2.0.12/args4j-2.0.12.jar
[ERROR] urls[99] = file:/Users/jnissenbaum/.m2/repository/com/google/guava/guava/10.0.1/guava-10.0.1.jar
[ERROR] urls[100] = file:/Users/jnissenbaum/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar
[ERROR] urls[101] = file:/Users/jnissenbaum/.m2/repository/org/json/json/20090211/json-20090211.jar
[ERROR] urls[102] = file:/Users/jnissenbaum/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[103] = file:/Users/jnissenbaum/.m2/repository/com/googlecode/jarjar/jarjar/1.1/jarjar-1.1.jar
[ERROR] urls[104] = file:/Users/jnissenbaum/.m2/repository/com/yahoo/platform/yui/yuicompressor/2.4.7/yuicompressor-2.4.7.jar
[ERROR] urls[105] = file:/Users/jnissenbaum/.m2/repository/rhino/js/1.6R7/js-1.6R7.jar
[ERROR] urls[106] = file:/Users/jnissenbaum/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[107] = file:/Users/jnissenbaum/.m2/repository/com/googlecode/htmlcompressor/htmlcompressor/1.4/htmlcompressor-1.4.jar
[ERROR] urls[108] = file:/Users/jnissenbaum/.m2/repository/org/apache/wink/wink-client-apache-httpclient/1.1.3-incubating/wink-client-apache-httpclient-1.1.3-incubating.jar
[ERROR] urls[109] = file:/Users/jnissenbaum/.m2/repository/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar
[ERROR] urls[110] = file:/Users/jnissenbaum/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[111] = file:/Users/jnissenbaum/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar
[ERROR] urls[112] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/archetype/archetype-common/2.2/archetype-common-2.2.jar
[ERROR] urls[113] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/archetype/archetype-catalog/2.2/archetype-catalog-2.2.jar
[ERROR] urls[114] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/archetype/archetype-descriptor/2.2/archetype-descriptor-2.2.jar
[ERROR] urls[115] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/archetype/archetype-registry/2.2/archetype-registry-2.2.jar
[ERROR] urls[116] = file:/Users/jnissenbaum/.m2/repository/net/sourceforge/jchardet/jchardet/1.0/jchardet-1.0.jar
[ERROR] urls[117] = file:/Users/jnissenbaum/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[118] = file:/Users/jnissenbaum/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[119] = file:/Users/jnissenbaum/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[120] = file:/Users/jnissenbaum/.m2/repository/org/twdata/maven/mojo-executor/1.5.2/mojo-executor-1.5.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.atlassian.tutorial:helloworld:1.0.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[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/PluginContainerException
Buried in the error, I see:
Unsupported major.minor version 51.0
What JDK version do you have installed? It looks like you are trying to build with JDK 6.x, but the above message indicates that you need at least Java 7.
In particular, you will want to ensure that the JAVA_HOME environment variable points to Java 7 or higher.