Commit 7732135a authored by Phillip Webb's avatar Phillip Webb

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
parent e6e0cf09
...@@ -254,5 +254,34 @@ ...@@ -254,5 +254,34 @@
</plugins> </plugins>
</build> </build>
</profile> </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&lt;repositories&gt;.*&lt;/repositories&gt;</token>
<value></value>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment