KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm importing a multiple-module Maven project from the root directory on a shared drive on another server A. On server A, mvn install will run successfully, and Maven is set up properly with repository/ and settings.xml in /home/user/.m2 . However, after I imported the project into Eclipse (STS actually) on my workstation PC, I can't get mvn build (I have the m2e plugin installed) to run, mostly due to missing dependencies from other modules. I realized that Eclipse is using settings.xml and repository/ on my workstation PC, so there won't be any module build installed in the .m2 cache. I'm trying to modify Maven to use the .m2 directory on server A. I can only set settings.xml to the one on server A, but I cannot change the local repository. The only option I have is to "re-index". Is there a way to change the local repository to the one on server A, or is there a better way to have code on one server, and edit/build/test on Tomcat on another PC?
Tags (comma-separated)
Save Edits
Cancel