fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.76k stars 504 forks source link

Plugin dependencies to execute fabric8:json #4000

Open cmoulliard opened 9 years ago

cmoulliard commented 9 years ago

What are the dependencies required to use the mojo goal fabric8:json as I get this error :

            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>fabric8-maven-plugin</artifactId>
                <version>${fabric8.version}</version>
                <executions>
                    <execution>
                        <id>json</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>json</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>attach</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>io.fabric8</groupId>
                        <artifactId>kubernetes-assertions</artifactId>
                        <version>${fabric8.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

[INFO] Configured with file: /Users/chmoulli/Fuse/Fuse-projects/use-cases/ceposta-devops-ose/gerrit-docker/target/classes/kubernetes.json
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.986 s
[INFO] Finished at: 2015-05-26T09:15:42+02:00
[INFO] Final Memory: 18M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:2.2-SNAPSHOT:json (default-cli) on project gerrit: Execution default-cli of goal io.fabric8:fabric8-maven-plugin:2.2-SNAPSHOT:json failed: A required class was missing while executing io.fabric8:fabric8-maven-plugin:2.2-SNAPSHOT:json: io/fabric8/common/VisitableBuilder
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.fabric8:fabric8-maven-plugin:2.2-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/chmoulli/.m2/repository/io/fabric8/fabric8-maven-plugin/2.2-SNAPSHOT/fabric8-maven-plugin-2.2-SNAPSHOT.jar
[ERROR] urls[1] = file:/Users/chmoulli/.m2/repository/io/fabric8/kubernetes-assertions/2.2-SNAPSHOT/kubernetes-assertions-2.2-SNAPSHOT.jar
[ERROR] urls[2] = file:/Users/chmoulli/.m2/repository/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0.jar
[ERROR] urls[3] = file:/Users/chmoulli/.m2/repository/io/fabric8/schemagenerator/kubernetes-model/0.0.37/kubernetes-model-0.0.37.jar
[ERROR] urls[4] = file:/Users/chmoulli/.m2/repository/io/sundr/sundr-annotations/0.0.12/sundr-annotations-0.0.12.jar
[ERROR] urls[5] = file:/Users/chmoulli/.m2/repository/io/sundr/sundr-core/0.0.12/sundr-core-0.0.12.jar
[ERROR] urls[6] = file:/Users/chmoulli/.m2/repository/io/sundr/sundr-codegen/0.0.12/sundr-codegen-0.0.12.jar
[ERROR] urls[7] = file:/Users/chmoulli/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar
[ERROR] urls[8] = file:/Users/chmoulli/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[9] = file:/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/../lib/tools.jar
[ERROR] urls[10] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.4.1/jackson-module-jaxb-annotations-2.4.1.jar
[ERROR] urls[11] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.1/jackson-databind-2.4.1.jar
[ERROR] urls[12] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.1/jackson-annotations-2.4.1.jar
[ERROR] urls[13] = file:/Users/chmoulli/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
[ERROR] urls[14] = file:/Users/chmoulli/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[15] = file:/Users/chmoulli/.m2/repository/junit/junit/4.11/junit-4.11.jar
[ERROR] urls[16] = file:/Users/chmoulli/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] urls[17] = file:/Users/chmoulli/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[18] = file:/Users/chmoulli/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[19] = file:/Users/chmoulli/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[20] = file:/Users/chmoulli/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[21] = file:/Users/chmoulli/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[22] = file:/Users/chmoulli/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[23] = file:/Users/chmoulli/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[24] = file:/Users/chmoulli/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[25] = file:/Users/chmoulli/.m2/repository/io/fabric8/kubernetes-api/2.2-SNAPSHOT/kubernetes-api-2.2-SNAPSHOT.jar
[ERROR] urls[26] = file:/Users/chmoulli/.m2/repository/io/fabric8/cxf-utils/2.2-SNAPSHOT/cxf-utils-2.2-SNAPSHOT.jar
[ERROR] urls[27] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.4.1/jackson-jaxrs-json-provider-2.4.1.jar
[ERROR] urls[28] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.4.1/jackson-jaxrs-base-2.4.1.jar
[ERROR] urls[29] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.4.1/jackson-dataformat-yaml-2.4.1.jar
[ERROR] urls[30] = file:/Users/chmoulli/.m2/repository/org/apache/cxf/cxf-rt-rs-client/3.0.4/cxf-rt-rs-client-3.0.4.jar
[ERROR] urls[31] = file:/Users/chmoulli/.m2/repository/org/apache/cxf/cxf-rt-transports-http/3.0.4/cxf-rt-transports-http-3.0.4.jar
[ERROR] urls[32] = file:/Users/chmoulli/.m2/repository/org/apache/cxf/cxf-core/3.0.4/cxf-core-3.0.4.jar
[ERROR] urls[33] = file:/Users/chmoulli/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar
[ERROR] urls[34] = file:/Users/chmoulli/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar
[ERROR] urls[35] = file:/Users/chmoulli/.m2/repository/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar
[ERROR] urls[36] = file:/Users/chmoulli/.m2/repository/org/apache/cxf/cxf-rt-frontend-jaxrs/3.0.4/cxf-rt-frontend-jaxrs-3.0.4.jar
[ERROR] urls[37] = file:/Users/chmoulli/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0.1/javax.ws.rs-api-2.0.1.jar
[ERROR] urls[38] = file:/Users/chmoulli/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
[ERROR] urls[39] = file:/Users/chmoulli/.m2/repository/org/yaml/snakeyaml/1.5/snakeyaml-1.5.jar
[ERROR] urls[40] = file:/Users/chmoulli/.m2/repository/org/json/json/20140107/json-20140107.jar
[ERROR] urls[41] = file:/Users/chmoulli/.m2/repository/net/oauth/core/oauth/20100527/oauth-20100527.jar
[ERROR] urls[42] = file:/Users/chmoulli/.m2/repository/dnsjava/dnsjava/2.1.7/dnsjava-2.1.7.jar
[ERROR] urls[43] = file:/Users/chmoulli/.m2/repository/org/hibernate/hibernate-validator/5.1.3.Final/hibernate-validator-5.1.3.Final.jar
[ERROR] urls[44] = file:/Users/chmoulli/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jboss-logging-3.1.3.GA.jar
[ERROR] urls[45] = file:/Users/chmoulli/.m2/repository/com/fasterxml/classmate/1.0.0/classmate-1.0.0.jar
[ERROR] urls[46] = file:/Users/chmoulli/.m2/repository/org/hibernate/hibernate-validator-cdi/5.1.3.Final/hibernate-validator-cdi-5.1.3.Final.jar
[ERROR] urls[47] = file:/Users/chmoulli/.m2/repository/javax/el/javax.el-api/2.2.4/javax.el-api-2.2.4.jar
[ERROR] urls[48] = file:/Users/chmoulli/.m2/repository/org/glassfish/web/javax.el/2.2.4/javax.el-2.2.4.jar
[ERROR] urls[49] = file:/Users/chmoulli/.m2/repository/io/fabric8/fabric8-utils/2.2-SNAPSHOT/fabric8-utils-2.2-SNAPSHOT.jar
[ERROR] urls[50] = file:/Users/chmoulli/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.1/jackson-core-2.4.1.jar
[ERROR] urls[51] = file:/Users/chmoulli/.m2/repository/org/jolokia/jolokia-client-java/1.2.3/jolokia-client-java-1.2.3.jar
[ERROR] urls[52] = file:/Users/chmoulli/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
[ERROR] urls[53] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/httpclient-osgi/4.3.3/httpclient-osgi-4.3.3.jar
[ERROR] urls[54] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar
[ERROR] urls[55] = file:/Users/chmoulli/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar
[ERROR] urls[56] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar
[ERROR] urls[57] = file:/Users/chmoulli/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ERROR] urls[58] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/httpmime/4.3.3/httpmime-4.3.3.jar
[ERROR] urls[59] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/httpclient-cache/4.3.3/httpclient-cache-4.3.3.jar
[ERROR] urls[60] = file:/Users/chmoulli/.m2/repository/org/apache/httpcomponents/fluent-hc/4.3.3/fluent-hc-4.3.3.jar
[ERROR] urls[61] = file:/Users/chmoulli/.m2/repository/org/apache/maven/shared/maven-dependency-analyzer/1.4/maven-dependency-analyzer-1.4.jar
[ERROR] urls[62] = file:/Users/chmoulli/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar
[ERROR] urls[63] = file:/Users/chmoulli/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
[ERROR] urls[64] = file:/Users/chmoulli/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[65] = file:/Users/chmoulli/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.11/maven-invoker-2.0.11.jar
[ERROR] urls[66] = file:/Users/chmoulli/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.1/plexus-utils-3.0.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: io.fabric8.common.VisitableBuilder

Link of the project : https://github.com/christian-posta/ceposta-devops-ose/blob/master/gerrit-docker/pom.xml#L85-85

cmoulliard commented 9 years ago

This problems exist when using 2.2-SNAPSHOT but not with 2.1.3

jstrachan commented 9 years ago

No extra dependencies required.

How about using 2.1.5?

What was your entire pom? Was there a mismatch between the plugin version and the fabric8 jar versions of your pom.xml?

jstrachan commented 9 years ago

Is this still an issue when using a release of the plugin & matching kubernetes-api?