You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jason Rutherglen <ja...@gmail.com> on 2012/04/04 15:58:07 UTC
Error when running 'ant generate-maven-artifacts'
I am getting the following error when running 'ant generate-maven-artifacts':
Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
generate-maven-artifacts:
filter-pom-templates:
[copy] Copying 42 files to
/Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
install-maven-tasks:
BUILD FAILED
/Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following
error occurred while executing this line:
/Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
Problem: failed to create task or type
antlib:org.apache.ivy.ant:cachepath
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/ant/lib
-/Users/jasonrutherglen/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Error when running 'ant generate-maven-artifacts'
Posted by Robert Muir <rc...@gmail.com>.
I agree:
Index: lucene/common-build.xml
===================================================================
--- lucene/common-build.xml (revision 1309387)
+++ lucene/common-build.xml (working copy)
@@ -841,7 +841,7 @@
<fail message="You must redefine the javadocs task to do something!!!!!"
/>
</target>
- <target name="install-maven-tasks" unless="maven-tasks.uptodate">
+ <target name="install-maven-tasks" unless="maven-tasks.uptodate" depends="ivy
-availability-check,ivy-fail">
<property name="maven-tasks.uptodate" value="true"/>
<ivy:cachepath organisation="org.apache.maven" module="maven-ant-tasks" rev
ision="2.1.3"
inline="true" conf="master" type="jar" pathid="maven-ant-tasks.cla
sspath"/>
@@ -900,6 +900,7 @@
<property name="deployed.grandparent.pom.uptodate" value="true"/>
</target>
+ <!-- TODO: add cool detector like the ivy one? this requires you have rat -->
<target name="rat-sources-typedef">
<typedef resource="org/apache/rat/anttasks/antlib.xml"
uri="antlib:rat.anttasks">
<classpath>
Index: lucene/contrib/misc/build.xml
===================================================================
--- lucene/contrib/misc/build.xml (revision 1309387)
+++ lucene/contrib/misc/build.xml (working copy)
@@ -27,7 +27,7 @@
<import file="../contrib-build.xml"/>
- <target name="install-cpptasks" unless="cpptasks.uptodate">
+ <target name="install-cpptasks" unless="cpptasks.uptodate"
depends="ivy-availability-check,ivy-fail">
<property name="cpptasks.uptodate" value="true"/>
<ivy:cachepath organisation="ant-contrib" module="cpptasks"
revision="1.0b5"
inline="true" conf="master" type="jar"
pathid="cpptasks.classpath"/>
On Wed, Apr 4, 2012 at 10:11 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
> I think we should add the IVY-detection task also for those maven tasks and
> others (like contrib cpptasks). I had them in originally, but they may have
> been removed when we removed the ivy taskdef...
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>> Sent: Wednesday, April 04, 2012 4:10 PM
>> To: dev@lucene.apache.org
>> Subject: RE: Error when running 'ant generate-maven-artifacts'
>>
>> Hi,
>>
>> Read BUILD.txt, we moved the whole Lucene build to Apache Ivy dependency
>> (LUCENE-3930). In fact you have to install Apache IVY (there is a
> bootstrap task
>> for it).
>>
>> Uwe
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>>
>>
>> > -----Original Message-----
>> > From: Jason Rutherglen [mailto:jason.rutherglen@gmail.com]
>> > Sent: Wednesday, April 04, 2012 3:58 PM
>> > To: dev@lucene.apache.org
>> > Subject: Error when running 'ant generate-maven-artifacts'
>> >
>> > I am getting the following error when running 'ant
>> generate-maven-artifacts':
>> >
>> > Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
>> >
>> > generate-maven-artifacts:
>> >
>> > filter-pom-templates:
>> > [copy] Copying 42 files to
>> > /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
>> >
>> > install-maven-tasks:
>> >
>> > BUILD FAILED
>> > /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following
>> > error occurred while executing this line:
>> > /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
>> > Problem: failed to create task or type
>> > antlib:org.apache.ivy.ant:cachepath
>> > 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/ant/lib
>> > -/Users/jasonrutherglen/.ant/lib
>> > -a directory added on the command line with the -lib argument
>> >
>> >
>> > Total time: 0 seconds
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
>> > additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
--
lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Error when running 'ant generate-maven-artifacts'
Posted by Uwe Schindler <uw...@thetaphi.de>.
I think we should add the IVY-detection task also for those maven tasks and
others (like contrib cpptasks). I had them in originally, but they may have
been removed when we removed the ivy taskdef...
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Wednesday, April 04, 2012 4:10 PM
> To: dev@lucene.apache.org
> Subject: RE: Error when running 'ant generate-maven-artifacts'
>
> Hi,
>
> Read BUILD.txt, we moved the whole Lucene build to Apache Ivy dependency
> (LUCENE-3930). In fact you have to install Apache IVY (there is a
bootstrap task
> for it).
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
> > -----Original Message-----
> > From: Jason Rutherglen [mailto:jason.rutherglen@gmail.com]
> > Sent: Wednesday, April 04, 2012 3:58 PM
> > To: dev@lucene.apache.org
> > Subject: Error when running 'ant generate-maven-artifacts'
> >
> > I am getting the following error when running 'ant
> generate-maven-artifacts':
> >
> > Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
> >
> > generate-maven-artifacts:
> >
> > filter-pom-templates:
> > [copy] Copying 42 files to
> > /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
> >
> > install-maven-tasks:
> >
> > BUILD FAILED
> > /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following
> > error occurred while executing this line:
> > /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
> > Problem: failed to create task or type
> > antlib:org.apache.ivy.ant:cachepath
> > 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/ant/lib
> > -/Users/jasonrutherglen/.ant/lib
> > -a directory added on the command line with the -lib argument
> >
> >
> > Total time: 0 seconds
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> > additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Error when running 'ant generate-maven-artifacts'
Posted by Robert Muir <rc...@gmail.com>.
This is a releasing task: you must increase the permsize as noted in
http://wiki.apache.org/lucene-java/ReleaseTodo
On Wed, Apr 4, 2012 at 11:37 AM, Jason Rutherglen
<ja...@gmail.com> wrote:
> I ran ''ant ivy-bootstrap' then 'ant generate-maven-artifacts'
>
> At the end of the latter, this is the error:
>
> m2-deploy-solr-parent-pom:
> [artifact:install-provider] Installing provider:
> org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> java.lang.OutOfMemoryError: PermGen space
> PermGen space
>
> On Wed, Apr 4, 2012 at 9:09 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
>> Hi,
>>
>> Read BUILD.txt, we moved the whole Lucene build to Apache Ivy dependency
>> (LUCENE-3930). In fact you have to install Apache IVY (there is a bootstrap
>> task for it).
>>
>> Uwe
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>>
>>
>>> -----Original Message-----
>>> From: Jason Rutherglen [mailto:jason.rutherglen@gmail.com]
>>> Sent: Wednesday, April 04, 2012 3:58 PM
>>> To: dev@lucene.apache.org
>>> Subject: Error when running 'ant generate-maven-artifacts'
>>>
>>> I am getting the following error when running 'ant
>> generate-maven-artifacts':
>>>
>>> Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
>>>
>>> generate-maven-artifacts:
>>>
>>> filter-pom-templates:
>>> [copy] Copying 42 files to
>>> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
>>>
>>> install-maven-tasks:
>>>
>>> BUILD FAILED
>>> /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following error
>>> occurred while executing this line:
>>> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
>>> Problem: failed to create task or type
>>> antlib:org.apache.ivy.ant:cachepath
>>> 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/ant/lib
>>> -/Users/jasonrutherglen/.ant/lib
>>> -a directory added on the command line with the -lib argument
>>>
>>>
>>> Total time: 0 seconds
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>>> commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
--
lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Error when running 'ant generate-maven-artifacts'
Posted by Jason Rutherglen <ja...@gmail.com>.
I ran ''ant ivy-bootstrap' then 'ant generate-maven-artifacts'
At the end of the latter, this is the error:
m2-deploy-solr-parent-pom:
[artifact:install-provider] Installing provider:
org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
java.lang.OutOfMemoryError: PermGen space
PermGen space
On Wed, Apr 4, 2012 at 9:09 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Hi,
>
> Read BUILD.txt, we moved the whole Lucene build to Apache Ivy dependency
> (LUCENE-3930). In fact you have to install Apache IVY (there is a bootstrap
> task for it).
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Jason Rutherglen [mailto:jason.rutherglen@gmail.com]
>> Sent: Wednesday, April 04, 2012 3:58 PM
>> To: dev@lucene.apache.org
>> Subject: Error when running 'ant generate-maven-artifacts'
>>
>> I am getting the following error when running 'ant
> generate-maven-artifacts':
>>
>> Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
>>
>> generate-maven-artifacts:
>>
>> filter-pom-templates:
>> [copy] Copying 42 files to
>> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
>>
>> install-maven-tasks:
>>
>> BUILD FAILED
>> /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following error
>> occurred while executing this line:
>> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
>> Problem: failed to create task or type
>> antlib:org.apache.ivy.ant:cachepath
>> 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/ant/lib
>> -/Users/jasonrutherglen/.ant/lib
>> -a directory added on the command line with the -lib argument
>>
>>
>> Total time: 0 seconds
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
RE: Error when running 'ant generate-maven-artifacts'
Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,
Read BUILD.txt, we moved the whole Lucene build to Apache Ivy dependency
(LUCENE-3930). In fact you have to install Apache IVY (there is a bootstrap
task for it).
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Jason Rutherglen [mailto:jason.rutherglen@gmail.com]
> Sent: Wednesday, April 04, 2012 3:58 PM
> To: dev@lucene.apache.org
> Subject: Error when running 'ant generate-maven-artifacts'
>
> I am getting the following error when running 'ant
generate-maven-artifacts':
>
> Buildfile: /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml
>
> generate-maven-artifacts:
>
> filter-pom-templates:
> [copy] Copying 42 files to
> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/build/poms
>
> install-maven-tasks:
>
> BUILD FAILED
> /Users/jasonrutherglen/src/LUCENE-TRUNK/build.xml:95: The following error
> occurred while executing this line:
> /Users/jasonrutherglen/src/LUCENE-TRUNK/lucene/common-build.xml:847:
> Problem: failed to create task or type
> antlib:org.apache.ivy.ant:cachepath
> 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/ant/lib
> -/Users/jasonrutherglen/.ant/lib
> -a directory added on the command line with the -lib argument
>
>
> Total time: 0 seconds
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org