You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastien ARBOGAST <se...@gmail.com> on 2008/04/21 16:46:34 UTC
pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
On one of my projects, I have the following property:
<model.uri>file:${project.build.sourceDirectory}/myapp.xmi</model.uri>
Knowing that in the same POM, sourceDirectory is configured that way:
<sourceDirectory>${project.basedir}/src/main/uml</sourceDirectory>
With Maven 2.0.8, model.uri was correctly mapped to
/Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi
But with Maven 2.0.9, now it's mapped to
/Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi,
which is not good at all.
Is it a known bug? What has changed in Maven 2.0.9 that makes it work
differently on that?
--
Sébastien Arbogast
http://sebastien-arbogast.com
Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
Posted by Sebastien ARBOGAST <se...@gmail.com>.
Removing file: does not work. I have the same error.I created issue
http://jira.codehaus.org/browse/MNG-3536 and attached a test project to the
issue.
2008/4/21, Brian E. Fox <br...@reply.infinity.nu>:
>
> As I recall, there were several changes that broke and then put this back.
> I suspect your use of file: before the property could be causing the
> replication. Try using just the property and see if this works. Either way,
> please write an issue with a sample project and we'll fix it in .10 and
> include the IT to make sure it doesn't break again.
>
>
> -----Original Message-----
> From: Jason van Zyl [mailto:jason@maven.org]
> Sent: Monday, April 21, 2008 11:23 AM
> To: Maven Users List
> Subject: Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work
> anymore!!!
>
> It's a shame that you didn't try one of the 9 RCs that we released
> over a period of two weeks which helps us validate there are no
> regressions.
>
> Please give us a representative build which expresses the problem, and
> we'll fix it if it's a regression.
>
> On 21-Apr-08, at 7:46 AM, Sebastien ARBOGAST wrote:
> > On one of my projects, I have the following property:
> >
> > <model.uri>file:${project.build.sourceDirectory}/myapp.xmi</model.uri>
> >
> >
> > Knowing that in the same POM, sourceDirectory is configured that way:
> >
> >
> > <sourceDirectory>${project.basedir}/src/main/uml</sourceDirectory>
> >
> >
> > With Maven 2.0.8, model.uri was correctly mapped to
> > /Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi
> > But with Maven 2.0.9, now it's mapped to
> > /Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/
> > myapp.xmi,
> > which is not good at all.
> >
> >
> > Is it a known bug? What has changed in Maven 2.0.9 that makes it work
> > differently on that?
> >
> > --
> > Sébastien Arbogast
> >
> > http://sebastien-arbogast.com
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
> Three people can keep a secret provided two of them are dead.
>
> -- Unknown
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Sébastien Arbogast
http://sebastien-arbogast.com
RE: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
As I recall, there were several changes that broke and then put this back. I suspect your use of file: before the property could be causing the replication. Try using just the property and see if this works. Either way, please write an issue with a sample project and we'll fix it in .10 and include the IT to make sure it doesn't break again.
-----Original Message-----
From: Jason van Zyl [mailto:jason@maven.org]
Sent: Monday, April 21, 2008 11:23 AM
To: Maven Users List
Subject: Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
It's a shame that you didn't try one of the 9 RCs that we released
over a period of two weeks which helps us validate there are no
regressions.
Please give us a representative build which expresses the problem, and
we'll fix it if it's a regression.
On 21-Apr-08, at 7:46 AM, Sebastien ARBOGAST wrote:
> On one of my projects, I have the following property:
>
> <model.uri>file:${project.build.sourceDirectory}/myapp.xmi</model.uri>
>
>
> Knowing that in the same POM, sourceDirectory is configured that way:
>
>
> <sourceDirectory>${project.basedir}/src/main/uml</sourceDirectory>
>
>
> With Maven 2.0.8, model.uri was correctly mapped to
> /Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi
> But with Maven 2.0.9, now it's mapped to
> /Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/
> myapp.xmi,
> which is not good at all.
>
>
> Is it a known bug? What has changed in Maven 2.0.9 that makes it work
> differently on that?
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
Three people can keep a secret provided two of them are dead.
-- Unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
Posted by Jason van Zyl <ja...@maven.org>.
It's a shame that you didn't try one of the 9 RCs that we released
over a period of two weeks which helps us validate there are no
regressions.
Please give us a representative build which expresses the problem, and
we'll fix it if it's a regression.
On 21-Apr-08, at 7:46 AM, Sebastien ARBOGAST wrote:
> On one of my projects, I have the following property:
>
> <model.uri>file:${project.build.sourceDirectory}/myapp.xmi</model.uri>
>
>
> Knowing that in the same POM, sourceDirectory is configured that way:
>
>
> <sourceDirectory>${project.basedir}/src/main/uml</sourceDirectory>
>
>
> With Maven 2.0.8, model.uri was correctly mapped to
> /Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi
> But with Maven 2.0.9, now it's mapped to
> /Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/
> myapp.xmi,
> which is not good at all.
>
>
> Is it a known bug? What has changed in Maven 2.0.9 that makes it work
> differently on that?
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
Three people can keep a secret provided two of them are dead.
-- Unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org