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

Maven build issue #1

Open
cmoulliard opened this issue Aug 20, 2012 · 5 comments
Open

Maven build issue #1

cmoulliard opened this issue Aug 20, 2012 · 5 comments

Comments

@cmoulliard
Copy link
Member

Hi,

Pax-cdi cannot be build -->

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.866s
[INFO] Finished at: Mon Aug 20 11:29:55 CEST 2012
[INFO] Final Memory: 5M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (enforce-maven) on project cdi: Execution enforce-maven of goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce failed: A required class was missing while executing org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce: org/apache/maven/enforcer/rule/api/EnforcerRuleException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/chmoulli/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.jar
[ERROR] urls[1] = file:/Users/chmoulli/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>org.ops4j.pax:cdi:0.3.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------: org.apache.maven.enforcer.rule.api.EnforcerRuleException
[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

Regards,

Charles

@hwellmann
Copy link
Member

No idea... Hudson and my local builds are ok. Maybe this was caused by upgrading the parent POM. Can you please pull and try again?

By the way, OPS4J issues are tracked in JIRA, not here: http://team.ops4j.org/browse/PAXCDI.

I should have turned this off right from the start...

Best regards,
Harald

@cmoulliard
Copy link
Member Author

Error is still there after doing a pull request.

[INFO] BUILD FAILURE

[INFO]

[INFO] Total time: 7.132s
[INFO] Finished at: Mon Aug 20 17:26:10 CEST 2012
[INFO] Final Memory: 7M/81M

[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (enforce-maven)
on project cdi: Execution enforce-maven of goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce failed: A
required class was missing while executing
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce:
org/apache/maven/enforcer/rule/api/EnforcerRuleException
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.0
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/Users/chmoulli/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.jar
[ERROR] urls[1] =
file:/Users/chmoulli/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm
ClassRealm[project>org.ops4j.pax:cdi:0.3.0-SNAPSHOT, parent:
ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.apache.maven.enforcer.rule.api.EnforcerRuleException
[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

On Mon, Aug 20, 2012 at 2:51 PM, Harald Wellmann
notifications@github.comwrote:

No idea... Hudson and my local builds are ok. Maybe this was caused by
upgrading the parent POM. Can you please pull and try again?

By the way, OPS4J issues are tracked in JIRA, not here:
http://team.ops4j.org/browse/PAXCDI.

I should have turned this off right from the start...

Best regards,
Harald


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-7868043.

Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com

@hwellmann
Copy link
Member

Can you give a little more context, e.g. Maven version, JDK version, mvn -X output? Do you get the same error when running with a clean local Maven repository and no non-standard repositories in your settings.xml?

Our Hudson builds run with Oracle JDK 1.6.0_32 and Maven 3.0.4.

@cmoulliard
Copy link
Member Author

I also uses Maven 3.0.4 and JDK 1.6

Progresss-MacBook-Pro:pax-cdi chmoulli$ mvn -X clean install
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /Users/chmoulli/MyApplications/apache-maven-3.0.4
Java version: 1.6.0_33, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac"

On Mon, Aug 20, 2012 at 6:30 PM, Harald Wellmann
notifications@github.comwrote:

Can you give a little more context, e.g. Maven version, JDK version, mvn
-X output? Do you get the same error when running with a clean local Maven
repository and no non-standard repositories in your settings.xml?

Our Hudson builds run with Oracle JDK 1.6.0_32 and Maven 3.0.4.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-7874958.

Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com

@hwellmann
Copy link
Member

Strange... I'm on Linux, that's the main difference I can see. I've just tried running the build from another user account with an empty Maven repo, without any problems (or at least not until hitting the required SNAPSHOT versions of Pax Web and Weld), so it must be something in your local environment.

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