[
https://issues.jboss.org/browse/JBDS-3141?page=com.atlassian.jira.plugin....
]
Len DiMaggio commented on JBDS-3141:
------------------------------------
* Installed sample from:
https://github.com/victims/victims-enforcer/tree/master/sample
* The following errors are seen in the Problems view - the 4th error is the error
referred to by Burr:
The declared package "com.redhat.com.srt.sample" does not match the expected
package
"com.redhat.victimssample" App.java /sample/src/main/java/com/redhat/victimssample line
1 Java Problem
The declared package "com.redhat.com.srt.sample" does not match the expected
package
"com.redhat.victimssample" AppTest.java /sample/src/test/java/com/redhat/victimssample line
1 Java Problem
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the
workspace that are strictly compatible with this environment. sample Build path JRE
System Library Problem
maven-enforcer-plugin (goal "enforce") is ignored by m2e. pom.xml /sample line
56 Maven Project Build Lifecycle Mapping Problem
* After correcting the declared package errors, and after modifying the pom.xml file to
reference version 1.3.5-SNAPSHOT of the enforcer plugin, it's possible to build/run
the sample and get the expected error (clean compile jar:jar):
):
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.redhat.victimssample:sample:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-jar-plugin is missing. @ line 33, column 15
[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 sample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ sample ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-victims-rule) @ sample ---
[INFO]
+=========================+
|VICTIMS-ENFORCER SETTINGS|
+=========================+
fingerprint = fatal
updates = auto
metadata = warning
[INFO] Last update was on Tue Sep 30 13:30:24 GMT-05:00 2014. Checking for new
vulnerabilities at
http://www.victi.ms/
[WARNING] Unable to update victims database! Your CVE records might be out of date.
[WARNING] The dependency junit-3.8.1 matches a vulnerability recorded in the victims
database. [CVE-9999-999]
[WARNING] Rule 0: com.redhat.victims.VictimsRule failed with message:
+=======================+
|VULNERABILITY DETECTED!|
+=======================+
For more information visit:
-
https://access.redhat.com/security/cve/CVE-9999-999
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.507 s
[INFO] Finished at: 2014-09-30T13:42:41-05:00
[INFO] Final Memory: 12M/295M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-victims-rule) on
project sample: Some Enforcer rules have failed. Look above for specific messages
explaining why the rule failed. -> [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
Test victi.ms maven plugin works within jbds (or at least does not
fail)
------------------------------------------------------------------------
Key: JBDS-3141
URL:
https://issues.jboss.org/browse/JBDS-3141
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Bug
Components: maven
Reporter: Burr Sutter
Assignee: Len DiMaggio
Fix For: 8.0.0.CR2
http://victi.ms has a maven plugin to check/assert maven dependencies have issues.
should check how it works and if it works within eclipse
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)