初次接触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的重要中文文档,包括“Jetspeed2之安装配置.doc”、“Jetspeed2总结.docx”以及“JetSpeed2开发文档的中文翻译.pdf”,这些文档对于理解和使用Jetspeed2具有极高的价值。 首先,我们...
Jetspeed就像是中心的控制器,可以很方便地以各种形式展示那些来自不同数据源的数据。 Apache开源组织的企业门户项目,现有两个版本:jetspeed1与jetspeed2。由于jetspeed1在设计上的“缺陷”,现在已经升级到...
- **数据集成**:JetSpeed能够与外部数据源建立连接,方便地获取并展示数据。 - **用户界面定制**:支持个性化用户体验,允许用户根据个人喜好调整门户界面。 - **内置服务**:包括缓存、持久化存储和用户认证等,...
在提供的压缩包文件中,"jetspeed1资料.zip"可能包含了Jetspeed 1的相关文档、源代码、示例和开发指南,而"Jetspeed2资料.rar"则可能包含Jetspeed 2的更新内容、教程和案例研究。这些资源对于想要学习和使用Jetspeed...
首先,Jetspeed 的主要功能是提供一个可定制化的企业门户框架,它允许开发人员整合各种内容、应用和服务到一个统一的界面。这种集中式的访问控制和个性化配置对于提升工作效率和用户体验至关重要。 在 Jetspeed 中...
5. **内容管理系统**:Jetspeed内建了内容管理系统,可以用于发布、管理和检索组织内部的文档和其他信息。文档中会涵盖如何使用和配置这一系统。 6. **集成其他系统**:由于Jetspeed遵循标准,因此它能够与多种其他...
"nps2D2C.tmp.pdf"、"nps6E20.tmp.pdf"可能是关于Jetspeed 2的教程文档或技术资料,而"门户总结.ppt"很可能是一个关于Jetspeed 2门户应用的总结报告,包含了项目实施的实践经验、遇到的问题及解决方案等。...
它支持RSS、XML等数据源,可以轻松集成其他CMS系统,如Joomla、Drupal等。 7. **性能优化** 为了提高性能,Jetspeed2支持缓存机制,可以缓存portlet的输出,减少服务器负担。同时,其架构设计也考虑了高并发和大...
升级JetSpeed2时,需要特别注意保留旧版本中的用户信息及其他数据。这通常涉及到数据迁移、配置文件的更新以及确保新版本与现有环境兼容等方面的工作。升级的具体步骤可能因不同版本之间的差异而有所不同。 #### 三...
2. 输入项目名称,选择JetSpeed作为目标运行时,并指定portlet API版本为JSR168。 3. 创建portlet类,实现`javax.portlet.Portlet`接口,编写`doView`、`doEdit`等生命周期方法。 portlet开发: 1. Portlet配置:在...
1. Create New Sessions upon Login:默认情况下,当用户通过Jetspeed认证登录时,不会创建新的session,而是将guest用户的session转移到验证过的用户上。如果希望在登录时创建新session,可以将该选项设置为true。...
此外,也可以选择直接从ASF(Apache软件基金会)的Subversion资源库下载发布资源,或者使用SVN客户端工具检出源码。 接下来,配置构建环境是至关重要的。所有设置应在其工程根目录下的一个文件中定义:`jetspeed-...
它支持portlet(小部件)的概念,portlet是一种可以嵌入到门户页面上的自包含应用程序,能够提供各种功能,如新闻显示、天气预报、日历、电子邮件等。JetSpeed的portlet容器管理这些portlet的生命周期,确保它们在...
### Jetspeed安装与Portlet开发知识点详解 #### 一、概述 Jetspeed是一款基于Java的企业门户框架,由Apache Software Foundation维护。它支持多种标准,包括JSR 168(Portlet规范)。本文档旨在详细介绍如何在个人...
通过对jetspeed2样式的开发文档进行深入分析,我们可以了解到jetspeed2样式的开发不仅需要掌握基本的前端技术如Velocity和CSS,还需要熟悉jetspeed2框架本身的特点。布局样式的开发涉及到多个文件的配置与编写,而...
在深入研究Jetspeed的源代码时,开发者可以了解其背后的架构设计原则,如MVC模式的应用、portlet生命周期管理、安全机制实现等,这对于提升企业级应用开发能力具有重要价值。同时,源代码分析也帮助开发者更好地理解...
6. 部署portlet到Jetspeed服务器上,可以通过修改Jetspeed的portlet目录或使用Jetstream管理界面进行部署。 在开发portlet时,需要了解JSR-168或JSR-286标准,它们定义了portlet的API和生命周期,是portlet开发的...
在使用Jetspeed2进行门户开发时,理解这些技术概念和标准至关重要。通过熟练掌握这些知识,开发者可以有效地构建出功能强大、易于维护的门户解决方案,满足企业的各种需求。同时,Jetspeed2的灵活性和开放性也使其...