[ 
https://jira.codehaus.org/browse/MOJO-1767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282773#comment-282773
 ] 

Ian Robertson commented on MOJO-1767:
-------------------------------------

Unfortunately, while projects mentioned in <setupIncludes> are available to 
other it projects during the maven invocation stage, it does not appear that 
the classes from those projects are made available to the verifier script. To 
access the class would be tricky; the only thing I can see would be to specify 
a mock repository in target that we could install to, then have the verify 
script add the relevant jar to the classpath, and then call Class.forName to 
load the class.

I still think the way to go is to place the utility class in src/test/java. 
It's only confusing when one isn't used to it, but it seems to be standard 
practice with the m-invoker-p. It's used, for example, in tests for 
maven-unix-plugin, fitnesse-maven-plugin, maven-clean-plugin and 
maven-install-plugin. fitnesse-maven-plugin places it's utilities in the 
org.codehaus.mojo.fitnesse.integration package, to help clarify their purpose.

All that said, it's your call :).

> Improve integration-test for MOJO-1744
> --------------------------------------
>
>                 Key: MOJO-1767
>                 URL: https://jira.codehaus.org/browse/MOJO-1767
>             Project: Mojo
>          Issue Type: Improvement
>          Components: extra-enforcer-rules
>            Reporter: Robert Scholte
>            Priority: Minor
>         Attachments: LogParser.java, mojo-1744.it.2.patch
>
>
> With MOJO-1744 we have support for ignoring classes for specific dependencies.
> However, the IT seems unstable due to the usage of HashMaps (unpredictable 
> order).
> The IT needs an improvement by ignoring the order, though every entry must be 
> verified.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to