Repository navigation
Commit 4e50e95
authored
Fix maven.mainClass property missing for external tools (#10998)
Fixes #10996
When external tools like IntelliJ launch Maven directly using the
ClassWorlds launcher without setting the maven.mainClass system
property, Maven fails with 'No such property: maven.mainClass'.
This change adds a default value for maven.mainClass in m2.conf
so that external tools can launch Maven without needing to know
about this property. The default value is org.apache.maven.cling.MavenCling
which is the standard Maven CLI entry point.
The fix maintains backward compatibility - Maven launcher scripts
continue to work normally by setting the property explicitly,
while external tools now have a sensible default.1 parent cb9c4f1 commit 4e50e95
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
0 commit comments