maven 设置启动参数
maven 设置启动参数
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE...在下边
set MAVEN_OPTS= -Xms128m -Xmx512m
删除重新下载mvn clean install -Dmaven.test.skip=true
给本地仓库安装jar
mvn install:install-file -DgroupId=gp -DartifactId=id -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=name-version.jar
安装到私服
clean install -e -U
jar cvf spring-objenesis-repack-2.6.jar objenesis打jar包 文件夹名objenesis spring-objenesis-repack-2.6 jar包名
打包
mvn deploy:deploy-file -DgroupId=com.yang.ojdbc -DartifactId=ojdbc6 -Dversion=0.0.1 -Dpackaging=jar -DrepositoryId=releases -Dfile=D:/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar -Durl=http://192.168.1.234:8080/nexus-2.14.5-02/content/repositories/releases/
release:prepare -Dresume=false
mvn -B clean package -U Dmaven.test.skip=true -Dautoconfig.skip -Djib.skip -U -f ./pom.xml
maven中依赖的jar包内部出现循环依赖处理办法
SpringApplication application =new SpringApplication(xxxApplication.class);
appliation.setAllowCircularReferences(true);
application.run(args);
或者加
spring.main.allow-circular-referrences: true