Skip to content

Commit 3c26c42

Browse files
committed
build: much quieter Maven output
- use `--no-transfer-progress` to avoid filling CI logs with about 30,000 completely useless lines of download progress status - use `maven-dependency-plugin` goal `copy-dependencies` instead of running the goal from the command line (via wrapper script), which seems to be much quieter too - now we're back to just running `maven install` instead of a wrapper (`install.sh`)
1 parent 5898003 commit 3c26c42

5 files changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232
- name: build
33-
run: ./install.sh
33+
run: mvn install
3434
- name: tar # to preserve any permissions
3535
run: |
3636
tar cavf build_timeline.tar.zst target

.mvn/maven.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--no-transfer-progress

doc/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ module load timeline/dev # load the 'dev' version (likely the most recent vers
77
module load timeline/1.0.0 # alternatively, load a specific version, such as 1.0.0
88
```
99

10-
If you want to install locally, clone the repository, then run:
10+
If you want to install locally, clone the repository, `cd` into it, then run:
1111
```bash
12-
./install.sh
12+
mvn install
1313
```
1414

1515
The directory `target/` will contain the build files, which are mostly JAR files.

install.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,24 @@
8686
</dependency>
8787
</dependencies>
8888
</plugin>
89+
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-dependency-plugin -->
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-dependency-plugin</artifactId>
93+
<version>3.8.1</version>
94+
<executions>
95+
<execution>
96+
<id>copy-dependencies</id>
97+
<phase>package</phase>
98+
<goals>
99+
<goal>copy-dependencies</goal>
100+
</goals>
101+
<configuration>
102+
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
103+
</configuration>
104+
</execution>
105+
</executions>
106+
</plugin>
89107
</plugins>
90108
</build>
91109

0 commit comments

Comments
 (0)