我按照這個教程安裝WebLogic插件: http://docs.oracle.com/cd/E21764_01/web.1111/e13702/maven_deployer.htm ,現在我可以在我的本地庫 看到這個罐子,但是當我運行mvn weblogic的:部署我還有這樣的錯誤:找不到的WebLogic Maven插件
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
行家設置:
<?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>
測試您是否嘗試過MVN -Pext的WebLogic:部署? – 2012-04-03 06:37:04