From issues-return-134221-archive-asf-public=cust-asf.ponee.io@maven.apache.org Sat Jun 23 14:26:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A002718067A for ; Sat, 23 Jun 2018 14:26:04 +0200 (CEST) Received: (qmail 80209 invoked by uid 500); 23 Jun 2018 12:26:03 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 80198 invoked by uid 99); 23 Jun 2018 12:26:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2018 12:26:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 42BA7C987C for ; Sat, 23 Jun 2018 12:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KFm-_xky97vm for ; Sat, 23 Jun 2018 12:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 718155F1EE for ; Sat, 23 Jun 2018 12:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9A6DFE0EEE for ; Sat, 23 Jun 2018 12:26:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 538B523F98 for ; Sat, 23 Jun 2018 12:26:00 +0000 (UTC) Date: Sat, 23 Jun 2018 12:26:00 +0000 (UTC) From: "Terrien Jean-Yves (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6400) can not work with a system dependency on a unix / mac / windows project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-6400?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165210= 72#comment-16521072 ]=20 Terrien Jean-Yves commented on MNG-6400: ---------------------------------------- No this is the problem : with profile in .m2/settings.xml I've properties defined for each JCO jar w= ith the value of systemPath depending on OS. In some project that use JCO, I've a d=C3=A9pencencie with ${sa= pidoc3} ${sapijco3} In this configuration it work with maven 3.3.9 but not with maven 3.5.3 =3D> error absolute path is ${sapjco3} =C2=A0 > can not work with a system dependency on a unix / mac / windows project > ----------------------------------------------------------------------- > > Key: MNG-6400 > URL: https://issues.apache.org/jira/browse/MNG-6400 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.5.3 > Environment: Windows 07 > Reporter: Terrien Jean-Yves > Priority: Blocker > Fix For: waiting-for-feedback > > > the sapjco3.jar and sapIdoc3.jar jars can not be renamed. > to work with you have to use an addiction system > however, a unix / windows project can not have an identical absolute path= on both systems. > in previous versions of maven you can set properties in .m2 / settings.xm= l and and use system > $ \{sapidoc3} > a warnning will be displayed. > on version 3.5.3 it is an error. > But that's not all because even putting the system dependency with an abs= olute path the jar is not found with the correct name > > de.sap > sapjco3 > 3.0.0 > system > D:/project-ati/libs/libsap/sapjco3.jar > > JCO3 code > protected boolean registerNativeMethods(Class clazz){ > if(!initializedDLL){ > try{ > JCoRuntime.nativeLibraryPath =3D loadLibrary("sapjco3"); > initializedDLL =3D true; > }catch(UnsatisfiedLinkError arg2){ > JCoRuntime.nativeLibraryPath =3D "not loaded, caused by " + arg2.toStrin= g(); > arg2.printStackTrace(); > throw arg2; > } > } > return true; > } > java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865) > at java.lang.Runtime.loadLibrary0(Runtime.java:870) > at java.lang.System.loadLibrary(System.java:1122) > at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.j= ava:444) > =C2=A0 > The first sap-schema-plugin is a project with sap dependencies defined by= an absolute path or property. it compiles well. > the second project use this plugin.=20 > if the plugin project is compiled whith properties > =3D> error absolute pah is ${sapjco3} > if the plugin project is compiled with absolute path > =3D> java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path > =C2=A0 > the same project without change with maven 3.3.9 works perfectly > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)