在存储库中找不到maven依赖项

Nik*_*ail 2 gwt dependencies extjs gxt maven

我正在尝试运行使用gwt-dev的项目. 当我在终端中创建依赖关系时,说明位于:http://neiliscoding.blogspot.ru/2012/05/how-to-setup-examples-for-use-in-gxt-3.html?showComment = 1362999279386:mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.5.0 -Dpackaging=jar -Dfile='/home/mikhail/????????/libraries/gwt-2.5.0/gwt-dev.jar' 并将依赖项添加到pom.xml:

 <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev</artifactId>
      <version>2.5.0</version>
  </dependency>
Run Code Online (Sandbox Code Playgroud)

玛文说:

    [WARNING] You should not declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
Downloading: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/2.5.0/gwt-dev-2.5.0-linux-libs.zip
[INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:linux-libs:2.5.0' in repository central (http://repo1.maven.org/maven2)
Run Code Online (Sandbox Code Playgroud)

否则如果我删除它maven说:

[INFO] using GWT jars from project dependencies : 2.5.0
Downloading: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/2.5.0/gwt-dev-2.5.0-linux-libs.zip
[INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:linux-libs:2.5.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
Run Code Online (Sandbox Code Playgroud)

所以我在两种情况下都有Build错误.如何应对这种情况?请帮帮我.

我没有解决这个问题,但我刚刚发现我使用了1.2版本的maven插件.我不是害羞这是主要问题,但无论如何我还是要处理它.所以,sinse我根据你的第一个链接添加了这个插件,maven drop build错误:`

[INFO] Scanning for projects...
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from [org.codehaus.mojo:gwt-maven-plugin:2.5.1-rc1] found in catalog remote
[WARNING] Property module is missing. Add -Dmodule=someValue
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Archetype org.codehaus.mojo:gwt-maven-plugin:2.5.1-rc1 is not configured
    Property module is missing.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Mar 12 15:18:50 MSK 2013
[INFO] Final Memory: 27M/428M
Run Code Online (Sandbox Code Playgroud)

`顺便说一句,我使用intellij IDEA

app*_*tup 6

很久以前,GWT停止为windows,linux和mac维护独立的平台依赖库.GWT 1.7是最后一个依赖平台的库.所以"linux-libs"你的错误没有意义.我猜你正在使用一个非常古老的gwt-maven-plugin.

  1. 转到最新的gwt-maven-plugin.
  2. 使用<scope>provided</scope>用于GWT-dev的依赖性,以避免它被推入WEB-INF/lib中(无害的,但冗余)
  3. 使用全局/中央存储库而不是在本地安装用户存储库.
  4. 您也可以在这里开始使用GWT样本进行maven项目.

注意 - 您的查询可能与NetBeans + GWT 2.2.0 + Maven编译问题重复/相似

编辑新的GWT版本

GWT 2.5.1已经发布并且还注意gwt-maven-plugin2.5.0(比GWT落后1步:)