Hi Chris,
Java/Maven-specific questions like this should probably be directed to java-devel@lists.fedoraproject.org first.
Andrew
* Chris Spike chris.spike@arcor.de [2010-07-08 15:59]:
Hi,
Is there a recommendation on the name of the pom file for java packages? There is a template in the wiki[1] that tells me to name it JPP-%{name}.pom, but actually most packages call it JPP.%{name}.pom or JPP-%{short_name}.pom. Even apache-commons packages are non consistent (e.g. JPP-commons-codec.pom, JPP-apache-commons-math.pom, JPP.jakarta-commons-io.pom or JPP-jakarta-commons-net.pom) so I guess this is up to taste?
Regards, Chris
[1] https://fedoraproject.org/wiki/Packaging/Java#maven_2
packaging mailing list packaging@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/packaging
On 07/08/2010 02:04 PM, Andrew Overholt wrote:
Hi Chris,
Java/Maven-specific questions like this should probably be directed to java-devel@lists.fedoraproject.org first.
Andrew
- Chris Spikechris.spike@arcor.de [2010-07-08 15:59]:
Hi,
Is there a recommendation on the name of the pom file for java packages? There is a template in the wiki[1] that tells me to name it JPP-%{name}.pom, but actually most packages call it JPP.%{name}.pom or JPP-%{short_name}.pom. Even apache-commons packages are non consistent (e.g. JPP-commons-codec.pom, JPP-apache-commons-math.pom, JPP.jakarta-commons-io.pom or JPP-jakarta-commons-net.pom) so I guess this is up to taste?
Regards, Chris
[1] https://fedoraproject.org/wiki/Packaging/Java#maven_2
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
* Orion Poplawski orion@cora.nwra.com [2010-07-08 16:30]:
On 07/08/2010 02:04 PM, Andrew Overholt wrote:
Hi Chris,
Java/Maven-specific questions like this should probably be directed to java-devel@lists.fedoraproject.org first.
Andrew
- Chris Spikechris.spike@arcor.de [2010-07-08 15:59]:
Hi,
Is there a recommendation on the name of the pom file for java packages? There is a template in the wiki[1] that tells me to name it JPP-%{name}.pom, but actually most packages call it JPP.%{name}.pom or JPP-%{short_name}.pom. Even apache-commons packages are non consistent (e.g. JPP-commons-codec.pom, JPP-apache-commons-math.pom, JPP.jakarta-commons-io.pom or JPP-jakarta-commons-net.pom) so I guess this is up to taste?
It is up to taste I guess. As long as the name follows the rules here, it will continue to work: http://fedoraproject.org/wiki/Java/JPPMavenReadme#POM_file_names
Regards, Chris
[1] https://fedoraproject.org/wiki/Packaging/Java#maven_2
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
Agreed. It should be something like:
%add_to_maven_depmap <original group name for the module> %{name} %{version} JPP %{name}
Cheers, Deepak
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com -- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On 07/08/2010 10:50 PM, Deepak Bhole wrote:
- Chris Spikechris.spike@arcor.de [2010-07-08 15:59]:
Hi,
Is there a recommendation on the name of the pom file for java packages? There is a template in the wiki[1] that tells me to name it JPP-%{name}.pom, but actually most packages call it JPP.%{name}.pom or JPP-%{short_name}.pom. Even apache-commons packages are non consistent (e.g. JPP-commons-codec.pom, JPP-apache-commons-math.pom, JPP.jakarta-commons-io.pom or JPP-jakarta-commons-net.pom) so I guess this is up to taste?
It is up to taste I guess. As long as the name follows the rules here, it will continue to work: http://fedoraproject.org/wiki/Java/JPPMavenReadme#POM_file_names
It says:
JPP[.<subdir name under %{_javadir}>] -jarname.pom
So I guess JPP-commons-codec.pom is ok and JPP.jakarta-commons-io.pom is a bug?
[1] https://fedoraproject.org/wiki/Packaging/Java#maven_2
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
Agreed. It should be something like:
%add_to_maven_depmap <original group name for the module> %{name} %{version} JPP %{name}
Ok, that helps. Thanks.
Regards, Chris
Hi Deepak,
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
Agreed. It should be something like:
%add_to_maven_depmap <original group name for the module> %{name} %{version} JPP %{name}
Please take this modification to the guidelines to the Fedora packaging committee for inclusion on the wiki.
Thanks,
Andrew
On 07/08/2010 05:26 PM, Andrew Overholt wrote:
Hi Deepak,
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
Agreed. It should be something like:
%add_to_maven_depmap <original group name for the module> %{name} %{version} JPP %{name}
Please take this modification to the guidelines to the Fedora packaging committee for inclusion on the wiki.
The second argument is not %{name}, but the artifactId, so it's more like
%add_to_maven_depmap <groupId> <artifactId> <version> JPP[/path/relative/to/%{_javadir}] <jar>
The third argument is typically ignored, and in fact, even here, it should be the version in the pom, which is almost always (but not necessarily) the same as %{version}.
2010/7/9 David Walluck david@zarb.org:
On 07/08/2010 05:26 PM, Andrew Overholt wrote:
Hi Deepak,
Also, it shows:
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
But org.apache.maven almost certainly needs to be changed to the appropriate parent, but there is no discussion about this on the page.
Agreed. It should be something like:
%add_to_maven_depmap <original group name for the module> %{name} %{version} JPP %{name}
Please take this modification to the guidelines to the Fedora packaging committee for inclusion on the wiki.
The second argument is not %{name}, but the artifactId, so it's more like
%add_to_maven_depmap <groupId> <artifactId> <version> JPP[/path/relative/to/%{_javadir}] <jar>
The third argument is typically ignored, and in fact, even here, it should be the version in the pom, which is almost always (but not necessarily) the same as %{version}.
We had some discussions on that topic before, in response to this proposal: https://fedoraproject.org/wiki/User:Abo/JavaPackagingDraftUpdate which looks better than current guidelines imho
cheers
java-devel@lists.fedoraproject.org