You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Merwin Yap <my...@exist.com> on 2005/07/13 05:23:39 UTC

Alpha 3

Hi! I’ve downloaded alpha 3 and got it running. While trying to build a
maven 1 project, I got the following error:

 

org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error
while mapping metadata.
        at
org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor.updatePr
ojectFromCheckOut(MavenOneBuildExecutor.java:89)
        at
org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryCont
inuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:45
)
        at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(Defa
ultBuildController.java:183)
        at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeT
ask(BuildProjectTaskExecutor.java:50)
        at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRu
nnable.run(ThreadedTaskQueueExecutor.java:103)
        at java.lang.Thread.run(Thread.java:534)
Caused by:
org.apache.maven.continuum.execution.maven.m1.MavenOneMetadataHelperExceptio
n: Cannot use a POM with an 'extend' element.
        at
org.apache.maven.continuum.execution.maven.m1.DefaultMavenOneMetadataHelper.
mapMetadata(DefaultMavenOneMetadataHelper.java:71)
        at
org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor.updatePr
ojectFromCheckOut(MavenOneBuildExecutor.java:85)
        ... 5 more

 

 

I have the same project running in alpha 2 and it seems that it does allow
the ‘extend’ element.  Will the ‘extend’ element of the POM be allowed in
next version? 

 

Thanks!

 

Regards,

Merwin


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date: 7/12/2005
 

RE: Alpha 3

Posted by Merwin Yap <my...@exist.com>.
We have project that have the following structure:

[Project] 
   -[etc]
      -maven.xml
      -project.xml
      -project.properties 
   -[modules]
      -[moduleA] 
         -maven.xml
         -project.xml
         -project.properties
      -[moduleB] 
         -maven.xml
         -project.xml
         -project.properties
      -[moduleC] 
         -maven.xml
         -project.xml
         -project.properties
   -[logs]
   -maven.xml
   -project.xml 
   -project.properties 


Where [Project] project.xml contained the following:

<project>
    <pomVersion>3</pomVersion>
    <extend>${basedir}/etc/project.xml</extend>
    <id>activemq-root</id>

    <build>
        <sourceDirectory></sourceDirectory>
        <unitTestSourceDirectory></unitTestSourceDirectory>
    </build>    
</project>



I tried to build it with Continuum alpha 2 and it does succeed, used the
default setting of alpha 2. Installed in Win XP with Sun jdk1.4.2 and maven
1.0.2. 



Regards,
Merwin



-----Original Message-----
From: Jason van Zyl [mailto:jason@maven.org] 
Sent: Wednesday, July 13, 2005 8:15 PM
To: continuum-users@maven.apache.org
Subject: Re: Alpha 3

On Wed, 2005-07-13 at 11:23 +0800, Merwin Yap wrote:
> Hi! I’ve downloaded alpha 3 and got it running. While trying to build a
> maven 1 project, I got the following error:

[snip]

> I have the same project running in alpha 2 and it seems that it does allow
> the ‘extend’ element.  Will the ‘extend’ element of the POM be allowed in
> next version? 

I'm not sure how you got this project to build. If you checkout a leaf
project in maven1, there isn't any way for m1 to find the necessary
parent POM. We need to make an m1 project building that is intelligent
about find projects within a checked out m1 directory structure for this
to work properly.

Out of curiosity what settings did you use while running alpha-2?

>  
> 
> Thanks!
> 
>  
> 
> Regards,
> 
> Merwin
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date: 7/12/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.14/48 - Release Date: 7/13/2005
 


Re: Alpha 3

Posted by Jason van Zyl <ja...@maven.org>.
On Wed, 2005-07-13 at 11:23 +0800, Merwin Yap wrote:
> Hi! I’ve downloaded alpha 3 and got it running. While trying to build a
> maven 1 project, I got the following error:

[snip]

> I have the same project running in alpha 2 and it seems that it does allow
> the ‘extend’ element.  Will the ‘extend’ element of the POM be allowed in
> next version? 

I'm not sure how you got this project to build. If you checkout a leaf
project in maven1, there isn't any way for m1 to find the necessary
parent POM. We need to make an m1 project building that is intelligent
about find projects within a checked out m1 directory structure for this
to work properly.

Out of curiosity what settings did you use while running alpha-2?

>  
> 
> Thanks!
> 
>  
> 
> Regards,
> 
> Merwin
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



Re: Alpha 3

Posted by Trygve Laugstøl <tr...@student.matnat.uio.no>.
Merwin Yap said:
> Hi! I’ve downloaded alpha 3 and got it running. While trying to build a
> maven 1 project, I got the following error:
>

[snip]

>
>
> I have the same project running in alpha 2 and it seems that it does allow
> the ‘extend’ element.  Will the ‘extend’ element of the POM be allowed in
> next version?

Probably not as there is no way for Continuum to know if the parent
project has changed and as it doesn't check out anything further "up" in
the directory tree Maven won't ever find the parent project.

When Maven 1.1 is released it will use the same <parent> mechanism as
Maven 2 uses and  it should then be possible to build Maven 1.1+ projects.

--
Trygve