rubanetra/pom.xml
2020-04-06 18:44:45 +02:00

749 lines
31 KiB
XML

<!--
This file is part of Rubanetra.
Copyright (C) 2013,2014 Stefan Swerk (stefan_rubanetra@swerk.priv.at)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>at.jku.fim</groupId>
<artifactId>rubanetra</artifactId>
<version>0.0.6</version>
<name>Rubanetra</name>
<inceptionYear>2013</inceptionYear>
<licenses>
<license>
<name>GNU General Public License, Version 3</name>
<url>https://gnu.org/licenses/gpl-3.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>Institute of networks and security</name>
<url>https://ins.jku.at</url>
</organization>
<developers>
<developer>
<id>stefan</id>
<name>Stefan Swerk</name>
<email>stefan_rubanetra@swerk.priv.at</email>
<roles>
<role>developer</role>
</roles>
<timezone>+1</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:http://gitlab.swerk.priv.at/stefan/rubanetra.git</connection>
<url>http://gitlab.swerk.priv.at/stefan/rubanetra</url>
</scm>
<issueManagement>
<system>Gitlab</system>
<url>http://gitlab.swerk.priv.at/stefan/rubanetra/issues</url>
</issueManagement>
<properties>
<!-- the default settings to use in the final configuration files -->
<droolsKnowledgeBase>DefaultKnowledgeBase</droolsKnowledgeBase>
<droolsSessionName>DefaultSession</droolsSessionName>
<fnaInputFormat>pcap</fnaInputFormat>
<fnaOutputFile>stdout</fnaOutputFile>
<fnaOutputFormat>plaso</fnaOutputFormat>
<logLevel>info</logLevel>
<logDirectory>./logs</logDirectory>
<library.directory>./lib</library.directory>
<config.directory>./conf</config.directory>
<native.lib.classpath>/usr/lib</native.lib.classpath>
<!-- general settings -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<antlr4.visitor>false</antlr4.visitor>
<antlr4.listener>true</antlr4.listener>
<archive.output.directory>${project.build.directory}/archive</archive.output.directory>
<recentYears>2014</recentYears>
<!-- main library versions to use -->
<jnetpcap.version>1.4.r1425-1d</jnetpcap.version>
<jnetpcap.native.lib.dirname>libjnetpcap</jnetpcap.native.lib.dirname>
<krakenpcap.version>1.7.1</krakenpcap.version>
<antlr.version>4.5</antlr.version>
<drools.version>6.1.0.Final</drools.version>
<apachehttpclient.version>4.3.3</apachehttpclient.version>
<dnsjava.version>2.1.7</dnsjava.version>
<junit.version>4.11</junit.version>
<jackson.version>2.5.3</jackson.version>
<slf4j.version>1.7.6</slf4j.version>
</properties>
<repositories>
<!--This repository contains the required Kraken Pcap modules, it may be disabled as soon as the
actual krakenapps.org repository (see below) is up again.-->
<repository>
<id>OpenSOC-Kraken-Repo</id>
<name>OpenSOC Kraken Repository</name>
<url>https://raw.github.com/opensoc/kraken/mvn-repo</url>
</repository>
<!--The following repository is currently down (03.2015), it should be enabled if possible.-->
<!--<repository>-->
<!--<id>krakenapps.org</id>-->
<!--<name>Kraken Repository</name>-->
<!--<url>http://download.krakenapps.org/</url>-->
<!--</repository>-->
<!--The following repository serves as workaround for the missing kraken-pcap-pom dependency problem,
See also https://github.com/nchovy/kraken/issues/4 .
In case the repository location as specified below does not exist, delete the following repository entry,
acquire the kraken-pcap-pom file and execute
$ mvn install:install-file -DlocalRepositoryPath=kraken-workaround-repository \
-DcreateChecksum=true -Dpackaging=pom -Dfile=<PATH-TO_KRAKEN-PCAP-POM.pom> \
-DgroupId=org.krakenapps -DartifactId=kraken-pcap-pom -Dversion=1.0.0
As soon as the underlying issue is resolved upstream, this repository entry may be deleted.-->
<repository>
<id>krakenapps.org - workaround</id>
<releases>
<enabled>true</enabled>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>file://${project.basedir}/src/main/resources/kraken-workaround-repository</url>
</repository>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central</id>
<name>Central Maven Repository</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>clojars.org</id>
<name>Clojars Community Maven Repository</name>
<url>http://clojars.org/repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
</pluginRepository>
<pluginRepository>
<id>central</id>
<name>Central Maven Repository</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.3.0</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
<exclusions>
<exclusion>
<artifactId>activation</artifactId>
<groupId>javax.activation</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-pcap</artifactId>
<version>${krakenpcap.version}</version>
<exclusions>
<exclusion>
<artifactId>slf4j-simple</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-http-decoder</artifactId>
<version>1.1.0</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-smtp-decoder</artifactId>
<version>1.1.0</version>
<exclusions>
<exclusion>
<artifactId>activation</artifactId>
<groupId>javax.activation</groupId>
</exclusion>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-ftp-decoder</artifactId>
<version>1.2.0</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-msn-decoder</artifactId>
<version>1.2.0</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-netbios-decoder</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-pop3-decoder</artifactId>
<version>1.0.0</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-dhcp-decoder</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-snmp-decoder</artifactId>
<version>1.1.0</version>
<exclusions>
<exclusion>
<artifactId>mail</artifactId>
<groupId>javax.mail</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.krakenapps</groupId>
<artifactId>kraken-telnet-decoder</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>jnetpcap</groupId>
<artifactId>jnetpcap</artifactId>
<version>${jnetpcap.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${drools.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${apachehttpclient.version}</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>${dnsjava.version}</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<quiet>false</quiet>
<jarOutputDirectory>${archive.output.directory}</jarOutputDirectory>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>prepare-package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<skip>true</skip>
<systemPropertyVariables>
<logDirectory>${project.build.directory}/logs</logDirectory>
<logLevel>DEBUG</logLevel>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/main/assembly/distribution-zip.xml</descriptor>
<descriptor>src/main/assembly/package-zip.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<outputDirectory>${archive.output.directory}</outputDirectory>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- Workaround for Maven bug #MJAR-156 (https://jira.codehaus.org/browse/MJAR-156) -->
<useUniqueVersions>false</useUniqueVersions>
<classpathPrefix>${library.directory}/</classpathPrefix>
<addExtensions>false</addExtensions>
<mainClass>at.jku.fim.rubanetra.config.ConfigurationController</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Class-Path>${config.directory}/ ${native.lib.classpath}/</Class-Path>
<Build-Java>${java.version}</Build-Java>
<Build-OS>${os.name}</Build-OS>
<Build-Arch>${os.arch}</Build-Arch>
<License-Short-Name>GPLv3</License-Short-Name>
<License-Long-Name>GNU General Public License, Version 3</License-Long-Name>
<License-Url>https://gnu.org/licenses/gpl-3.0.txt</License-Url>
<License-Short-Header>This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
</License-Short-Header>
<License-Inception-Year>${project.inceptionYear}</License-Inception-Year>
<License-Recent-Years>${recentYears}</License-Recent-Years>
<Copyright-Owner>Stefan Swerk (stefan_rubanetra@swerk.priv.at)</Copyright-Owner>
<Issue-Management>${project.issueManagement.url}</Issue-Management>
<Project-Home>${project.scm.url}</Project-Home>
</manifestEntries>
</archive>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/*.drl</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.conf</exclude>
<exclude>kraken-workaround-repository/**</exclude>
<exclude>${droolsKnowledgeBase}/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<includePom>true</includePom>
<outputDirectory>${archive.output.directory}</outputDirectory>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<phase>prepare-package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
<execution>
<id>attach-test-sources</id>
<phase>prepare-package</phase>
<goals>
<goal>test-jar-no-fork</goal>
</goals>
<configuration>
<excludes>
<exclude>**/captures/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/antlr4</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${antlr.version}</version>
<executions>
<execution>
<id>antlr</id>
<phase>generate-sources</phase>
<goals>
<goal>antlr4</goal>
</goals>
<configuration>
<!-- This options is currently not required, since this plugin looks for ANTLR grammars
in the directory 'main/antlr4' anyway-->
<!--<sourceDirectory>${basedir}/src/main/java</sourceDirectory> -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>${drools.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<useBaseVersion>true</useBaseVersion>
</configuration>
</execution>
<execution>
<id>unpack</id>
<phase>compile</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>jnetpcap</groupId>
<artifactId>jnetpcap</artifactId>
<version>${jnetpcap.version}</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/lib/${jnetpcap.native.lib.dirname}
</outputDirectory>
</artifactItem>
</artifactItems>
<includes>native/**</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.6</version>
<configuration>
<licenseName>gpl_v3</licenseName>
<copyrightOwners>Stefan Swerk (stefan_rubanetra@swerk.priv.at)</copyrightOwners>
<useMissingFile>true</useMissingFile>
<useRepositoryMissingFiles>true</useRepositoryMissingFiles>
<licenseMerges>
<licenseMerge>The Apache Software License, Version 2.0|Apache 2</licenseMerge>
<licenseMerge>The Apache Software License, Version 2.0|Apache
License
</licenseMerge>
<licenseMerge>The Apache Software License, Version 2.0|Apache
License, Version 2.0
</licenseMerge>
</licenseMerges>
</configuration>
<executions>
<execution>
<id>add-third-party</id>
<goals>
<goal>add-third-party</goal>
</goals>
<phase>process-sources</phase>
</execution>
<!--<execution>-->
<!--<id>download-licenses</id>-->
<!--<goals>-->
<!--<goal>download-licenses</goal>-->
<!--</goals>-->
<!--<phase>process-sources</phase>-->
<!--</execution>-->
<execution>
<id>update-project-license</id>
<goals>
<goal>update-project-license</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
<plugin>
<groupId>net.ju-n.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<goals>
<goal>artifacts</goal>
</goals>
</execution>
</executions>
<configuration>
<algorithms>
<algorithm>MD5</algorithm>
<algorithm>SHA-1</algorithm>
<algorithm>SHA-256</algorithm>
</algorithms>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<header>src/license/gpl_v3/header.txt</header>
<properties>
<owner>Stefan Swerk</owner>
<year>${project.inceptionYear}</year>
<recentYears>${recentYears}</recentYears>
<currentYear>${maven.build.timestamp}</currentYear>
<email>stefan_rubanetra@swerk.priv.at</email>
</properties>
<useDefaultExcludes>true</useDefaultExcludes>
<mapping>
<drl>JAVADOC_STYLE</drl>
<g4>JAVADOC_STYLE</g4>
<conf>JAVADOC_STYLE</conf>
</mapping>
</configuration>
<executions>
<execution>
<id>license-basedir</id>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
<configuration>
<basedir>${project.basedir}</basedir>
<excludes>
<exclude>**/README*</exclude>
<exclude>**/LICENSE*</exclude>
<exclude>src/license/gpl_v3/**</exclude>
<exclude>src/main/resources/kraken-workaround-repository/**</exclude>
<exclude>src/test/resources/captures/**</exclude>
</excludes>
<includes>
<include>pom.xml</include>
<include>src/**</include>
</includes>
</configuration>
</execution>
<execution>
<id>license-gen-src</id>
<phase>process-sources</phase>
<goals>
<goal>format</goal>
</goals>
<configuration>
<basedir>${project.build.directory}/generated-sources/antlr4</basedir>
<excludes>
<exclude>**/README*</exclude>
<exclude>**/LICENSE*</exclude>
<exclude>**/*.tokens</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>