reactiverse / vertx-maven-plugin

A Maven plugin for pimping the build of your Vert.x applications
https://reactiverse.io/vertx-maven-plugin/
Apache License 2.0
74 stars 15 forks source link

Package org.apache.commons.io is not found #81

Closed Riduidel closed 5 years ago

Riduidel commented 5 years ago

When running mvn install, I get the following exception

[INFO] --- vertx-maven-plugin:1.0.18:package (vmp) @ activemq2kafka ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.290 s
[INFO] Finished at: 2018-11-21T11:13:47+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.reactiverse:vertx-maven-plugin:1.0.18:package (vmp) on project activemq2kafka: Execution vmp of goal io.reactiverse:vertx-maven-plugin:1.0.18:package failed: A required class was missing while executing io.reactiverse:vertx-maven-plugin:1.0.18:package: org/apache/commons/io/IOUtils
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.reactiverse:vertx-maven-plugin:1.0.18
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/nicolas-delsaux/.m2/repository/io/reactiverse/vertx-maven-plugin/1.0.18/vertx-maven-plugin-1.0.18.jar
[ERROR] urls[1] = file:/C:/Users/nicolas-delsaux/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.3/org.eclipse.sisu.inject-0.3.3.jar
[ERROR] urls[3] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/codehaus/plexus/plexus-utils/3.1.0/plexus-utils-3.1.0.jar
[ERROR] urls[4] = file:/C:/Users/nicolas-delsaux/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar
[ERROR] urls[5] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/commons/commons-lang3/3.8/commons-lang3-3.8.jar
[ERROR] urls[6] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/google/guava/guava/23.0/guava-23.0.jar
[ERROR] urls[7] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
[ERROR] urls[8] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar
[ERROR] urls[9] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
[ERROR] urls[10] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
[ERROR] urls[11] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/json/json/20180813/json-20180813.jar
[ERROR] urls[12] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.7/jackson-databind-2.9.7.jar
[ERROR] urls[13] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar
[ERROR] urls[14] = file:/C:/Users/nicolas-delsaux/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.7/jackson-core-2.9.7.jar
[ERROR] urls[15] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/twdata/maven/mojo-executor/2.3.0/mojo-executor-2.3.0.jar
[ERROR] urls[16] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[17] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[18] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[19] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[20] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/slf4j/slf4j-simple/1.7.22/slf4j-simple-1.7.22.jar
[ERROR] urls[21] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
[ERROR] urls[22] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
[ERROR] urls[23] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[24] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/yaml/snakeyaml/1.23/snakeyaml-1.23.jar
[ERROR] urls[25] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-api/1.2.6/shrinkwrap-api-1.2.6.jar
[ERROR] urls[26] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-spi/1.2.6/shrinkwrap-spi-1.2.6.jar
[ERROR] urls[27] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/jboss/shrinkwrap/shrinkwrap-impl-base/1.2.6/shrinkwrap-impl-base-1.2.6.jar
[ERROR] urls[28] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-manager-plexus/1.10.0/maven-scm-manager-plexus-1.10.0.jar
[ERROR] urls[29] = file:/C:/Users/nicolas-delsaux/.m2/repository/junit/junit/4.11/junit-4.11.jar
[ERROR] urls[30] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[ERROR] urls[31] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-api/1.10.0/maven-scm-api-1.10.0.jar
[ERROR] urls[32] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-provider-gitexe/1.10.0/maven-scm-provider-gitexe-1.10.0.jar
[ERROR] urls[33] = file:/C:/Users/nicolas-delsaux/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[34] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-provider-git-commons/1.10.0/maven-scm-provider-git-commons-1.10.0.jar
[ERROR] urls[35] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.10.0/maven-scm-provider-svnexe-1.10.0.jar
[ERROR] urls[36] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/scm/maven-scm-provider-svn-commons/1.10.0/maven-scm-provider-svn-commons-1.10.0.jar
[ERROR] urls[37] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/freemarker/freemarker/2.3.28/freemarker-2.3.28.jar
[ERROR] urls[38] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.jar
[ERROR] urls[39] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[40] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[41] = file:/C:/Users/nicolas-delsaux/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[42] = file:/C:/Users/nicolas-delsaux/.m2/repository/jline/jline/2.14.6/jline-2.14.6.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

Seems like Apache Commons IO is not in CLASSPATH, which is weird, given the fact it appears in my maven dependency hierarchy :

2018-11-21 11_22_01-adeo - vertx-maven-plugin_pom xml - eclipse ide

For reference, here is my maven configuration

$ mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: C:\ProgramData\chocolatey\lib\maven\apache-maven-3.5.4\bin\..
Java version: 1.8.0_144, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_144\jre
Default locale: fr_FR, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Riduidel commented 5 years ago

Strangely enough, the error persists even if I add

    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io.version}</version>
    </dependency>

to the vertx-maven-plugin configuration in my project ...

Riduidel commented 5 years ago

Seems like a case of bad dependency downloaded ... i've re-downloaded commons-io, and bug was solved !