jQuery in Action, 3rd edition
The moose likes JBoss/WildFly and the fly likes Trouble following tutorial instructions for seam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Trouble following tutorial instructions for seam" Watch "Trouble following tutorial instructions for seam" New topic

Trouble following tutorial instructions for seam

Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 103
Hi all,

I'm kind of a newbie to both maven and jboss. I have jboss 7.1.1 installed an running and am trying to follow the seam example instructions at http://docs.jboss.com/seam/latest/reference/en-US/html/tutorial.html#d0e435. I get lost on the following step,

Once you've set the location of JBoss AS and started the application server, you can build any example by typing mvn install in the example root directory. Any example is deployed by changing directory to *-ear or *-web directory in case of existence only *-web submodule. Type in that submodule mvn jboss-as:deploy. Any example that is packaged as an EAR deploys to a URL like /seam-example, where example is the name of the example folder, with one exception. If the example folder begins with seam, the prefix "seam" is ommitted. For instance, if JBoss AS is running on port 8080, the URL for the registration example is http://localhost:8080/seam-registration/, whereas the URL for the seamspace example is http://localhost:8080/seam-space/.

The mv install step completed without errors, but I don't see any directories created ending with war or ear .I am guessing there is a cd step missing somewhere. There was a war file under ./target and I tried

mvn jboss-as:deploy seam-booking.war

but got the following errorl

[ERROR] No plugin found for prefix 'jboss-as' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/jgaer/.m2/repository), jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public), central (http://repo.maven.apache.org/maven2)] -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

Thanks in advance for any help

Sun Certified Java Programmer Java 2<P>Jeff Gaer
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Before you can use the jboss-as plugin goals that way, you must tell Maven to look for that plugin for goals. The easiest way to do this is add a <pluginGroups> section to your Maven settings.xml file (http://maven.apache.org/settings.html#Plugin_Repositories). Example (replace "plugin.group.name" with the group name for the jboss-as plugin):

JBoss In Action
I agree. Here's the link: http://aspose.com/file-tools
subject: Trouble following tutorial instructions for seam
jQuery in Action, 3rd edition