From 47e3c950b4542590279914ad845a75098c3de68f Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 1 Oct 2019 11:19:34 +0200 Subject: update maven build fix one dependency problem --- pom.xml | 255 +++++++++++++++------ .../java/at/gv/util/data/ElectronicIdentity.java | 11 +- 2 files changed, 192 insertions(+), 74 deletions(-) diff --git a/pom.xml b/pom.xml index 4e4d5e5..b1d928a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,38 +5,174 @@ 4.0.0 at.gv.util egovutils - 2.0.9-snapshot + 2.0.9-SNAPSHOT zuseutil http://maven.apache.org UTF-8 - 3.3.2 + 1.8 + + 3.3.3 + 1.7.28 + + 4.5.10 + 3.2.2 + 2.6 + 1.13 + 1.9.4 + 1.6 + + 2.3.0 + 2.7.1 + 2.11.0 + + 2.5 + + 2.22.0 + 2.19 + + + + default + + true + + default + + + + + egiz-commons + https://apps.egiz.gv.at/maven/ + + true + + + false + + + + egiz-commons-snapshot + https://apps.egiz.gv.at/maven-snapshot/ + + false + + + true + + + + + + jenkinsDeploy + + + egizMaven + sftp://apps.egiz.gv.at/maven + + + egizMaven + sftp://apps.egiz.gv.at/maven-snapshot + + + + + egiz-commons + https://apps.egiz.gv.at/maven/ + + true + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + default-deploy + deploy + + deploy + + + + + + + + + - - - - org.apache.maven.plugins - maven-compiler-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + 1.8 + 1.8 + + + + + compile + testCompile + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + + test-jar + + + + + + + + maven-surefire-plugin + ${surefire.version} - 1.8 - 1.8 + 1 - + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.7 + + + + + + org.apache.maven.wagon + wagon-ssh + 3.3.3 + + @@ -44,34 +180,18 @@ xerces xercesImpl - 2.11.0 + ${xerces.xercesImpl.version} xalan xalan - 2.7.1 - - - - + ${xalan.version} + - javax.xml.bind - jaxb-api - 2.3.0 - + javax.xml.bind + jaxb-api + ${javax.xml.bind.jaxb-api.version} + @@ -95,68 +215,65 @@ commons-validator commons-validator - 1.6 + ${commons-validator.version} commons-beanutils commons-beanutils - 1.9.3 + ${commons-beanutils.version} - org.slf4j slf4j-api - 1.7.25 - - - org.slf4j - slf4j-log4j12 - 1.7.25 + ${org.slf4j.version} javax.servlet servlet-api - 2.5 + ${javax.servlet-api.version} provided commons-codec commons-codec - 1.12 + ${commons-codec.version} commons-lang commons-lang - 2.6 + ${commons-lang.version} jar compile - org.apache.httpcomponents httpclient - 4.5.9 + ${org.apache.httpcomponents.httpclient.version} commons-collections commons-collections - 3.2.2 + ${commons-collections.version} + + junit + junit + 4.12 + test + iaik iaik_ecc - 2.19 + ${iaik_ecc.version} test + + + org.slf4j + slf4j-log4j12 + ${org.slf4j.version} + test diff --git a/src/main/java/at/gv/util/data/ElectronicIdentity.java b/src/main/java/at/gv/util/data/ElectronicIdentity.java index ea5bd25..afbf652 100644 --- a/src/main/java/at/gv/util/data/ElectronicIdentity.java +++ b/src/main/java/at/gv/util/data/ElectronicIdentity.java @@ -40,7 +40,8 @@ import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.time.DateFormatUtils; import org.apache.commons.lang.time.DateUtils; -import org.apache.log4j.Logger; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -72,7 +73,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai private static final long serialVersionUID = 1L; - private Logger log = Logger.getLogger(this.getClass().getName()); + private Logger log = LoggerFactory.getLogger(this.getClass().getName()); private static final String FIRSTNAME = "firstname"; private static final String LASTNAME = "lastname"; @@ -331,7 +332,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai public ElectronicIdentity(AssertionType assertion, boolean isMOAIDAssertion) throws EgovUtilException { this(); // debug moa-id response - log.trace("Debug response: " + System.getProperty("debug.moaid.log.path") != null); + log.trace("Debug response: {}", System.getProperty("debug.moaid.log.path") != null); if (System.getProperty("debug.moaid.log.path") != null) { try { ObjectFactory of = new ObjectFactory(); @@ -344,7 +345,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai fos.flush(); fos.close(); } catch(Exception e) { - log.debug(e); + log.debug(e.getMessage(), e); } } if (isMOAIDAssertion) { @@ -506,7 +507,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai properties.getProperty(DATEOFBIRTH), new String[] { "yyyy-MM-dd", "dd.MM.yyyy", })); } catch (ParseException e) { - log.error(e); + log.error(e.getMessage(), e); } } this.setTitle(properties.getProperty(TITLE)); -- cgit v1.2.3