FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 10-07-2010, 08:52 PM
Guido Grazioli
 
Default Java packages inpla Fedora

2010/10/7 Orion Poplawski <orion@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

--
Guido Grazioli <guido.grazioli@gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 10-07-2010, 10:03 PM
Orion Poplawski
 
Default Java packages inpla Fedora

On 10/07/2010 02:52 PM, Guido Grazioli wrote:
> 2010/10/7 Orion Poplawski<orion@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

--
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
 
Old 10-08-2010, 09:09 AM
Stanislav Ochotnicky
 
Default Java packages inpla Fedora

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@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:

-----
<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.

--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Associate Software Engineer - Base Operating Systems Brno

PGP: 71A1677C
Red Hat Inc. http://cz.redhat.com

--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 10-08-2010, 09:18 AM
Alexander Kurtakov
 
Default Java packages inpla Fedora

> 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@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.
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 

Thread Tools




All times are GMT. The time now is 07:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org