Commit Graph

171 Commits

Author SHA1 Message Date
Guillaume Nodet
657ac932cf Fix displayed version 2023-01-24 18:25:46 +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
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
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
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
ff7bbbe458 Move BuildProperties to the client (#630) 2022-05-02 13:13:07 +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
Guillaume Nodet
06fa4fd227 Fix url cache (fixes #532 and #527) 2022-01-03 08:30:41 +01:00
Guillaume Nodet
00a404c2c1 mvnd status output columns are too narrow, fixes #518 (#522) 2021-12-06 17:12:59 +01:00
Guillaume Nodet
ad703938ac Fix client not responding when using help with an output redirection, fixes #519 (#521) 2021-12-06 16:40:21 +01:00
Guillaume Nodet
a886562a65 Fix passing options, fixes #515 (#520) 2021-12-06 16:18:22 +01:00
Jeff Smits
adbe953463 Add thread stack size (-Xss) option (#489) 2021-10-19 11:44:22 +02:00
Guillaume Nodet
dff50ace35 Fix mvnd command line aliases, fixes #490 2021-10-06 15:20:59 +02:00
Guillaume Nodet
30e1747d84 The maven.multiModuleProjectDirectory is badly set when using -f [path-to-pom], fixes #484 2021-10-06 15:18:00 +02:00
Guillaume Nodet
aa89bd64ba Introduce a SocketFamily instead 2021-08-31 08:44:53 +02:00
Guillaume Nodet
b67ab81c3d Allow unix domain sockets for client/daemon connection (not used by default) 2021-08-31 08:43:31 +02:00
Guillaume Nodet
df44238c26 Fix the JDK_JAVA_OPTIONS 2021-06-17 17:32:06 +02:00
Guillaume Nodet
d36a226112 The JDK_JAVA_OPTIONS environment variable is not honoured, fixes #429 2021-06-17 13:55:11 +02:00
Guillaume Nodet
4fe532addf Open java.io and sun.nio.fs 2021-06-15 17:10:03 +02:00
Guillaume Nodet
6a7f172412 Fix the number of cancelled daemons displayed 2021-05-18 15:58:44 +02:00
Frederik Boster
784264c087 #390 Restrict usage of mvnd daemons to the current user by utilizing a token check 2021-04-06 20:38:56 +02:00
Guillaume Nodet
74ebee0697 The update of the environment does not work with jdk 16, fixes #380 2021-03-18 21:57:42 +01:00
Peter Palaga
bc4d2e6176 Leverage Maven's -Dstyle.color to avoid coloring instead of stripping
the ASCII codes in the client
2021-03-10 08:07:03 +01:00
Peter Palaga
90cae47f1a Leverage Maven's -Dstyle.color to avoid coloring instead of stripping the ASCII codes in the client 2021-03-10 08:07:03 +01:00
Guillaume Nodet
7fb15766b1 Fix color output for file / tty #358 2021-02-15 17:15:15 +01:00
Guillaume Nodet
c85f2ea285 mvnd ignores the .mvn/jvm.config file , fixes #348 2021-02-15 09:08:36 +01:00
Guillaume Nodet
e2a419a870 Add a a few debug entries to help diagnosing test failures 2021-02-12 09:18:20 +01:00
Peter Palaga
ddea5d8ea8 Fixup 143f4f13 Display the daemon id and shorten it a bit #314 2021-01-08 23:07:15 +00:00
Guillaume Nodet
143f4f13ab Display the daemon id and shorten it a bit, fixes #314 2021-01-08 21:50:20 +00:00
Peter Palaga
aae395e8b2 Speed up bash completion loading by packaging it as a file in the ZIP distribution #296 2021-01-07 07:29:14 +00:00
Peter Palaga
c6de4dbd9a Right-pad projectIds to improve mojo readability in the threaded view #288 2021-01-06 20:07:39 +00:00
Guillaume Nodet
d6464ed790 Use an agent to support processes launched with redirected io, fixes #241 2021-01-06 17:25:08 +01:00