Install
mvn install:install-file -DgroupId=org.apache.kafka -DartifactId=kafka_2.10 -Dversion=0.10.0-kafka-2.1.1 -Dfile=D:\lib\kafka_2.10-0.10.0-kafka-2.1.1.jar -Dpackaging=jar -DgeneratePom=true -DpomFile=kafka_2.10-0.10.0-kafka-2.1.1.pom
Deploy
mvn deploy:deploy-file -DgroupId=com.alibaba -DartifactId=dubbo -Dversion=2.8.4 -Dpackaging=jar -Dfile=E:\dubbo\dubbo-2.8.4.jar -Durl=http://192.168.1.11:8181/repository/maven-releases/thirdparty/ -DrepositoryId=deploymentRepo
pom.xml 加载项目内的依赖
<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.10.0-kafka-2.1.2</version> <systemPath>${project.basedir}/lib/kafka_2.10-0.10.0-kafka-2.1.2.jar</systemPath> <scope>system</scope> <exclusions> <exclusion> <artifactId>log4j</artifactId> <groupId>log4j</groupId> </exclusion> <exclusion> <artifactId>lz4</artifactId> <groupId>net.jpountz.lz4</groupId> </exclusion> <exclusion> <artifactId>slf4j-log4j12</artifactId> <groupId>org.slf4j</groupId> </exclusion> <exclusion> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> </exclusion> </exclusions> </dependency>
来源:oschina
链接:https://my.oschina.net/fitzcore/blog/3210606