[fedora-java] Java packages inpla Fedora

Stanislav Ochotnicky sochotnicky at redhat.com
Fri Oct 8 09:09:02 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:

-----
<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 at redhat.com>
Associate Software Engineer - Base Operating Systems Brno

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20101008/e82876d5/attachment.bin 


More information about the java-devel mailing list