Skip to content

Commit

Permalink
Less Maven output
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Jun 1, 2024
1 parent 3119cb9 commit 092d9bc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Continuous Integration

on: [push, pull_request]

env:
MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,7 +51,9 @@ jobs:
run: ./build_and_run.sh
working-directory: ./examples/maven_example
- name: Example "gradle_example"
run: ./build_and_run.sh
run: |
mvn $MAVEN_ARGS package
mvn $MAVEN_ARGS exec:exec
working-directory: ./examples/gradle_example
- name: Example "kotlin_example"
run: ./build_and_run.sh
Expand All @@ -57,5 +62,7 @@ jobs:
run: ./build_and_run.sh
working-directory: ./examples/append_to_pdf
- name: Example "jasper_reports_rendering"
run: ./build_and_run.sh
run: |
mvn $MAVEN_ARGS package
mvn $MAVEN_ARGS exec:exec
working-directory: ./examples/jasper_reports_rendering
2 changes: 1 addition & 1 deletion examples/maven_example/build_and_run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
mvn package
mvn exec:java -Dexec.mainClass="net.codecrete.qrbill.examples.QRBillExample"
mvn exec:exec
20 changes: 20 additions & 0 deletions examples/maven_example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>net.codecrete.qrbill.examples.QRBillExample</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 092d9bc

Please sign in to comment.