用maven运行web服务时出的错误
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>f:
F:\>cd F:\SOAP\chap03\rest-get\endpoint-servlet
F:\SOAP\chap03\rest-get\endpoint-servlet>mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------
[INFO] Building SERVLET ENDPOINT
[INFO] task-segment: [install]
[INFO] ------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\SOAP\chap03\rest-get\endpoint-serv
let\src\main\resources
[INFO] ------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) glassfish:javaee:jar:system
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=glassfish -DartifactId=javaee -Dversion
=system -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=glassfish -DartifactId=javaee -Dversion=s
ystem -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) soabook:chap03-restget-endpoint-servlet:war:1.0
2) glassfish:javaee:jar:system
----------
1 required artifact is missing.
for artifact:
soabook:chap03-restget-endpoint-servlet:war:1.0
from the specified remote repositories:
soaj (http://soaj.javector.com/maven-repo),
ibiblio (http://www.ibiblio.org/maven2),
central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Mar 25 18:47:16 CST 2010
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------
F:\SOAP\chap03\rest-get\endpoint-servlet>
那位好心人能帮我一下,这里报的错具体是要我做什么,意思不是全明白。
希望能教我怎么去解决这个问题,感激不尽!
[解决办法]
请在F:\SOAP\chap03\rest-get\endpoint-servlet\pom.xml中将
<dependencies>
<dependency>
<groupId>glassfish</groupId>
<artifactId>javaee</artifactId>
<version>system</version>
<scope>system</scope>
<systemPath>${glassfish.home/lib/javaee.jar</systemPath>
</dependency>
</dependencies>
改为
<dependencies>
<dependency>
<groupId>glassfish</groupId>
<artifactId>javaee</artifactId>
<version>system</version>
<scope>system</scope>
<systemPath>${glassfish.home/glassfish/lib/javaee.jar</systemPath>
</dependency>
</dependencies>
就可以了;其它目录中的例子可照此办理。