You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "SiD <tourment>" <si...@gmail.com> on 2006/03/21 12:29:57 UTC
Maven 2 : Jalopy plugin
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>maven-jalopy-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
</project>
<project>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
</project>
But, always the same error :
D:\Documents and Settings\sid\toto>mvn site
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [site]
[INFO] -------------------------------------------------------------------------
---
[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:
central (http://repo1.maven.org/maven2)
[INFO] -------------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO] -------------------------------------------------------------------------
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
[INFO] Final Memory: 1M/4M
[INFO] -------------------------------------------------------------------------
---
Someone can help me ?
Thanks.
Re: Maven 2 : Jalopy plugin
Posted by Stefan Fritz <sf...@gmx.at>.
Teh following works for me:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<!--<version>1.0-SNAPSHOT</version>-->
<configuration>
<!-- convention default:
$basedir/src/main/resources/jalopy.xml-->
<convention>c:/dev/var/configurations/jalopy.xml</convention>
</configuration>
<executions>
<execution>
<id>format-main-src</id>
<!--<phase>compile</phase>-->
<phase>process-sources</phase>
<configuration>
<!--<outputFile>${project.build.directory}/checkstyle-result.xml</outputFile>-->
</configuration>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
HTH
Stefan
SiD <tourment> wrote:
>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>maven-jalopy-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> </plugin>
> </plugins>
> </build>
></project>
>
><project>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>jalopy-maven-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> </plugin>
> </plugins>
> </build>
></project>
>
>But, always the same error :
>
>D:\Documents and Settings\sid\toto>mvn site
>
>[INFO] Scanning for projects...
>[INFO] -------------------------------------------------------------------------
>---
>[INFO] Building Maven Quick Start Archetype
>[INFO] task-segment: [site]
>[INFO] -------------------------------------------------------------------------
>---
>[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:
> central (http://repo1.maven.org/maven2)
>
>
>[INFO] -------------------------------------------------------------------------
>---
>[INFO] For more information, run Maven with the -e switch
>[INFO] -------------------------------------------------------------------------
>---
>[INFO] Total time: < 1 second
>[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
>[INFO] Final Memory: 1M/4M
>[INFO] -------------------------------------------------------------------------
>---
>
>
>Someone can help me ?
>
>Thanks.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 : Jalopy plugin
Posted by "SiD <tourment>" <si...@gmail.com>.
It works, THANKS !
On 3/21/06, Piéroni Raphaël <ra...@gmail.com> wrote:
>
> 2006/3/21, SiD <tourment> <si...@gmail.com>:
> >
> > Ok, it still doesn't works,
> >
> > my pom.xml :
>
>
> [SNIP]
>
> I found that :
> > https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
> >
> > How can i use it ?
>
>
> I checked. The jalopy plugin was never released even never have deployed a
> snapshot version.
> So you have to checkout the source code
> svn checkout
> http://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
> <directory>
> cd <directory>
> mvn install -DupdateReleaseInfo=true
>
> then retry with your project.
>
> Hope this will help
>
> Raphaël
>
>
> [snip]
> >
>
--
SiD <tourment> ( http://guildetourment.free.fr/
Re: Maven 2 : Jalopy plugin
Posted by Piéroni Raphaël <ra...@gmail.com>.
2006/3/21, SiD <tourment> <si...@gmail.com>:
>
> Ok, it still doesn't works,
>
> my pom.xml :
[SNIP]
I found that :
> https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
>
> How can i use it ?
I checked. The jalopy plugin was never released even never have deployed a
snapshot version.
So you have to checkout the source code
svn checkout
http://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/<directory>
cd <directory>
mvn install -DupdateReleaseInfo=true
then retry with your project.
Hope this will help
Raphaël
[snip]
>
Re: Maven 2 : Jalopy plugin
Posted by "SiD <tourment>" <si...@gmail.com>.
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 <ra...@gmail.com> 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> < sidcity@gmail.com>:
> >
> > 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/
Re: Maven 2 : Jalopy plugin
Posted by Piéroni Raphaël <ra...@gmail.com>.
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> <si...@gmail.com>:
>
> 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