You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthew Beermann (JIRA)" <ji...@codehaus.org> on 2008/11/12 20:08:13 UTC

[jira] Created: (MNG-3835) Incorrect parameter injection

Incorrect parameter injection
-----------------------------

                 Key: MNG-3835
                 URL: http://jira.codehaus.org/browse/MNG-3835
             Project: Maven 2
          Issue Type: Bug
          Components: Plugin API
    Affects Versions: 2.1.0-M1
         Environment: Maven version: 2.1.0-M1
Java version: 1.5.0_16
Default locale: en_US, platform encoding: Cp1252
OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
            Reporter: Matthew Beermann
            Priority: Critical


Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.

                    <headers>                        
                        <header>
                            <name>Bundle-SymbolicName</name>
                            <values>
                                <value>
                                    <name>${project.name}</name>
                                    <directives>
                                        <singleton>true</singleton>
                                    </directives>
                                </value>
                            </values>
                        </header>
                        <header>
                            <name>Eclipse-LazyStart</name>
                            <values>
                                <value>
                                    <name>true</name>
                                </value>
                            </values>
                        </header>
                        <header>
                            <name>Eclipse-BuddyPolicy</name>
                            <values>
                                <value>
                                    <name>registered</name>
                                </value>
                            </values>
                        </header>
                        <header>
                            <name>Require-Bundle</name>
                            <append>true</append>
                            <values>
                                <value>
                                    <name>com.cerner.client.wrapper.osgi.jaxb</name>
                                </value>    
                                <value>
                                    <name>com.cerner.client.wrapper.osgi.msvc</name>
                                </value>                                                                
                            </values>
                        </header>
                        <header>
                            <name>Eclipse-RegisterBuddy</name>
                            <values>
                                <value>
                                    <name>com.cerner.client.wrapper.osgi.jaxb</name>
                                </value>                                
                            </values>                            
                        </header>
                    </headers>

But here's what actually gets sent to the mojo (output from mvn -X):

[DEBUG]   (s) name = Bundle-SymbolicName
[DEBUG]   (s) name = jaxb-clinrpt-template
[DEBUG]   (s) directives = {singleton=true}
[DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
[DEBUG]   (s) name = Eclipse-LazyStart
[DEBUG]   (s) name = true
[DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
[DEBUG]   (s) name = Eclipse-BuddyPolicy
[DEBUG]   (s) name = registered
[DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
[DEBUG]   (s) name = Require-Bundle
[DEBUG]   (s) append = true
[DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
[DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
[DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
[DEBUG]   (s) name = Eclipse-RegisterBuddy
[DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
[DEBUG]   (s) directives = {singleton=true}
[DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]

Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.

I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

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

Brett Porter closed MNG-3835.
-----------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.2.x (to be reviewed))
         Assignee: Brett Porter

this seems to be particular to your mojo, since you are using setters for the injection. When using the field-injection I can't reproduce the problem. Please post a mojo that reproduces it if it's still an issue.

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.0.9, 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Assignee: Brett Porter
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158388#action_158388 ] 

Brett Porter commented on MNG-3835:
-----------------------------------

is this a regression in 2.1.0-M1, or was it also the case in 2.0.9?

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217081#action_217081 ] 

Brett Porter commented on MNG-3835:
-----------------------------------

In the mojo I added:
{code}
/** @parameter */
private List<Header> headers;
{code}

In that package I added the classes:
{code}
public class Header
{
  String name;
  List<Value> values;
  boolean append;
}
{code}
and
{code}
public class Value
{
  String name;
  Map<String,String> directives;
}
{code}

Using the plugin configuration above, and some toString() methods, I could see they were populated correctly.

I'm uncertain how exactly you had configured the mojo and what setters were available. If you can reproduce this with a small mojo that'd be helpful.

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.0.9, 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Assignee: Brett Porter
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

Posted by "Matthew Beermann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217017#action_217017 ] 

Matthew Beermann commented on MNG-3835:
---------------------------------------

Brett, can you clarify a little? I hadn't realized that the nested objects don't need to have getters and setters... plain old field injection didn't seem to work when I first tried it, but that's been ages ago now.

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.0.9, 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Assignee: Brett Porter
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

Posted by "Matthew Beermann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=153957#action_153957 ] 

Matthew Beermann commented on MNG-3835:
---------------------------------------

Other variations on the theme: 

* Only the /first/ <directive> gets duplicated; any additional ones behave as they should. 
* The issue arises for the <header> in any position other than the end of the configuration.
* The issue /might/ be specific to Maps, since we have other plugins that use Lists and we've never noticed anything like this.

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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-3835) Incorrect parameter injection

Posted by "Matthew Beermann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158585#action_158585 ] 

Matthew Beermann commented on MNG-3835:
---------------------------------------

It was also the case in 2.0.9.

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Priority: Critical
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

-- 
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] Updated: (MNG-3835) Incorrect parameter injection

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

Brett Porter updated MNG-3835:
------------------------------

    Affects Version/s: 2.0.9
        Fix Version/s: 2.0.x

> Incorrect parameter injection
> -----------------------------
>
>                 Key: MNG-3835
>                 URL: http://jira.codehaus.org/browse/MNG-3835
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 2.0.9, 2.1.0-M1
>         Environment: Maven version: 2.1.0-M1
> Java version: 1.5.0_16
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" family: "windows"
>            Reporter: Matthew Beermann
>            Priority: Critical
>             Fix For: 2.0.x
>
>
> Consider the following configuration fragment. Header is a bean with a list of values; Value is a bean with a map of directives.
>                     <headers>                        
>                         <header>
>                             <name>Bundle-SymbolicName</name>
>                             <values>
>                                 <value>
>                                     <name>${project.name}</name>
>                                     <directives>
>                                         <singleton>true</singleton>
>                                     </directives>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-LazyStart</name>
>                             <values>
>                                 <value>
>                                     <name>true</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-BuddyPolicy</name>
>                             <values>
>                                 <value>
>                                     <name>registered</name>
>                                 </value>
>                             </values>
>                         </header>
>                         <header>
>                             <name>Require-Bundle</name>
>                             <append>true</append>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>    
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.msvc</name>
>                                 </value>                                                                
>                             </values>
>                         </header>
>                         <header>
>                             <name>Eclipse-RegisterBuddy</name>
>                             <values>
>                                 <value>
>                                     <name>com.cerner.client.wrapper.osgi.jaxb</name>
>                                 </value>                                
>                             </values>                            
>                         </header>
>                     </headers>
> But here's what actually gets sent to the mojo (output from mvn -X):
> [DEBUG]   (s) name = Bundle-SymbolicName
> [DEBUG]   (s) name = jaxb-clinrpt-template
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1cb048e]
> [DEBUG]   (s) name = Eclipse-LazyStart
> [DEBUG]   (s) name = true
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@1983ad7]
> [DEBUG]   (s) name = Eclipse-BuddyPolicy
> [DEBUG]   (s) name = registered
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@13f348b]
> [DEBUG]   (s) name = Require-Bundle
> [DEBUG]   (s) append = true
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.msvc
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@92997e, com.cerner.engineering.maven.osgi.Value@9b601d]
> [DEBUG]   (s) name = Eclipse-RegisterBuddy
> [DEBUG]   (s) name = com.cerner.client.wrapper.osgi.jaxb
> [DEBUG]   (s) directives = {singleton=true}
> [DEBUG]   (s) values = [com.cerner.engineering.maven.osgi.Value@c3362f]
> Note the second, duplicate occurance of <directives> at the end, associated with the wrong header. Where on earth did that come from? It wasn't in the configuration. Even more mysteriously, if you rearrange the order and put the offending <header> at the end of the list, the problem vanishes.
> I'm not quite sure what's going on here, but it's causing some of our custom goals to produce invalid output (GIGO).

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