maven Project proxy in Eclipse - java

I am working on Maven Project, while creating its throwing Error "Could not resolve archetype org.apache.maven.archetypes:maven-archety" .Unable to download archtype.
It seems due to proxy issue its coming I have made the required changes using proxy and port no. in settings.xml. Still the error is same. Please help in this.
Thanks.

Related

Problem with ActiveMQ dependencies with Spring Boot

I am working on an ActiveMQ project using Spring Boot. I tried to generate a project with Spring Initializr and import it to IntelliJ (community edition).
The problem occurred when Maven could not resolve the spring-boot-starter-activemq dependency.
Here is the project generated:
Something weird is that the project is synced but there still an error in the pom.xml file:
Any other approach is welcome.
ok figure out that I made a mistake adding a setting.xml file with invalid proxy settings, which led to maven enable to download , now the problem is solved thanks for you guys for guiding me to the solution.

Error in Creating a Maven project in Eclipse IDE

I just started to learn Hibernate in Java and i was supposed to use Maven Project but while creating project i am facing this error why i am getting this error almost tried all of the online saying still no improvement it fails ...Thanks in Advance
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\Manoj Selvin.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\Manoj Selvin.m2\repository)

Maven Build Error - Firefly Plugin - No plugin found

I have tried several methods to resolve this issue.
I am trying to install the Vaadin Starter App "Bakery"
Version using : Java, Shiro, Vaadin Platforms.
Error on build failure:
No plugin found for prefix 'firefly' in the current project and in the plugin groups
I've tried methods listed [here][1]
and another post by deleting my .m2/resources and letting it repopulate. and also a mvn clean install, but I keep getting same error messages.
Here is a [link][1] to the error messages:
Above the plugin error are some type of fetch cant get meta data messages.
I'm thinking it needs a different version of a plugin, needs pom file or settings file edited, but just have not found solution yet.
No plugin found for prefix 'firefly' in the current project and in the plugin groups
I believe it was with the plugin causing a problem. I went to this link, found the file, over-wrote the existing file with the one at the link, did a rebuild and it worked.
Maven-compiler-plugin

How to resolve missing artifact error when using Eclipse AWS plugin?

I am using the aws Java plugin for Eclipse. I didn't have any issues during the installation process but after I used the plugin to create a sample DynamoDB project, I got this error
Missing artifact com.amazonaws:aws-java-sdk-cl....watchmetris.jar:1.11.123(click for 156 more...).
clicking didn't do anything.
I thought the error was due to the fact that I didn't install that jar during the installation process - I only installed "AWS Toolkit for Eclipse".
I went back into Eclipse and installed every non optional plugin from the aws(see below)
After I restarted Eclipse and tried creating my DynamoDB project again, I get a different failed to read artifact descriptor error(see below)
Has anyone experienced this issue before or know what the solution is? Elastic load balancer should be apart of AWS Toolkit which I installed. I've tried removing and reinstalling the aws plugin but I'am still getting missing artifact errors. I've looked at other threads on AWS plugin for Eclipse as well.
For anyone dealing with this issue with this issue, I got it to work! I can't really explain why it works though - maybe Maven's way of resetting some setting.
What I did was go inside pom.xml, the configuration file for Maven, and into the Dependencies tab. This is what I saw
I reasoned that the missing artifact was in the aws-java-sdk jar so I removed it. I then deleted the project from disk and created a new one. The new project came with the correct dependencies and no compiler errors!
The problem is not your AWS Toolkit, it's a problem of your Maven. Please try to create a project with Maven to check if Maven's setting is correct. If Maven is correct, please see your pom file in XML and check the dependency is correct? If you cannot create Maven project, it's means that your Maven setting is wrong somewhere!
I received a similar error "failure to transfer com.amazonaws:aws-java-sdk ...". The pom resolution could work, but here's another solution. So, when you start an aws project for the first time, certain artifacts necessary for maven are stored under .m2\repository\com\amazonaws.
What happened to me was that when I deleted one of my aws projects, I also deleted the resources being referred to which was somewhere in the aforementioned directory. And because the directory existed, eclipse's aws toolkit didn't bother downloading it again. I solved it by just deleting the $home.m2\repository\com\amazonaws directory. So next time I created a new aws project, it had to download all the artifacts.

Java exception: java.lang.UnsupportedOperationException

I'm trying to execute Maven -> Update project in Eclipse. Every time i do it i get the following error:
An internal error occurred during: "Updating Maven Project".
"java.lang.UnsupportedOperationException".
If i look in the code there aren't any files marked with errors, neither the pom.xml.
Other people working on the same project don't have this problem.
What could be causing this? What details do you need to get an idea about this?
it looks you have problem with one of artifacts you have in local repository try to delete .m2 and clean install project again but you have to be connected to internet, if this not solving your issue check the version of maven you are using and compare it with others.

Categories

Resources