Skip to content

Commit b116838

Browse files
committed
Update default mvn invocation and headings
Make it more explicit that these commands are run by default
1 parent 793a3d4 commit b116838

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

user/languages/java.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@ in your `.travis.yml` file.
2222

2323
## Projects Using Maven
2424

25-
### Default Test Command
25+
### Default `script` Command
2626

27-
if your project has `pom.xml` file in the repository root but no `build.gradle`, Travis CI Java builder will use Maven 3 to build it. By default it will use
27+
If your project has `pom.xml` file in the repository root but no `build.gradle`, Travis CI Java builder will use Maven 3 to build it. By default it will use
2828

2929
mvn test
3030

3131
to run your test suite. This can be overridden as described in the [general build configuration](/user/customizing-the-build/) guide.
3232

3333
Note that, by default, JavaDoc generation will be skipped via `-Dmaven.javadoc.skip=true`.
3434

35-
### Dependency Management
35+
### Dependency Management with Default `install`
3636

3737
Before running tests, Java builder will execute
3838

39-
mvn install -DskipTests=true
39+
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
4040

4141
to install your project's dependencies with Maven.
4242

4343
## Projects Using Gradle
4444

45-
### Default Test Command
45+
### Default `script` Command
4646

4747
if your project has `build.gradle` file in the repository root, Travis CI Java builder will use Gradle to build it. By default it will use
4848

@@ -54,7 +54,7 @@ to run your test suite. If your project also includes the `gradlew` wrapper scri
5454

5555
This can be overridden as described in the [general build configuration](/user/customizing-the-build/) guide.
5656

57-
### Dependency Management
57+
### Dependency Management with Default `install`
5858

5959
Before running tests, Java builder will execute
6060

@@ -80,15 +80,15 @@ cache:
8080

8181
## Projects Using Ant
8282

83-
### Default Test Command
83+
### Default `script` Command
8484

8585
If Travis CI could not detect Maven or Gradle files, Travis CI Java builder will use Ant to build it. By default it will use
8686

8787
ant test
8888

8989
to run your test suite. This can be overridden as described in the [general build configuration](/user/customizing-the-build/) guide.
9090

91-
### Dependency Management
91+
### Dependency Management with Default `install`
9292

9393
Because there is no single standard way of installing project dependencies with Ant, Travis CI Java builder does not have any default for it. You need to specify the exact command to run using `install:` key in your `.travis.yml`, for example:
9494

0 commit comments

Comments
 (0)