File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,25 +18,25 @@ jobs:
1818 steps :
1919 - uses : actions/checkout@v2
2020
21- - name : Install Maven 3.8.x (instead of 3.9.x)
22- run : |
23- MAVEN_VERSION=3.8.9
24- wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
25- tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz
26- sudo mv apache-maven-$MAVEN_VERSION /opt/maven
27- sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists
28- sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link
21+ # - name: Install Maven 3.8.x (instead of 3.9.x)
22+ # run: |
23+ # MAVEN_VERSION=3.8.9
24+ # wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
25+ # tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz
26+ # sudo mv apache-maven-$MAVEN_VERSION /opt/maven
27+ # sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists
28+ # sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link
2929
30- - name : Setup java
31- uses : actions/setup-java@v1
32- with :
33- java-version : ${{ matrix.java }}
3430# - name: Setup java
35- # uses: actions/setup-java@v4
31+ # uses: actions/setup-java@v1
3632# with:
3733# java-version: ${{ matrix.java }}
38- # distribution: 'zulu'
39- # cache: 'maven'
34+ - name : Setup java
35+ uses : actions/setup-java@v4
36+ with :
37+ java-version : ${{ matrix.java }}
38+ distribution : ' zulu'
39+ cache : ' maven'
4040
4141 - name : Cache Maven packages
4242 uses : actions/cache@v4
Original file line number Diff line number Diff line change 4040 MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
4141 SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
4242 run : |
43- mvn clean deploy \
43+ mvn clean deploy -P publish \
4444 --no-transfer-progress \
4545 --batch-mode \
4646# -DskipTests \
Original file line number Diff line number Diff line change 267267 <showDeprecation >true</showDeprecation >
268268 </configuration >
269269 </plugin >
270- <plugin >
271- <groupId >org.sonatype.central</groupId >
272- <artifactId >central-publishing-maven-plugin</artifactId >
273- <version >0.6.0</version >
274- <extensions >true</extensions >
275- <configuration >
276- <publishingServerId >central</publishingServerId >
277- <autoPublish >true</autoPublish >
278- <waitUntil >uploaded</waitUntil >
279- </configuration >
280- </plugin >
281270 </plugins >
282271 </build >
272+
273+ <profiles >
274+ <profile >
275+ <id >publish</id >
276+ <build >
277+ <plugins >
278+ <plugin >
279+ <groupId >org.sonatype.central</groupId >
280+ <artifactId >central-publishing-maven-plugin</artifactId >
281+ <version >0.6.0</version >
282+ <extensions >true</extensions >
283+ <configuration >
284+ <publishingServerId >central</publishingServerId >
285+ <autoPublish >true</autoPublish >
286+ <waitUntil >uploaded</waitUntil >
287+ </configuration >
288+ </plugin >
289+ </plugins >
290+ </build >
291+ </profile >
292+ </profiles >
293+
283294</project >
You can’t perform that action at this time.
0 commit comments