Failed to parse plugin descriptor for Oracle maven sync plugin - oracle

I'm following instructions on this page to configure the Oracle Service Bus development Maven plug-in.
https://docs.oracle.com/cloud/latest/soacs_gs/OSBDV/osb-maven.htm#OSBDV88450
I'm able to install the sync plugin but running the command to seed the Oracle Service Bus development Maven plug-in into the Maven repository fails with this error:
Failed to parse plugin descriptor for com.oracle.maven:oracle-
0-0 (C:\path\to.m2\repository\com\oracle\maven\oracle-ma
0\oracle-maven-sync-12.1.3-0-0.jar): error in opening zip file.
The jar file may be corrupted? But it came from Oracle's website when I downloaded Weblogic 12.1.3...or can there be another problem?

Got it.
I accidentally downloaded the wrong weblogic installation package: a 200 MB update instead of the full 800 MB one.
What a waste of time... :-)

Related

Error while executing Simple Spring Boot Application in Spring Tool Suite

I have recently installed Spring Tool Suite 4.0.1 on Ubuntu 18.04 and tried to run hello world spring application but it gives the following compile-time error. I have searched on google a lot but cannot find the relevant info.
Error:
"Description Resource Path Location Type
Archive for required library: '/home/anshul/.m2/repository/org/springframework/spring-test/5.1.2.RELEASE/spring-test-5.1.2.RELEASE.jar' in project 'demo' cannot be read or is not a valid ZIP file"
It looks like the JAR file in your local Maven repository is corrupted. The easiest way to solve this is to completely wipe out the local Maven repo (delete everything under .m2/repository and kick off an Update Maven Project... in STS. That will trigger Maven to download the dependencies again.

Can't download jar files using maven

I've been using Maven for few years now, installing it on different machines and OS's and never had problem with it. Ten days ago i installed in on new Windows 7 machine and since than
i can't find the reason why it can't download jar file's from remote repo's.
I am able to download jar file by typing URL in browser but when i run mvn install in console it start to download the jar, wait some time and then i am getting error message:
"...Could not transfer artifact org.primefaces:primefaces:jar:5.0 from/to central (http://repo.maven.apache.org/maven2):
GET request of: org/primefaces/primefaces/5.0/primefaces-5.0.jar from central failed:
Read timed out ... java.net.SocketTimeoutException: Read timed out".
I read all articles here, tried everything but without success.
Can anyone help?
Primefaces artefacts are not in Maven Central. You need to setup a supplemental repository to get those artifacts. I would suggest to start using a repository manager.

Maven - unable to download dependencies behind Proxy Error Code - 307 Temporary Redirect

I am using Maven to run a Java project. My issue is that I am not able to download the dependencies. It is giving the following error
[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.7.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.7.1: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2): Failed to transfer http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/maven-surefire-plugin-2.7.1.pom. Error code 307, Temporary Redirect -> [Help 1]
The settings.xml is properly configured with the proxy details (since I am behind a proxy) Still, I am not able to access the maven repo to download.
UPDATE: Thanks a lot landal79.I revisited this issue after some time. Still this issue gives me a nightmare.
Currently, I am not able to create any Maven Project. I am 100% sure this is due to a proxy issue. But not able to
nail it down to where exactly the issue.
When I try creating a project selecting an archetype, I am not able to create a maven project. I am getting the below error
"Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-
quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:\Users\rrr.m2\repository)
Failed to resolve version for org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-quickstart/maven-metadata.xml in local (C:\Users\rrr.m2\repository)"
I try creating this project through Eclipse. The settings.xml point to the right proxy ( cross checked with the Network connections dialog (window ->General->NetworkConenction Dialog). But the issue still persists.
So what I did was installed standalone Maven and create a maven project from command prompt. To my surprise,I am not able to download the archetypes in Maven Repo though other plugins are getting downloaded (Surefire plugin and JUNit jar for example)
Is there any work around to resolve the archetype download issue?
I tried your solution, but the issue still persists. When I create a simple maven project (without using any archetypes) I am getting "Unable to build Project " Error
PS: The proxy settings are defined in settings.xml and they are correct. Also, the eclipse proxy settings are correct (Since I am able to install plugins from Eclipse MarketPlace)
Eclipse experts - please help me resolve this issue. Thanks a lot in advance for help.
Thanks

How to install Spring Roo add-ons while offline

At work, our dev environment is an internal network with no connectivity to the internet.
I'm currently trying to use Spring Roo's database reverse engineer function but can't seem to get the add-on org.springframework.roo.wrapping.mysql-connector-java to install correctly offline. I have tried the following:
Following this link jtds driver addon problem
I used the roobot.xml to find the url for the wrapping.mysql-connector-java and downloaded the jar.
According to Roo docs Roo Docs Packaging & Distribution I used the following command to load the osgi jar.
roo> osgi start --url file:///<path-to-addon-project/target/<addon-bundle-name>.<version>.jar
But that resulted in the following errors:
org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.roo.wrapping.mysql-connector-java[75]: Unable to resolve 75.0: missing requirement [75.0] package; (package=org.slf4j)
We have an internal repo with the slf4j jars but I can't figure out how to configure Roo to point to it.
I copied the ROO_HOME of an installation I did on a home computer with the requested mysql add-on but when I tried running it in my work environment I get multiple:
Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique:...
Any help would be appreciated, thanks
I would recommend creating a maven repository manager on your dev network and seeding it with all of your dependencies. I was unable to use Spring/Roo offline without it as I kept running into the type of trouble that you are. I used Sonatype Nexus OSS. It was a pain to seed the repository, but it made Roo usable offline. Hope that helps.

Error when creating a new maven project with Spring tool suite (Could not resolve archetype)

I am trying to create a new maven project using spring tool suite version(3.1.0),however every time I try to choose any archetype and after filling the group id and artifact id in the wizard it start downloading a few minutes then I get the following error :
Error Details
"Could not resolve archetype org.appfuse.archetypes:appfuse-modular-spring:RELEASE from any of the configured repositories.
Could not resolve artifact org.appfuse.archetypes:appfuse-modular-spring:jar:RELEASE
Missing org.appfuse.archetypes:appfuse-modular-spring:jar:RELEASE"
Note : same error occurred with me when I tried to create a new maven project with Eclipse Juno that I have installed one day before along with maven2eclipse plugin.It looks like I have something wrong with my maven repository or configuration !
software installed in my machine is :
64 bit spring tool suite (v 3.1.0)
64 bit OS(windows 7)
64 bit JDK 7
Maven repository location : C:\Users\Ahmed Mamdouh.m2\repository
Any help will be greatly appreciated.
Thanks in advance.

Resources