初次接触jetspeed 按照官方的biuld guid生成了一个portal ,准备发布到tomcat上
但执行命令过程中出现错误,似乎是要去中央仓库下载oracle的数据源(classes12.jar),中央仓库是没有这个的,为此已经用nexus把oracle里的classes12.jar发布到了本地仓库(3rd party)
但程序并没有访问本地仓库,貌似直接去中央仓库找jar包。不知哪里配置错了。
以下是出错信息
d:\workspace\mavenDemo-HelloPortal\hello>mvn org.apache.portals.jetspeed-2:jetsp
eed-mvn-maven-plugin:mvn -Dtarget=db
[INFO] Scanning for projects...
[INFO]
......省略很多log
......省略很多log
......省略很多log
[INFO] ------------------------------------------------------------------------
[INFO] Building Jetspeed-2 Maven Invoker Configuration for My Portal 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jetspeed-db-maven-plugin:2.2.2:init (unpack) @ jetspeed-mvn-portal-po
m ---
[WARNING] The POM for org.springframework:spring-ojb:jar:2.0-rc2 is missing, no
dependency information available
[WARNING] The POM for com.oracle:classes12:jar:10.2.0.1.0 is missing, no depende
ncy information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.308s
[INFO] Finished at: Thu Dec 15 20:27:25 CST 2011
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR]
Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-db-maven-p
lugin:2.2.2:init (unpack) on project jetspeed-mvn-portal-pom: Execution unpack o
f goal org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2:init failed:
Plugin org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2 or one of i
ts dependencies could not be resolved: Failure to find com.oracle:classes12:jar:
10.2.0.1.0 in http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has elap
sed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2:init (unpack) on pro
ject jetspeed-mvn-portal-pom: Execution unpack of goal org.apache.portals.jetspe
ed-2:jetspeed-db-maven-plugin:2.2.2:init failed: Plugin org.apache.portals.jetsp
eed-2:jetspeed-db-maven-plugin:2.2.2 or one of its dependencies could not be res
olved: Failure to find com.oracle:classes12:jar:10.2.0.1.0 in http://repo1.maven
.org/maven2 was cached in the local repository, resolution will not be reattempt
ed until the update interval of central has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution unpack of
goal org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2:init failed:
Plugin org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2 or one of it
s dependencies could not be resolved: Failure to find com.oracle:classes12:jar:1
0.2.0.1.0 in http://repo1.maven.org/maven2 was cached in the local repository, r
esolution will not be reattempted until the update interval of central has elaps
ed or updates are forced
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:82)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.
portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2 or one of its dependencies cou
ld not be resolved: Failure to find com.oracle:classes12:jar:10.2.0.1.0 in http:
//repo1.maven.org/maven2 was cached in the local repository, resolution will not
be reattempted until the update interval of central has elapsed or updates are
forced
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:215)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPlug
inRealm(DefaultMavenPluginManager.java:353)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPlugi
nRealm(DefaultMavenPluginManager.java:321)
at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(Defa
ultBuildPluginManager.java:175)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:78)
... 20 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure t
o find com.oracle:classes12:jar:10.2.0.1.0 in http://repo1.maven.org/maven2 was
cached in the local repository, resolution will not be reattempted until the upd
ate interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:541)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
facts(DefaultArtifactResolver.java:220)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepe
ndencies(DefaultRepositorySystem.java:395)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.re
solve(DefaultPluginDependenciesResolver.java:207)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to fi
nd com.oracle:classes12:jar:10.2.0.1.0 in http://repo1.maven.org/maven2 was cach
ed in the local repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArti
fact(DefaultUpdateCheckManager.java:190)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:430)
... 27 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] hello portal project .............................. FAILURE [1:33.959s]
[INFO] hello portal ...................................... SKIPPED
[INFO] hello portlet application ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:35.230s
[INFO] Finished at: Thu Dec 15 20:27:25 CST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-mvn-maven-
plugin:2.2.2:mvn (default-cli) on project hello: ...FAILED[code=1]. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
d:\workspace\mavenDemo-HelloPortal\hello>
以下是jetspeed-mvn-portal-pom.xml的主要配置信息(其他默认)
<org.apache.jetspeed.production.jdbc.driver.groupId>com.oracle</org.apache.jetspeed.production.jdbc.driver.groupId>
<org.apache.jetspeed.production.jdbc.driver.artifactId>classes12</org.apache.jetspeed.production.jdbc.driver.artifactId>
<org.apache.jetspeed.production.jdbc.driver.version>10.2.0.1.0</org.apache.jetspeed.production.jdbc.driver.version>
<org.apache.jetspeed.production.database.default.name>oracle10</org.apache.jetspeed.production.database.default.name>
<org.apache.jetspeed.production.database.url>jdbc:oracle:thin:@192.168.1.201:1521:ORCL</org.apache.jetspeed.production.database.url>
<org.apache.jetspeed.production.database.driver>oracle.jdbc.OracleDriver</org.apache.jetspeed.production.database.driver>
<org.apache.jetspeed.production.database.user>shopping</org.apache.jetspeed.production.database.user>
<org.apache.jetspeed.production.database.password>shopping</org.apache.jetspeed.production.database.password>
以下是maven的settings.xml的主要配置信息
<profile>
<id>dev</id>
<repositories>
<repository>
<id>local-nexus</id>
<url>http://localhost:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<!-- activeProfiles
| List of profiles that are active for all builds.
|
<activeProfiles>
<activeProfile>alwaysActiveProfile</activeProfile>
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
</activeProfiles>
-->
<activeProfiles>
<activeProfile>dev</activeProfile>
</activeProfiles>
弄了好久好久,就是不知道哪里有问题.......
问题补充:果然是同桌
frftfgfv 写道
class12.jar这个东西在中央仓库里没有,所以,cmd到oracle\product\10.2.0\db_1\jdbc\lib路径下,mvn install 就好了(发布第三方jar到本地库)
我是你同桌......
http://www.oschina.net/question/218202_34381
相关推荐
Jetspeed就像是中心的控制器,可以很方便地以各种形式展示那些来自不同数据源的数据。 Apache开源组织的企业门户项目,现有两个版本:jetspeed1与jetspeed2。由于jetspeed1在设计上的“缺陷”,现在已经升级到...
在这篇教程中,您将了解如何使用象 JavaServer Pages(JSP)这样的 Web 编程技术开发基于 Jetspeed 的更动态的 portlet,以及如何使内容流入 WML portlet。还将提到几个 Jetspeed 文档中未提及的技巧,它们可以使您...
包含jetspeed1.* 以及 jetspeed2.*的资料 本人找了好久! 希望大家支持!
朋友翻译的Jetspeed2之安装配置.doc,网上找到的JetSpeed2开发文档的中文翻译.pdf 。还有一份Jetspeed2总结.docx是以前公司同事总结的。
自己收集的一些jetspeed资料
学习Jetspeed2时和同事一起对文档进行的简单翻译,适合初学者。
jetspeed2样式的开发文档,汉化的
一步步教你如何建自定义门户,让你轻松掌握JETSPEED,看下对你有帮助没
Jetspeed2之安装配置文档详细说明了jetspeed2安装已经配置,还有常见问题的解决
NULL 博文链接:https://abcity.iteye.com/blog/1446748
Jetspeed安装与portlet开发.pdf
关于Jetspeed一些入门的文档,适合初次接触Jetspeed的用户
基于jetspeed的portlet开发探讨,供大家学习参考!!!!
jetspeed中文文档,包括现在很多中文的jetspeed的介绍,是html形式的
jetspeed-api-2.0的lib包
以一个实例形式讲解基于jetspeed2.0的portlet二次开发。
基于JETSPEED的多portlet流程协作机制研究与实现
Jetspeed2.0最终release版本发布于2005年12月, 可以从以下网址下载源代码和捆绑tomcat的压缩文件: http://www.apache.org/dist/portals/jetspeed-2/ 。 与Jetspeed1.x比较,Jetspeed2.0 (以下简称J2)的架构...
在portal.xml文件中配置一个portlet 配置对应的.psml文件,...Portlet标签库 portlet缓存 Portal管理 Portal中跨域的session管理用的是PortletMessaging Jetspeed-layout部署的一些说明 Jetspeed部署及其部署管理器
Apache的门户技术 Jetspeed2的详细开发文档,包含框架介绍,技术内容,各种入门资源链接等