Maven newbie...
I downloaded XSpec using git clone:
git clone https://github.com/xspec/xspec.git
I set the appropriate environment variables. XSpec seems to work fine.
For the Maven plugin, I am using: xspec-maven-plugin-1
To create a Maven project I opened a (Windows) command window and typed:
mvn -B archetype:generate -DgroupId=org.test.waypoints -DartifactId=waypoints -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
That created a waypoints folder along with several subfolders.
I put an XSpec test (waypoints.xspec) in this folder: waypoints/src/test/xspec
I put my XSLT program (waypoints.xsl) in this folder: waypoints/src/main/xsl
I opened waypoints/pom.xml and added the plugin element shown below into build/pluginManagement/plugins.
The document at https://github.com/xspec/xspec-maven-plugin-1 says: Don't forget to add a dependency to your Saxon license. Question #1: How do I add a dependency to my Saxon license? My Saxon license is in this folder: C:\SAXON\saxon-license
I didn't know how to add that dependency but, nonetheless, I pushed ahead. I opened a command window in the folder containing pom.xml and typed:
mvn test
That didn't seem to do much. I got this message: Nothing to compile - all classes are up to date
Question #2: Should I be running some other Maven command prior to the test
command?
Question #3: How does Maven know to use the XSpec code?
Question #4: Does the plugin element shown below look correct?
<plugin>
<groupId>io.xspec.maven</groupId>
<artifactId>xspec-maven-plugin</artifactId>
<version>2.0.0</version>
<dependencies>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon-ee</artifactId>
<version>10.1</version>
</dependency>
<dependency>
<groupId>io.xspec</groupId>
<artifactId>xspec</artifactId>
<version>1.6.0</version>
</dependency>
</dependencies>
<configuration>
<generateSurefireReport>true</generateSurefireReport>
<saxonOptions></saxonOptions>
</configuration>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>run-xspec</goal>
</goals>
</execution>
</executions>
</plugin>