phax / ph-schematron

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

com.helger.schematron.svrl.jaxb.SchematronOutputType missing? #105

Closed electrickery closed 4 years ago

electrickery commented 4 years ago

Hi,

A build from a clean git clone results in failing tests, indicating the com.helger.schematron.svrl.jaxb.SchematronOutputType class is not found. The documentation mentions it is generated,

Build > Rebuild Project (IntelliJ here) results in: ...\ph-schematron\src\main\java\com\helger\schematron\AbstractSchematronResource.java:39:39 java: package com.helger.schematron.svrl.jaxb does not exist.

phax commented 4 years ago

Yes, if you run mvn install or mvn process-sources on the commandline, it creates a folder target/generated-sources/xjc and that needs to be added to your build path. As an Eclipse use I can't tell you too much how IntelliJ handles this 🤷

electrickery commented 4 years ago

Thank you for your response. 'mvn install' worked perfectly. From IntelliJ I had in File > Project Structure > Project Settings > Modules, mark the .../ph-schematron/ph-schematron/target/generated-sources/svrl directory as "Sources". There is still an issue with failing unit-tests, but not with 'mvn install', so I consider it an other IntelliJ config issue.

phax commented 4 years ago

There is a difference in the "current directory" between Eclipse and IntelliJ - so if you adopt the current working directory, it might help.