Мы находимся в процессе обновления с Weblogic 10g до 12c. Часть нашего кода базы WebServices поэтому мы использовали weblogic-maven-plugin
:JWSC для weblogic 12c с Maven
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.5</version>
<configuration>
<contextPath>ws</contextPath>
<keepGenerated>true</keepGenerated>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jwsc</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>${weblogic.version}</version>
<scope>system</scope>
<systemPath>${bea.lib}/weblogic.jar</systemPath>
</dependency>
</dependencies>
</plugin>
ошибка сборки я вижу
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:jwsc (default) on project webService: Execution default of goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:jwsc failed: Plugin org.codehaus.mojo:weblogic-maven-plugin:2.9.5 or one of its dependencies could not be resolved: Failure to find weblogic:webservices:jar:10.3.6 in http://ccicusbuild1/nexus/content/groups/public/ 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]
Deeper осмотр показывает, что модуль имеет зависимость от weblogic:weblogic:10.3.6
и weblogic:webservices:10.3.6
. Как показано в предыдущем коде, я могу переопределить weblogic:weblogic:10.3.6
с weblogic:weblogic:12.1.1
. Проблема в том, что webservices.jar
больше не находится в стороне от weblogic 12c, поэтому мне нечего переопределять зависимость, и я не могу ее исключить.
Страница для weblogic-maven-plugin
(http://mojo.codehaus.org/weblogic-maven-plugin/) упоминает поддержку 12c, но не дает никаких подробностей.
Целью является возможность запуска JWSC через maven. Есть ли настройка плагина, которую я могу сделать, чтобы она работала, или есть еще один плагин, или мне нужно укусить пулю и запустить код с помощью ant-плагина?
Что произойдет, если вы исключите банку webservices? –
Я не знаю, как его исключить. Вы можете исключить зависимости зависимостей (переходные зависимости), но не зависимости плагинов. – pgreen2
Вы пробовали использовать wls-maven-plugin, как упомянуто здесь http://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm –