You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Deepak Bhole <db...@redhat.com> on 2008/04/15 23:15:15 UTC

Maven 2.0.9 build failure

Hi,

I checked out the 2.0.9 tag from here:

http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9

rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and 
ran ./bootstrap.sh. However, the build keeps failing:

--- BEGIN ---

Building project in /tmp/maven2-build/maven2/apache-maven
------------------------------------------------------------------
Cleaning /tmp/maven2-build/maven2/apache-maven/target...
Compiling sources ...
Packaging resources ...
Packaging /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar ...
------------------------------------------------------------------
Exception in thread "main" java.lang.NullPointerException at
org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallation(BootstrapInstaller.java:254) at
org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapInstaller.java:136) at
org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapInstaller.java:91)

--- END ---

I am using OpenJDK 1.6.0 to build.

Has anyone encountered this before? And if so, how can I fix it?

Cheers,
Deepak

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Maven 2.0.9 build failure

Posted by Jason van Zyl <ja...@maven.org>.
I can look at that, it should be relatively easy.

On 15-Apr-08, at 2:55 PM, Brian E. Fox wrote:
> Yes. I should add it to the Hudson build to check it. Maybe jason will
> feel like rewriting it to use the ant tasks like he did for trunk....
>
> -----Original Message-----
> From: Deepak Bhole [mailto:dbhole@redhat.com]
> Sent: Tuesday, April 15, 2008 5:34 PM
> To: Brian E. Fox
> Cc: Maven Developers List
> Subject: Re: Maven 2.0.9 build failure
>
> * Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:21]:
>> Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8 (or
>> 2.0.9) and build it as a normal maven project.
>>
>>
>
> Thanks, that worked. Are there plans to make bootstrap work again
> though? I maintain the Maven package in Fedora, and from a packaging
> perspective, bootstrapping is a valuable option...
>
> Deepak
>
>> -----Original Message-----
>> From: Deepak Bhole [mailto:dbhole@redhat.com]
>> Sent: Tuesday, April 15, 2008 5:15 PM
>> To: dev@maven.apache.org
>> Subject: Maven 2.0.9 build failure
>>
>> Hi,
>>
>> I checked out the 2.0.9 tag from here:
>>
>> http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9
>>
>> rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and
>> ran ./bootstrap.sh. However, the build keeps failing:
>>
>> --- BEGIN ---
>>
>> Building project in /tmp/maven2-build/maven2/apache-maven
>> ------------------------------------------------------------------
>> Cleaning /tmp/maven2-build/maven2/apache-maven/target...
>> Compiling sources ...
>> Packaging resources ...
>> Packaging
> /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
>> ...
>> ------------------------------------------------------------------
>> Exception in thread "main" java.lang.NullPointerException at
>>
> org
> .apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
>> on(BootstrapInstaller.java:254) at
>>
> org
> .apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
>> taller.java:136) at
>>
> org
> .apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
>> staller.java:91)
>>
>> --- END ---
>>
>> I am using OpenJDK 1.6.0 to build.
>>
>> Has anyone encountered this before? And if so, how can I fix it?
>>
>> Cheers,
>> Deepak
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

To do two things at once is to do neither.

-—Publilius Syrus, Roman slave, first century B.C.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Maven 2.0.9 build failure

Posted by Jason van Zyl <ja...@maven.org>.
There, now the branch and trunk use the same method for bootstrapping.  
I added the build to Hudson and seems to be happy:

https://ci.sonatype.org/view/Maven%202.0.x/job/Maven-2.0.x-with-bootstrap/7/console

On 15-Apr-08, at 5:34 PM, Deepak Bhole wrote:
> * Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:55]:
>> Yes. I should add it to the Hudson build to check it. Maybe jason  
>> will
>> feel like rewriting it to use the ant tasks like he did for trunk....
>>
>
> Ah okay, good to know.
>
> In the mean time, I have found the issue that causes bootstrap.sh in
> 2.0.9 to fail. It is a simple fix and I am attaching a patch, in case
> anyone else runs into it and needs the fix.
>
> Cheers,
> Deepak
>
>> -----Original Message-----
>> From: Deepak Bhole [mailto:dbhole@redhat.com]
>> Sent: Tuesday, April 15, 2008 5:34 PM
>> To: Brian E. Fox
>> Cc: Maven Developers List
>> Subject: Re: Maven 2.0.9 build failure
>>
>> * Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:21]:
>>> Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8  
>>> (or
>>> 2.0.9) and build it as a normal maven project.
>>>
>>>
>>
>> Thanks, that worked. Are there plans to make bootstrap work again
>> though? I maintain the Maven package in Fedora, and from a packaging
>> perspective, bootstrapping is a valuable option...
>>
>> Deepak
>>
>>> -----Original Message-----
>>> From: Deepak Bhole [mailto:dbhole@redhat.com]
>>> Sent: Tuesday, April 15, 2008 5:15 PM
>>> To: dev@maven.apache.org
>>> Subject: Maven 2.0.9 build failure
>>>
>>> Hi,
>>>
>>> I checked out the 2.0.9 tag from here:
>>>
>>> http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9
>>>
>>> rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and
>>> ran ./bootstrap.sh. However, the build keeps failing:
>>>
>>> --- BEGIN ---
>>>
>>> Building project in /tmp/maven2-build/maven2/apache-maven
>>> ------------------------------------------------------------------
>>> Cleaning /tmp/maven2-build/maven2/apache-maven/target...
>>> Compiling sources ...
>>> Packaging resources ...
>>> Packaging
>> /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
>>> ...
>>> ------------------------------------------------------------------
>>> Exception in thread "main" java.lang.NullPointerException at
>>>
>> org 
>> .apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
>>> on(BootstrapInstaller.java:254) at
>>>
>> org 
>> .apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
>>> taller.java:136) at
>>>
>> org 
>> .apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
>>> staller.java:91)
>>>
>>> --- END ---
>>>
>>> I am using OpenJDK 1.6.0 to build.
>>>
>>> Has anyone encountered this before? And if so, how can I fix it?
>>>
>>> Cheers,
>>> Deepak
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
> <maven2- 
> bootstrapbuild 
> .patch 
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

Selfish deeds are the shortest path to self destruction.

-- The Seven Samuari, Akira Kirosawa 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Maven 2.0.9 build failure

Posted by Deepak Bhole <db...@redhat.com>.
* Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:55]:
> Yes. I should add it to the Hudson build to check it. Maybe jason will
> feel like rewriting it to use the ant tasks like he did for trunk....
> 

Ah okay, good to know.

In the mean time, I have found the issue that causes bootstrap.sh in
2.0.9 to fail. It is a simple fix and I am attaching a patch, in case 
anyone else runs into it and needs the fix.

Cheers,
Deepak

> -----Original Message-----
> From: Deepak Bhole [mailto:dbhole@redhat.com] 
> Sent: Tuesday, April 15, 2008 5:34 PM
> To: Brian E. Fox
> Cc: Maven Developers List
> Subject: Re: Maven 2.0.9 build failure
> 
> * Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:21]:
> > Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8 (or
> > 2.0.9) and build it as a normal maven project.
> > 
> > 
> 
> Thanks, that worked. Are there plans to make bootstrap work again
> though? I maintain the Maven package in Fedora, and from a packaging
> perspective, bootstrapping is a valuable option...
> 
> Deepak
> 
> > -----Original Message-----
> > From: Deepak Bhole [mailto:dbhole@redhat.com] 
> > Sent: Tuesday, April 15, 2008 5:15 PM
> > To: dev@maven.apache.org
> > Subject: Maven 2.0.9 build failure
> > 
> > Hi,
> > 
> > I checked out the 2.0.9 tag from here:
> > 
> > http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9
> > 
> > rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and 
> > ran ./bootstrap.sh. However, the build keeps failing:
> > 
> > --- BEGIN ---
> > 
> > Building project in /tmp/maven2-build/maven2/apache-maven
> > ------------------------------------------------------------------
> > Cleaning /tmp/maven2-build/maven2/apache-maven/target...
> > Compiling sources ...
> > Packaging resources ...
> > Packaging
> /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
> > ...
> > ------------------------------------------------------------------
> > Exception in thread "main" java.lang.NullPointerException at
> >
> org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
> > on(BootstrapInstaller.java:254) at
> >
> org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
> > taller.java:136) at
> >
> org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
> > staller.java:91)
> > 
> > --- END ---
> > 
> > I am using OpenJDK 1.6.0 to build.
> > 
> > Has anyone encountered this before? And if so, how can I fix it?
> > 
> > Cheers,
> > Deepak
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

RE: Maven 2.0.9 build failure

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Yes. I should add it to the Hudson build to check it. Maybe jason will
feel like rewriting it to use the ant tasks like he did for trunk....

-----Original Message-----
From: Deepak Bhole [mailto:dbhole@redhat.com] 
Sent: Tuesday, April 15, 2008 5:34 PM
To: Brian E. Fox
Cc: Maven Developers List
Subject: Re: Maven 2.0.9 build failure

* Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:21]:
> Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8 (or
> 2.0.9) and build it as a normal maven project.
> 
> 

Thanks, that worked. Are there plans to make bootstrap work again
though? I maintain the Maven package in Fedora, and from a packaging
perspective, bootstrapping is a valuable option...

Deepak

> -----Original Message-----
> From: Deepak Bhole [mailto:dbhole@redhat.com] 
> Sent: Tuesday, April 15, 2008 5:15 PM
> To: dev@maven.apache.org
> Subject: Maven 2.0.9 build failure
> 
> Hi,
> 
> I checked out the 2.0.9 tag from here:
> 
> http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9
> 
> rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and 
> ran ./bootstrap.sh. However, the build keeps failing:
> 
> --- BEGIN ---
> 
> Building project in /tmp/maven2-build/maven2/apache-maven
> ------------------------------------------------------------------
> Cleaning /tmp/maven2-build/maven2/apache-maven/target...
> Compiling sources ...
> Packaging resources ...
> Packaging
/tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
> ...
> ------------------------------------------------------------------
> Exception in thread "main" java.lang.NullPointerException at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
> on(BootstrapInstaller.java:254) at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
> taller.java:136) at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
> staller.java:91)
> 
> --- END ---
> 
> I am using OpenJDK 1.6.0 to build.
> 
> Has anyone encountered this before? And if so, how can I fix it?
> 
> Cheers,
> Deepak
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Maven 2.0.9 build failure

Posted by Deepak Bhole <db...@redhat.com>.
* Brian E. Fox <br...@reply.infinity.nu> [2008-04-15 17:21]:
> Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8 (or
> 2.0.9) and build it as a normal maven project.
> 
> 

Thanks, that worked. Are there plans to make bootstrap work again
though? I maintain the Maven package in Fedora, and from a packaging
perspective, bootstrapping is a valuable option...

Deepak

> -----Original Message-----
> From: Deepak Bhole [mailto:dbhole@redhat.com] 
> Sent: Tuesday, April 15, 2008 5:15 PM
> To: dev@maven.apache.org
> Subject: Maven 2.0.9 build failure
> 
> Hi,
> 
> I checked out the 2.0.9 tag from here:
> 
> http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9
> 
> rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and 
> ran ./bootstrap.sh. However, the build keeps failing:
> 
> --- BEGIN ---
> 
> Building project in /tmp/maven2-build/maven2/apache-maven
> ------------------------------------------------------------------
> Cleaning /tmp/maven2-build/maven2/apache-maven/target...
> Compiling sources ...
> Packaging resources ...
> Packaging /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
> ...
> ------------------------------------------------------------------
> Exception in thread "main" java.lang.NullPointerException at
> org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
> on(BootstrapInstaller.java:254) at
> org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
> taller.java:136) at
> org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
> staller.java:91)
> 
> --- END ---
> 
> I am using OpenJDK 1.6.0 to build.
> 
> Has anyone encountered this before? And if so, how can I fix it?
> 
> Cheers,
> Deepak
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


RE: Maven 2.0.9 build failure

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Not many people are using the bootstrap on 2.0.x. Just grab 2.0.8 (or
2.0.9) and build it as a normal maven project.


-----Original Message-----
From: Deepak Bhole [mailto:dbhole@redhat.com] 
Sent: Tuesday, April 15, 2008 5:15 PM
To: dev@maven.apache.org
Subject: Maven 2.0.9 build failure

Hi,

I checked out the 2.0.9 tag from here:

http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.9

rm -rf'd ~/.m2, set M2_HOME to $PWD/build/apache-maven-2.0.9, and 
ran ./bootstrap.sh. However, the build keeps failing:

--- BEGIN ---

Building project in /tmp/maven2-build/maven2/apache-maven
------------------------------------------------------------------
Cleaning /tmp/maven2-build/maven2/apache-maven/target...
Compiling sources ...
Packaging resources ...
Packaging /tmp/maven2-build/maven2/apache-maven/target/apache-maven.jar
...
------------------------------------------------------------------
Exception in thread "main" java.lang.NullPointerException at
org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
on(BootstrapInstaller.java:254) at
org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
taller.java:136) at
org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
staller.java:91)

--- END ---

I am using OpenJDK 1.6.0 to build.

Has anyone encountered this before? And if so, how can I fix it?

Cheers,
Deepak

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org