私のプロジェクトではGWT1.7を使用していますが、今度はそれを2.4にアップグレードしたいと思います。また、プロジェクトのビルドにはMaven1.6を使用しています。すべてのpom.xmlファイルを次のように変更しました。
<properties>
<gwt.version>2.4.0</gwt.version>
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
今、私がプロジェクトをビルドしようとすると、エラーでクラッシュします:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] artifact not found - Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.4.0 -Dclassifier=linux-libs -Dpackaging=zip -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.4.0 -Dclassifier=linux-libs -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
com.google.gwt:gwt-dev:zip:2.4.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
smartgwt-maven (http://www.smartclient.com/maven2),
repo.pentaho.org (http://repository.pentaho.org/artifactory/pentaho),
java-net-maven2 (http://download.java.net/maven/2),
thirdparty.pentaho.org (http://repository.pentaho.org/artifactory/thirdparty),
Octo Technology Nexus (http://forge.octo.com/nexus/content/groups/public),
codehaus-maven-repo (http://repository.codehaus.org/org/codehaus/mojo/)
ファイルgwt-2.4.0.zipとgwt-servlet-2.4.0.jarをダウンロードし、両方をmvnインストールしようとしましたが、.m2 / repository / com / google / gwt/4にあります。ディレクトリ:gwt、gwt-dev、gwt-servlet、gwt-user、これらはすべてディレクトリ内に2.4.0カテゴリがあります(一部には古い1.7.0もあります)が、ビルドエラーは引き続き表示されます。
アップデート
バージョンを<gwt.version>2.5.0-rc1</gwt.version>
に変更し、mavenビルドを開始しました。mvnが必要なパッケージをダウンロードしているのを見ましたが、再び表示されます。
com.google.gwt:gwt-dev:jar:2.5.0-rc1
見つかりません。グーグルのウェブサイトからgwt-2.5.0.zipをダウンロードしましたが、中にはたくさんの.jarファイルがありますが、どれをインストールすればよいですか?