Commit Graph

261 Commits

Author SHA1 Message Date
Guillaume Nodet
4237d8ea57 Next is 0.9.1-SNAPSHOT 2023-01-25 08:15:46 +01:00
Guillaume Nodet
fa3cc5d664 [release] Release 0.9.0 2023-01-25 08:15:34 +01:00
Guillaume Nodet
657ac932cf Fix displayed version 2023-01-24 18:25:46 +01:00
James Z.M. Gao
f9954a526f 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 16:57:07 +01:00
Guillaume Nodet
8d2ae6da4d Attempt at moving mvn as first class citizen in mvnd distribution, #392 (#769)
# Conflicts:
#	dist/src/main/provisio/maven-distro.xml
2023-01-24 16:56:55 +01:00
Guillaume Nodet
b8028d2e10 Make connection timeouts configurable, fixes #772 (#778) 2023-01-24 16:41:43 +01:00
Guillaume Nodet
d1ce733c3b Fix spotless config to include all java files (#768)
# Conflicts:
#	client/src/main/java-fallback/org/mvndaemon/mvnd/client/DefaultClient.java
2023-01-18 01:59:50 +01:00
Guillaume Nodet
4e6a1e837c Upgrade to maven parent 39 and reformat accordingly
# Conflicts:
#	daemon/src/main/java/org/apache/maven/project/CachingProjectBuilder.java
#	daemon/src/main/java/org/mvndaemon/mvnd/plugin/CachingPluginVersionResolver.java
#	daemon/src/main/java/org/mvndaemon/mvnd/syncontext/DaemonNamedLockFactoryAdapterFactoryImpl.java
2023-01-06 13:56:26 +01:00
Guillaume Nodet
91f377d70b Add a mvnd.rawStreams property (#719) 2023-01-06 13:55:01 +01:00
Guillaume Nodet
5eebb89d82 Add an option to specify the debug address and display info when starting (fixes #737) (#753) 2023-01-06 13:35:16 +01:00
James Z.M. Gao
b81c8568a8 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>
# Conflicts:
#	pom.xml
2023-01-06 13:34:55 +01:00
Peter Palaga
2220b01207 Fixup #716 Calculate java home from java command (#721)
* Add a test
* Simplify the stream processing

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2023-01-06 13:34:11 +01:00
James Z.M. Gao
1ab67841d2 Build mostly static native image, loose linux glibc requirement to 2.12 (#730) 2023-01-06 13:33:39 +01:00
Guillaume Nodet
f2117ccfff Fix daemon JVM start options (follow-up to #749) (#751) 2023-01-06 13:33:24 +01:00
Guillaume Nodet
e95bd93dca Reformat 2023-01-06 13:26:18 +01:00
James Z.M. Gao
c94ee72a30 Calculate java home from java command (#716) 2022-10-16 20:26:35 +02: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
aacd3eb4cc Handle the multimodule project directory as early as possible in the client (fixes #694) (#697) 2022-10-03 22:46:09 +02:00
Guillaume Nodet
c310e3d206 Fix the bash completion template (#670, #682) (#698) 2022-09-30 22:42:27 +02:00
Konrad Windszus
874e26cfe8 Update GraalVM to 22.2.0 (#689)
* Update GraalVM to 22.2.0

* Upgrade graalvm to 22.2.0 and the maven plugin to its latest version

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-09-20 10:10:22 +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
6cc1770200 System properties should have precedence over environment variables, fixes #675 (#680) 2022-09-07 11:01:01 +02:00
Guillaume Nodet
0299a38264 Simplify the InterpolationHelper, use 'env.' to align with maven #676 2022-08-30 11:30:15 +02:00
Guillaume Nodet
8f9e59bab2 Fix code syntax 2022-08-30 09:27:18 +02:00
Guillaume Nodet
449e815973 Missing argument for option -D, fixes #662 (#679)
Co-authored-by: 核桃 <hetao@2dfire.com>
2022-08-30 09:14:12 +02:00
Guillaume Nodet
5e59c40453 Ability to configure the daemon storage location, fixes #673 (#678) 2022-08-29 23:15:15 +02:00
Guillaume Nodet
dc69f258be Use interpolation when loading properties, fixes #676 (#677) 2022-08-29 22:12:15 +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
Guillaume Nodet
dddc3e60f1 Next is 0.8.1-SNAPSHOT 2022-05-04 14:22:05 +02:00
Guillaume Nodet
2cfffe23ee [release] Release 0.8.0 2022-05-04 14:22:01 +02:00
Guillaume Nodet
e3bff92c95 Use sisu apt processor (#636) 2022-05-04 10:20:32 +02:00
Guillaume Nodet
ff7bbbe458 Move BuildProperties to the client (#630) 2022-05-02 13:13:07 +02:00
Guillaume Nodet
30c41aa8d5 Next is 0.8.1-SNAPSHOT 2022-04-29 17:31:50 +02:00
Guillaume Nodet
709ac3f888 [release] Release 0.8.0 2022-04-29 17:31:45 +02:00
Guillaume Nodet
c1393eac4d Next is 0.8.1-SNAPSHOT 2022-04-29 16:26:06 +02:00
Guillaume Nodet
0dc83af8f6 [release] Release 0.8.0 2022-04-29 16:26:01 +02:00
Guillaume Nodet
72cb8343d9 Next is 0.8.1-SNAPSHOT 2022-04-29 13:43:13 +02:00
Guillaume Nodet
4e5be51e4f [release] Release 0.8.0 2022-04-29 13:43:07 +02:00
Guillaume Nodet
73b99b89b1 Next is 0.8.1-SNAPSHOT 2022-04-29 13:25:18 +02:00
Guillaume Nodet
d567f1d140 [release] Release 0.8.0 2022-04-29 13:25:13 +02:00
Guillaume Nodet
dd193f1b6b Next is 0.8.1-SNAPSHOT 2022-04-27 22:08:56 +02:00
Guillaume Nodet
c1039a6d67 [release] Release 0.8.0 2022-04-27 22:08:52 +02:00
Guillaume Nodet
eaf0ec3e4a Use err stream when purging logs during a build, fixes #604 (#617) 2022-04-13 10:39:26 +02:00
Guillaume Nodet
62d580b930 Daemon reuse ignores differences in .mvn/jvm.config, fixes #576 (#580) 2022-01-13 10:01:33 +01:00
Guillaume Nodet
4c99b52e03 Make sure the maven.home and maven.conf properties are correctly set when the JVM is started, fixes #553 2022-01-11 08:12:18 +01:00
lujiefsi
827c09c51a Fix stream leak (#555) 2022-01-03 08:32:09 +01:00