Fails the build if generated HTML contains Unresolved (#68)

fixes #67
This commit is contained in:
Marcin Grzejszczak
2018-02-12 17:09:59 +01:00
committed by Marcin Grzejszczak
parent 10d29409e5
commit 434aac7f68

19
pom.xml
View File

@@ -909,6 +909,25 @@ limitations under the License.
</target>
</configuration>
</execution>
<execution>
<id>assert-no-unresolved-links</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<fileset id="unresolved.file" dir="${basedir}/target/contents/reference/" includes="**/*.html">
<contains text="Unresolved"/>
</fileset>
<fail message="[Unresolved] Found...failing">
<condition>
<resourcecount when="greater" count="0" refid="unresolved.file" />
</condition>
</fail>
</target>
</configuration>
</execution>
<execution>
<id>setup-maven-properties</id>
<phase>validate</phase>