mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Add repositories section to dependencies POM
Add a repositories section to the spring-boot-dependencies POM but strip it out during a CI build. This allows snapshot and milestone BOM imports to be used but doesn't pollute published POMs and doesn't prevent a fresh checkout from building. Fixes gh-1413
This commit is contained in:
parent
e6e0cf094b
commit
7732135a2b
29
pom.xml
29
pom.xml
@ -254,5 +254,34 @@
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>ci</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.google.code.maven-replacer-plugin</groupId>
|
||||
<artifactId>replacer</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>remove-repo-samples</id>
|
||||
<goals>
|
||||
<goal>replace</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<includes>
|
||||
<include>${basedir}/spring-boot-dependencies/pom.xml</include>
|
||||
</includes>
|
||||
<regexFlags>
|
||||
<regexFlag>DOTALL</regexFlag>
|
||||
</regexFlags>
|
||||
<token>\n\t<repositories>.*</repositories></token>
|
||||
<value></value>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user