From users-return-125424-apmail-maven-users-archive=maven.apache.org@maven.apache.org Sun Feb 5 22:03:58 2012 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 015DA9BA4 for ; Sun, 5 Feb 2012 22:03:58 +0000 (UTC) Received: (qmail 92404 invoked by uid 500); 5 Feb 2012 22:03:55 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 92258 invoked by uid 500); 5 Feb 2012 22:03:55 -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 92249 invoked by uid 99); 5 Feb 2012 22:03:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2012 22:03:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of baerrach@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Feb 2012 22:03:47 +0000 Received: by eaan12 with SMTP id n12so20510377eaa.30 for ; Sun, 05 Feb 2012 14:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=h8QIl9IYe4rxSXGoKolqZyiqm0+FdlGPw8UnoCA8Tao=; b=JJuA/5ShDsqL9qEDObDAbK7es19IvXUh4Z+obIqIJGwnLz/Jmf+41WivLOyFDkiaLn RqWyWQKIEdL6+2H3mAZVgyrfdG03mMWaxsszy4l/O/S5+GxfigonieXMTanQg1JSGZlE UbHnucofu9wRTBPNrD5z/g9OgyKENvekBoSFw= MIME-Version: 1.0 Received: by 10.213.17.144 with SMTP id s16mr980201eba.38.1328479406925; Sun, 05 Feb 2012 14:03:26 -0800 (PST) Received: by 10.14.95.198 with HTTP; Sun, 5 Feb 2012 14:03:26 -0800 (PST) In-Reply-To: <1328476006640-5458721.post@n5.nabble.com> References: <1328476006640-5458721.post@n5.nabble.com> Date: Mon, 6 Feb 2012 08:33:26 +1030 Message-ID: Subject: Re: Maven errors on compilation of files with missing imports (files that are not called by the application) compile phase From: Barrie Treloar To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Feb 6, 2012 at 7:36 AM, dlots wrote: > I have a project and a shared folder that is common to all my projects that > includes classes that are not necessarily used (and therefore) complete for > all projects. When executing the compile phase, it is erroring because some > of the files in the shared folder which is added with the > builder-helper-maven-plugin have missing dependencies because these files > are not used in this particular project. [del] I recommend you read the books on Maven http://maven.apache.org/articles.html. What you are doing is going against the way Maven works, and you will lose. Its best to accept the conventions Maven proposes and make your life happy. What you want to do is to pull out your shared folder into separate projects, one for each different functionality. You then get maven to build those into jars which are installed into a Maven Repository Manager so that others can obtain them. Now your projects can explicitly specify just the stuff they actually depend on. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org