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 8AA76191C4 for ; Sun, 20 Mar 2016 16:52:40 +0000 (UTC) Received: (qmail 44603 invoked by uid 500); 20 Mar 2016 16:52:39 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 44537 invoked by uid 500); 20 Mar 2016 16:52:39 -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 44506 invoked by uid 99); 20 Mar 2016 16:52:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Mar 2016 16:52:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A47C2C0844 for ; Sun, 20 Mar 2016 16:52:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.729 X-Spam-Level: X-Spam-Status: No, score=0.729 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=fastmail.us header.b=DHhwwfv2; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=LOqaV8gQ Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jToudmYK12MF for ; Sun, 20 Mar 2016 16:52:36 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B12845FB08 for ; Sun, 20 Mar 2016 16:52:35 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BBAF5211AC for ; Sun, 20 Mar 2016 12:52:34 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute4.internal (MEProxy); Sun, 20 Mar 2016 12:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=C9fr0eDu0/I+4Rwddf+I37HFKo0=; b=DHhwwf v2os24ry0RTqMzeHzz5btmnPVzLKfQbOTrBRlnQFKLdCNDNxjOXmABTvLHyXBjgb QfJLO1Jpsq861/OQegSd4Z8LmvCOLhiSrEgyMy1IpTwD2w9n9oQHLZmBN8N7q4V9 pQNopBC0OZ/50XjiimXWVZxFXVU1SngM31EcI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=C9fr0eDu0/I+4Rw ddf+I37HFKo0=; b=LOqaV8gQ8NaOjWtnJzDCe2ZUzEX+42FbIZQNJwEhk2Wf6pe 1sucO43ZnuxMuEgPSSJzXS72cpo7r+dkCvxpceRjzzj7fdhMyM03zHb9X51RrN8r pirmPakioP2ex1OFCdr8+/bbtAP5FScl7KgYe1Ejw/t8Lr3p7RAs26YeJZ6Y= Received: by web5.nyi.internal (Postfix, from userid 99) id 90C0EA671DD; Sun, 20 Mar 2016 12:52:34 -0400 (EDT) Message-Id: <1458492754.1715889.554485586.43285D56@webmail.messagingengine.com> X-Sasl-Enc: y5KE8Ouzn7NM9t1aSEVB9Zn2T1PYvuhDi2XVT68uY1xB 1458492754 From: Jason Franklin To: users@maven.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-872772a7 Subject: Re: Import Submodule into Maven Project in IntelliJ Date: Sun, 20 Mar 2016 09:52:34 -0700 In-Reply-To: References: <1458240652.2694020.552293114.417B4ACC@webmail.messagingengine.com> I decided to just go with the inelegant solution of building a new project and adding submodules into which I clicked and dragged the source code I needed. So the problem is solved. It looks like this in IDEA now:=20 -- parent -- sub-module 1 -- sub-module 2 -- etc. Perhaps I'm not using Maven in the spirit it was intended... I noticed in the POM reference that you can declare a parent project and, in the element, specify its aggregated projects with a relative pathname (meaning the modules don't need to be subdirectories of the parent). Similarly, I saw that an inheriting pom.xml can use relative pathnames in its element.=20=20 So, it is possible to "relate" projects strongly without unifying them into a directory hierarchy of IDEA project files. Then, the user can import multiple projects that are then shown as a list in the project explorer. I was hoping that the IDEA Maven plugin would unify all of my projects for me when I declared the relationship. However, given the observation in the previous paragraph, there must be situations in which this behavior is undesirable. And, there are probably very few situations where this is really required given Maven's ability to relate projects with such flexibility.=20 Maven by Example makes it seem as though the directory hierarchy for parent/submodule projects is highly desirable (if not required).=20 Correct analysis?=20=20 --=20 Jason Franklin j_fra@fastmail.us On Sun, Mar 20, 2016, at 07:00 AM, Jason van Zyl wrote: > I generally use Eclipse but I believe what you want is what=E2=80=99s ref= erred to > a workspace in Eclipse. A graph of loosely related projects in the > workspace where you resolve against the version in your workspace as > opposed to resolving the dependency from the repository system. If I > recall there is a =E2=80=9C+=E2=80=9D button hidden in the Maven view tha= t allows you to > add more Maven projects to a single workspace so that you don=E2=80=99t h= ave to > make aggregrator POMs or have multiple windows open. I remember it being > extremely hard to find. If you can=E2=80=99t see it I=E2=80=99ll fire up = IDEA and try to > put together an example. >=20 > > On Mar 17, 2016, at 11:50 AM, Jason Franklin wrote: > >=20 > > Greetings,=20 > >=20 > > I'm new to Maven, and I've taken the time over the past week to read > > "Maven by Example." I'm trying to join two independent projects as > > submodules in a third project serving as the parent project. Is there a > > way to create a parent project in IntelliJ and import two previously > > independent projects as submodules without simply moving the directories > > and changing the pom.xml files manually?=20 > >=20 > > --=20 > > Jason Franklin > > j_fra@fastmail.us > >=20 > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org > >=20 >=20 > Thanks, >=20 > Jason >=20 > ---------------------------------------------------------- > Jason van Zyl > Founder, Takari and Apache Maven > http://twitter.com/jvanzyl > http://twitter.com/takari_io > --------------------------------------------------------- >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org