Re: mvn virtual packages (auto-provides/requires)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Mikolaj Izdebski (2013-09-11 13:58:03)
> Java Packages Tools version 3.0.0 has recently been pushed to rawhide.
> Since this version virtual packages generated automatically for Maven
> artifacts (aka auto-provides) were extended slightly.  In this email I
> will describe briefly the new format of virtual package names.
> 
> All Maven virtual package names used to be in format:
> 
> mvn(groupId:artifactId) = version
> 
> This has recently been extended to four different forms:
> 
> mvn(groupId:artifactId) = version
> mvn(groupId:artifactId:compatVersion) = version
> mvn(groupId:artifactId:extension:compatVersion) = version
> mvn(groupId:artifactId:extension:classifier:compatVersion) = version

I'll just note that any of extension, classifier and compatVersion parts can be
empty string so you can see provides such as:


mvn(groupId:artifactId::classifier:) = version

Note that if last colon was omitted the classifier would be considered as a
version:

mvn(groupId:artifactId::version) = version

But provides/requires generators will always use the shorter version of 
mvn(groupId:artifactId:version) = version

This is good to know if you need to specify extension/classifier for some of the
scripts such as add_maven_depmap:

%add_maven_depmap gId:aId:war:version <path_to_war>

Following usage would be incorrect because last part (war) would be considered
as a version:

%add_maven_depmap gId:aId:war <path_to_war>



> 
> * groupId and artifactId are upstream identifiers of the artifact.
> Version is artifact version, as set by upstream.
> 
> * compatVersion is the compatibility version assigned by package
> maintainer.  This is Fedora-specific.  compatVersion can differ from
> version.
> 
> * extension is extension of artifact file, for example jar, war, pom,
> tar.gz and so on.  If extension is omitted then it defaults to jar.
> 
> * classifier is artifact classifier.
> 
> This email describes only one feature of javapackages-tools-3.0.0.
> Full release notes will be provided by Stanislav Ochotnicky in a
> separate email.
> 
> -- 
> Mikolaj Izdebski
> IRC: mizdebsk
> --
> java-devel mailing list
> java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/java-devel

-- 
Stanislav Ochotnicky <sochotnicky@xxxxxxxxxx>
Software Engineer - Developer Experience

PGP: 7B087241
Red Hat Inc.                               http://cz.redhat.com
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel





[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux