Thursday, March 23, 2017

Maven things

Install library

mvn install:install-file -DgroupId=com.humegatech -DartifactId=car2go-connector -Dversion=1.2.0-SNAPSHOT -Durl=file:./target/ -DupdateReleaseInfo=true -Dfile=./target/car2go-connector-1.2.0-SNAPSHOT.jar

Deploy to local repository
Add repo to pom.xml

...
  <repository>
    <id>local-maven-repo</id>
    <url>file:///${project.basedir}/lib</url>
  </repository>
</repositories>

Deploy
mvn deploy:deploy-file -DgroupId=com.humegatech -DartifactId=car2go-connector -Dversion=1.2.0-SNAPSHOT -Durl=file:./lib/ -DrepositoryId=local-maven-repo -DupdateReleaseInfo=true -Dfile=./lib/car2go-connector-1.2.0-SNAPSHOT.jar

Release Deployment
http://central.sonatype.org/pages/apache-maven.html#performing-a-release-deployment