Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: Hopefully final problems with maven rules (Re: Continuing work on qualimap) Date: Thu, 26 Nov 2015 09:20:01 +0100 Message-ID: References: X-Original-To: Andreas Tille , debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Thu Nov 26 08:18:56 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.577 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=waWNNbWdb+lq0OD4nWsR0SRaoMid9K2/OjAMAqtzw5I=; b=EQ0x9vjGm0yLm3A+UYDaNpgQTMbIq0S6Uo+mbnGmjcQcHxglMXQVmpH663RorB/icY 0Ab/UnQ3Ar8PN6UvYFTn429IfgiVf1CQeiLdfcgHo0cV1KKZP1kre4an6eMpp0aQMCDs 720nwJZP4c05GDmudls7WGXuSrrGp0SeUsa57VZYioPqc3SBX7cc4SPLM/oT8tqnKEIT FhDFXz1p+5fAu1cMrwrM4yQUe3JZCWkYIvxRmnEPpOkX/OKpgz3LJXgWGDEqGukuydEo lJTbqCXe4fyQlXN911hodZgxVuOJBvjGBqlyiMFGpdh+0xE+L/knJJ3PwaeVL6RwlKUx +dxg== X-Received: by 10.194.78.162 with SMTP id c2mr56943428wjx.112.1448525922539; Thu, 26 Nov 2015 00:18:42 -0800 (PST) Sender: robomod@news.nic.it X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/18919 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/5656C060.7090606@apache.org Approved: robomod@news.nic.it Lines: 35 Organization: linux.* mail to news gateway X-Original-Cc: Bas Couwenberg X-Original-Date: Thu, 26 Nov 2015 09:18:40 +0100 X-Original-Message-ID: <5656C060.7090606@apache.org> X-Original-References: <20151123094802.GB13138@an3as.eu> <56537AEB.9090908@xs4all.nl> <20151123212047.GA29080@an3as.eu> <5653A874.7090807@xs4all.nl> <20151124114218.GI29080@an3as.eu> <8b914f9c6b2f4a33b2ae365f7001028b@xs4all.nl> <20151124131752.GL29080@an3as.eu> <5654658E.8000700@apache.org> <20151126075340.GA26780@an3as.eu> X-Original-Sender: Emmanuel Bourg Xref: csiph.com linux.debian.maint.java:8600 Le 26/11/2015 08:53, Andreas Tille a écrit : > The problem might be that there are two directories in sam.jar and I > have no good idea which one to use as groupId. I assumed net/sf would > be the right one - but either this is not the case or I did something > else wrong. The groupId for samtools is net.sf.picard and not net/sf, you can see it in the pom.xml file. Also you can consider patching pom.xml instead of running "mvn install:install-file" in debian/rules. You want something like this: net.sf.samtools samtools 1.70 compile /usr/share/java/sam.jar > BTW, is there any chance to provide a maven control file for libsam-java > (and others). IMHO, it would be better to fix those things at the source > rather than in all packages using it. I agree this is an even better solution. You just have to: - import the pom.xml files for samtools and picard in the src:picard-tools package from Maven central (as debian/pom-samtools.xml and debian/pom-picard.xml for example) - add a build dependency on maven-repo-helper - call mh_installjar and mh_installpom in debian/rules (this will replace the override_dh_link target, the debian/libsam-java.install file and the line installing the jar in debian/picard-tools.install) Emmanuel Bourg