Hi,

I have a problem running checkstyle.
It should not be not a problem of repository because I download
it successfully.

I got this error (complete trace at the end of the e-mail):
The plugin 'org.apache.maven.plugins:maven-checkstyle-plugin' does not exist or no valid version could be found

What do I miss?

Xavier.

PS
My pom is:
<project>
[...]
   <dependencies>
[...]
       <dependency>
           <groupId>checkstyle</groupId>
           <artifactId>checkstyle</artifactId>
           <version>4.1</version>
           <scope>test</scope>
       </dependency>
   </dependencies>
<build>
[...]
       <plugins>
[...]
           <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>cobertura-maven-plugin</artifactId>
               <executions>
                   <execution>
                       <goals>
                           <goal>clean</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>
       </plugins>
   </build>
<reporting>
[...]
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-checkstyle-plugin</artifactId>
           </plugin>
</plugins>
   </reporting>
</project>

Trace including successful download:
D:\tmp\sandbox\my-app>mvn test
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Test Maven
[INFO]    task-segment: [test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/checkstyle/checkstyle/4.1/checkstyle-4.1.pom
799b downloaded
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/checkstyle/checkstyle/4.1/checkstyle-4.1.jar
523K downloaded
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\tmp\sandbox\my-app\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.mycompany.app.AppTest
main
Hello World!
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec <<< FAILURE!

Results :
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Oct 20 14:09:09 CEST 2006
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------

D:\tmp\sandbox\my-app>mvn checkstyle:checkstyle
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-checkstyle-plugin' does not exist or no [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Oct 20 14:09:31 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to