1
votes

I get the following error when trying to run the jboss-as:deploy goal.

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/user/.m2/repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

I tried out everything written here maven-javadoc-plugin and failsafe-maven-plugin missing when build JBoss Seam examples, but no luck. I need to make this plug-in work without having to add anything in the maven settings file (only in pom).

2

2 Answers

9
votes

Assuming your build section has something like this in it:

<build>
...
    <plugins>
    ...
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jboss-maven-plugin</artifactId>
            <version>1.5.0</version>
            <configuration>
                <jbossHome>/usr/jboss-4.2.3.GA</jbossHome>
                <serverName>all</serverName>
                <fileName>target/my-project.war</fileName>
            </configuration>
        </plugin>
    </plugins>
</build>

Then you should be using jboss:deploy instead of jboss-as:deploy. But if its like:

<build>
...
    <plugins>
    ...
        <plugin>
            <groupId>org.jboss.as.plugins</groupId>
            <artifactId>jboss-as-maven-plugin</artifactId>
            <version>7.2.Final</version>
        </plugin>
    </plugins>
</build>

Then you should be using jboss-as:deploy instead of jboss:deploy.

Both worked for me with a fresh install of maven 3.0.4 with a bare pom.

1
votes

Yes, Welsh is right.

The first one is located here and the second one here.

So, pay attention if you need to use the "jboss-as" goal specifier or the "jboss" goal specifier.