[
http://jira.codehaus.org/browse/MCOMPILER-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222584#action_222584
]
Joerg Schaible commented on MCOMPILER-128:
------------------------------------------
Steve, yep, that's the next point, why don't you use a separated package
structure? See, if hibernate-testsuite *is* some kind of integration test,
these tests should not use the same package as the tested code anyway and you
can use an include pattern like org/hibernate/testsuite/**.
Alternatively you can really do as Brett said and use an additional execution
of the compiler plugin or you may use the buildhelper plugin to add another
folder as (test-)source directory. Event the jar plugin can be configured for
an additional execution to create an additional attached JAR artifact.
The modification of the Maven lifecylce - as implied by the issue's description
- has much more impact on Maven and additional other plugins and the question
remains here, if it is really worth. I understand your requirement very well,
I've had the same before, but that are really rare cases and I was always able
to solve it with some special setup in the POM as already proposed.
> "Extra" Compiler mojo for non-test, non-main code
> -------------------------------------------------
>
> Key: MCOMPILER-128
> URL: http://jira.codehaus.org/browse/MCOMPILER-128
> Project: Maven 2.x Compiler Plugin
> Issue Type: New Feature
> Affects Versions: 2.3.1
> Reporter: John Casey
> Assignee: John Casey
> Fix For: 2.4
>
>
> It'd be nice to be able to specify another compile step in the build process,
> pointed at different source code and compiling to some alternative location.
> Using this approach, one could easily segregate test-fixture code that
> depends on the current module from the unit tests for that module, then use
> something like the assembly plugin to jar up the compiled test fixtures for
> distribution.
> Obviously, once this "extra" compile step was completed, the resulting
> location would have to be added to the appropriate classpath for test
> compilation, etc. This could be handled using a system dependency (ick) or
> something like a test-resource with filtering turned off (much the way image
> resources are handled), which would make it available on the classpath.
--
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