Commit Graph

337 Commits

Author SHA1 Message Date
Guillaume Nodet
34b7ee35cf Next is 1.0-m6-SNAPSHOT 2023-03-22 08:58:41 +01:00
Guillaume Nodet
71146dab82 [release] Release 1.0-m5 2023-03-22 08:58:28 +01:00
Guillaume Nodet
0e057cb12b Make sure mvnd's plexus-interactivity is not in the maven classloader, fixes #807
* the logging framework is extracted into its own jar and moved in the mvn/lib/ directory
* the other daemon jars are moved into the mvn/lib/mvnd directory and not used by maven at all
This makes maven class loader almost identical to the stock maven classloader, but for the logging framework
2023-03-14 13:53:24 +01:00
Petr Široký
50653ae7d9 logging: use format specifiers instead of string concatenation 2023-03-12 23:08:32 +01:00
Guillaume Nodet
c2e4ee2f00 Fix EnvHelper#chDir on JDK 21 (#802) 2023-03-10 10:07:17 +01:00
Guillaume Nodet
65da451ecd Switch back to takari smart builder (#805) 2023-03-10 08:48:08 +01:00
Guillaume Nodet
2113d61baa Avoid possible NPE, fixes #795 (#806) 2023-03-10 08:47:33 +01:00
Guillaume Nodet
95b40a3d8a Provide distributions for both maven 3.9.x and 4.0.x (#796) 2023-03-08 00:03:49 +01:00
Petr Široký
1f99fb8cb7 Run client connection handler inside new thread, fixes #798 (#801)
* Run client connection handler inside new thread, fixes #798
* Execute CI build on ubuntu-22.04
 * ubuntu-18.04 image is now deprecated and there are brownout periods
   being introduced where the builds are failing
 * see https://github.com/actions/runner-images/issues/6002 for more
   details
2023-03-07 14:16:04 +01:00
Stefan Oehme
0b55c8f3e6 Add property to disable model caching
This is mostly for the integration tests of the Gradle Enterprise Maven extension,
which heavily test dependency resolution and reuse the same GAVs in many test,
e.g. a🅱️1.0. It would be a lot of effort to rewrite all those tests and a shame
to restart the daemon every time. So I wanted to ask if you'd consider this flag
to disable the caching altogether.
2023-03-02 22:42:36 +01:00
Stefan Oehme
1bcfc29d45 Make Classworld setup more alike to vanilla Maven (#784)
Use the plexus Launcher to start the daemon server, just like we would
launch a normal Maven process.

This improves compatibility with any extensions or plugins that assume that
their ClassLoader is a ClassRealm.
2023-02-14 17:06:34 +01:00
Guillaume Nodet
ddc8ef9a10 Remove duplicate header 2023-02-14 16:53:05 +01:00
Guillaume Nodet
11c6567bdd Next is 1.0.0-m5-SNAPSHOT 2023-01-28 14:41:03 +01:00
Guillaume Nodet
f01c3ff97a [release] Release 1.0.0-m4 2023-01-28 14:35:11 +01:00
Guillaume Nodet
8e92805e30 Next is 1.0.0-m4-SNAPSHOT 2023-01-28 14:27:02 +01:00
Guillaume Nodet
35d3e842af [release] Release 1.0.0-m3 2023-01-28 14:26:51 +01:00
Guillaume Nodet
44ea9d84ff Next is 1.0.0-m3-SNAPSHOT 2023-01-28 10:16:22 +01:00
Guillaume Nodet
cef086fb3d [release] Release 1.0.0-m2 2023-01-28 10:16:08 +01:00
Guillaume Nodet
9d9f9c62f2 Workaround for MNG-7673 2023-01-28 02:11:14 +01:00
Guillaume Nodet
bf892cd1bf Upgrade to maven 4.0.0-m4 and resolver 1.9.4 2023-01-28 00:07:56 +01:00
Stefan Oehme
74df4b6b53 Fix core export provider (#764)
* Fix core export provider

Since https://github.com/apache/maven/pull/616, the default
CoreExportProvider no longer uses the provided CoreExports,
but instead tries (and fails) to discover them itself.

This change fixes that by providing our own custom instance
of CoreExportProvider. This allows core extension to contribute
exported artifacts and exported packages again, like it used to
do before the Maven 4.x upgrade.

* Add integration tests for API-providing extensions
2023-01-17 11:18:22 +01:00
Guillaume Nodet
f3c336adb9 Fix spotless config to include all java files (#768) 2023-01-10 18:39:29 +01:00
Guillaume Nodet
417ed7ec8b Fix performance problem with mvnd (fixes #758, #760) 2022-12-23 10:22:59 +01:00
Guillaume Nodet
554e82a6a1 Next is 1.0.0-SNAPSHOT 2022-12-16 12:57:35 +01:00
Guillaume Nodet
7586cf2b0c [release] Release 1.0.0-m1 2022-12-16 12:08:31 +01:00
Guillaume Nodet
89841adbcb Upgrade to maven parent 39 and reformat accordingly 2022-12-16 11:38:47 +01:00
Guillaume Nodet
55236739f8 Add a mvnd.rawStreams property (#719) 2022-12-16 11:33:59 +01:00
Guillaume Nodet
39ee2b6014 Move signal handling into its own class (#754)
This opens some room to per-jdk implementation
2022-12-16 11:11:04 +01:00
Tamas Cservenak
92cbc7d6cf Update Maven to 4.0.0-alpha-3 and Maven Resolver to 1.9.2 (#742)
https://issues.apache.org/jira/browse/MNG-7586

* Remove CliMavenPluginManager which has the changed needed in alpha-3
* Align slf4j api with maven
* Make sure the invoker being called from IT reuses the settings from the invoker running the IT
* Fix IT when mrm is disabled
* Fix InvalidingPluginRealmCache

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-12-15 19:26:58 +01:00
James Z.M. Gao
f8d047bdae Use muti-release jar to fallback mvnd-client to original maven (#722)
* Use muti-release jar to fallback mvnd-client to original maven

The mvnd-client is built to a muti-release jar. The default version of
    DefaultClient is compiled against the same target version as the
   embedded maven (4.x, so JDK 1.8) which only invoke the MavenCli.main(). 
The java-11 version is the full qualified mvnd-client.

* update cmd scripts

* embedded maven now works under JDK 1.8

Build SimpleAppender for JDK 1.8 since it is the log appender only
   for the embedded maven

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-12-14 17:41:02 +01:00
Guillaume Nodet
2b8076d1ed Support redirecting input from client to daemon, #541 (#581)
The implementation currently switches on the redirection when the daemon actually starts reading the System.in stream using InputStream.read() or InputStream.available().
2022-12-13 23:59:35 +01:00
Guillaume Nodet
2a8d18d119 Display plugin's goal prefix and version instead of artifactId (#748)
* Display plugin's goal prefix and version instead of artifactId
* Default to groupId:artifactId if goalPrefix is not present
2022-12-13 23:58:58 +01:00
Guillaume Nodet
25b5117749 Clean up some warnings during the build (#750) 2022-12-13 23:00:11 +01:00
Stefan Oehme
eedcb77e3c Reset system properties after calling event syps (#729)
Event spies may want to read system properties, which will fail if they are reset
too early. This change makes the behavior consistent with regular Maven.
2022-12-07 18:05:50 +01:00
Guillaume Nodet
e91c780c18 Clean up and upgrade dependencies/plugins versions (#741) 2022-11-23 13:23:10 +01:00
Guillaume Nodet
d1d3cb0f65 Fix possible NullPointerException 2022-11-23 10:16:27 +01:00
Guillaume Nodet
a14a1eb80f Reformat 2022-11-22 15:44:53 +01:00
Guillaume Nodet
895381b43f Switch to maven 4.0.0-alpha-2 (#718) 2022-11-19 16:56:26 +01:00
Guillaume Nodet
5a8f29cf6f Switch master to 1.0.0-SNAPSHOT 2022-11-19 16:17:44 +01:00
Guillaume Nodet
f2224cb563 Next is 0.9.0-SNAPSHOT 2022-10-04 09:06:03 +02:00
Guillaume Nodet
2bba2d6a4d [release] Release 0.8.2 2022-10-04 09:05:56 +02:00
Guillaume Nodet
da369cfe0d Next is 0.9.0-SNAPSHOT 2022-10-04 07:51:14 +02:00
Guillaume Nodet
a9f7d1156f [release] Release 0.8.2 2022-10-04 07:51:08 +02:00
Guillaume Nodet
48ca793014 Fix duplicate space in doc 2022-10-03 21:08:57 +02:00
Guillaume Nodet
192affadc6 Fix maven extensions' parent classloader (fixes #690) (#702) 2022-10-03 15:19:50 +02:00
Guillaume Nodet
8c9d1673de SimpleAppender omits stacktraces (fixes #696) (#700) 2022-10-03 11:25:10 +02:00
Guillaume Nodet
309d0c7eff Next is 0.9.0-SNAPSHOT 2022-09-08 11:39:54 +02:00
Guillaume Nodet
821c6a54a2 [release] Release 0.8.1 2022-09-08 11:39:51 +02:00
Guillaume Nodet
378a776166 Fix plugins' parent classloader to not include libraries, fixes #681 (#683) 2022-09-08 06:15:13 +02:00
Guillaume Nodet
1327fe2af4 Cleanup (#650)
* Improve reproducibility of builds by using digest on docker images
* Inline the manifest Multi-Release entry
* Remove unused files
* Switch the groupId to org.apache.maven.daemon and use maven parent pom
* Fix distribution
* Fix ITs
* Fix native build for windows
2022-06-15 08:09:12 +02:00