[ http://jira.codehaus.org/browse/MSUREFIRE-58?page=all ]

Zarar Siddiqi updated MSUREFIRE-58:
-----------------------------------

    Attachment: additionalClasspaths.patch

I've created a patch against revision 450675 which fixes this issue and allows 
you to specify additional classpaths:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <additionalClasspathElements>
            
<additionalClasspathElement>path/to/additional/resources</additionalClasspathElement>
          </additionalClasspathElements>
        </configuration>
      </plugin>

This patch does pretty much the same thing as the one supplied in MSUREFIRE-153 
but I can't understand why that one hasn't been applied.

I'm using this for now.


> Cannot override read-only parameter: classpathElements
> ------------------------------------------------------
>
>                 Key: MSUREFIRE-58
>                 URL: http://jira.codehaus.org/browse/MSUREFIRE-58
>             Project: Maven 2.x Surefire Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>            Reporter: Jesper Zedlitz
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: additionalClasspaths.patch
>
>
> When calling "mvn site" on a multi-module project the goal "surefire:test" 
> fails for the second project:
> Error configuring: org.apache.maven.plugins:maven-surefire-plugin. Reason: 
> ERROR: Cannot override read-only parameter: classpathElements in goal: 
> surefire:test
> "mvn test" works and runs the tests on all modules.

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

        

Reply via email to