11

weblogic アプリケーション サーバーをインストールするために、次のリンクを使用して、または oracle から取得した 2 つのファイルを解凍しました。

http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev.zip http://download.oracle.com/otn/nt/middleware/12c/wls/1212/wls1212_dev_supplemental.zip

..このページにあります。

両方のファイルを解凍しただけで、自動的に同じフォルダーに解凍されます。MW_HOME環境変数とJAVA_HOME環境変数をそれぞれ解凍フォルダーと Java 7 JDK の場所を指すように設定して、ファイルを実行したところconfigure.cmd、正常に終了しました。

問題は、このページの指示に従った場合、このページが示すのと同じ結果に到達できないことです。これらの手順をここにまとめました: (ORACLE_HOMEは と同じでMW_HOME、どちらもインストール フォルダを指しています。)

%ORACLE_HOME%/wlserver/server/bin/setWLSEnv
cd %ORACLE_HOME%/oracle_common/plugins/maven/com/oracle/maven/oracle-maven-sync/12.1.2
mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar
mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=D:/oracle_home
mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0

はどこoracle-maven-sync.oracleHomeですかThe path to the Oracle home that you wish to populate the Maven repository from.。その基本的にはディレクトリを持つ Weblogic ディレクトリwlserverです。

問題は、最後の行 (インストールされたプラグインに説明を求める行) に次のエラー メッセージが表示されることです (マスクされた IP は無視してください。この質問では手動でマスクしました)。

[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-help-plugin:2.2:describe (default-cli) @ standalone-pom ---
[WARNING] The POM for com.oracle.weblogic:weblogic-maven-plugin:jar:12.1.2-0-0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.775 s
[INFO] Finished at: 2014-05-04T13:00:03+02:00
[INFO] Final Memory: 7M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.2:describe (default-cli) on project standalone-pom: Plugin does not exist: Plugin could not be found, please check its coordinates fo
 typos and ensure the required plugin repositories are defined in the POM
[ERROR] com.oracle.weblogic:weblogic-maven-plugin:maven-plugin:12.1.2-0-0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
[ERROR] snapshots (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true),
[ERROR] central-se (http://x.x.x.x:xxxx/artifactory/plugins-release, releases=true, snapshots=false),
[ERROR] snapshots-se (http://x.x.x.x:xxxx/artifactory/plugins-snapshot, releases=true, snapshots=true)
[ERROR] -> [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/MojoFailureException

これがネットワークの問題ではないと思う理由は、以前にこのプラグインを正常にインストールしたことがあるということですが、どのように正確に覚えていないので、いくつかの手順が欠落している可能性がありますか?

どうすればこれを解決できますか? 私の目標は、次の方法でMaven から weblogic のライブラリを依存関係として参照できるようにすることです。

<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>
4

2 に答える 2

1

WebLogic 12.1.2 ドキュメント ページに従って、次の手順に従います。

  1. Oracle Maven 同期プラグインをインストールし、プッシュ ゴールを実行します。

    • ディレクトリをORACLE_HOME\oracle_common\plugins\maven\com\oracle\maven\oracle-maven-sync\12.1.2に変更します。

    • mvn install:install-file -DpomFile=oracle-maven-sync.12.1.2.pom -Dfile=oracle-maven-sync.12.1.2.jar.

    • mvn com.oracle.maven:oracle-maven-sync:push -Doracle-maven-sync.oracleHome=c:\oracle\middleware\oracle_home.

  2. Maven の help:describe ゴールを使用して、プラグインが正常にインストールされたかどうかを検証できます。詳細については、Apache ヘルプ プラグインの目標の記述に関するドキュメントを参照してください。

    • mvn help:describe -DgroupId=com.oracle.weblogic -DartifactId=weblogic-maven-plugin -Dversion=12.1.2-0-0
于 2014-05-07T05:57:53.180 に答える