Bukama commented on PR #101:
URL:
https://github.com/apache/maven-jmod-plugin/pull/101#issuecomment-4480482828
```
D:\Github\Maven\maven-jmod-plugin>mvn --version
Apache Maven 4.0.0-rc-5 (fb3ecaef88106acb40467a450248dfdbd75f3b35)
Maven home: C:\apache-maven-4.0.0-rc-5
Java version: 25.0.2, vendor: Azul Systems, Inc., runtime: C:\Program
Files\Zulu\zulu-25
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "winnt"
[ERROR] The following builds failed:
[ERROR] * describe-base-config\pom.xml
[ERROR] * list-base-config\pom.xml
[ERROR] * list-plain\pom.xml
[ERROR] * mjmod-20-set-main-class\pom.xml
[ERROR] * mjmod-23-path-must-be-dir\pom.xml
```
**describe-base-config**
```
Assertion failed:
def expectedDescriptorLines = [
'[email protected]',
'exports myproject',
'requires java.base'
] as Set
assert expectedDescriptorLines == describeLines
| | |
| |
['[email protected]', 'exports myproject', 'requires
java.base', 'Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:pom:99.0 to
project local repository', 'Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:jmod:99.0 to
project local repository', '[DEBUG] Reading file model from
D:\\Github\\Maven\\maven-jmod-plugin\\target\\it\\describe-base-config\\pom.xml',
'Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:pom:consumer:99.0
to project local repository']
| false
['[email protected]', 'exports myproject',
'requires java.base']
```
The tests checkes for log messages and expected a total of three. Due the
introduced consumer pom there are new log messages, which make the test fail
These are the lines which got collected for comparison (the `[INFO]` and
whitespace gets removed).
```
[INFO] [email protected]
[INFO] exports myproject
[INFO] requires java.base
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:pom:99.0 to
project local repository
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:jmod:99.0 to
project local repository
[DEBUG] Reading file model from
D:\Github\Maven\maven-jmod-plugin\target\it\describe-base-config\pom.xml
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-describe-base-config:pom:consumer:99.0
to project local repository
```
I think this is not a bug, but just needs adjustment due more logging from
Maven cores site.
**list-base-config**
Similar to the one above. More messages got logged than expected
```
Expected:
'conf/config.test',
'classes/module-info.class',
'classes/myproject/HelloWorld.class',
------
Actual:
[INFO] The following files are contained in the module file
D:\Github\Maven\maven-jmod-plugin\target\it\list-base-config\target\jmods\maven-jmod-plugin-list-base-config.jmod
[DEBUG] "C:\Program Files\Zulu\zulu-25\bin\jmod.exe" list
D:\Github\Maven\maven-jmod-plugin\target\it\list-base-config\target\jmods\maven-jmod-plugin-list-base-config.jmod
[INFO] classes/module-info.class
[INFO] classes/myproject/HelloWorld.class
[INFO] conf/config.test
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-list-base-config:pom:99.0 to project
local repository
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-list-base-config:jmod:99.0 to
project local repository
[DEBUG] Reading file model from
D:\Github\Maven\maven-jmod-plugin\target\it\list-base-config\pom.xml
[INFO] Copying
org.apache.maven.plugins:maven-jmod-plugin-list-base-config:pom:consumer:99.0
to project local repository
```
**list-plain**
Same here, one more line logged.
```
Expected:
'conf/config.test',
'classes/module-info.class',
'classes/myproject/HelloWorld.class',
--------
Actual:
[INFO] The following files are contained in the module file
D:\Github\Maven\maven-jmod-plugin\target\it\list-plain\target\jmods\maven-jmod-plugin-list-base-config.jmod
[DEBUG] "C:\Program Files\Zulu\zulu-25\bin\jmod.exe" list
D:\Github\Maven\maven-jmod-plugin\target\it\list-plain\target\jmods\maven-jmod-plugin-list-base-config.jmod
[INFO] classes/module-info.class
[INFO] classes/myproject/HelloWorld.class
[INFO] conf/config.test
```
**20-set-main-class**
**23-path-must-be-dir**
Those two IT fail due build errors, as the default version of the jar-plugin
is pulled in (plugin is not declared in the ITs) and is not compatible.
Log from 20. The one from 23 is similar and fails on the myproject.greetings
project.
```
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for maven-jmod-plugin-mjmod-20 99.0:
[INFO]
[INFO] maven-jmod-plugin-mjmod-20 ......................... SUCCESS [ 0.011
s]
[INFO] myproject.world .................................... FAILURE [ 3.623
s]
[INFO] myproject.greetings ................................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.071 s
[INFO] Finished at: 2026-05-18T19:41:09+02:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:jar (default) on project
myproject.world: Execution default of goal
org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:jar failed: An API
incompatibility was encountered while executing
org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:jar:
java.lang.NoSuchMethodError: 'org.apache.maven.api.Artifact
org.apache.maven.api.Project.getPomArtifact()'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]