Maven: Specifying Local Repo

Links on configuring local Maven Repo


Maven offline

You can run maven in offline mode mvn -o install. Of course any artifacts not available in your local repository will fail. Maven is not predicated on distributed repositories, but they certainly make things more seamless. Its for this reason that many shops use internal mirrors that are incrementally synced with the central repos.

In addition, the mvn dependency:go-offline can be used to ensure you have all of your dependencies installed locally before you begin to work offline.



Git Revert: When your already committed BooBoo Code to repo and need to get HEAD back to HAPPY

silosix@M6500:~/git/cmsauto$ git revert 7b55a41
On branch feature/pom_to_pombase
Your branch is up to date with 'origin/feature/pom_to_pombase'.

nothing to commit, working tree clean
silosix@M6500:~/git/cmsauto$ get reset --hard 7b55a41 && git clean -f

Command 'get' not found, but there are 18 similar ones.

silosix@M6500:~/git/cmsauto$ git reset --hard 7b55a41 && git clean -f
HEAD is now at 7b55a41 file cleanup
silosix@M6500:~/git/cmsauto$ git revert 7b55a41
[feature/pom_to_pombase 088dbb9] Revert "file cleanup"
 1 file changed, 4 insertions(+), 5 deletions(-)
silosix@M6500:~/git/cmsauto$ git push -f
Password for '':
Counting objects: 10, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (10/10), 746 bytes | 746.00 KiB/s, done.
Total 10 (delta 4), reused 0 (delta 0)
remote: Create pull request for feature/pom_to_pombase:

Maven: Creating first project from archetype via CLI


setting maven in PATH


mvn Command to Generate from Archetypes

mvn -B archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DartifactId=uc-app


Subscribe to