3
回答
利用Maven生成并部署jetspeed2门户问题。
注册华为云得mate10,2.9折抢先购!>>>   

版本信息:

Maven version --> 3.1.0

jdk --> 1.6

tomcat --> 6.0.37

我是按照官方一步步来得,http://portals.apache.org/jetspeed-2/tutorial/01/genapp.html

执行到如下命令时:

mvn jetspeed:mvn -Dtarget=all


出错了,错误信息如下:

[INFO] skip non existing resourceDirectory F:\j2\jetexpress\jetexpress-portal\src\conf
[INFO] Copying 1 resource to ../resources
[INFO]
[INFO] --- jetspeed-deploy-maven-plugin:2.2.2:deploy (deploy) @ jetspeed-mvn-portal-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.766s
[INFO] Finished at: Tue Dec 17 11:33:31 CST 2013
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.2:
deploy (deploy) on project jetspeed-mvn-portal-pom: Execution deploy of goal org.apache.portals.
jetspeed-2:jetspeed-deploy-maven-plugin:2.2.2:deploy failed: Plugin org.apache.portals.jetspeed-
2:jetspeed-deploy-maven-plugin:2.2.2 or one of its dependencies could not be resolved: Failed to
 collect dependencies at org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:jar:2.2.2 ->
 org.apache.portals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT: Failed to read artifact descri
ptor for org.apache.portals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT: Failure to find org.ap
ache.portals.tutorials:jetexpress:pom:1.0-SNAPSHOT in http://repository.apache.org/snapshots was
 cached in the local repository, resolution will not be reattempted until the update interval of
 apache.snapshots has elapsed or updates are forced -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.portal
s.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.2:deploy (deploy) on project jetspeed-mvn-portal-p
om: Execution deploy of goal org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.2:de
ploy failed: Plugin org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.2 or one of i
ts dependencies could not be resolved: Failed to collect dependencies at org.apache.portals.jets
peed-2:jetspeed-deploy-maven-plugin:jar:2.2.2 -> org.apache.portals.tutorials:jetexpress-portal:
war:1.0-SNAPSHOT


问题好像就是执行jetspeed-deploy-maven时出的错,请各位有人帮忙看看,谢谢了。

下面还有一段异常,我也贴出:

Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.portals.jetspeed
-2:jetspeed-deploy-maven-plugin:2.2.2 or one of its dependencies could not be resolved: Failed t
o collect dependencies at org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:jar:2.2.2 -
> org.apache.portals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPlu
ginDependenciesResolver.java:204)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultM
avenPluginManager.java:357)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMa
venPluginManager.java:325)
        at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginMa
nager.java:180)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManag
er.java:83)
        ... 20 more
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect depend
encies at org.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:jar:2.2.2 -> org.apache.por
tals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(Defau
ltDependencyCollector.java:292)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultR
epositorySystem.java:317)
        at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPlu
ginDependenciesResolver.java:192)
        ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact de
scriptor for org.apache.portals.tutorials:jetexpress-portal:war:1.0-SNAPSHOT
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultA
rtifactDescriptorReader.java:364)
        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDesc
riptor(DefaultArtifactDescriptorReader.java:217)

举报
无量
发帖于4年前 3回/860阅
顶部