Skip to content

Commit

Permalink
Security scanning tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjsteenkamp committed May 10, 2024
1 parent eae7b40 commit 6bfd0ef
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 22 deletions.
25 changes: 4 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<spark.version>3.4.1</spark.version>
<jaxb.version>2.3.2</jaxb.version>

<log4j.version>2.17.1</log4j.version>
<log4j.version>2.16.0</log4j.version>
<h2.database.version>2.2.220</h2.database.version>


Expand Down Expand Up @@ -327,28 +327,11 @@

</dependencyManagement>

<repositories>

<repository>
<id>snapshot-repository.java.net</id>
<name>Java.net Snapshot Repository for Maven</name>
<url>https://maven.java.net/content/repositories/snapshots/</url>
<layout>default</layout>
</repository>

<repository>
<id>maven-central-repo</id>
<name>Central Maven Repository</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>

</repositories>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub OWNER Apache Maven Packages</name>
<url>https://maven.pkg.github.com/DevWorxCo/data-cornucopia</url>
<id>snapshots</id>
<name>JFrog Maven Package</name>
<url>https://terahelixtrial.jfrog.io/artifactory/th-internal-libs-snapshot</url>
</repository>
</distributionManagement>

Expand Down
68 changes: 67 additions & 1 deletion xml-stomper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,74 @@
<artifactId>xml-stomper</artifactId>
<packaging>jar</packaging>
<name>xml-stomper</name>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
<configuration>
<repositoryLayout>flat</repositoryLayout>
<useWildcardClassPath>true</useWildcardClassPath>
<programs>
<program>
<id>XMLStomper</id>
<mainClass>uk.co.devworx.xmlstomper.XmlToCSVStomper</mainClass>
</program>
</programs>
</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>package-items-up</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
<archiverConfig>
<compress>true</compress>
</archiverConfig>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>assemble-all</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

<dependencies>
Expand Down
18 changes: 18 additions & 0 deletions xml-stomper/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>xml-stomper-assembly</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/appassembler</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**/*.*</include>
</includes>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 6bfd0ef

Please sign in to comment.