Обсуждение: Postgres jdbc build broken with plain ant since e7c2c93
Hi all, Build of jdbc is broken since commit e7c2c93 of yesterday when trying to run it with a simple ant. Here is the failure happening: $ ant Buildfile: /home/mpaquier/git/pgjdbc/build.xml BUILD FAILED /home/mpaquier/git/pgjdbc/build.xml:109: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. No types or tasks have been defined in this namespace yet This appears to be an antlib declaration. Action: Check that the implementing library exists in one of: -/usr/share/apache-ant/lib -/home/mpaquier/.ant/lib -a directory added on the command line with the -lib argument Total time: 0 seconds Reproduced with both ant 1.7.1 and 1.9.3. Am I missing something like an entry in CLASSPATH? This was not necessary up to now. Regards, -- Michael
Michael,
I added this enable travis-ci builds
The build is now ant -lib lib ...
I guess I need to update the README file
On Mon, Mar 24, 2014 at 10:42 PM, Michael Paquier <michael.paquier@gmail.com> wrote:
Hi all,
Build of jdbc is broken since commit e7c2c93 of yesterday when trying
to run it with a simple ant. Here is the failure happening:
$ ant
Buildfile: /home/mpaquier/git/pgjdbc/build.xml
BUILD FAILED
/home/mpaquier/git/pgjdbc/build.xml:109: Problem: failed to create
task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/share/apache-ant/lib
-/home/mpaquier/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Reproduced with both ant 1.7.1 and 1.9.3.
Am I missing something like an entry in CLASSPATH? This was not
necessary up to now.
Regards,
--
Michael
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg@fastcrypt.com> wrote: > Michael, > > I added this enable travis-ci builds > > The build is now ant -lib lib ... > > I guess I need to update the README file Ah, thanks! I got it working. Yes an update of the README would be welcome. Regards, -- Michael
Sorry about that. Done! I was happy I got travis-ci working and forgot the rest of the world!
On Tue, Mar 25, 2014 at 8:29 AM, Michael Paquier <michael.paquier@gmail.com> wrote:
On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg@fastcrypt.com> wrote:Ah, thanks! I got it working.
> Michael,
>
> I added this enable travis-ci builds
>
> The build is now ant -lib lib ...
>
> I guess I need to update the README file
Yes an update of the README would be welcome.
Regards,
--
Michael
On 25 Mar 2014 12:36, "Dave Cramer" <pg@fastcrypt.com> wrote:
>
> Sorry about that. Done! I was happy I got travis-ci working and forgot the rest of the world!
Hi Dave
Travis looks good but is it hitting a PostgreSQL instance to run tests?
Cheers
Stephen
Hi Stephen,
yes it does run tests on a PostgreSQL instance
On Tue, Mar 25, 2014 at 10:15 AM, Stephen Nelson <stephen@eccostudio.com> wrote:
On 25 Mar 2014 12:36, "Dave Cramer" <pg@fastcrypt.com> wrote:
>
> Sorry about that. Done! I was happy I got travis-ci working and forgot the rest of the world!Hi Dave
Travis looks good but is it hitting a PostgreSQL instance to run tests?
Cheers
Stephen
On Tue, Mar 25, 2014 at 8:29 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:
> On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> > Michael,
> >
> > I added this enable travis-ci builds
> >
> > The build is now ant -lib lib ...
> >
> > I guess I need to update the README file
> Ah, thanks! I got it working.
> Yes an update of the README would be welcome.
> Regards,
<michael(dot)paquier(at)gmail(dot)com>wrote:
> On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> > Michael,
> >
> > I added this enable travis-ci builds
> >
> > The build is now ant -lib lib ...
> >
> > I guess I need to update the README file
> Ah, thanks! I got it working.
> Yes an update of the README would be welcome.
> Regards,
I am following the new advice of "ant -lib lib", but I still get the error:
BUILD FAILED
/home/jjanes/pgsql/jdbc/github/pgjdbc/build.xml:109: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependencies
Cause: The name is undefined.
Is there a known version limit on ant? I have a quite old one:
Apache Ant version 1.7.1 compiled on August 24 2010
(It is the newest one provided by CentOS repo)
Thanks for any help,
Jeff
You need a library in a directory called lib
cd projects/jdbc/pgjdbc.git
Daves-iMac:pgjdbc.git davec$ ls lib
maven-ant-tasks-2.1.3.jar
It should be there if you pulled from git. It is really there to allow travis-ci builds
On 21 April 2014 14:32, Jeff Janes <jeff.janes@gmail.com> wrote:
On Tue, Mar 25, 2014 at 8:29 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:
> On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> > Michael,
> >
> > I added this enable travis-ci builds
> >
> > The build is now ant -lib lib ...
> >
> > I guess I need to update the README file
> Ah, thanks! I got it working.
> Yes an update of the README would be welcome.
> Regards,I am following the new advice of "ant -lib lib", but I still get the error:BUILD FAILED/home/jjanes/pgsql/jdbc/github/pgjdbc/build.xml:109: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependenciesCause: The name is undefined.Is there a known version limit on ant? I have a quite old one:Apache Ant version 1.7.1 compiled on August 24 2010(It is the newest one provided by CentOS repo)Thanks for any help,Jeff
That library is present:
$ md5sum lib/maven-ant-tasks-2.1.3.jar
7ce48382d1aa4138027a58ec2f29beda lib/maven-ant-tasks-2.1.3.jar
And running strace -f on the 'ant -lib lib' process shows that it is getting opened and read.
Also, I've installed the latest ant and still no luck.
Cheers,
Jeff
On Mon, Apr 21, 2014 at 11:42 AM, Dave Cramer <pg@fastcrypt.com> wrote:
You need a library in a directory called libcd projects/jdbc/pgjdbc.gitDaves-iMac:pgjdbc.git davec$ ls libmaven-ant-tasks-2.1.3.jarIt should be there if you pulled from git. It is really there to allow travis-ci buildsOn 21 April 2014 14:32, Jeff Janes <jeff.janes@gmail.com> wrote:On Tue, Mar 25, 2014 at 8:29 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:
> On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> > Michael,
> >
> > I added this enable travis-ci builds
> >
> > The build is now ant -lib lib ...
> >
> > I guess I need to update the README file
> Ah, thanks! I got it working.
> Yes an update of the README would be welcome.
> Regards,I am following the new advice of "ant -lib lib", but I still get the error:BUILD FAILED/home/jjanes/pgsql/jdbc/github/pgjdbc/build.xml:109: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependenciesCause: The name is undefined.Is there a known version limit on ant? I have a quite old one:Apache Ant version 1.7.1 compiled on August 24 2010(It is the newest one provided by CentOS repo)Thanks for any help,Jeff
Hmmm possibly the version then. I have 1.9.3
Dave
On 21 April 2014 15:16, Jeff Janes <jeff.janes@gmail.com> wrote:
That library is present:$ md5sum lib/maven-ant-tasks-2.1.3.jar7ce48382d1aa4138027a58ec2f29beda lib/maven-ant-tasks-2.1.3.jarAnd running strace -f on the 'ant -lib lib' process shows that it is getting opened and read.Also, I've installed the latest ant and still no luck.Cheers,JeffOn Mon, Apr 21, 2014 at 11:42 AM, Dave Cramer <pg@fastcrypt.com> wrote:You need a library in a directory called libcd projects/jdbc/pgjdbc.gitDaves-iMac:pgjdbc.git davec$ ls libmaven-ant-tasks-2.1.3.jarIt should be there if you pulled from git. It is really there to allow travis-ci buildsOn 21 April 2014 14:32, Jeff Janes <jeff.janes@gmail.com> wrote:On Tue, Mar 25, 2014 at 8:29 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com>wrote:
> On Tue, Mar 25, 2014 at 9:11 PM, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> > Michael,
> >
> > I added this enable travis-ci builds
> >
> > The build is now ant -lib lib ...
> >
> > I guess I need to update the README file
> Ah, thanks! I got it working.
> Yes an update of the README would be welcome.
> Regards,I am following the new advice of "ant -lib lib", but I still get the error:BUILD FAILED/home/jjanes/pgsql/jdbc/github/pgjdbc/build.xml:109: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:dependenciesCause: The name is undefined.Is there a known version limit on ant? I have a quite old one:Apache Ant version 1.7.1 compiled on August 24 2010(It is the newest one provided by CentOS repo)Thanks for any help,Jeff
Indeed, the and was the problem. Even with a newer version installed, and specifically invoked, ant seems to go quite far out of its way to use the older version instead. I had to use --noconfig to get it to stop doing that:
PATH=~/apache-ant-1.9.3/bin:$PATH ant --noconfig -lib lib
Now it works.
But is not actually the version of ant, because if I download 1.7.1 from apache and run it as above, that works as well. It seems to be something that the distributions have done. The distributions I tested where CentOS6.5
and Amazon Linux AMI 2014.03.1 - ami-fb8e9292 (64-bit).
Since it isn't the ant version problem, I don't know what could be added to the README to help people.
Cheers,
Jeff
On Mon, Apr 21, 2014 at 12:18 PM, Dave Cramer <pg@fastcrypt.com> wrote:
Hmmm possibly the version then. I have 1.9.3Dave
On 22 April 2014 05:54, Jeff Janes <jeff.janes@gmail.com> wrote: > But is not actually the version of ant, because if I download 1.7.1 from > apache and run it as above, that works as well. It seems to be something > that the distributions have done. The distributions I tested where > CentOS6.5 > and Amazon Linux AMI 2014.03.1 - ami-fb8e9292 (64-bit). Could be this: https://ant.apache.org/faq.html#InstantiationException Is there an /etc/ant.conf file? > Since it isn't the ant version problem, I don't know what could be added to > the README to help people. The docco could say something like "if you have ant installed via a linux distribution package, you should either use that version or call the version that you wish to use with the --noconfig option" Cheers Tom