Issue Details (XML | Word | Printable)

Key: MCHANGES-128
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Olivier Lamy
Reporter: Fabien Galampoix
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Changes Plugin

unable to use "toAddresses" field for announces

Created: 04/Nov/08 03:41 AM   Updated: 05/Nov/08 03:21 PM   Resolved: 05/Nov/08 03:21 PM
Return to search
Component/s: announcement
Affects Version/s: 2.0
Fix Version/s: 2.1

Time Tracking:
Not Specified


 Description  « Hide

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



Olivier Lamy made changes - 04/Nov/08 03:49 AM
Field Original Value New Value
Fix Version/s 2.1 [ 14064 ]
Dennis Lundberg added a comment - 04/Nov/08 01:51 PM

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


Olivier Lamy added a comment - 04/Nov/08 05:40 PM

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

Fabien Galampoix added a comment - 05/Nov/08 05:21 AM

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.


Olivier Lamy made changes - 05/Nov/08 03:10 PM
Assignee Olivier Lamy [ olamy ]
Olivier Lamy added a comment - 05/Nov/08 03:21 PM

fix in rev 711701


Olivier Lamy made changes - 05/Nov/08 03:21 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]