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 4408C10F28 for ; Fri, 26 Jul 2013 16:02:01 +0000 (UTC) Received: (qmail 92021 invoked by uid 500); 26 Jul 2013 16:01:58 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 91915 invoked by uid 500); 26 Jul 2013 16:01:58 -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 91615 invoked by uid 99); 26 Jul 2013 16:01:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 16:01:56 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bahmer@lanl.gov designates 204.121.3.53 as permitted sender) Received: from [204.121.3.53] (HELO proofpoint5.lanl.gov) (204.121.3.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 16:01:49 +0000 Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate5.lanl.gov (8.14.5/8.14.5) with ESMTP id r6QG1SoR012550 for ; Fri, 26 Jul 2013 10:01:28 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 943731120FA1 for ; Fri, 26 Jul 2013 10:01:28 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Received: from ECS-EXG-P-CH07.win.lanl.gov (ecs-exg-p-ch07.win.lanl.gov [128.165.106.17]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 7978D1120FA5 for ; Fri, 26 Jul 2013 10:01:28 -0600 (MDT) Received: from ECS-EXG-P-MB01.win.lanl.gov ([169.254.1.165]) by ECS-EXG-P-CH07.win.lanl.gov ([128.165.106.17]) with mapi id 14.03.0123.003; Fri, 26 Jul 2013 10:01:28 -0600 From: "Bahmer, Eric V" To: "users@maven.apache.org" Subject: Stop offline mode artifact version renumbering Thread-Topic: Stop offline mode artifact version renumbering Thread-Index: AQHOihljaklbwzQQbUG7g3d2f16NoA== Date: Fri, 26 Jul 2013 16:01:28 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.165.184.250] Content-Type: multipart/alternative; boundary="_000_CE17F97711A1Ebahmerlanlgov_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-07-26_07:2013-07-26,2013-07-26,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_CE17F97711A1Ebahmerlanlgov_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've searched through a few years archives of the mailing list and can't se= em to find an answer to an issue that's been bugging me for a while now. We've been using a highly customized third-party application for a while no= w and are looking to upgrade to a newer version. The new version uses maven for part of it's build process. I work in an environment that for SECURITY reasons I must run my build in O= FFLINE mode. I have already rebuilt over 600 rpms to have all the necessary dependencies= available locally. The problem I'm having is this: The project uses jetty, it calls for version 7.5.3 to be used, I have a pat= ched 8.1.0 installed. Maven will resolve jetty correctly, however one of the jetty jars will end = up with it's version number altered in the distribution. jetty-server-8.1.0.v20120127.jar jetty-servlet-8.1.0.v20120127.jar jetty-start-7.5.3.v20111011.jar This will not work as jetty-start reads it's own filename string and attemp= ts to load other jetty jars with the same version string. I can get around the problem by replacing the jetty version number tag in the parent pom, which will make jetty-start have the same 8.= 1.0 version number. However, jetty isn't the only jar that this is happening to. The overall project which isn't entirely java has a few sub-projects built = separately exhibiting this same behavior and I would rather avoid replacing= every version number in every pom or adding them if they don't have them j= ust so that all related packages like jetty, spring, or resteasy have match= ing version numbers. I also don't want several copies of the same jar with different filenames b= ecause the version number is different for the sub-projects. Otherwise I have to put a bunch of ugly loops in my rpm spec file to clean = up both before the build and after. Is there a way to force resolution of my locally installed version numbers = and NOT rename the jar files to an incorrect version number? I've already t= ried the versions plugin, the dependency plugin, -U, -Dmaven.ignore.version= s as well as combinations of them all. I repeat that I have all necessary dependencies locally installed for offli= ne build. I know my versions work. I want maven to ignore what the poms say= about version and take the version number from what I have installed. --_000_CE17F97711A1Ebahmerlanlgov_--