Skip to content

Commit 54b1548

Browse files
stotymeszinorbi
authored andcommitted
OMID-318 Don't add Apache Snapshot Maven Repo by Default (#199)
1 parent 12e707d commit 54b1548

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,43 @@
828828
</plugins>
829829
</build>
830830
</profile>
831+
832+
<!-- Duplicate the functionality of MPOM-451 for our older ASF parent pom -->
833+
<profile>
834+
<id>dont-use-apache-snapshots</id>
835+
<activation>
836+
<property>
837+
<name>!apache.snapshots</name>
838+
</property>
839+
</activation>
840+
<repositories>
841+
<repository>
842+
<id>apache.snapshots</id>
843+
<name>Apache Snapshot Repository</name>
844+
<url>https://repository.apache.org/snapshots</url>
845+
<releases>
846+
<enabled>false</enabled>
847+
</releases>
848+
<snapshots>
849+
<enabled>false</enabled>
850+
</snapshots>
851+
</repository>
852+
</repositories>
853+
<pluginRepositories>
854+
<pluginRepository>
855+
<id>apache.snapshots</id>
856+
<name>Apache Snapshot Repository</name>
857+
<url>https://repository.apache.org/snapshots</url>
858+
<releases>
859+
<enabled>false</enabled>
860+
</releases>
861+
<snapshots>
862+
<enabled>false</enabled>
863+
</snapshots>
864+
</pluginRepository>
865+
</pluginRepositories>
866+
</profile>
867+
831868
</profiles>
832869

833870
<dependencyManagement>

0 commit comments

Comments
 (0)