2017-06-29 73 views
5

我想提出的Weblogic庫到本地存儲庫中我有Weblogic的版本是安裝在我的工作站12.1.2(用於構建自動化和依賴管理安裝和配置Maven)。Maven的錯誤:把Weblogic的庫到本地存儲庫

我運行此命令:

mvn -X com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=C:\Oracle\product\11.2.0\client_x86 -Doracle-maven-sync.testingOnly=false 

,但我得到這個錯誤:

[ERROR] Failed to execute goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push (default-cli) on project standalone-pom: Synchronization execution failed: 
No resources were processed by the sync plugin -> [Help 1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.oracle.maven:oracle-maven-sync:12.2.1-2-0:push (default-cli) 
on project standalone-pom: Synchronization execution failed 
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 
     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:116) 
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 
     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 
     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) 
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) 
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) 
     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) 
     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) 
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:606) 
     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 
     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 
     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 
     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 
Caused by: org.apache.maven.plugin.MojoExecutionException: Synchronization execution failed 
     at com.oracle.maven.sync.ODMPushMojo.execute(ODMPushMojo.java:242) 
     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 
     ... 20 more 
Caused by: com.oracle.maven.sync.SyncException: No resources were processed by the sync plugin 
     at com.oracle.maven.sync.ODMPusher.handleError(ODMPusher.java:458) 
     at com.oracle.maven.sync.ODMPusher.push(ODMPusher.java:117) 
     at com.oracle.maven.sync.ODMPushMojo.execute(ODMPushMojo.java:240) 
     ... 22 more 
[ERROR] 
[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/MojoExecutionException 

C:\Users\carbonell> 

回答

0

你ORACLE_HOME點到Oracle數據庫驅動程序。我認爲你需要將它指向Oracle中間件(又名Weblogic)目錄。

0

檢查您參考WebLogic的圖書館從Maven作爲一個依賴於以下方式:

<dependency> 
    <groupId>com.oracle.weblogic</groupId> 
    <artifactId>weblogic-server-pom</artifactId> 
    <version>12.1.2-0-0</version> 
    <type>pom</type> 
    <scope>provided</scope> 
</dependency> 

然後,你一定要試試這個,from this reference

mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=%MW_HOME% -Doracle-maven-sync.testingOnly=false 

如果實在不行,也見this very related issue