Skip to content

carchrae/install-to-project-repo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

#Install to Project Repo A Python script for easily installing libraries to an in-project Maven repository. It creates a repository in the root folder of the project complete with poms, checksums and metadata. It also outputs the appropriate dependencies xml to be inserted in your pom file.

##What it does

  • When run in standard mode it looks for all jars in the lib folder:

      artifactId.jar
    
  • When run with -d modifier it removes all successfully installed jars from the lib folder.

  • After successful installation of all jars it prints out all according dependencies for your pom and saves them to a file in ./repo/

##Using

Just run it from the folder containing your lib folder.

After the script is complete copy-paste the generated dependencies xml to your pom under dependencies tag and add the following under the repositories tag:

<repository>
  <id>project</id>
  <url>file://${project.basedir}/repo</url>
</repository>

For more details please read this StackOverflow answer.

About

A script for installing jars to an in-project Maven repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%