Ok, it still doesn't works,
my pom.xml :
...
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>codehaus</id>
<name>Codehaus maven repository</name>
<url>http://dist.codehaus.org/</url>
<layout>legacy</layout>
</repository>
<repository>
<id>apache-snapshots</id>
<name>Apache snapshot repository</name>
<url>http://cvs.apache.org/maven-snapshot-repository/</url>
<layout>legacy</layout>
</repository>
<repository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
</project>
Errors :
D:\Documents and Settings\sid\toto>mvn jalopy:format
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jalopy'.
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
updates from codehaus
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
updates from apache-snapshots
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
Downloading:
http://dist.codehaus.org//org.codehaus.mojo/poms/jalopy-maven-plugi
n-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus (
http://dist.codehaus.
org/)
Downloading:
http://cvs.apache.org/maven-snapshot-repository//org.codehaus.mojo/
poms/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache-snapshots (
http://cvs.ap
ache.org/maven-snapshot-repository/)
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
[INFO]
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
-------------------------------------------------------------------------
---
[INFO] Failed to resolve artifact.
GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT
from the specified remote repositories:
Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
central (http://repo1.maven.org/maven2),
codehaus (http://dist.codehaus.org/),
apache-snapshots (http://cvs.apache.org/maven-snapshot-repository/)
[INFO]
-------------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-------------------------------------------------------------------------
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 21 13:36:16 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]
-------------------------------------------------------------------------
Is it a configuration problem or the plugin isn't on codehaus ?
I found that :
https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
How can i use it ?
On 3/21/06, Piéroni Raphaël <[EMAIL PROTECTED]> wrote:
>
> Hello SiD,
>
> IIRC, you have to:
> configure the repositories to point to the mojo snapshot repo (cant
> remember
> the real address)
> or checkout the plugin and build it if it was never deployed.
>
> So check in the guides :
> http://maven.apache.org/guides/mini/guide-multiple-repositories.html
>
> <repositories>
> <repository>
> <id>Maven Snapshots</id>
> <url>http://snapshots.maven.codehaus.org/maven2/</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <releases>
> <enabled>false</enabled>
> </releases>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>Maven Snapshots</id>
> <url>http://snapshots.maven.codehaus.org/maven2/</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <releases>
> <enabled>false</enabled>
> </releases>
> </pluginRepository>
> </pluginRepositories>
>
> You may also add a plugin group element in your settings. (can't
> remember how - but there is some information about it in the mail list
> archive)
>
> Hope this will help
>
> Regards
>
> Raphaël
>
>
>
>
> 2006/3/21, SiD <tourment> < [EMAIL PROTECTED]>:
> >
> > Hey,
> >
> > I just installed Maven 2 from http://maven.apache.org/
> >
> > I want to use the Maven Jalopy Plugin, I followed this link :
> > http://mojo.codehaus.org/jalopy-maven-plugin/howto.html
> >
> > I tried to add, in my pom.xml :
> >
> >
> > <project>
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> > <artifactId>jalopy-maven-plugin</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </plugin>
> > </plugins>
> > </build>
> > </project>
>
>
>
>
> This one is the correct one see
> http://mojo.codehaus.org/jalopy-maven-plugin/howto.html
>
--
SiD <tourment> ( http://guildetourment.free.fr/