0

weblogi-maven-plugin を使用して jwsc タスクを実行しようとすると、エラーが発生します

<plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>weblogic-maven-plugin</artifactId>
            <version>2.9.1</version>
            <executions>
                <execution>
                    <phase>compile</phase>
                    <goals>
                        <goal>jwsc</goal>
                    </goals>
                    <configuration>
                        <contextPath>${basedir}/AccountInqWeb</contextPath>
                        <weblogicHome>C:/u001/isuser/tesbea</weblogicHome>
                    </configuration>
                </execution>
            </executions>
        </plugin>

プロジェクト AccountInqWeb で目標 org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc (デフォルト) を実行できませんでした: 目標 org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc のデフォルトの実行に失敗しました: org.codehaus.mojo:weblogic-maven-plugin:2.9.1:jwsc: weblogic/diagnostics/debug/DebugLogger の実行中に必要なクラスが見つかりませんでした


レルム = プラグイン>org.codehaus.mojo:weblogic-maven-plugin:2.9.1 戦略 = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = ファイル:/C:/Users/darshanp/.m2/リポジトリ/org/codehaus/mojo/weblogic-maven-plugin/2.9.1/weblogic-maven-plugin-2.9.1.jar urls[1] = ファイル:/C:/Users/darshanp/.m2/repository/org /codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar URL[2] = ファイル:/C:/Users/darshanp/.m2/repository/ant/ant/1.6.5/ ant-1.6.5.jar urls[3] = file:/C:/Users/darshanp/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar urls[4] = file:/C:/Users /darshanp/.m2/repository/weblogic/webservices/10.3/webservices-10.3.jar 外部インポートの数: 1 インポート: Entry[レルムからのインポート ClassRealm[maven.api, 親: null]]

-------------------------------------------------- ---: weblogic.diagnostics.debug.DebugLogger -> [ヘルプ 1]

4

1 に答える 1

0

最初に、そこにある依存関係としてコードを入力する必要があります。しかし、あなたが気づいてはいけない大きな間違いがあります。この場合、org.codehaus.mojo への 10 から 12c への依存バージョンの weblogic は、weblogic のデプロイでは実行できません。そのためには、「 wlserver_12.1 \ server \ lib 」まで cmd / terminal で移動し、seguinto コマンドを実行する必要があります。

- java-jar-profile wljarbuilder.jar weblogic-maven-plugin

このプラグインにはすべての設定が含まれているため、Weblogic を 100% 使用できます。

次に、それが機能せず、IDE netbeans で次のコマンドを実行しようとする場合は、依存関係を右クリックし、実行後に Declared Dependency をダウンロードします。

于 2012-11-23T15:05:27.350 に答える