First thing to do is to let m2eclipse manage the project.
Right Click on the HelloWorldJARArch folder in the Navigator view.
Select Configure-->Convert To Maven Project
You will now see a tiny "M" icon on the HelloWorldJARArch folder - this tells you that m2eclipse is managing this project.
Now we can build this project using Maven from inside Eclipse.
Right Click on the HelloWorldJARArch folder in the Navigator view.
Select Run As-->Maven Install
Maven Install goal executes Maven Package goal which builds the jar, and then does one additional thing - it installs (copies) the jar to the local Maven repository.
We will learn more about Maven repository in the next post.
For now, note that you have successfully built the project using Maven inside Eclipse.
No comments:
Post a Comment