Skip to content

Commit 80cf81c

Browse files
committed
GH-XXXX Configure maven-build-cache-extension
1 parent bfbc24b commit 80cf81c

2 files changed

Lines changed: 117 additions & 0 deletions

File tree

.mvn/extensions.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
~ Licensed to the Apache Software Foundation (ASF) under one
3+
~ or more contributor license agreements. See the NOTICE file
4+
~ distributed with this work for additional information
5+
~ regarding copyright ownership. The ASF licenses this file
6+
~ to you under the Apache License, Version 2.0 (the
7+
~ "License"); you may not use this file except in compliance
8+
~ with the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing,
13+
~ software distributed under the License is distributed on an
14+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
~ KIND, either express or implied. See the License for the
16+
~ specific language governing permissions and limitations
17+
~ under the License.
18+
-->
19+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 https://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
21+
<extension>
22+
<groupId>org.apache.maven.extensions</groupId>
23+
<artifactId>maven-build-cache-extension</artifactId>
24+
<version>1.2.2</version>
25+
</extension>
26+
</extensions>

.mvn/maven-build-cache-config.xml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!--
2+
~ Licensed to the Apache Software Foundation (ASF) under one
3+
~ or more contributor license agreements. See the NOTICE file
4+
~ distributed with this work for additional information
5+
~ regarding copyright ownership. The ASF licenses this file
6+
~ to you under the Apache License, Version 2.0 (the
7+
~ "License"); you may not use this file except in compliance
8+
~ with the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing,
13+
~ software distributed under the License is distributed on an
14+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
~ KIND, either express or implied. See the License for the
16+
~ specific language governing permissions and limitations
17+
~ under the License.
18+
-->
19+
<cache xmlns="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0 https://maven.apache.org/xsd/build-cache-config-1.2.0.xsd">
21+
22+
<configuration>
23+
<enabled>true</enabled>
24+
<hashAlgorithm>SHA-256</hashAlgorithm>
25+
<validateXml>true</validateXml>
26+
<local>
27+
<maxBuildsCached>3</maxBuildsCached>
28+
</local>
29+
<projectVersioning adjustMetaInf="true"/>
30+
</configuration>
31+
32+
<input>
33+
<global>
34+
<glob>
35+
{*.java,*.groovy,*.yaml,*.proto,*.thrift,*.avsc,*.avpr,*.xml,*.vm,*.properties,*.jks,*.sh,*.bat}
36+
</glob>
37+
<includes>
38+
<include>src/</include>
39+
</includes>
40+
<excludes>
41+
<exclude>pom.xml</exclude>
42+
</excludes>
43+
</global>
44+
</input>
45+
46+
<executionControl>
47+
<runAlways>
48+
<plugins>
49+
<plugin artifactId="maven-failsafe-plugin"/>
50+
</plugins>
51+
<goalsLists>
52+
<goalsList artifactId="maven-install-plugin">
53+
<goals>
54+
<goal>install</goal>
55+
</goals>
56+
</goalsList>
57+
<goalsList artifactId="maven-deploy-plugin">
58+
<goals>
59+
<goal>deploy</goal>
60+
</goals>
61+
</goalsList>
62+
</goalsLists>
63+
</runAlways>
64+
<reconcile logAllProperties="true">
65+
<plugins>
66+
<plugin artifactId="maven-compiler-plugin" goal="compile">
67+
<reconciles>
68+
<reconcile propertyName="source"/>
69+
<reconcile propertyName="target"/>
70+
<reconcile propertyName="release"/>
71+
<reconcile propertyName="debug"/>
72+
<reconcile propertyName="debuglevel"/>
73+
</reconciles>
74+
</plugin>
75+
<plugin artifactId="maven-surefire-plugin" goal="test">
76+
<reconciles>
77+
<reconcile propertyName="skip" skipValue="true"/>
78+
<reconcile propertyName="skipTests" skipValue="true"/>
79+
<reconcile propertyName="argLine"/>
80+
</reconciles>
81+
</plugin>
82+
<plugin artifactId="maven-enforcer-plugin" goal="enforce">
83+
<reconciles>
84+
<reconcile propertyName="skip" skipValue="true"/>
85+
</reconciles>
86+
</plugin>
87+
</plugins>
88+
</reconcile>
89+
</executionControl>
90+
91+
</cache>

0 commit comments

Comments
 (0)