Hi,

Thank you for this opportunity, here is my wishlist, mostly focused on making 
packaging easier,
especially for people unfamiliar with the Debian packaging system (like me):


1/ Make the Debian version of maven able to locate its own plugins.

Simplest example I could come up with.
 - Following packages were installed: maven, maven-debian-helper, 
maven-repo-helper)
 - Pom did not specify the maven-clean-plugin version (so that it would be 
resolved from the installed maven)

  $ MAVEN_OPTS="-Dmaven.repo.local=/usr/share/maven-repo" mvn --offline clean
  [INFO] Scanning for projects...
  [INFO]
  [INFO] --------------------------< org.symly:symly 
>---------------------------
  [INFO] Building Symly 0.11-SNAPSHOT
  [INFO] --------------------------------[ jar 
]---------------------------------
  [WARNING] The artifact org.apache.maven.plugins:maven-clean-plugin:jar:2.5 
has been relocated to org.apache.maven.plugins:maven-clean-plugin:jar:3.2.0
  [INFO]
  [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ symly ---
  [INFO] 
------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] 
------------------------------------------------------------------------
  [INFO] Total time:  0.065 s
  [INFO] Finished at: 2024-12-18T09:46:09Z
  [INFO] 
------------------------------------------------------------------------
  [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean (default-clean) on 
project symly: Execution default-clean of goal 
org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean failed: Plugin 
org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies 
could not be resolved: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the artifact 
org.codehaus.plexus:plexus-utils:jar:1.1 has not been downloaded from it 
before. -> [Help 1]


2/ Add a cookbook on how to create poms that are compatible with both Maven
and Debian best practices as well as a step by step guide for mh_make 
integration.

The page https://wiki.debian.org/Java/Packaging/Maven is very minimal,
the "mh_make" section contains a deadlink to
http://collab.debian.net/portal/planet-debian/markus-koschany-pdfsam-how-to-upgrade-a-maven-application-for-debian.
The only documentation I was able to find for mh_make is the youtube video.


3/ Provide a more controlled and flexible way of locating a JRE runtime
for java start scripts.

A possible solution would be findjava (I'm the author). I submitted a
request for packaging via 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039109
Emmanuel Bourg started to look at how to package findjava, but stopped
not sure if because of time, interest or blockers. See
https://github.com/loicrouchon/findjava/issues/1


Loïc

Reply via email to