I am sorry but I am a complete noob on using maven. There is this .api library that I am trying to get updated and I just can’t seem to grasp my head around maven at all.
On this site
It states to do a ‘mvn package’
Then add in the dependency and repositories.
Excuse me if I did this wrong as being that this was my first time.
With Eclipse I tried to create a maven project and select the downloaded folder as my location. Add in the dependency and repository. That failed miserably 🙁 there were no errors but nothing happened on my eclipse. I tried to go maven > download sources. I get this warning*:
“There are no JREs installed in the workspace that are strictly
compatible with this environment.”
So without further ado I tried the basics of learning using maven on eclipse installing maven and merging it with eclipse. However the problem “Do a maven package” in which I then understood the basics but I still don’t get it. How do you create a maven package within the project downloaded? if it was meant to be done that way…
I also tried just getting the updated source code and adding it to my project as a jar but the problem still persist since the source code requires items inside of it other than the jars it requested.(Less memory over the older version)
Now to my question:
- How do you create a maven project which then updates the project?
- Would it be better if I did the changes on Console of msdos or by eclipse?
- Can someone help me on doing this?(My mind is completely blown!)
Question 1 : How do you create a maven project which then updates the project
I don’t understand what you mean. Could you be more explicit please ?
Question 2 : Would it be better if I did the changes on Console of msdos or by eclipse
For further uses, prefer maven in command line (this is closer to system and don’t have any overlaying API). Moreover, it will learn you more things.
I was facing issues using eclipse integreted tools, that was not present in command line.
Question 3 : Can someone help me on doing this?(My mind is completely blown!)
Did you tried to fill JAVA_HOME system variable ? For instance :
C:\Program Files\Java\jdk1.6.0_31\
Maven 3 require at least JRE 1.5 (1.6 is more often used).
More information here : http://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html
From the Maven Documentation :