Nexus Repository Manager is a tool that allows us to store and use libraries we need in projects such as Maven project…
In this tutorial, I summarize the tutorials of Huong Dan Java on the Nexus Repository Manager for your reference.
In this tutorial, I will guide you how to install Nexus Repository Manager.
In order to create a new Maven Repository in the Nexus Repository Manager, you can refer to this tutorial.
We need to define a Role to define User rights in the Nexus Repository Manager.
To be able to do anything in the Nexus Repository Manager, you need to create and use the User.
Nexus Repository Manager supports us UI to upload any artifact to the Repository.
In addition to the UI, we can also use the RESTful API to upload an artifact.
Because Run-Jetty-Run(RJR) use full project classpath to run the web application, and we did some finetune job for maven by default.
So you could use RJR to run Maven web based web application WITHOUT ANY CONFIGURATION.
Simple click "Run Jetty" and then it works.
Forgot those configuration in pom.xml or WTP and save your time, use RJR to run it today.
For more details about how to run RJR, please referenced to GettingStarted and UserGuide .
Try it , you will love it. ;)
First, download the waitj bundle and unzip it.
Then, use maven to manually install each dependency in the lib folder
like so:
mvn install:install-file -Dfile=webspec.jar -DartifactId=webspec -
DgroupId=watij -Dversion=1.3.1 -Dpackaging=jar
You can also do deploy:deploy-file if you want to put them into a
central maven repo.
Of course, you don't need to do this for log4j, junit, slf4j. I did
it for all the others for speed, registering them under "watij" and
version 1.3.1
Got this working in Eclipse, a simple login test case, yipee!
Here is the POM snippet for my project: