Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WHISKER-18: Migrate to log4j2 #215

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

WHISKER-18: Migrate to log4j2 #215

wants to merge 16 commits into from

Conversation

ottlinger
Copy link
Contributor

  • Raise minimum Maven version to 3.1.0 to benefit from slf4 log bridging
  • Replace deprecated velocity parameters
  • Remove old logging implementation in favor of standard log4j2

@ottlinger ottlinger requested a review from Claudenw December 16, 2024 22:16
@ottlinger
Copy link
Contributor Author

@Claudenw @jochenw do you have a chance to have a look into this branch from a Windows-system? The tests seem to fail, but the build does not emit what went wrong during the integration test runs of the Maven plugin. Thanks
(tests work fine on Mac and linux)

@Claudenw
Copy link

Claudenw commented Dec 18, 2024 via email

@ottlinger
Copy link
Contributor Author

@Claudenw The issue remains open. I asked a friend to checkout the branch and build and it succeeded on Windows10, not sure what OS GHA is running - the last message is

[INFO] --- invoker:3.6.0:run (integration-test) @ apache-whisker-maven-plugin ---
[INFO] Building: example-copyright-notices\pom.xml
[INFO] run post-build script verify.groovy
[INFO]   groovy.lang.MissingMethodException: No signature of method: org.apache.creadur.whisker.it.Results.report() is applicable for argument types: () values: []
Possible solutions: every(), grep(), every(groovy.lang.Closure), getAt(java.lang.String), grep(java.lang.Object), split(groovy.lang.Closure)
[INFO]           example-copyright-notices\pom.xml ................ FAILED (10.49 s)
[INFO] Building: in-5\pom.xml
[INFO] run post-build script verify.groovy
[INFO]   Assertion failed: 

assert license.exists()
       |       |
       |       false
       D:\a\creadur-whisker\creadur-whisker\apache-whisker-maven-plugin\target\it\in-5\target\LICENSE

as the file seems to exist my expectation would be to see true instead of false.

@Claudenw
Copy link

@ottlinger you could try adding <goal>-X</goal> to the invoker plugin configuration in the maven-plugin pom. That will cause the debugging to print and may help debug the problem.

@ottlinger
Copy link
Contributor Author

@ottlinger you could try adding <goal>-X</goal> to the invoker plugin configuration in the maven-plugin pom. That will cause the debugging to print and may help debug the problem.

Done - I do not understand the initial groovy error ....

[INFO] --- invoker:3.6.0:run (integration-test) @ apache-whisker-maven-plugin ---
[INFO] Building: example-copyright-notices\pom.xml
[INFO] run post-build script verify.groovy
[INFO]   groovy.lang.MissingMethodException: No signature of method: org.apache.creadur.whisker.it.Results.report() is applicable for argument types: () values: []
Possible solutions: every(), grep(), every(groovy.lang.Closure), getAt(java.lang.String), grep(java.lang.Object), split(groovy.lang.Closure)
[INFO]           example-copyright-notices\pom.xml ................ FAILED (10.73 s)
[INFO] Building: in-5\pom.xml
[INFO] run post-build script verify.groovy
[INFO]   Assertion failed: 

assert license.exists()
       |       |
       |       false
       D:\a\creadur-whisker\creadur-whisker\apache-whisker-maven-plugin\target\it\in-5\target\LICENSE

@@ -127,6 +135,7 @@
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<goal>-X</goal>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. this should be in the goals section around line 151

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Claudenw Unfortunately changing line 151 to

-              <goal>run</goal>
+              <goal>-X run</goal>

does not work and fails the build :(

Copy link
Contributor Author

@ottlinger ottlinger Dec 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately adding invoker properties does not solve the problem as the build.log's contents is not shown in the console/logs :(

Copy link

@Claudenw Claudenw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve when

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants