Commit Graph

241 Commits

Author SHA1 Message Date
Guillaume Nodet
91f377d70b Add a mvnd.rawStreams property (#719) 2023-01-06 13:55:01 +01:00
Guillaume Nodet
852e4e5535 Move signal handling into its own class (#754)
This opens some room to per-jdk implementation
2023-01-06 13:35:39 +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
Guillaume Nodet
740f914098 Fix the common jar not being built with the multi-release flag 2023-01-06 13:35:10 +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
c9dec66723 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().
2023-01-06 13:34:03 +01:00
Guillaume Nodet
724d1fec21 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
2023-01-06 13:33:42 +01:00
Guillaume Nodet
5af94b596e Clean up some warnings during the build (#750) 2023-01-06 13:33:28 +01:00
Guillaume Nodet
f2117ccfff Fix daemon JVM start options (follow-up to #749) (#751) 2023-01-06 13:33:24 +01:00
Stefan Oehme
21383df304 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.
2023-01-06 13:33:21 +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
Nicolas Filotto
e1e5c088af Release the read lock in a finally block (#703) 2022-10-16 20:14:54 +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
Thorsten Heit
a8e72a1b25 Fix for JUnit test failing on Windows (fixes #695) 2022-10-03 08:08:32 +02:00
Tamas Cservenak
641ad93da3 Fixes module id coloring on Maven transfer. (#686)
* Fixes module id coloring on Maven transfer.

The module id coloring was not consistent during transfer
and it caused "vibrating" effect.

* PR comments
2022-09-20 10:09:49 +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
0299a38264 Simplify the InterpolationHelper, use 'env.' to align with maven #676 2022-08-30 11:30:15 +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
1ec11ab348 Make mvnd coloring more consistent with maven, fixes #653 (#654) 2022-06-20 11:28:11 +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
e51416f7f2 Allow to the registry to be resized to avoid registry corruption (#645) (#646) 2022-06-15 08:06:33 +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
Hervé Boutemy
d3d83bad37 prepare Reproducible Builds (#626) 2022-05-02 11:14: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
73f4d50bcb Remove default values for heap options (#610)
* Set default max heap size to null

Let the JVM decide the max heap size instead of using hardcoded defaults
to match the behaviour of vanilla Maven.

* Add ITs for verifying max heap behaviour

- By default no max heap should be set
- If configured via jvm.config then max heap should be set but not mvnd.maxHeapSize
- If configured via mvnd.maxHeapSize then max heap should be set

* Remove defaults memory options

* Add missing test project

* Fix too small heap size

* Fix tests

Co-authored-by: Ashhar Hasan <hashhar_dev@outlook.com>
2022-04-26 13:22:37 +02:00
Tamas Cservenak
d2365ee166 Mvnd with file locking (#508)
* Update mvnd to include Maven Resolver 1.7

As mvnd itself is Java8 lang level, it is completely
okay to up resolver to 1.7 (that is java8 as well).
The only reason why Maven 3.8.x CANNOT use resolver
1.7 is that it is still Java7 level.

* Move missing piece to SPI

* Add global exclusions

* Example of mvnd using file locking (of resolver)

* Drop irrelevant

* Upgrade to released 1.7.3

Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
2022-04-11 13:29:42 +02:00
Guillaume Nodet
4cea5d3078 Handle BufferUnderflowException as a possible registry corruption (#614) 2022-04-11 13:18:42 +02:00
Jesse Glick
2ab4cd8083 Only check /proc/self if apparently on Linux (always fall back to VM name) 2022-03-22 23:34:42 +01:00
Jesse Glick
86d1c3661b Make DaemonRegistry.getProcessId0 more robust 2022-03-22 23:34:42 +01: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
1de326c59e Remove unused subclass in the Environment enum value (#582) 2022-01-12 13:17:54 +01:00