Spring MVC + eclipse + STS - spring

I have installed Spring MVC tools and when I create spring mvc project, I have few errors in my pom.xml. There are three errors:

You have some Jars that are not correctly downloaded on your local repository by Maven due to a connection issue, try to do mvn -U install or delete your local repository ${username_directory}/.m2 and do maven update.

Related

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories. while using in STS

I am able to create Spring Boot Starter Project and Maven Web Project from the STS, but somehow unable to create the maven-archetype-quickstart project in eclipse, its giving me below error
In my project, I am using cacert file and custom setting.xml
try
maven clean install -U
as your repository is cached so try to flush the cache using -U
I was able to solve this issue by simply deleting the .m2 folder and create maven project from scratch.
After facing the same issue and going through the message several times - I found that in the local repository i.e. .m2, under the location - org\apache\maven\archetypes\maven-archetype-quickstart\1.1 - we found the error in the file - 'm2e-lastUpdated.properties' as '#default-central-https://repo.maven.apache.org/maven2/.lastUpdated=1551236380266
https://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org'
So my Eclipse was not able to download the required JARS may be cause it is behind the firewall and in that case - Place the 'maven-archetype-quickstart-1.1.jar' and 'maven-archetype-quickstart-1.1.pom' in your local repo at the location - 'org\apache\maven\archetypes\maven-archetype-quickstart\1.1' using the link - JARS_POM and then follow the same step to create the maven Project.
Better solution is to use proxy through 'setting.xml' file of Maven to bypass the firewall to download Maven plugins and jars.
You should also check if the maven archetype catalog to eclipse is configured properly.

Spring Boot Maven pom.xml error

I am using Spring Boot to build an application. I downloaded initialized zip project file from start.spring.io/. When I import the project I am getting the following error. By googling I could hardly understand it is proxy or connection issue. But I am able to open the url in browser.
Some people mentioned to change in settings.xml in maven. My eclipse implicitly comes with maven so I did not install maven separately. I tried adding proxy in eclipse as well. But no luck.

Project not working after Maven build

I am working in a Spring Legacy Project.It has a pom.xml file.Project works and deploys fine without the maven clean and install.But after maven build,the name of the war changes and the application is not up again.
The tool is Spring Suite Tool and the server is Jboss.
Please help me on this.

Camel Spring Boot Archetype builds project with missing artifact

When I run the mvn command to create a Spring Boot Camel project using the Camel Spring Boot archetype the resulting pom.xml gives a dependency error.
mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-spring-boot -DarchetypeVersion=2.16.0 -DgroupId=test -DartifactId=app
I get the error:
Missing artifact org.apache.camel:camel-spring-boot:jar:2.16.0
If I change the version to 2.15.0 the problem goes away.
Is there some kind of problem with version 2.16.0?
I needed to delete my local Maven repository and rebuild.
Delete the artifacts (or the full local repo) from c:\Users\username\.m2\repository by hand.

Mavenize Grails project not works in STS

I am using STS 3.6.1, Java 7, Grails 2.4.3.
When create a normal Grails project, it works good. However, my Grails project need to depends on other java projects, so I convert it to maven project. After that STS prompt error
Could not find the grails dependency file. This probably means that there is a bad dependency in the pom file.
java.lang.Exception
The maven grails project can be build in grails command.
How to resolve is issue? Or if there is walk around to let grails project depends on other Java project.

Resources