Re: [M1] Using source files of another project

2005-07-26 Thread Michael Owen


Thanks very much for your help. I'll try to describe the use case. :)

In a similar scenerio, I have:

mainprojectfolder:
+folder1
+folder2
+folder3
   + src
  + net
 + test
 + File1.java
+folder4
+globalbuildfolder

Each folder has an Ant build.xml file, where globalbuildfolder is a folder 
where global properties go, creates a EAR from all the folders etc.


I'm converting to Maven 1.0.2, and so I'm going to have a project.xml in 
each folder1, 2 etc, which all extend the project.xml globalbuildfolder. I 
then have a case where the java src code in folder2 relies on the java src 
code in folder3. What I mean by this is that a class in folder2 imports a 
class which is in folder3 (like above, a class in folder2 does: import 
net.test.File1;)


As you can appreciate because I am coverting to Maven 1.0.2, and people have 
been and are working on these projects, I can't restructure the 
folders/filesystem etc.


Many thanks,

Michael Owen

brbrbrgt;From: Brett Porter 
lt;[EMAIL PROTECTED]gt;brgt;Reply-To: Brett Porter 
lt;[EMAIL PROTECTED]gt;brgt;To: Maven Users List 
lt;users@maven.apache.orggt;brgt;Subject: Re: [M1] Using source files 
of another projectbrgt;Date: Tue, 26 Jul 2005 22:19:33 
+1000brgt;brgt;We usually discourage coupling projects like that - it 
breaks itsbrgt;encapsulation (unless you build a source JAR from the 
first projectbrgt;and depend on it in the second to extract and then use 
for compilationbrgt;- but that sounds very long 
winded).brgt;brgt;What is the specific use case you are trying to 
solve?brgt;brgt;- Brettbrgt;brgt;On 7/26/05, Michael Owen 
lt;[EMAIL PROTECTED]gt; wrote:brgt; gt; Hi,brgt; 
gt;brgt; gt; I'm using Maven 1.0.2 and on one maven project I need to 
use the java sourcebrgt; gt; files of another maven project. Any ideas 
how I can do it in the best way?brgt; gt; (ie. in one maven project, 
it's source files references the source files inbrgt; gt; another 
project)brgt; gt;brgt; gt; I need to keep the two sets of maven 
source files separate.brgt; gt;brgt; gt; Thanks,brgt; 
gt;brgt; gt; Mikebrgt; gt;brgt; gt;brgt; gt;brgt; gt; 
-brgt; 
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]brgt; gt; 
For additional commands, e-mail: [EMAIL PROTECTED]brgt; 
gt;brgt; 
gt;brgt;brgt;-brgt;To 
unsubscribe, e-mail: [EMAIL PROTECTED]brgt;For 
additional commands, e-mail: [EMAIL PROTECTED]brgt;br




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [M1] Using source files of another project

2005-07-25 Thread Marc Attiyeh
If you're in Eclipse, you can make one project depend on another.
Right-click on the project -- Properties -- Java Build Path --
Projects

Here, you can add required projects in the same workspace that will be
referenced in the current project.

Hope this helps,
marc

-Original Message-
From: Michael Owen [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 25, 2005 1:04 PM
To: users@maven.apache.org
Subject: [M1] Using source files of another project

Hi,

I'm using Maven 1.0.2 and on one maven project I need to use the java
source 
files of another maven project. Any ideas how I can do it in the best
way? 
(ie. in one maven project, it's source files references the source files
in 
another project)

I need to keep the two sets of maven source files separate.

Thanks,

Mike



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M1] Using source files of another project

2005-07-25 Thread Grant Ingersoll
For IntelliJ, I modified the IDEA plugin to associate the source files
of a dependency.  So, some of my dependencies declarations look like:
dependency
groupIdgroup/groupId
artifactIdartifact/artifactId
version0.2.0/version
properties
src../ProjectName/src/main/java/src
/properties
/dependency

Then, in the IDEA plugin I have it parse out this property and fill in
the appropriate pieces for the IntelliJ file descriptor.  I would be
more than happy to share the Jelly required if others are interested.

 [EMAIL PROTECTED] 07/25/05 1:04 PM 
Hi,

I'm using Maven 1.0.2 and on one maven project I need to use the java
source 
files of another maven project. Any ideas how I can do it in the best
way? 
(ie. in one maven project, it's source files references the source
files in 
another project)

I need to keep the two sets of maven source files separate.

Thanks,

Mike



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]