The MAVEN command line creates the Web project and deploys it to the JOBSS (resolve no plugin found for prefix ' jboss-as ' of the current project and the plugin groups [org.a Pache.maven.plugins, question)

Source: Internet
Author: User
Tags jboss jboss server

First article Creation project: here can refer to: http://maven.apache.org/guides/mini/guide-webapp.html

MVN archetype:generate-dgroupid=com.mycompany.app-dartifactid=my-webapp-darchetypeartifactid= Maven-archetype-webapp

To switch directories to My-webapp, compile and package:

Package

At this point, start the JBoss server (mine is jboss-as-7.1.1) and run MVN clean Jboss-as:deploy to deploy the Web project to JBoss. The problem comes, the terminal error, the information is as follows:

 for ' Jboss-as ' inch inch groups [Org.apache.maven.plugins, Org.codehaus.mojo] available from the repositories [local (d:/maven/m2/repository), Central (http://repo.maven.apache.org/maven2)]

Solution: Refer to http://stackoverflow.com/questions/13956193/ Moving-to-jboss-as7-from-tomcat-mvn-jboss-asdeploy-does-not-work-on-my-maven-p

In the pom.xml of the project, add:

<Plugins>        <plugin>            <groupId>Org.jboss.as.plugins</groupId>            <Artifactid>Jboss-as-maven-plugin</Artifactid>            <version>7.2.Final</version>        </plugin></Plugins>

Compile the package again, and then start with the results such as:

Note: Open source China maven Source configuration http://maven.oschina.net/help.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.