Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1957418B56 for ; Wed, 17 Jun 2015 14:03:49 +0000 (UTC) Received: (qmail 83897 invoked by uid 500); 17 Jun 2015 14:03:48 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 83859 invoked by uid 500); 17 Jun 2015 14:03:48 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 83847 invoked by uid 99); 17 Jun 2015 14:03:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 14:03:48 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cmordant1@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 14:01:33 +0000 Received: by wgv5 with SMTP id 5so37996644wgv.1 for ; Wed, 17 Jun 2015 07:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pch5soaoSU5GBZNVkskHw+KXqeObWPug1EyBtOF+pkw=; b=uoXDHkkG+oB8ln7BwwavY5bqmtk8S+03qQuY16BU2KMwdXy20MHEjR9I7etYIjSnjo nNl765AtOl+LQz19UyC5ccZdA0v9Rcvz8zpX7w7snpaZc4FWC8v17mQ/T6VotVhbGBDp p9IBAXeK2MWQT+o+VtXK9dZksO+jI4Dm21pkxb3C8jQ1asiQ11VTWhe5HsSO0Y51VjiS aLhhJidiC1VeBIjXx7QJ4PfoZ6dF6CTXZVLC3KGaUP23smE2+OWt5LB8VA2/xyR+omFe aBYitpnVTz1T5gMlhnMgGke2YGE54u3PUi0gKgEVcnwFmMBt18nVfzflecAlZnZuzWT0 ch3A== MIME-Version: 1.0 X-Received: by 10.194.174.194 with SMTP id bu2mr6310861wjc.76.1434549801593; Wed, 17 Jun 2015 07:03:21 -0700 (PDT) Received: by 10.194.200.3 with HTTP; Wed, 17 Jun 2015 07:03:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jun 2015 16:03:21 +0200 Message-ID: Subject: Re: OpenJPA dependency in osgi bundle with only data model classes From: Charlie Mordant To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=089e0141a00656320f0518b727a8 X-Virus-Checked: Checked by ClamAV on apache.org --089e0141a00656320f0518b727a8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, You can always make a weaving hook that add dynamic-import at runtime (see https://github.com/ops4j/org.ops4j.pax.jpa/blob/master/pax-jpa/src/main/jav= a/org/ops4j/pax/jpa/impl/JpaWeavingHook.java for an example) Regards, 2015-06-17 15:39 GMT+02:00 Mihael Schmidt : > Thanx for the info. > > 2015-06-17 15:33 GMT+02:00 Rick Curtis : > > > > is it possible to have no package dependencies to openjpa as I am usi= ng > > standard > > jpa stuff? > > Most likely not. The OpenJPA enhancement processing adds a hard > dependency > > on classes in org.apache.openjpa.enhance > > > > 2015-06-17 5:19 GMT-05:00 Mihael Schmidt : > > > > > hi, > > > > > > i have a question about openjpa. i got an osgi bundle with data model= s > > > containing jpa stuff. i have seen that the import-package line contai= ns > > > > > > > > > > > > org.apache.openjpa.enhance;version=3D"[2.2,3)",org.apache.openjpa.util;ve= rsion=3D"[2.2,3)" > > > . > > > > > > is it possible to have no package dependencies to openjpa as I am usi= ng > > > standard jpa stuff? > > > > > > pom.xml: http://pastebin.com/wSvT03ca > > > > > > Best Regards > > > > > > Mihael Schmidt > > > > > > -- > > > > > > Schulz Geb=C3=A4udeservice GmbH & Co. KG > > > Dr.-Max-Ilgner-Stra=C3=9Fe 17 > > > 32339 Espelkamp > > > Pers=C3=B6nlich haftende Gesellschafterin: > > > Geb=C3=A4udereinigung Joachim Schulz > > > Verwaltungsgesellschaft mbH > > > Telefon: +49 5772 9100 0 > > > Telefax: +49 5772 9100 11 > > > Email: zentrale@sgbs.de > > > Internet: www.sgbs.de > > > Gesch=C3=A4ftsf=C3=BChrer: Joachim und Dirk Schulz, Norbert Kosica > > > Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591 > > > UST-Id-Nr.: DE 125752702 > > > > > > > > > > > -- > > *Rick Curtis* > > > > > > -- > Mihael Schmidt > Software und System-Entwicklung > > -- > > Schulz Geb=C3=A4udeservice GmbH & Co. KG > Dr.-Max-Ilgner-Stra=C3=9Fe 17 > 32339 Espelkamp > Pers=C3=B6nlich haftende Gesellschafterin: > Geb=C3=A4udereinigung Joachim Schulz > Verwaltungsgesellschaft mbH > Telefon: +49 5772 9100 0 > Telefax: +49 5772 9100 11 > Email: zentrale@sgbs.de > Internet: www.sgbs.de > Gesch=C3=A4ftsf=C3=BChrer: Joachim und Dirk Schulz, Norbert Kosica > Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591 > UST-Id-Nr.: DE 125752702 > --=20 Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent --089e0141a00656320f0518b727a8--