Skip to content

Instantly share code, notes, and snippets.

@vector4wang
Last active June 17, 2019 14:23
Show Gist options
  • Save vector4wang/9fb37291dba5f45d263761ef83f89b8f to your computer and use it in GitHub Desktop.
Save vector4wang/9fb37291dba5f45d263761ef83f89b8f to your computer and use it in GitHub Desktop.
[pom中指定仓库地址] 优先级高 #Java #Spring #Maven #Pom
<repositories>
<repository>
<id>baza</id> 唯一
<name>Baza Repository</name>
<url>http://192.168.1.191:8081/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<layout>default</layout> 默认布局
</repository>
</repositories>
<!-- 对应的plug需要如下配置才能打包依赖 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.lbd.data.export.Application</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment