找不到Weblogic Maven插件 [英] Cannot find weblogic maven plugin

查看:118
本文介绍了找不到Weblogic Maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照本教程安装weblogic插件: http://docs.oracle.com/cd/E21764_01/web .1111/e13702/maven_deployer.htm 现在我可以在本地存储库中看到这个罐子了 但是当我运行mvn weblogic:deploy时,仍然出现此错误:

I follow this tutorial to install weblogic plugin: http://docs.oracle.com/cd/E21764_01/web.1111/e13702/maven_deployer.htm and now I can see this jar in my local repository but when I run mvn weblogic:deploy I have still this error:

No versions are present in the repository for the artifact with a range [9.0,11.0)
  weblogic:weblogic:jar:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus.org (http://snapshots.repository.codehaus.org)

Path to dependency: 
    1) org.codehaus.mojo:weblogic-maven-plugin:maven-plugin:3.9.3

maven设置:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <localRepository>/path...</localRepository>
    <profiles>
        <profile>
            <id>ext</id>
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://repo1.maven.org/maven2</url>
                </repository>
                <repository>
                    <id>java.net</id>
                    <url>http://download.java.net/maven/2</url>
                </repository>
                <repository>
                    <id>maven2-repository.dev.java.net</id>
                    <url>http://download.java.net/maven/2/</url>
                </repository>
                <repository>
                    <id>Mirrors.ibiblio.org</id>
                    <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
                </repository>
                <repository>
                    <id>mojo-executor-repository</id>
                    <url>http://mojo-executor.googlecode.com/svn/repo/</url>
                </repository>
                <repository>
                    <id>spring-maven-milestone</id>
                    <name>Springframework Maven Repository</name>
                    <url>http://maven.springframework.org/milestone</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>java.net</id>
                    <name>Java.net Repository for Maven2</name>
                    <url>http://download.java.net/maven/1/</url>
                    <layout>legacy</layout>
                </pluginRepository>
                <pluginRepository>
                    <id>eviwarePluginRepository</id>
                    <url>http://www.eviware.com/repository/maven2/</url>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>

推荐答案

您需要检查您的settings.xml文件.您需要将以下内容添加到settings.xml中 com.oracle.weblogic

You need to check your settings.xml file. You need to add the following into your settings.xml com.oracle.weblogic

此外,您还需要遵循两步过程来安装weblogic maven插件jar.首先使用jarbuilder工具生成uber jar.

Also you need to follow a two step process for installing the weblogic maven plugin jar. First use the jarbuilder tool for generating the uber jar.

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

此命令将创建一个65MB的jar,名为weblogic-maven-plugin jar.现在,您需要将jar设置到存储库中.使用命令并从jar中删除pom.xml.

This command would create a 65MB jar named weblogic-maven-plugin jar. Now you need to provision your jar into the repo. Use the command and remove the pom.xml from the jar.

 jar xvf MW_HOME/wlserver_10.3/server/lib/weblogic-maven-plugin.jar META-INF/maven/com.oracle.weblogic/weblogic-maven-plugin/pom.xml

 cp MW_HOME/wlserver_10.3/server/lib/META-INF/maven/com.oracle.weblogic/weblogic-maven-plugin/pom.xml MW_HOME/wlserver_10.3/server/lib

下一步是最重要的.为此,您需要位于MW_HOME/wlserver_10.3/server/lib目录中.

The next step is most important. You need to be in the MW_HOME/wlserver_10.3/server/lib directory for this.

 mvn install

然后您需要做一个....

And then you need to do a ....

 mvn install:install-file -Dfile="MW_HOME/wlserver_10.3/server/lib/weblogic-maven-plugin.jar -DpomFile="pom.xml" 

带有weblogic maven插件的weblogic目标前缀

这篇关于找不到Weblogic Maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆