I use Apache Solr4 on my organization, and plan pack it on a RPM and
share with the Community.
Sorry if my question is dumb, but I already read FAQs, docs, Google, and
can't solve it alone...
I did a specfile to build it, but the build.xml uses apache-ivy to
resolve deps, and it automatically tries to download required libraries.
I've put "BuildRequires" clauses on specfile, but I don't know how to made
to Ivy use installed libraries instead of download them.
An example: build needs
apache-commons-codec-1.6. This package are installed, and contains the
following files:
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: UNRESOLVED DEPENDENCIES ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: commons-codec#commons-codec;1.6: not found
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :::: ERRORS
[ivy:retrieve] Server access Error: Connection timed out
url=http://repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom
[ivy:retrieve] Server access Error: Connection timed out
url=http://repo1.maven.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ivy:retrieve] Server access Error: Connection timed out
url=http://oss.sonatype.org/content/repositories/releases/commons-codec/commons-codec/1.6/commons-codec-1.6.pom
[ivy:retrieve] Server access Error: Connection timed out
url=http://oss.sonatype.org/content/repositories/releases/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ivy:retrieve] Server access Error: Connection timed out
url=http://mirror.netcologne.de/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom
[ivy:retrieve] Server access Error: Connection timed out
url=http://mirror.netcologne.de/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/fabiano/rpmbuild/BUILD/branch_4x/solr/common-build.xml:320: The
following error occurred while executing this line:
/home/fabiano/rpmbuild/BUILD/branch_4x/lucene/module-build.xml:208: The
following error occurred while executing this line:
/home/fabiano/rpmbuild/BUILD/branch_4x/lucene/common-build.xml:287:
impossible to resolve dependencies:
resolve failed - see output for details
--
Fabiano Martins
Unidade de Aplicativos e Internet
Divisão de Informática
MPRS
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
06-28-2012, 08:43 AM
Stanislav Ochotnicky
rpmbuild vs apache-ivy
Forgot to send to java-devel as well, sorry for the double email
Fabiano.
Quoting Fabiano Martins (2012-06-26 18:51:23)
> Hi,
>
> I use Apache Solr4 on my organization, and plan pack it on a RPM and
> share with the Community.
>
> Sorry if my question is dumb, but I already read FAQs, docs, Google, and
> can't solve it alone...
>
> I did a specfile to build it, but the build.xml uses apache-ivy to
> resolve deps, and it automatically tries to download required libraries.
> I've put "BuildRequires" clauses on specfile, but I don't know how to made
> to Ivy use installed libraries instead of download them.
>
> [snip]
> But when I try call "ant dist" from rpmbuild it fails with this message:
> [snip]
Basically, your fastest/easiest bet is to look at packages that already
use apache-ivy and see how they deal with it:
So have a look at those spec files to get an idea. Ivy mostly just looks
at a certain cache location to see if a required file is there and if
so, uses it.
You seem to be in "a bit" different timezone, but quite a lot of java
folks are on #fedora-java @ freenode (IRC) during EMEA business hours.
You might have luck outside that time as well though if you have
specific questions.
--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno
PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
06-28-2012, 01:14 PM
Fabiano Martins
rpmbuild vs apache-ivy
Thank you a lot: I'll study these examples.
Em 28-06-2012 05:43, Stanislav Ochotnicky escreveu:
Forgot to send to java-devel as well, sorry for the double email
Fabiano.
Quoting Fabiano Martins (2012-06-26 18:51:23)
Hi,
I use Apache Solr4 on my organization, and plan pack it on a RPM and
share with the Community.
Sorry if my question is dumb, but I already read FAQs, docs, Google, and
can't solve it alone...
I did a specfile to build it, but the build.xml uses apache-ivy to
resolve deps, and it automatically tries to download required libraries.
I've put "BuildRequires" clauses on specfile, but I don't know how to made
to Ivy use installed libraries instead of download them.
[snip]
But when I try call "ant dist" from rpmbuild it fails with this message:
[snip]
Basically, your fastest/easiest bet is to look at packages that already
use apache-ivy and see how they deal with it:
So have a look at those spec files to get an idea. Ivy mostly just looks
at a certain cache location to see if a required file is there and if
so, uses it.
You seem to be in "a bit" different timezone, but quite a lot of java
folks are on #fedora-java @ freenode (IRC) during EMEA business hours.
You might have luck outside that time as well though if you have
specific questions.
--
Fabiano Martins
Unidade de Aplicativos e Internet
Divisão de Informática
MPRS
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel