imk / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

<postProcess> is not always processed as the last #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've recently encountered that <postProcess> script block is not always 
processed as the last. It's 50:50. Sometimes it's invoked as the last, 
sometimes not causing various troubles to me.

Affected parts of pom.xml:

<plugin>
    <groupId>com.agilejava.docbkx</groupId>
    <artifactId>docbkx-maven-plugin</artifactId>
    <version>2.0.15</version>
...
    <execution>
        <id>GIT</id>
        <phase>process-resources</phase>
        <goals>
            <goal>generate-html</goal>
            <goal>generate-pdf</goal>
        </goals>
        <configuration>
            <postProcess>
            ....

My workaround (for other until it will be fixed) is to make use of separate 
maven-antrun-plugin **below** docbkx bound to same phase as docbkx:

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.7</version>
    <executions>
        <execution>
            <id>post-process-files</id>
            <phase>process-resources</phase>
            <goals>
                <goal>run</goal>
            </goals>
            <configuration>
                <target>
                ...

Original issue reported on code.google.com by ljeli...@virtage.com on 16 Aug 2014 at 3:20

GoogleCodeExporter commented 9 years ago
Thank you for the report, I do not have much time these months but the issue 
have to be investigated. I don't know if I will be able to reproduce.

Original comment by MimilO...@gmail.com on 2 Sep 2014 at 1:08