自建jetspeed发布时找不到oracle数据源的问题

问题描述

初次接触jetspeed 按照官方的biuld guid生成了一个portal ,准备发布到tomcat上但执行命令过程中出现错误,似乎是要去中央仓库下载oracle的数据源(classes12.jar),中央仓库是没有这个的,为此已经用nexus把oracle里的classes12.jar发布到了本地仓库(3rd party)但程序并没有访问本地仓库,貌似直接去中央仓库找jar包。不知哪里配置错了。以下是出错信息d:workspacemavenDemo-HelloPortalhello>mvn org.apache.portals.jetspeed-2:jetspeed-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-pom ---[WARNING] The POM for org.springframework:spring-ojb:jar:2.0-rc2 is missing, nodependency information available[WARNING] The POM for com.oracle:classes12:jar:10.2.0.1.0 is missing, no dependency 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-plugin:2.2.2:init (unpack) on project jetspeed-mvn-portal-pom: 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 its 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 elapsed or updates are forced -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2:init (unpack) on project jetspeed-mvn-portal-pom: 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 its 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 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.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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 its 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 elapsed or updates are forced at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:82) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 moreCaused by: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.portals.jetspeed-2:jetspeed-db-maven-plugin:2.2.2 or one of its 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 elapsed or updates areforced at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:215) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:353) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:321) at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:175) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:78) ... 20 moreCaused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find com.oracle:classes12:jar:10.2.0.1.0 in http://repo1.maven.org/maven2 wascached 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.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:395) at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:207) ... 24 moreCaused by: org.sonatype.aether.transfer.ArtifactNotFoundException: 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 updateinterval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:190) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.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 read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException[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 switch.[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 read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptiond:workspacemavenDemo-HelloPortalhello>以下是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到oracleproduct10.2.0db_1jdbclib路径下,mvn install 就好了(发布第三方jar到本地库)我是你同桌......http://www.oschina.net/question/218202_34381

时间: 2024-09-17 04:49:09

自建jetspeed发布时找不到oracle数据源的问题的相关文章

急!!!为什么我vs2010连接mysql时找不到mysql数据源??

问题描述 vs2010连接mysql,我打开mysql服务,但是在服务器资源管理器中添加新的数据源,里面没有mysql选项,这是什么原因??? 解决方案 解决方案二:各位大神帮帮忙~~!!!解决方案三:本帖最后由 net_lover 于 2012-05-04 21:11:27 编辑解决方案四:不必用服务器资源管理器,自己在配置文件中写连接字符串,例:<connectionStrings><addname="MySqlConnectionString"connectio

qt c++-QT打包发布,找依赖文件DLL

问题描述 QT打包发布,找依赖文件DLL 5C GPSVC.DLL IESHIMS.DLL.QT打包找依赖文件时这两个文件老是不可以.求大神解答.我已经拷贝了这两个文件.怎么还是不可以?我是按照http://blog.csdn.net/gzshun/article/details/7495488这里面的教程.![图片说明](http://img.ask.csdn.net/upload/201604/14/1460603135_724936.png)![图片说明](http://img.ask.c

服务器-sql2008建订阅发布老是提示路径无效,但是实际是有这个路径呀!!

问题描述 sql2008建订阅发布老是提示路径无效,但是实际是有这个路径呀!! SQL Server 无法将"xx"配置为分发服务器. 执行 Transact-SQL 语句或批处理时发生了异常. (Microsoft.SqlServer.ConnectionInfo) 目标路径 D:Program FilesMicrosoft SQL ServerMSSQL10_50.QXHOUSEDBTEST1MSSQLData 无效. 无法列出目录内容.请指定有效的目标路径. 已将数据库上下文更改

QT的插件机制在程序发布时易出现的问题

qt中对各种格式的图片.数据库.字符编码等都是以插件的机制运行的,使用动态QT库时,在运行时程序会在需要时到指定的文件夹中加载这些插件的DLL,QT中默认为是在QTDIR/4.2.2/PLUGIN中,所以经常在发布程序时,如果机器上没有装过QT,程序会找不到这个文件夹,也就无法使用这些插件,解决办法是:在程序中加入你能找到的一个文件路径,然后把相应插件的文件夹(如imageformats.codecs等)加入到这个路径,通常将你的程序路径设为这个路径,可在程序开始调用qApp->addLibra

项目发布时(vs2008,cs)要包含一个相关的驱动程序(此驱动为exe安装文件),想在安装此项目时一并自动安装驱动程序,可以做到吗?如何做?谢谢

问题描述 项目发布时(vs2008,cs)要包含一个相关的驱动程序(此驱动为exe安装文件),想在安装此项目时一并自动安装驱动程序,可以做到吗?如何做?谢谢 解决方案 解决方案二:这个如果采用默认的安装部署方案貌似无法解决你可以通过自定义安装类的方式来实现解决方案三:1解散原来的安装包,可以反编译安装程序,很多这的工具,然后整体一起做安装2安装完成后,调用驱动安装程序,这个比较简单,但是可以看到2次安装,客户知道你再安装驱动!

奇葩的问提 发布时-奇葩的问提 :VS 发布时 。。。。

问题描述 奇葩的问提 :VS 发布时 .... 如图: 我根本没有Q 盘,在编译程序的时候,他要copy dll 到Q 盘下去...求解释 没有分,求谅解 解决方案 你要找到为什么会执行这些操作的设置,修改一下就 OK 了. VS 不会做这些事,一般都是工程 设置或者相应的配置文件引起的. 解决方案二: 右击要发布的项目文件,然后根据你的版本配置发布路径.估摸你这项目是从哪里拷贝过来的,别人设置的发布路径 解决方案三: 查看你的工程属性中的post build script脚本,是不是添加了什么

qt程序发布时在.pro文件中没有添加使用的库在发布时却要加上?

问题描述 qt程序发布时在.pro文件中没有添加使用的库在发布时却要加上? 解决方案 http://blog.sina.com.cn/s/blog_79ab4be10101p1dk.html

xcode ios应用发布时出现的问题

问题描述 xcode ios应用发布时出现的问题 Archive时报错 must start with a top level dictionary. 之前是itms-90096 在网上找到的解决方法是http://segmentfault.com/q/1010000002973147 然后将Launchimage里图片补齐后 之前的错误还在 还多了一个错误 /Images.xcassets: The launch image set named "LaunchImage" did n

求助 C# 当AutomationId里有符号“-”时 找不到相应元素

问题描述 当AutomationId里有符号"-"时找不到相应元素,拿记事本做例子:找"最大化"按钮,id为Maximize-Restore:AutomationElementnotepadWindow=AutomationElement.RootElement.FindFirst(TreeScope.Children,newPropertyCondition(AutomationElement.ClassNameProperty,"Notepad&quo