Wednesday, August 30, 2017

Install a local jar to the local maven repository

  • E.g. add "E:\IdeaProjects\test\libs\com-cotdp-hadoop-1.0-SNAPSHOT.jar" to the local maven repository.
  • mvn install:install-file -Dfile=E:\IdeaProjects\test\libs\com-cotdp-hadoop-1.0-SNAPSHOT.jar -DgroupId=com.cotdp -DartifactId=hadoop -Dversion=1.0 -Dpackaging=jar
  • Use it as other dependecy
    <dependency>
      <groupId>com.cotdp</groupId>
      <artifactId>hadoop</artifactId>
      <version>1.0</version>
    </dependency>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.