Springboot Liquibase maven dependency missing - java

I have been trying to build a springboot project within my virtual desktop and have been facing issues with resolving maven dependencies, after resolving dependencies with improper versions or with incorrect imports, I now have only one dependency conflict that is stopping from compiling the spring boot project that was developed outside my virtual workspacee.
This is what my console says
The POM for org.liquibase:liquibase-core:jar:3.3.0 is missing, no dependency information available
[ERROR] Failed to execute goal on project springboot102: Could not resolve dependencies for project com.css:springboot102:jar:0.0.1-SNAPSHOT: Failure to find org.liquibase:liquibase-core:jar:3.3.0 in http://repo............/(repository) was cached in the local repository, resolution will not be reattempted until the update interval of archiva.default has elapsed or updates are forced ->
Screen shot images also attched as follows :
If someone had faced similar dependency conflicts please do let me know, much appreciated.

Related

What is causing ArtifactNotFoundException in anypoint maven?

I am trying to create new connector using mulesoft sdk. The connector has been successfully created and and loaded into the internal maven repository. When I try to reference the connector in the anypoint project, I get
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.demo.cloud:mule-connector:pom:1.0.0 in https://maven.anypoint.mulesoft.com/api/v2/maven was cached in the local repository, resolution will not be reattempted until the update interval of anypoint-exchange-v2 has elapsed or updates are forced
When I run the maven cmd in the command line, there are no errors. But as soon as I add dependency in the anypoint project pom file, I get the error. What could be wrong?
It looks like the Mule application project is trying to reference the connector reference with an incorrect Maven classifier. It should be a mule-plugin but the error message implies it is pom.
Example:
<dependency>
<groupId>org.demo.cloud</groupId>
<artifactId>mule-connector</artifactId>
<version>1.0.0</version>
<classifier>mule-plugin</classifier>
</dependency>
I faced similar issue before. I would like to add some extras to the existing answer.
The misuse of classifiers can happen when you try to pull artifacts from maven central without knowing what type of packaging type the artifact is made of during its maven release phase.
mvn release:clean
mvn release:prepare
mvn release:perform
Observe that when you add something as mule-plugin as a classifier in your dependency. It will add the connector plugin in your mule package explorer on the left hand side. This may not still resolve the pom unavailability problem you have pasted in the question.
I also believe that org.demo.cloud is an groupId not an artifact ID. Nevertheless, your application might not be a true mule-plugin based on its pom declaration.
Try packaging your main APP-1 (in maven central) as a mule-plugin in the APP-1 pom file. If not, simply put the packaging as jar type and republish your artifacts. Later, don't mention the classifier section in your APP-2. Simply call the direct dependency.
Check my other answer in here.:Unable to reference to DWL script files in Mule 4 dataweave from Project Libraries(jar)

ArtifactTransferException eclipse error when guice added

I'm trying to add guice to my Google App Engine project. I'm using Maven and Eclipse. In Eclipse, I modified my pom.xml by adding the following to the <dependencies> element as per http://mvnrepository.com/artifact/com.google.inject/guice/3.0:
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency>
However, Eclipse has raised four errors:
Description Resource Path Location Type
ArtifactTransferException: Failure to transfer com.google.inject:guice:jar:3.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.google.inject:guice:jar:3.0 from/to central (http://repo.maven.apache.org/maven2): connect timed out pom.xml /audiencemarketing-backend line 123 Maven Dependency Problem
Description Resource Path Location Type
Missing artifact com.google.inject:guice:jar:3.0 pom.xml /audiencemarketing-backend line 1 Maven Dependency Problem
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library '/Users/mosofsky/.m2/repository/com/google/inject/guice/3.0/guice-3.0.jar' audiencemarketing-backend Build path Build Path Problem
Description Resource Path Location Type
The project cannot be built until build path errors are resolved audiencemarketing-backend Unknown Java Problem
I have tried right-clicking my project and choosing Maven => Update Project. But I still get the same 4 errors. I also tried Project => Clean and same thing.
How do I correctly add Guice given my setup?
I was able to resolve this error by going to my command line and issuing the command mvn clean install. Maven had no trouble obtaining the guice library from the Maven Central Repository. Then I went back into Eclipse and right-clicked my project and choose Maven => Update Project.
This resolved all the errors I was seeing and made Eclipse happy.

Maven not able to download dependency

I have started working on a new project using Maven, and I'm unable to have it work properly on eclipse. I have multiples of this error :
ArtifactTransferException: Failure to transfer com.caucho:hessian:jar:3.1.5 from <repository> was cached in the local repository, resolution will not be reattempted until the update interval of Archiva SIVPN Internal has elapsed or updates are forced. Original error: Could not transfer artifact com.caucho:hessian:jar:3.1.5 from/to Archiva SIVPN Internal (<repository>): No response received after 60000 pom.xml /<file> line 2 Maven Dependency Problem
Description Resource Path Location Type
Missing artifact com.caucho:hessian:jar:3.1.5 pom.xml / line 2 Maven Dependency Problem
After doing some research, I found that it was probably either the pom.xml that's wrong, or that I have proxy problems.
I checked that the resource was available on our repository, and that the pom snippet is the same as declared in my code :
<dependency>
<groupId>com.caucho</groupId>
<artifactId>hessian</artifactId>
<version>3.1.5</version>
</dependency>
My proxy works just fine for the trunk of the project, and there is no other proxy I'm aware of.
I thought it was maybe a one-time connection problem, but making a new maven build with -U didn't resolve the problem.
I also found https://stackoverflow.com/questions/6111408/maven2-missing-artifact-but-jars-are-in-place
with several I-don't-know-what-else-to-do solutions, but it didn't work for me...
Since the lead developer is on vacation and I have little experience on mvn, could someone tell me other potential problems that could be responsible for this ?
Thanks in advance for answers :)
Open a command prompt, go to your project directory and run: mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
The eclipse:eclipse portion will regenerate your project files etc, the last 2 properties are more for convenience but I like downloading the sources and javadoc.
After a failed attempt, maven will leave a small file in your local .m2 repository that will prevent any attempt to re-download the file unless the update interval has elapsed or you force the updates using the maven -U switch described in other answers.
Just delete the folder for that artifact in your local m2 repository and update you project; a new download attempt will trigger.
rm -rf ~/.m2/repository/com/caucho/hessian/3.1.5

SpringSource Spring MVC Template errors when created

I'm just getting started with SpringSource, so I decided to make a Spring MVC project off the template.
However, as soon as I create the template, I get the following error in pom.xml
Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 () (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources)
Failure to transfer org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-9-stable-1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-container-default:pom:1.0-alpha-9-stable-1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom
I've tried reinstalling SpringSource multiple times, and I still get the same error. I'm using SpringSource 3.1.0 32-bit version on a 64-bit Windows 7 machine.
I think you need to update your Maven indexes so that it can download the appropriate library required for the template.
Go to Window > Preferences > Maven
Check Download Repository index updates on startup
Restart STS.
Attempt to pull down the template again.
Note: It may take some time to download all of the indexes.
For me deleting the contents in my .m2/repository folder and recreating the project (file-> new->) worked

Maven Build fail due to missing dependency - Beginner

[ERROR] Failed to execute goal on project CarProject: Could not resolve dependen
cies for project CarProject:CarProject:war:1.0-SNAPSHOT: The following artifacts
could not be resolved: com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1, o
rg.springframework:org.springframework.web.servlet:jar:3.0.5.RELEASE, org.spring
framework:org.springframework.context:jar:3.0.5.RELEASE, javax.transaction:com.s
pringsource.javax.transaction:jar:1.1.0, com.sun:tools:jar:1.6.0: Failure to fin
d com.googlecode.sslplugin:struts2-ssl-plugin:jar:1.2.1 in http://repo1.maven.or
g/maven2 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]
Seems like there are more than one dependencies missing, How should i add them ? Is there a place where i could get the dependency or is there a particular standard way of writing it ?
org.springframework.web.servlet = spring-web or spring-webmvc or both depending on what you need from it
org.springframework.context = spring-context
com.springsource.javax.transaction comes from the SpringSource enterprise bundle repository.
struts2-ssl-plugin isn't in central. You'll have to find it in another repository, install it locally, install it on your own repository, like Nexus, or make it a system-scoped dependency.
tools is your JRE. Maven mostly shouldn't be trying to download it. You probably have a bad dependency somewhere.
Download the latest jar file from following location
http://code.google.com/p/struts2-ssl-plugin/downloads/list
Run the following command
Example for struts2-ssl-plugin-1.2.1.jar file
mvn install:install-file -Dfile=E:\Java\Meteors\struts2-ssl-plugin-1.2.1.jar -DgroupId=com.googlecode.sslplugin -DartifactId=struts2-ssl-plugin -Dversion=1.2.1 -Dpackaging=jar

Categories

Resources