gwt-maven-pluginを使用してプロジェクトをコンパイルしようとしています。スプリングツールスイートのEclipse4.2にMaven3.0.3をインストールしています。
ただし、プラグインはmaven2.1を使用したいと言っています。maven 3.xを使用しても問題はないと確信していますよね?
[artifact:mvn] [INFO]'org.codehaus.mojo:gwt-maven-plugin'のバージョンの解決中にエラーが発生しました:プラグインにはMavenバージョン2.1が必要です
私のプラグイン定義:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.4.0</version>
<executions>
<execution>
<configuration>
<module>ally.mc.beal</module>
<gen>gwt-generated</gen>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
gwtコンパイルをトリガーするために使用した私のantターゲット:
<project name="AllyMcBeal"
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<path id="maven-ant-tasks.classpath" path="maven/maven-ant-tasks-2.1.3.jar" />
...
<target name="gwt.compile">
<artifact:mvn>
<arg value="gwt:compile" />
</artifact:mvn>
</target>
...
</project>
- Maven 2.1をインストールする必要がありますか?
- または、Maven 3.xを使用するように強制する方法はありますか?
- または、構成に情報がありませんか?