我突然收到一條錯誤消息,發現缺少3個依賴關係:gwt-user.jar,gwt-dev.jar和gxt.jar。所有的瓶子都在我的本地回購:缺少依賴關係
dage [~/.m2/repository] $ ls -l com/google/gwt/gwt-user
insgesamt 12
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 14:55 1.5.3
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 11:10 1.6.4
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 16:10 2.0.0
dage [~/.m2/repository] $ ls -l com/google/gwt/gwt-dev/
insgesamt 12
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 14:55 1.5.3
drwxr-xr-x 3 dage Domain Users 4096 2010-01-13 11:02 1.6.4
drwxr-xr-x 2 dage Domain Users 4096 2010-01-15 09:58 2.0.0
dage [~/.m2/repository] $ ls -l com/extjs/gxt/
insgesamt 32
drwxr-xr-x 2 dage Domain Users 4096 2010-01-14 14:29 2.0.1
drwxr-xr-x 2 dage Domain Users 4096 2010-01-21 12:18 2.1.0
-rw-r--r-- 1 dage Domain Users 288 2010-01-21 12:18 maven-metadata-com.extjs.xml
-rw-r--r-- 1 dage Domain Users 40 2010-01-21 12:18 maven-metadata-com.extjs.xml.sha1
-rw-r--r-- 1 dage Domain Users 323 2010-01-21 12:01 maven-metadata-local.xml
-rw-r--r-- 1 dage Domain Users 288 2010-01-21 12:18 maven-metadata.xml
-rw-r--r-- 1 dage Domain Users 32 2010-01-21 12:18 maven-metadata.xml.md5
-rw-r--r-- 1 dage Domain Users 40 2010-01-21 12:18 maven-metadata.xml.sha1
和聚甲醛項是:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>system</scope>
<systemPath>${gwt.home}/gwt-user.jar</systemPath>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>system</scope>
<systemPath>${gwt.home}/gwt-dev.jar</systemPath>
</dependency>
<!-- Needed for ExtGWT -->
<dependency>
<groupId>com.extjs</groupId>
<artifactId>gxt</artifactId>
<version>${gxt.version}</version>
<scope>provided</scope>
</dependency>
<properties>
<gwt.version>2.0.0</gwt.version>
<gxt.version>2.1.0</gxt.version>
</properties>
我不所做的任何行家變化和POM也沒有改變。我剛剛添加並修改了java/css/hml文件。任何想法,什麼是錯的?
編輯:確切的消息是
Missing:
----------
1) com.google.gwt:gwt-user:jar:2.0.0
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-user -Dversion=2.0.0 -Dpackaging=jar -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-user -Dversion=2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
.
.
.
和我建立在命令行中的項目。
什麼是確切的消息? – Bozho 2010-02-01 11:12:10
查看我編輯的帖子。 – cupakob 2010-02-01 12:13:50