Hi Collin,

I think your artifactId needs to be  "jboss-packaging-maven-plugin".

Also, you shouldn't need to copy that jar to Maven's lib dir. You just
need to add the codehaus snapshot repository to your pom.xml.

<build>
  ...
  <repositories>
     <repository>
            <id>Codehaus Snapshots</id>
            <url>http://snapshots.repository.codehaus.org</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
  </repositories>
  ...
</build>



Cheers,
Kevin



On Wed, 2008-01-23 at 14:57 -0800, Collin Marc wrote:

> hi
> 
> i have a jboss project 
> i would like to be able to generate a sar with maven
> i copied this jar to the maven lib
> jboss-packaging-maven-plugin-2.0-20070420.093359-5.jar
> 
>  <project>
>   <modelVersion>4.0.0</modelVersion>
>       <groupId>com.test</groupId>
>       <artifactId>com.test.Mbean</artifactId>
>       <packaging>sar</packaging>
> 
>       <build>
>             <plugins>
>                   <plugin>
>                        
> <groupId>org.codehaus.mojo</groupId>
>                        
> <artifactId>jboss-sar-maven-plugin</artifactId>
>                        
> <version>2.0-SNAPSHOT</version>
>                         <extensions>true</extensions>
>                   </plugin>
>             </plugins>
>       </build>
> </project>
> 
> i get this message when i do mvn install
> 
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.codehaus.mojo
> ArtifactId: jboss-sar-maven-plugin
> Version: 2.0-SNAPSHOT
> 
> Reason: Unable to download the artifact from any
> repository
> 
>  
> org.codehaus.mojo:jboss-sar-maven-plugin:pom:2.0-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   amae-repository (http://fr_repo01:8080/repository)
> 
> any idea?
> 
> thanks
> 
> 
>       
> ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 

Reply via email to