RFC: Maven Repository Specification

Damien Raude-Morvan drazzib-ml at drazzib.com
Sun Jan 18 22:14:03 UTC 2009


On Saturday 17 January 2009 15:24:26 Torsten Werner wrote:
> Hi,

Hi Torsten,

> I have already used maven-debian-helper on more than 2 dozen packages
> on my local system (including jetty 6.1.9). Information about
> maven-debian-helper can be found at
> <http://wiki.debian.org/Java/MavenBuilder> but the specification
> should be applicable to packages that are not using Maven for
> building, too. The major ideas of the spec are:
> - install the artifacts into a Maven repository at /usr/share/maven-repo/
> - create unversioned symlinks to binary jars in /usr/share/java/
> - replace hard coded version numbers in pom.xml files by properties
> - use the <systemPath> element as a temporary workaround in the pom.xml

Some various comments :

- Repository layout
Your proposal seems okay for me. It mimic Maven central repo structure which 
seams reasonable and maven-user-friendly.

- Usage of system scope dependencies
I'm really reluctant to use system scope + systemPath to replace missing POM 
descriptors, especially when we'll need to replace some "test" scope 
dependencies. Those system scope dependencies will end up into 
$REPO/.../$myProject-$version.pom and increase transitive dependencies of 
$myProject. Maybe we should clearly remove test dependencies when they need 
missing POM ?

- Version properties
Your spec. isn't really clear about patching of POM to remove/replace version 
information. What do you intend to do with "<version>${org.apache.maven.maven-
core.version}</version>" ? Where is org.apache.maven.maven-core.version 
property is defined ? Why not use something like this : "[2.0,3.0)" ?

Thank for your work on Maven Debian packaging.

[1] http://maven.apache.org/guides/introduction/introduction-to-dependency-
mechanism.html#Dependency_Scope

-- 
Damien Raude-Morvan / www.drazzib.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20090118/99fa83e6/attachment.pgp 


More information about the pkg-java-maintainers mailing list