phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
116 stars 36 forks source link

Schematron convert at build time not working #155

Closed GediminasVaistai closed 1 year ago

GediminasVaistai commented 1 year ago

Hi,

I tried to use this maven-plugin, but it didn't produce any file or any other information. So how to use correctly this maven plugin at build time? Should I do something more than just place this code in pom.xml? How to activate this plugin?


        <plugins>
            <plugin>
                <groupId>com.helger.maven</groupId>
                <artifactId>ph-schematron-maven-plugin</artifactId>
                <version>7.0.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>convert</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <schematronDirectory>${basedir}/src/main/schematron</schematronDirectory>
                    <xsltDirectory>${basedir}/src/main/xslt</xsltDirectory>
                    <schematronPattern>**/*.xml</schematronPattern>                    
                </configuration>
            </plugin>
        </plugins>
    </build>`
phax commented 1 year ago

That looks good in general. Try running mvn generate-resources to get it build (part of mvn package and mvn install).

hth