Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java-camel-spring-archetype A required class was missing while executing io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:json: io/fabric8/openshift/api/model/BuildFluent #1402

Open
LewisWatson opened this issue Aug 18, 2016 · 1 comment

Comments

@LewisWatson
Copy link

LewisWatson commented Aug 18, 2016

I encountered a problem building JSON for the java-camel-spring-archetype as referenced in the OpenShift Enterprise XPAAS Fuse Images docs and RedHat XPAAS Fuse Integration Services Image docs.

Steps to reproduce:

Create a project based on the java-camel-spring-archetype using Maven 3.3.9

mvn archetype:generate \
  -DarchetypeCatalog=https://repo.fusesource.com/nexus/content/groups/public/archetype-catalog.xml \
  -DarchetypeGroupId=io.fabric8.archetypes \
  -DarchetypeVersion=2.2.0.redhat-079 \
  -DarchetypeArtifactId=java-camel-spring-archetype 

Run mvn fabric8:json

I get the following error

$ mvn fabric8:json
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Fabric8 :: Quickstarts :: Java :: Camel Spring 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- fabric8-maven-plugin:2.2.0.redhat-079:json (default-cli) @ java-camel-spring-archetype ---
[INFO] Configured with file: /home/watsonl/workspace/java-camel-spring-archetype /target/classes/kubernetes.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.219 s
[INFO] Finished at: 2016-08-18T07:48:41+00:00
[INFO] Final Memory: 16M/266M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:json (default-cli) on project java-camel-spring-archetype: Execution default-cli of goal io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:json failed: A required class was missing while executing io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079:json: io/fabric8/kubernetes/api/model/BaseKubernetesListFluent$ClusterPolicyItemsNested
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.fabric8:fabric8-maven-plugin:2.2.0.redhat-079
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/watsonl/.m2/repository/io/fabric8/fabric8-maven-plugin/2.2.0.redhat-079/fabric8-maven-plugin-2.2.0.redhat-079.jar
[ERROR] urls[1] = file:/home/watsonl/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[2] = file:/home/watsonl/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[3] = file:/home/watsonl/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[4] = file:/home/watsonl/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[5] = file:/home/watsonl/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/home/watsonl/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[7] = file:/home/watsonl/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[8] = file:/home/watsonl/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[9] = file:/home/watsonl/.m2/repository/io/fabric8/kubernetes-api/2.2.0.redhat-079/kubernetes-api-2.2.0.redhat-079.jar
[ERROR] urls[10] = file:/home/watsonl/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
[ERROR] urls[11] = file:/home/watsonl/.m2/repository/io/fabric8/openshift-client/1.3.26.redhat-079/openshift-client-1.3.26.redhat-079.jar
[ERROR] urls[12] = file:/home/watsonl/.m2/repository/io/fabric8/kubernetes-client/1.3.26.redhat-079/kubernetes-client-1.3.26.redhat-079.jar
[ERROR] urls[13] = file:/home/watsonl/.m2/repository/io/fabric8/kubernetes-model/1.0.22.redhat-079/kubernetes-model-1.0.22.redhat-079.jar
[ERROR] urls[14] = file:/home/watsonl/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.6.3.redhat-3/jackson-module-jaxb-annotations-2.6.3.redhat-3.jar
[ERROR] urls[15] = file:/home/watsonl/.m2/repository/com/squareup/okhttp/okhttp/2.5.0/okhttp-2.5.0.jar
[ERROR] urls[16] = file:/home/watsonl/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar
[ERROR] urls[17] = file:/home/watsonl/.m2/repository/com/squareup/okhttp/okhttp-ws/2.5.0/okhttp-ws-2.5.0.jar
[ERROR] urls[18] = file:/home/watsonl/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.3.redhat-3/jackson-databind-2.6.3.redhat-3.jar
[ERROR] urls[19] = file:/home/watsonl/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.3.redhat-3/jackson-annotations-2.6.3.redhat-3.jar
[ERROR] urls[20] = file:/home/watsonl/.m2/repository/io/fabric8/kubernetes-client/1.3.26.redhat-079/kubernetes-client-1.3.26.redhat-079-tests.jar
[ERROR] urls[21] = file:/home/watsonl/.m2/repository/junit/junit/4.12/junit-4.12.jar
[ERROR] urls[22] = file:/home/watsonl/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] urls[23] = file:/home/watsonl/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.6.3.redhat-3/jackson-dataformat-yaml-2.6.3.redhat-3.jar
[ERROR] urls[24] = file:/home/watsonl/.m2/repository/org/yaml/snakeyaml/1.11/snakeyaml-1.11.jar
[ERROR] urls[25] = file:/home/watsonl/.m2/repository/org/json/json/20150729/json-20150729.jar
[ERROR] urls[26] = file:/home/watsonl/.m2/repository/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar
[ERROR] urls[27] = file:/home/watsonl/.m2/repository/org/hibernate/hibernate-validator/5.2.2.Final/hibernate-validator-5.2.2.Final.jar
[ERROR] urls[28] = file:/home/watsonl/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar
[ERROR] urls[29] = file:/home/watsonl/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar
[ERROR] urls[30] = file:/home/watsonl/.m2/repository/javax/el/javax.el-api/2.2.5/javax.el-api-2.2.5.jar
[ERROR] urls[31] = file:/home/watsonl/.m2/repository/org/glassfish/web/javax.el/2.2.5/javax.el-2.2.5.jar
[ERROR] urls[32] = file:/home/watsonl/.m2/repository/io/fabric8/fabric8-utils/2.2.0.redhat-079/fabric8-utils-2.2.0.redhat-079.jar
[ERROR] urls[33] = file:/home/watsonl/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.3.redhat-3/jackson-core-2.6.3.redhat-3.jar
[ERROR] urls[34] = file:/home/watsonl/.m2/repository/org/jolokia/jolokia-client-java/1.3.2.redhat-1/jolokia-client-java-1.3.2.redhat-1.jar
[ERROR] urls[35] = file:/home/watsonl/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
[ERROR] urls[36] = file:/home/watsonl/.m2/repository/org/apache/httpcomponents/httpclient-osgi/4.3.3/httpclient-osgi-4.3.3.jar
[ERROR] urls[37] = file:/home/watsonl/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[38] = file:/home/watsonl/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/3.5.3.201412180710-r/org.eclipse.jgit-3.5.3.201412180710-r.jar
[ERROR] urls[39] = file:/home/watsonl/.m2/repository/com/jcraft/jsch/0.1.50/jsch-0.1.50.jar
[ERROR] urls[40] = file:/home/watsonl/.m2/repository/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar
[ERROR] urls[41] = file:/home/watsonl/.m2/repository/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.jar
[ERROR] urls[42] = file:/home/watsonl/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar
[ERROR] urls[43] = file:/home/watsonl/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[44] = file:/home/watsonl/.m2/repository/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.jar
[ERROR] urls[45] = file:/home/watsonl/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[46] = file:/home/watsonl/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
[ERROR] urls[47] = file:/home/watsonl/.m2/repository/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
[ERROR] urls[48] = file:/home/watsonl/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[49] = file:/home/watsonl/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.1/plexus-utils-3.0.1.jar
[ERROR] urls[50] = file:/home/watsonl/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar
[ERROR] urls[51] = file:/home/watsonl/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
[ERROR] urls[52] = file:/home/watsonl/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
[ERROR] urls[53] = file:/home/watsonl/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: io.fabric8.kubernetes.api.model.BaseKubernetesListFluent$ClusterPolicyItemsNested
[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

I'm able to successfully perform the same steps with java-simple-mainclass-archetype.

Regards

Lewis Watson

@davsclaus
Copy link
Member

You can report issues about Red Hat Fuse Integration Services (FIS) using the Red Hat customer portal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants