You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joseph Marques (JIRA)" <ji...@codehaus.org> on 2008/07/30 17:22:27 UTC

[jira] Created: (MNG-3690) inheriting properties doesn't work if name of property is too long

inheriting properties doesn't work if name of property is too long
------------------------------------------------------------------

                 Key: MNG-3690
                 URL: http://jira.codehaus.org/browse/MNG-3690
             Project: Maven 2
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 2.0.9
            Reporter: Joseph Marques


when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Joseph Marques (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143846#action_143846 ] 

Joseph Marques commented on MNG-3690:
-------------------------------------

sure, i'll see what i can pull together over the weekend.  in the meantime, i'll tell you that I don't use the relativePath element explicitly in any of my poms, so it should default to "../pom.xml"

from my testing, what i'm seeing happening is that it's someone reference an only version of the parent pom.xml.  if i "mvn -N install" the parent, then the child will see the updated value.

thanks in advance.

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Closed: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3690.
-----------------------------

      Assignee: Brett Porter
    Resolution: Cannot Reproduce

please reopen if you find a test project that reproduces it

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>            Assignee: Brett Porter
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Joseph Marques (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143765#action_143765 ] 

Joseph Marques commented on MNG-3690:
-------------------------------------

hmm...investigating more into this it appears it might have to do with weird caching.  if i just change the value of some property at some parent-parent pom.xml, the new value does not trickle down if i try to execute "mvn" from the child level.  i need to path up to the ancestor, build "mvn -N install" from there, and then go back down to the child.  this makes using properties set at parent levels rather clunky.  i want to be able to change the property at a parent level, and have that take immediate effect if i execute from any child module.  is there a way to enable this?

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Joseph Marques (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144902#action_144902 ] 

Joseph Marques commented on MNG-3690:
-------------------------------------

ok, i finally found some time to get back to this.  when i tried to extract a minimalistic project hierarchy that reproduced this bug, i didn't encounter the bug anymore.  so, in a relatively clean setup without many other things going on the poms, things work as intended and properties are cascaded down to the nested modules as long as the parent info is set properly.  but there definitely is an issue in one of the projects i use maven for, so i'm going to continue investigating and will post back when i pinpoint what the issue is (and attached a project demonstrating it).

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Joseph Marques (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143637#action_143637 ] 

Joseph Marques commented on MNG-3690:
-------------------------------------

fyi, i'm referring to length of the property NAME not the property value.

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143767#action_143767 ] 

Benjamin Bentmann commented on MNG-3690:
----------------------------------------

bq. i want to be able to change the property at a parent level, and have that take immediate effect if i execute from any child module. is there a way to enable this?
In principal it should be possible: Maven tries to look up parent POMs from the local filesystem by following the module's [{{<relativePath>}}|http://maven.apache.org/ref/2.0.8/maven-model/maven.html#class_parent] element (of course, the version of the parent POM found at this location must match the version specified in the child or Maven continues the search in the repos).

Can you provide a test project that demonstrates your issues?

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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

        

[jira] Commented: (MNG-3690) inheriting properties doesn't work if name of property is too long

Posted by "Joseph Marques (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143634#action_143634 ] 

Joseph Marques commented on MNG-3690:
-------------------------------------

i use "mvn help:effective-pom" to confirm that this property was *NOT* passed when it was 30 chars, and that things *DID* work when the length shrank to 20 chars.

> inheriting properties doesn't work if name of property is too long
> ------------------------------------------------------------------
>
>                 Key: MNG-3690
>                 URL: http://jira.codehaus.org/browse/MNG-3690
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.9
>            Reporter: Joseph Marques
>
> when i used a property that was 30 characters long, it wasn't propagated.  when i shortened it to only be 20, it worked.  i don't know what the limit is, but this was a very sly bug.

-- 
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