[fedora-java] Java packages inpla Fedora

Alexander Kurtakov akurtako at redhat.com
Fri Oct 8 09:18:08 UTC 2010


> On 10/08/2010 12:03 AM, Orion Poplawski wrote:
> > On 10/07/2010 02:52 PM, Guido Grazioli wrote:
> >> 2010/10/7 Orion Poplawski<orion at cora.nwra.com>:
> >>> On 10/07/2010 02:07 PM, Orion Poplawski wrote:
> >>> Also, it appears that commons-jexl changed it's groupId from
> >>> commons-jexl for version 1.1 in F13 to org.apache.commons for 2.0.1 in
> >>> F14.
> >> 
> >> There's an error in apache-commons-jexl specfile, as
> >> 
> >> /etc/maven/fragment entry is:
> >>      <maven>
> >>      
> >>          <groupId>org.apache.maven</groupId>
> >>          <artifactId>commons-jexl</artifactId>
> >>          <version>1.1</version>
> >>      
> >>      </maven>
> >> 
> >> That's probably an unfortunate cut&paste from maven template
> >> specfile, from java guidelines, which lists:
> >> 
> >> %add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
> >> 
> >> but should be:
> >> 
> >> %add_to_maven_depmap %{groupId} %{name} %{version} JPP %{name}
> >> 
> >> where %{groupId} = groupId of component packaged
> >> 
> >> Cheers
> > 
> > Changed groupId to commons-jexl in F13 as it is in the pom.  groupId is
> > org.apache.commons in F14+.
> > 
> > https://admin.fedoraproject.org/updates/apache-commons-jexl-1.1-4.fc13
> 
> As for the ant:ant artifact...This seems to be incorrect groupId in the
> pom.xml of package you are building. Easiest way to workaround this
> without patching the pom.xml is creating depmap like this:

This is a maven plugin. And the depmap will fix the problem only at build time 
but the plugin will fail to resolve ant:ant at runtime. So it's mandatory to 
patch the pom.xml to fix the runtime issue too.

You would better submit this fix upstream too. The official ant groupdId is 
org.apache.ant and they would better use this.

Alexander Kurtakov

> 
> -----
> <dependencies>
>         <dependency>
>           <maven>
>                 <groupId>ant</groupId>
>                 <artifactId>ant</artifactId>
>           </maven>
>           <jpp>
>                 <groupId>JPP</groupId>
>                 <artifactId>ant</artifactId>
>           </jpp>
>         </dependency>
> </dependencies>
> -----
> 
> and then using mvn-jpp with -Dmaven2.jpp.depmap.file=<depmap_file>
> 
> On another note you should make the package BuildArch: noarch if possible.


More information about the java-devel mailing list