-->

is weblogic-maven-plugin available from maven cent

2020-07-09 07:18发布

问题:

When i run my maven build script i get

Plugin com.oracle.weblogic:weblogic-maven-plugin:2.9.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.oracle.weblogic:weblogic-maven-plugin:jar:2.9.1: Could not find artifact com.oracle.weblogic:weblogic-maven-plugin:pom:2.9.1 in central (http://repo1.maven.org/maven2) 

But when i search in repository i can see it there http://search.maven.org/#search|ga|1|weblogic-maven-plugin Why this plugin is not available?

回答1:

As Oracle WebLogic is not an open source product, Oracle has decided not to publish their Maven plugins in the Maven Central repository (providing the sources for each published artifact has now become a requirement, according to the Maven Central Repository Usage Guide).

Until recently, the only way was to build and install the WebLogic JAR file into the local Maven cache.

Starting from 2015, Oracle has set up a Maven repository which can be accessed by anyone having a valid OTN account - see abarisone's answer.



回答2:

From the early months of 2015 Oracle has at last made its Maven repository available for Continuous Integration purposes.

This means that you will be able to find not only all Oracle Database artifacts but also those related to Fusion Middleware, Oracle Service Bus, ADF and so on. You can find more info reading this blog post.

Obviously you need to have a valid OTN account to log in, and the same is required to configure maven proxies and Nexus.

Once registered you will have access to the following link which explains all the instructions in order to configure the repository.

About Sonatype Nexus, you need at least version 2.11.2 to be able to add the Oracle repository, as reported here