Maven Changes Plugin
  1. Maven Changes Plugin
  2. MCHANGES-128

unable to use "toAddresses" field for announces

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: announcement
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Unable to use "toAddresses" field for mail announces.
      Error raised :
      >>> [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-changes-plugin:2.1-SNAPSHOT
      >>> Cause: Class 'java.util.List' cannot be instantiated

      It seems that there was a similar error on changelog plugin before.
      This patch may help :
      >>> in — src/main/java/org/apache/maven/plugin/announcement/AnnouncementMailMojo.java
      >>> - * @parameter expression="$

      {changes.toAddresses}

      "
      >>> + * @parameter

        Activity

        Hide
        Dennis Lundberg added a comment -

        Can you show us the command line and POM configuration you use to get the error?

        Show
        Dennis Lundberg added a comment - Can you show us the command line and POM configuration you use to get the error?
        Hide
        Olivier Lamy added a comment -

        Dennis,
        Just try with the following configuration :

             <plugin>
               <artifactId>maven-changes-plugin</artifactId>
               <version>2.1-SNAPSHOT</version>
               <configuration>
                 <toAddresses>
                   <toAddress>foo@bar.com</toAddress>
                 </toAddresses>
               </configuration>
             </plugin>
        

        Log :

        [INFO] ------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO] ------------------------------------------------------------------------
        [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-changes-plugin:2.1-SNAPSHOT
        
        
        
        Cause: Class 'java.util.List' cannot be instantiated
        [INFO] ------------------------------------------------------------------------
        [DEBUG] Trace
        org.apache.maven.lifecycle.LifecycleExecutionException: 
        Error configuring: org.apache.maven.plugins:maven-changes-plugin. Reason: Unable to parse the created DOM for plugin configuration
        
        Show
        Olivier Lamy added a comment - Dennis, Just try with the following configuration : <plugin> <artifactId> maven-changes-plugin </artifactId> <version> 2.1-SNAPSHOT </version> <configuration> <toAddresses> <toAddress> foo@bar.com </toAddress> </toAddresses> </configuration> </plugin> Log : [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for : org.apache.maven.plugins:maven-changes-plugin:2.1-SNAPSHOT Cause: Class 'java.util.List' cannot be instantiated [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: org.apache.maven.plugins:maven-changes-plugin. Reason: Unable to parse the created DOM for plugin configuration
        Hide
        Fabien Galampoix added a comment -

        Good example from Olivier, with these informations :
        JVM:
        java version "1.6.0_05"
        Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
        Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
        ... and maven 2.0.9

        Issue is resolved when i remove "expression="$

        {changes.toAddresses}

        " as shown in the description.

        Show
        Fabien Galampoix added a comment - Good example from Olivier, with these informations : JVM: java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) ... and maven 2.0.9 Issue is resolved when i remove "expression="$ {changes.toAddresses} " as shown in the description.
        Hide
        Olivier Lamy added a comment -

        fix in rev 711701

        Show
        Olivier Lamy added a comment - fix in rev 711701

          People

          • Assignee:
            Olivier Lamy
            Reporter:
            Fabien Galampoix
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: