Skip to content
Draft
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<orchestra.repository.version>1.6.8</orchestra.repository.version>
<slf4j.version>2.0.18</slf4j.version>
<jaxb.version>2.3.3</jaxb.version>
<saxon.version>11.6</saxon.version>
<commons.io.version>2.22.0</commons.io.version>
<orchestra.file>OrchestraFIXLatest.xml</orchestra.file>
<picocli-version>4.7.7</picocli-version>
Expand Down Expand Up @@ -99,6 +100,11 @@
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>${saxon.version}</version>
</dependency>
<dependency>
<groupId>io.fixprotocol.orchestra</groupId>
<artifactId>repository</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.io.FileInputStream;
import java.io.IOException;

import javax.xml.transform.TransformerException;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
Expand Down Expand Up @@ -75,7 +77,7 @@ public void execute() throws MojoExecutionException {

try (FileInputStream inputFile = new FileInputStream(orchestration)) {
generator.generate(inputFile, outputDirectory);
} catch (IOException e) {
} catch (IOException | TransformerException e) {
throw new MojoExecutionException(e.toString());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
import java.io.FileInputStream;
import java.io.IOException;

import javax.xml.bind.JAXBException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.transform.TransformerException;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.quickfixj.orchestra.DataDictionaryGenerator;
import org.xml.sax.SAXException;

@Mojo(name = "dictionaryGeneration", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
public class DictionaryGeneratorMojo extends AbstractMojo {
Expand Down Expand Up @@ -51,7 +48,7 @@ public void execute() throws MojoExecutionException {
final DataDictionaryGenerator generator = new DataDictionaryGenerator();
try (FileInputStream inputFile = new FileInputStream(orchestration)) {
generator.generate(inputFile, outputDirectory);
} catch (XPathExpressionException | JAXBException | IOException | ParserConfigurationException | SAXException e) {
} catch (IOException | TransformerException e) {
throw new MojoExecutionException(e.toString());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

<dependencies>
<dependency>
<groupId>io.fixprotocol.orchestra</groupId>
<artifactId>repository</artifactId>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -35,10 +35,6 @@
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
Expand All @@ -52,11 +48,6 @@
<artifactId>slf4j-simple</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>

<build>
Expand Down
Loading
Loading