Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1825ADF08 for ; Thu, 7 Mar 2013 05:03:08 +0000 (UTC) Received: (qmail 33248 invoked by uid 500); 7 Mar 2013 04:52:09 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 32635 invoked by uid 500); 7 Mar 2013 04:52:07 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 32562 invoked by uid 99); 7 Mar 2013 04:52:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 04:52:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 04:52:01 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq12so29373wgb.0 for ; Wed, 06 Mar 2013 20:51:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=MW+Unq5rHrCXgbnZlTwIGd9MPmrvJ1Xar6duMVu7Dlw=; b=Co2ADdrxmFrYDajtdLtQeNk9UuBaG/PsgIMuyxlE14+4V1Qm/pB8KY3djCpBjosaBO ooGQtXUFy9LQflECl3mIla8J7A3wFe0DA2Q/K50vL7XBKhr6S7EhRaYeNGEQcDLXqwtZ lnROn0PWmi/EJRjdWP1FGP0owWymq1GDHCJPTww7je0w7TjlS+on7dKHKyklmwdlFRSz pGhDTZdmDeNqQP61+ssAJXgSeosKSFsQr6MxkCG2mx1du+pJWh4p5tQbN3Kjn3oV2vXD tPMExtY/54CF7BtSOSR1VbLt1jnvzyy+cbKKAqWAjM2lEksspus0iPMXR3KNTYvy3/sq l1rg== X-Received: by 10.180.95.66 with SMTP id di2mr30485755wib.18.1362631899456; Wed, 06 Mar 2013 20:51:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.243.169 with HTTP; Wed, 6 Mar 2013 20:51:19 -0800 (PST) In-Reply-To: <513261C4.2030600@durchholz.org> References: <513261C4.2030600@durchholz.org> From: Matthew Adams Date: Wed, 6 Mar 2013 22:51:19 -0600 Message-ID: Subject: Re: Unpacking jars into target/classes To: Maven Users List Content-Type: multipart/alternative; boundary=f46d0418252453bc9204d74e76ac X-Gm-Message-State: ALoCoQnHLwX26znPpcdEdnR2d+SmOCyGL+DjJAOLsuyBsX1DA5uZRkN0wZdFvo0ZkmxnVAqOVDpt X-Virus-Checked: Checked by ClamAV on apache.org --f46d0418252453bc9204d74e76ac Content-Type: text/plain; charset=ISO-8859-1 Quick jist: 1. Use maven-install-plugin's install-filegoal to make maven artifacts out of the jars you intend to unpack, and do it in any phase prior to process-classes (or do this first in the process-classes phase). 2. Use maven-dependency-plugin's unpack goalto extract those artifacts to ${project.build.outputDirectory} in the process-classes phase after the above phase. I think that'll do it for you. On Sat, Mar 2, 2013 at 2:32 PM, Joachim Durchholz wrote: > Hi all, > > I have two jars from an external source and need to merge their contents > into the target/classes tree until the process-classes phase. > I'm not sure what plugin(s) can be used to achieve this effect. > > Directory structure: > - external (directory tree that holds the externally-provided files) > - libs > - cubes.jar (class files) > - cubes-resources.jar (nonclass files) > - license etc. (other data, irrelevant to task at hand) > (yeah I know the structure sucks, can't do anything about it) > - target (maven scratchpad) > - classes (files for main artifact jar are collected here I think) > > I need the files inside libs/cubes.jar and libs/cubes-resource.jar > unpacked and placed inside target/classes, preserving the in-jar directory > structure. > > I want this to run in the process-classes, latest, because that's the last > pertinent phase that m2e will run. > > What's the best (least-hassle) plugin that will do this? > > Regards, > Jo > > P.S.: Please resist the temptation to tell me that I want the wrong thing. > I need help with solving a problem, I don't need a lecture. > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org > For additional commands, e-mail: users-help@maven.apache.org > > -- mailto:matthew@matthewadams.me skype:matthewadams12 googletalk:matthew@matthewadams.me http://matthewadams.me http://www.linkedin.com/in/matthewadams --f46d0418252453bc9204d74e76ac--