You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/07/16 23:40:26 UTC

[jira] Commented: (MNG-3536) REGRESSION: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore

    [ http://jira.codehaus.org/browse/MNG-3536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142087#action_142087 ] 

John Casey commented on MNG-3536:
---------------------------------

Okay, I've improved the integration test to take this new scenario into account. I've also added the concept of a post-processor that has access to format/change a value after all interpolation has occurred recursively for an expression, then shifted the PathTranslatingValueSource to be a PathTranslatingPostProcessor.

I've verified that this fixes the issue, and I'm going to release plexus-interpolation 1.1 so we can use it in 2.0.10-RC2. My maven changes for this new interpolator api should be committed soon.

> REGRESSION: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore
> -----------------------------------------------------------------------------
>
>                 Key: MNG-3536
>                 URL: http://jira.codehaus.org/browse/MNG-3536
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: MacOSX, Java 6, Maven 2.0.9
>            Reporter: Sébastien Arbogast
>            Assignee: John Casey
>            Priority: Critical
>             Fix For: 2.0.10
>
>         Attachments: core-integration-testing-plugins.patch, interpolator.it.patch, test.zip
>
>
> 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.
>  
> I have attached a test project that builds with Maven 2.0.8 but not with Maven 2.0.9.
> It's not the simplest project ever but it's a real AndroMDA skeleton project.
> All the configuration is in mda/pom.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira