Hi,
When i execute `mvn clean pacakge -Dmaven.test.skip=true`, in some machines(Ubuntu 14.04), i got this error: ------------- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (vulnerability-checks) on project root: Execution vulnerability-checks of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce failed: Failed to lookup component: ComponentReportAssistant: java.util.NoSuchElementException [ERROR] role: org.sonatype.ossindex.maven.common.ComponentReportAssistant [ERROR] roleHint: [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/PluginExecutionException ------------- I have checked local maven repository,there is ossindex-maven-common-1.0.0.jar and ComponentReportAssistant.class within it. -------- $ ls -l -rw-rw-r-- 1 fit fit 208 12月 26 17:56 _maven.repositories -rw-rw-r-- 1 fit fit 13300 12月 26 17:56 ossindex-maven-common-1.0.0.jar -rw-rw-r-- 1 fit fit 40 12月 26 17:56 ossindex-maven-common-1.0.0.jar.sha1 -rw-rw-r-- 1 fit fit 2047 12月 26 17:56 ossindex-maven-common-1.0.0.pom -rw-rw-r-- 1 fit fit 40 12月 26 17:56 ossindex-maven-common-1.0.0.pom.sha1 -------- If i remove <banVulnerable implementation="org.sonatype.ossindex.maven.enforcer.BanVulnerableDependencies"/> in the following plugin, it works. Did anyone face the same problem before? I create an issue at https://github.com/thulab/iotdb/issues/551. --------------------- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M1</version> <!--$NO-MVN-MAN-VER$--> <executions> <!-- Make sure no dependencies are used for which known vulnerabilities exist. --> <execution> <id>vulnerability-checks</id> <phase>validate</phase> <goals> <goal>enforce</goal> </goals> <configuration> <!-- Just generate warnings for now --> <fail>false</fail> <rules> <requireJavaVersion> <version>1.8.0</version> </requireJavaVersion> <!-- Disabled for now as it breaks the ability to build single modules --> <!--reactorModuleConvergence/--> <banVulnerable implementation="org.sonatype.ossindex.maven.enforcer.BanVulnerableDependencies"/> </rules> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.sonatype.ossindex.maven</groupId> <artifactId>ossindex-maven-enforcer-rules</artifactId> <version>1.0.0</version> </dependency> </dependencies> </plugin> ------------------ Thanks Yi Xu
