File tree Expand file tree Collapse file tree 9 files changed +12
-19
lines changed Expand file tree Collapse file tree 9 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ addons:
14
14
name : OpenGrok/OpenGrok
15
15
description : Build submitted via Travis CI
16
16
branch_pattern : coverity_scan
17
- build_command : mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile
17
+ build_command : ./mvnw -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile
18
18
sonarcloud :
19
19
organization : opengrok
20
20
token :
85
85
services :
86
86
- docker
87
87
before_install : dev/before_install
88
- before_script : mvn -DskipTests=true -Dmaven.javadoc.skip=true -B -V package
88
+ before_script : ./mvnw -DskipTests=true -Dmaven.javadoc.skip=true -B -V package
89
89
script : dev/docker.sh
90
90
- stage : javadoc
91
91
name : Upload javadocs to Github pages
Original file line number Diff line number Diff line change 1
1
version : ' {build}'
2
2
skip_tags : true
3
3
environment :
4
- MAVEN_VERSION : 3.6.0
5
4
matrix :
6
5
- JAVA_HOME : C:\Program Files\Java\jdk1.8.0
7
6
PYTHON : C:\Python35
8
7
install :
9
8
- ps : |
10
9
Add-Type -AssemblyName System.IO.Compression.FileSystem
11
- if (!(Test-Path -Path "C:\maven" )) {
12
- Write-Host "Downloading Maven $env:MAVEN_VERSION"
13
- (new-object System.Net.WebClient).DownloadFile("https://repo1.maven.org/maven2/org/apache/maven/apache-maven/$env:MAVEN_VERSION/apache-maven-$env:MAVEN_VERSION-bin.zip", 'C:\maven-bin.zip')
14
- [System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
15
- }
16
- - cmd : SET M2_HOME=C:\maven\apache-maven-%MAVEN_VERSION%
17
10
# Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH
18
- - cmd : SET PATH=%M2_HOME%\bin;% JAVA_HOME%\bin;%PYTHON%;%PATH:C:\Ruby193\bin;=%;
19
- - cmd : mvn --version
11
+ - cmd : SET PATH=%JAVA_HOME%\bin;%PYTHON%;%PATH:C:\Ruby193\bin;=%;
12
+ - cmd : mvnw.cmd --version
20
13
- cmd : java -version
21
14
- cmd : python --version
22
15
- cmd : hg --version
@@ -30,7 +23,6 @@ install:
30
23
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\uctags-bin.zip", "C:\uctags")
31
24
}
32
25
build_script :
33
- - mvn -B -V -Dorg.opengrok.indexer.analysis.Ctags=c:\uctags\ctags.exe clean verify
26
+ - mvnw.cmd -B -V -Dorg.opengrok.indexer.analysis.Ctags=c:\uctags\ctags.exe clean verify
34
27
cache :
35
- - C:\maven\ -> appveyor.yml
36
28
- C:\Users\appveyor\.m2\ -> pom.xml
Original file line number Diff line number Diff line change 11
11
12
12
echo -e " Publishing javadoc...\n"
13
13
14
- mvn -DskipTests=true site
14
+ ./mvnw -DskipTests=true site
15
15
16
16
git config --global user.email
" [email protected] "
17
17
git config --global user.name " travis-ci"
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ if [ "x$TRAVIS_REPO_SLUG" == "xoracle/opengrok" ]; then
24
24
fi
25
25
26
26
ret=0
27
- mvn -B -V verify $extra_args || ret=1
27
+ ./mvnw -B -V verify $extra_args || ret=1
28
28
node dev/parse.js || ret=1
29
29
exit $ret
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
# Create distribution that will be uploaded to Github release.
4
- mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
4
+ ./mvnw -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [[ $ver == $VERSION ]]; then
36
36
fi
37
37
38
38
git pull --ff-only
39
- mvn versions:set -DgenerateBackupPoms=false " -DnewVersion=$VERSION "
39
+ ./mvnw versions:set -DgenerateBackupPoms=false " -DnewVersion=$VERSION "
40
40
git commit pom.xml ' **/pom.xml' -m " $VERSION "
41
41
git push
42
42
git tag " $VERSION "
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ docker run -d \
125
125
126
126
If you want to do your own development, you can build the image yourself :
127
127
128
- mvn -DskipTests=true clean package && \
128
+ ./mvnw -DskipTests=true clean package && \
129
129
docker build -t opengrok-dev .
130
130
131
131
Then run the container :
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ python3 -m pip uninstall opengrok_tools
129
129
130
130
``` bash
131
131
python setup.py install test
132
- mvn test
132
+ ./mvnw test
133
133
```
134
134
135
135
## Cleanup
Original file line number Diff line number Diff line change 308
308
<failsOnError >true</failsOnError >
309
309
<suppressionsLocation >/dev/checkstyle/suppressions.xml</suppressionsLocation >
310
310
<headerLocation >/dev/checkstyle/fileheader.txt</headerLocation >
311
+ <sourceDirectories >${project.build.sourceDirectory} </sourceDirectories >
311
312
</configuration >
312
313
<goals >
313
314
<goal >check</goal >
You can’t perform that action at this time.
0 commit comments