From 91cf590427a55f7f56d94b72b1dc27a1288b0c36 Mon Sep 17 00:00:00 2001 From: Marian Novotny Date: Fri, 23 Apr 2021 17:07:53 +0100 Subject: [PATCH] maven: enabling gpg signing, attaching javadoc and source (#251) --- .../netflow/NetflowTransportMessage.java | 2 + .../netflow/NetflowTransportProvider.java | 12 ++--- pom.xml | 46 +++++++++++++++++++ 3 files changed, 54 insertions(+), 6 deletions(-) diff --git a/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportMessage.java b/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportMessage.java index 409701a34..ec456a6b7 100644 --- a/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportMessage.java +++ b/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportMessage.java @@ -4,6 +4,8 @@ public interface NetflowTransportMessage { /** * Get an unique global Id that identifies the template in the global store + * @param header a netflow header + * @param templateId id of the template * @return Object of the type T that will be used as a key in a templates store */ diff --git a/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportProvider.java b/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportProvider.java index 4e23f077f..6a467d44f 100644 --- a/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportProvider.java +++ b/parsing/parsing-core/src/main/java/uk/co/gresearch/siembol/parsers/netflow/NetflowTransportProvider.java @@ -6,8 +6,9 @@ public interface NetflowTransportProvider { /** * Get a netflow transport message from binary data - * @param data byte array that contains netflow packet along with source identification - * @return creates NetflowTransportMessage from an byte array data + * @param metadata metadata of the netflow message that should contain source identification + * @param data byte array that contains netflow packet along with source identification + * @return creates NetflowTransportMessage from an byte array data */ NetflowTransportMessage message(String metadata, byte[] data); @@ -16,8 +17,8 @@ public interface NetflowTransportProvider { * Get a template from a template store for parsing netflow dataSets * @param transportMessage message with related netflow packet * @param header netflow header of the processed packet - * @param templateId from netflow packet - * @return template from the store if available otherwise the empty + * @param templateId from netflow packet + * @return template from the store if available otherwise the empty */ Optional> getTemplate(NetflowTransportMessage transportMessage, NetflowHeader header, @@ -27,9 +28,8 @@ Optional> getTemplate(NetflowTransportMessage transportMes * Update templates store by the provided template * @param transportMessage message with related netflow packet * @param header netflow header of the processed packet - * @param templateId tenplateId from netwflow packet + * @param templateId templateId from netflow packet * @param template template for update - * @return creates NetflowTransportMessage from an byte array */ void updateTemplate(NetflowTransportMessage transportMessage, diff --git a/pom.xml b/pom.xml index b13b1ca91..ceee42b90 100644 --- a/pom.xml +++ b/pom.xml @@ -141,11 +141,57 @@ 60 + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + org.codehaus.mojo versions-maven-plugin 2.8.1 + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.0.1 + + + attach-javadocs + + jar + + + +