Skip to content

Commit 96f5198

Browse files
authored
PHOENIX-7628 Don't add Apache Snapshot Maven Repo by Default (#2262)
1 parent 3d558d9 commit 96f5198

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

phoenix-core-client/src/main/java/org/apache/phoenix/schema/MetaDataClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4745,9 +4745,9 @@ public MutationState addColumn(PTable table, List<ColumnDef> origColumnDefs,
47454745
/**
47464746
* To check if TTL is defined at any of the child below we are checking it at
47474747
* {@link org.apache.phoenix.coprocessor.MetaDataEndpointImpl#mutateColumn(List, ColumnMutator, int, PTable, PTable, boolean)}
4748-
* level where in function
4749-
* {@link org.apache.phoenix.coprocessor.MetaDataEndpointImpl# validateIfMutationAllowedOnParent(PTable, List, PTableType, long, byte[], byte[], byte[], List, int)}
4750-
* we are already traversing through allDescendantViews.
4748+
* level where in function {@link org.apache.phoenix.coprocessor.MetaDataEndpointImpl#
4749+
* validateIfMutationAllowedOnParent(PTable, List, PTableType, long, byte[], byte[],
4750+
* byte[], List, int)} we are already traversing through allDescendantViews.
47514751
*/
47524752
}
47534753

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,6 +2068,41 @@
20682068
</plugins>
20692069
</build>
20702070
</profile>
2071+
<!-- Duplicate the functionality of MPOM-451 for our older ASF parent pom -->
2072+
<profile>
2073+
<id>dont-use-apache-snapshots</id>
2074+
<activation>
2075+
<property>
2076+
<name>!apache.snapshots</name>
2077+
</property>
2078+
</activation>
2079+
<repositories>
2080+
<repository>
2081+
<releases>
2082+
<enabled>false</enabled>
2083+
</releases>
2084+
<snapshots>
2085+
<enabled>false</enabled>
2086+
</snapshots>
2087+
<id>apache.snapshots</id>
2088+
<name>Apache Snapshot Repository</name>
2089+
<url>https://repository.apache.org/snapshots</url>
2090+
</repository>
2091+
</repositories>
2092+
<pluginRepositories>
2093+
<pluginRepository>
2094+
<releases>
2095+
<enabled>false</enabled>
2096+
</releases>
2097+
<snapshots>
2098+
<enabled>false</enabled>
2099+
</snapshots>
2100+
<id>apache.snapshots</id>
2101+
<name>Apache Snapshot Repository</name>
2102+
<url>https://repository.apache.org/snapshots</url>
2103+
</pluginRepository>
2104+
</pluginRepositories>
2105+
</profile>
20712106
<!-- See BUILDING.md for profile selection-->
20722107
<!-- The dependencies should be defined only in phoenix-core
20732108
,but maven doesn't seem to support that -->

0 commit comments

Comments
 (0)