[jboss-user] [EJB 3.0] New message: "EJB 3.0 tutorial with Maven 2.2.1"

Csaba Toth do-not-reply at jboss.com
Fri Feb 19 12:38:07 EST 2010


User development,

A new message was posted in the thread "EJB 3.0 tutorial with Maven 2.2.1":

http://community.jboss.org/message/527322#527322

Author  : Csaba Toth
Profile : http://community.jboss.org/people/tothc

Message:
--------------------------------------------------------------
In advance: I'm new to Maven and JBoss also.
 
Windows 7 64 bit
Maven 2.2.1
EJB 3.0 tutorial
 
I want to start with the first example, the stateless bean.
First I got FATAL errors. Googled it and turned out that I had to add this
"  <repositories>
    <repository>
      <id>jboss-repo</id>
      <url>http://repository.jboss.org/maven2/</url>
    </repository>
  </repositories>"
 
to the pom.xml of the stateless example. Note: does this mean that I have to do this modification to every freakin' example's pom.xml???
After adding this to the xml the build command seemed to work, it downloaded gazillions of pom (?) files to somewhere (??? I couldn't find where, I could just read the source, the webpage address it downloaded from).
 
But unfortunately I got an ERROR from a WARNING. Searching for this warning in google gives just one result in a blog, which doesn't solve my problem. So I would appreciate some help. Thanks.
 
"$EJB3_TUTORIAL_HOME\source\stateless>mvn clean install -e -PRunSingleTutorial
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building EJB3.0 Stateless Bean Tutorial
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 2.2.1 is not in the allowed range [2.0.9,2.1).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
    at org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:218)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    ... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Feb 19 11:35:48 CST 2010
[INFO] Final Memory: 70M/295M
[INFO] ------------------------------------------------------------------------
"

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/527322#527322




More information about the jboss-user mailing list