Hello guys,
when I want to compile my project,
there is always thrown an exception, that
the plugin cannot be verified.

I tried to compile the project with mvn -e gwt:gwt.
The pom looks the following.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.foo.Bar</groupId>
        <artifactId>foo-bar</artifactId>
        <packaging>war</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>foo-bar</name>
        <url>http://joepoe.blogspot.com/</url>
        <repositories>
                <repository>
                        <id>gwt-maven</id>
                        
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
                </repository>
        </repositories>
        <pluginRepositories>
                <pluginRepository>
                        <id>gwt-maven</id>
                        
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
                </pluginRepository>
                <pluginRepository>
                        <id>internal</id>
                        
<url>http://build-1.rack.sourcelabs.com/repos/internal/</url>
                </pluginRepository>
        </pluginRepositories>
        <dependencies>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <version>1.5.2</version>
                        <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-servlet</artifactId>
                        <version>1.5.2</version>
                        <scope>runtime</scope>
                </dependency>
                <dependency>
                        <groupId>com.googlecode.gwtx</groupId>
                        <artifactId>GWTx</artifactId>
                        <version>20070605</version>
                </dependency>
        </dependencies>
        <profiles>
                <profile>
                <profile>
                        <id>gwt-1.5.2-windows</id>
                        <activation>
                                <os>
                                        <family>windows</family>
                                </os>
                        </activation>
                        <properties>
                                
<google.webtoolkit.home>${env.GWT_HOME}/gwt-windows-1.5.2
                                        </google.webtoolkit.home>
                        </properties>
                        <dependencies>
                                <dependency>
                                        <groupId>com.google.gwt</groupId>
                                        <artifactId>gwt-dev-windows</artifactId>
                                        <version>1.5.2</version>
                                        <scope>system</scope>
                                        
<systemPath>${google.webtoolkit.home}/gwt-dev-windows.jar</systemPath>
                                </dependency>
                        </dependencies>
                </profile>
        </profiles>
        <build>
                <finalName>foo-bar</finalName>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>2.0</version>
                                <configuration>
                                        <source>1.5</source>
                                        <target>1.5</target>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>com.totsp.gwt</groupId>
                                
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
                                <configuration>
                                        <logLevel>INFO</logLevel>
                                        
<runTarget>com.foo.Bar/Bar.html</runTarget>
                                        <style>OBF</style>
                                        <noServer>true</noServer>
                                        <port>8080</port>
                                        <!-- <debugPort>8000</debugPort> -->
                                        <!-- 
<contextXml>src/main/webapp/META-INF/context.xml</contextXml>  -->
                                        <!-- 
<webXml>/src/main/webapp/WEB-INF/web.xml</webXml> -->
                                        <!--  
<tomcat>../apps/apache-tomcat-6.0.14</tomcat>  -->
                                        <compileTargets>
                                                <param>com.foo.Bar</param>
                                        </compileTargets>
                                </configuration>
                                <executions>
                                        <execution>
                                                <goals>
                                                        
<!--<goal>generateClientBeans</goal>-->
                                                        <goal>mergewebxml</goal>
                                                        <goal>compile</goal>
                                                        <goal>testGwt</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-war-plugin</artifactId>
                                <version>2.0</version>
                                <configuration>
                                        <webXml>target/web.xml</webXml>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>

Do you know how it will compile?
The tracktraces you can see here:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gwt'.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: 
org.apache.maven.plugins - IGNORING.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.codehaus.mojo 
- IGNORING.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-compiler-plugin
POM Location: 
C:\Users\I056462\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compiler-plugin-2.0.pom

Reason: Not a v4.0.0 POM. for project 
org.apache.maven.plugins:maven-compiler-plugin at 
C:\Users\I056462\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compiler-plugin-2.0.pom

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project 
for plugin 'org.apache.maven.plugins:maven-compiler-plugin': Not a v4.0.0 POM. 
for project org.apache.maven.plugins:maven-compiler-plugin at 
C:\Users\I056462\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compiler-plugin-2.0.pom
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1291)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1486)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy 
AggregationNeeds(DefaultLifecycleExecutor.java:405)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build 
project for plugin 'org.apache.maven.plugins:maven-compiler-plugin': Not a 
v4.0.0 POM. for project org.apache.maven.plugins:maven-compiler-plugin at 
C:\Users\user\.m\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compiler-plugin-2.0.pom
        at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:281)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:197)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
        ... 14 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 
POM. for project org.apache.maven.plugins:maven-compiler-plugin at 
C:\Users\I0564
62\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compi
ler-plugin-2.0.pom
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1581)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1553)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:560)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
        at 
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
        ... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Oct 13 22:02:29 EST 2008
[INFO] Final Memory: 1M/254M
[INFO] ------------------------------------------------------------------------
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

Reply via email to