Skip to content

Commit 872e281

Browse files
committed
Update .gitlab-ci.yml file
1 parent c0114bc commit 872e281

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.gitlab-ci.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
image: maven:latest
22

3+
34
variables:
4-
MAVEN_CLI_OPTS: ""
5-
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
5+
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
6+
MAVEN_OPTS: >-
7+
-Dhttps.protocols=TLSv1.2
8+
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
9+
-Dorg.slf4j.simpleLogger.showDateTime=true
10+
-Djava.awt.headless=true
11+
12+
# As of Maven 3.3.0 instead of this you MAY define these options in `.mvn/maven.config` so the same config is used
13+
# when running from the command line.
14+
# As of Maven 3.6.1, the use of `--no-tranfer-progress` (or `-ntp`) suppresses download and upload messages. The use
15+
# of the `Slf4jMavenTransferListener` is no longer necessary.
16+
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
17+
MAVEN_CLI_OPTS: >-
18+
--batch-mode
19+
--errors
20+
--fail-at-end
21+
--show-version
22+
--no-transfer-progress
623
724
cache:
825
paths:
926
- .m2/repository/
10-
- target/
27+
policy: pull-push
1128

12-
package:
29+
verify:
1330
stage: build
1431
script:
15-
- mvn $MAVEN_CLI_OPTS package
16-
17-
build:
18-
stage: build
19-
script:
20-
- mvn $MAVEN_CLI_OPTS compile
21-
22-
test:
23-
stage: test
24-
script:
25-
- mvn $MAVEN_CLI_OPTS test
26-
27-
deploy:
28-
stage: deploy
29-
script:
30-
- mvn $MAVEN_CLI_OPTS deploy
31-
only:
32-
- master
32+
- mvn $MAVEN_CLI_OPTS verify

0 commit comments

Comments
 (0)