Commit Graph

1243 Commits

Author SHA1 Message Date
Guillaume Nodet
c61540edb6 Use graalvm 22.3.1 and use staging repo for release 2023-01-28 14:24:14 +01:00
Guillaume Nodet
da1136dd75 Add ignored tags 2023-01-28 14:21:50 +01:00
Guillaume Nodet
4833e6f73f Discover mvnd.home by looking for the mvnd-daemon jar in lib or lib/ext 2023-01-28 14:15:58 +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 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
3f563e829d Disable build consumer on tests using invoker to workaround MINVOKER-319 2023-01-28 02:08:53 +01:00
Guillaume Nodet
86d4e9b365 Upgrade to surefire 3.0.0-M8 2023-01-28 00:08:08 +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
Guillaume Nodet
1feeb7f13d Regen bash completion 2023-01-27 17:55:47 +01:00
Guillaume Nodet
faa59800d0 Fix test for changed version message 2023-01-24 20:00:40 +01:00
Guillaume Nodet
e10aecd5f7 Fix displayed version 2023-01-24 18:26:02 +01:00
Guillaume Nodet
6b4674e6af Fix executable bit on the mvnd-bash-completion script (#756) 2023-01-24 11:55:36 +01:00
Guillaume Nodet
b0ea852798 Fix discovery of mvnd.home using the executable 2023-01-24 11:36:39 +01:00
James Z.M. Gao
6f28a189b6 Try native image then fallback to pure java version (#717)
* Add script mvnd-auto to auto select native or pure java mvnd

* Move fallback logic into main entry script

1. rename native binary to 'mvnd-native-<os>-<arch>'
2. add environment switch MVND_ENTRY_FALLBACK, default 'true' enables
   the fallback logic, set to 'false' to force execute the native mvnd.
3. rename mvnd.sh to mvnd

* change entry name on windows

* Add script mvnd-persist-native for moving the native image to the default entry path

* improve platform detect

* fix error on dash

* rollback default entry to the native image

* use MVND_CLIENT switch to control the selection of mvnd client

* improve comment docs as suggestion
2023-01-24 10:51:56 +01:00
Guillaume Nodet
4f90d558b2 Attempt at moving mvn as first class citizen in mvnd distribution, #392 (#769) 2023-01-24 10:50:40 +01:00
Guillaume Nodet
b2bd0aaae5 Fix system out / err streams when redirecting to file (#779) 2023-01-24 08:19:05 +01:00
Guillaume Nodet
19cc6c42b7 Make connection timeouts configurable, fixes #772 (#778) 2023-01-23 19:56:49 +01:00
Guillaume Nodet
a2a5854887 Upgrade to sisu 0.9.0.M1 and surefire 3.0.0-M8 2023-01-19 11:02:26 +01:00
Guillaume Nodet
c6b8e81d74 Upgrade to assertj 3.24.2, graalvm 22.3.1, groovy 4.0.7, junit 5.9.2, xstream 1.4.20 2023-01-19 11:02:26 +01:00
Guillaume Nodet
3fc3b828d8 Upgrade maven wrapper to 3.1.1 and latest maven 2023-01-19 11:02:26 +01:00
Guillaume Nodet
b09eb96ab0 Upgrade jline to 3.22.0 (#775) 2023-01-17 19:34:01 +01:00
Peter Palaga
5cd0f754d5 Publish the binaries produced by the Early Access job again 2023-01-17 15:57:30 +01:00
Peter Palaga
8d161dcf76 Exclude test and cache filed from apache-rat-plugin checks 2023-01-17 15:57:30 +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
cc74f52211 Typo 2023-01-06 13:23:03 +01:00
Guillaume Nodet
417ed7ec8b Fix performance problem with mvnd (fixes #758, #760) 2022-12-23 10:22:59 +01:00
Guillaume Nodet
6afe6d5e2b Update the release process with the Apple M1 build 2022-12-16 13:33:01 +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 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
Guillaume Nodet
c91c0e8352 Fix code style 2022-12-16 10:26:29 +01:00
Guillaume Nodet
7a788bb86f Add an option to specify the debug address and display info when starting (fixes #737) (#753) 2022-12-16 08:39:39 +01:00
Guillaume Nodet
cc2181ebdb Revert "Always display failed and main project at the end (fixes #723) (#724)"
This reverts commit fd3f20ef96.

After using it a bit, the output is rather worse, so let's revert until a better solution is found.
2022-12-15 21:45:54 +01:00
Guillaume Nodet
adbf836768 Fix the common jar not being built with the multi-release flag 2022-12-15 19:27:55 +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
Plamen Totev
64828123f5 Improve the README file (#734)
There is wide spread misconception that in order to build a Maven project
the command is `mvn clean install`.

It would be better to promote the right way (in the vast majority of the cases)
to build a Maven project.

`mvnd verify` aligns with Maven documentation as well,
where the example command is `mvn verify`.
2022-12-14 11:52:24 +01:00
Guillaume Nodet
fd3f20ef96 Always display failed and main project at the end (fixes #723) (#724) 2022-12-14 09:34:24 +01:00
Peter Palaga
031c263232 Fixup #716 Calculate java home from java command (#721)
* Add a test
* Simplify the stream processing

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-12-14 00:35:10 +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
James Z.M. Gao
1249211b49 Build mostly static native image, loose linux glibc requirement to 2.12 (#730) 2022-12-13 23:01:31 +01:00
Guillaume Nodet
25b5117749 Clean up some warnings during the build (#750) 2022-12-13 23:00:11 +01:00
Guillaume Nodet
bc021d0577 Fix daemon JVM start options (follow-up to #749) (#751) 2022-12-09 23:58:13 +01:00
Stefan Oehme
866a7c6f3f Add more discriminating properties to the daemon
The local repo and maven settings are both used while resolving core extensions,
which happens during daemon startup. Thus these two also need to be discriminating
properties, as the core extensions themselves are discriminating.
2022-12-08 23:02:02 +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