mvn install:install-file -Dfile=D:\workspace\Spring_Netty\Netty_common\target\netty-commons-0.0.1-SNAPSHOT.jar -DgroupId=org.yyx.netty -DartifactId=netty-common -Dversion=0.0.1-SNAPSHOT0.0.1-SNAPSHOT -Dpackaging=jar
<dependency>
<groupId>org.yyx.netty</groupId>
<artifactId>netty-common</artifactId>
<version>0.0.1-SNAPSHOT0.0.1-SNAPSHOT</version>
</dependency>
一一对应
还有打包的时候如果没有mian方法
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
pom文件中不要添加此代码
并且父项目中也不要添加