Skip to content

appirio-tech/temp-maven-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

temp-maven-repo

Used for managing dependencies which were managed initially through local-repo (user desktop).

#Installing/Pushing new dependencies Install required jar properly into this repo through mvn install

mvn install:install-file -DcreateChecksum=true -DgroupId=[group-id] -DartifactId=[artifact-id] -Dversion=[version] -DmodelVersion=[DmodelVersion] -Dpackaging=[packaging-format] -Dfile=[path-to-file] -DpomFile=<path-to-pomfile> -DlocalRepositoryPath=[path-to-git-repo]

NOTE : Fill [*] fields

example:

mvn install:install-file -DcreateChecksum=true -DgroupId=com.topcoder.internal -DartifactId=shared -Dversion=1.0.0 -DmodelVersion=4.0.0 -Dpackaging=jar -Dfile=ap-project-microservice/lib/com/topcoder/internal/shared/1.0.0/shared-1.0.0.jar -DpomFile=<path-to-pomfile> -DlocalRepositoryPath=temp-maven-repo

Commit & Push these changes

#Consuming dependencies from this repo

Add following

  <repository>
      <id>temp-maven-repo</id>
      <url>https://github.com/[username]/[repo-name]/raw/[branch-name]</url>
      <snapshots>
          <enabled>true</enabled>
          <updatePolicy>always</updatePolicy>
      </snapshots>
  </repository>

NOTE : Fill [*] fields

ex:

  <url>https://github.com/phaniram/temp-maven-repo/raw/master</url>

Now upon maven should check for required dependencies in above repo and download accordingly.

About

temporarily hosting 3rd-party jars for maven build

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published