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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to