Skip to content

Add a testPreprocess goal #14

@htfv

Description

@htfv

Typical Maven plugins have separate goals for the main and test sources, for example compile and testCompile, resources and testResources. Having a testPreprocess goal bound to the generate-test-sources goal may greatly reduce configuration. The following

<executions>
    <execution>
        <id>preprocess-sources</id>
        <goals>
            <goal>preprocess</goal>
        </goals>
    </execution>
    <execution>
        <id>preprocess-test-sources</id>
        <configuration>
            <useTestSources>true</useTestSources>
        </configuration>
        <goals>
            <goal>preprocess</goal>
        </goals>
        <phase>generate-test-sources</phase>
    </execution>
</executions>

may be then replaced with

<executions>
    <execution>
        <goals>
            <goal>preprocess</goal>
            <goal>testPreprocess</goal>
        </goals>
    </execution>
</executions>

All existing properties may be supported, the testProcess goal may just have different defaults.

This is a minor improvement. I could create a pull request if you think that this feature has a value.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions