Re: IntelliJ (or any IDE) classpath

2004-05-10 Thread Erik Husby
Idea supports the idea of path variables like Eclipse does. Setup one 
called MAVEN_REPO and point it at the repository root.

Make sure that your project is using relative paths, there are a couple 
of radio buttons that need to be checked in the project paths tabs.

If you add a new dependency, add it to your project.xml and then 
regenerate the Idea project files.

If you are using Idea V4, put this property in your ~/build.properties file

maven.idea.project.version=4

--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IntelliJ (or any IDE) classpath

2004-05-10 Thread Jason van Zyl
On Mon, 2004-05-10 at 09:49, Erik Husby wrote:
 Idea supports the idea of path variables like Eclipse does. Setup one 
 called MAVEN_REPO and point it at the repository root.

Do you have a little example of how this might work in the IDEA files?

If this could be done cleanly then it would be a step toward IDEA files
that could be made to work for everyone if they were checked out with a
project. It's also just easier for maintenance. If you happen to move
your local repo for whatever reason you're not hosed.

-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


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



Re: IntelliJ (or any IDE) classpath

2004-05-10 Thread Erik Husby
Jason van Zyl wrote:

On Mon, 2004-05-10 at 09:49, Erik Husby wrote:
 

Idea supports the idea of path variables like Eclipse does. Setup one 
called MAVEN_REPO and point it at the repository root.
   

Do you have a little example of how this might work in the IDEA files?

If this could be done cleanly then it would be a step toward IDEA files
that could be made to work for everyone if they were checked out with a
project. It's also just easier for maintenance. If you happen to move
your local repo for whatever reason you're not hosed.
 

There is no magic here, just some incomplete documentation in IDEA.

Under IDE Settings, select Path Variables, Add... and Name -- 
MAVEN_REPO, Value location of your local repository, in my case 
Z:\.maven\repository

Under Project settings, Paths.
On the Paths tab, ensure that For files outside project file directory: 
Use relative path is set.

Now the annoying thing is that Idea will list the list the full filespec 
when you look at the libraries through the GUI. But if you look into the 
.IML file you will see references to $MAVEN_REPO$.

Now all the entries in the .IPR and .IML files will be relative so you 
can check them into source control and share them others.

And if you generate the .IPR and .IML files from Maven, and are using 
IDEA V4, put this line in your ~/build.properties file

maven.idea.project.version=4

--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IntelliJ (or any IDE) classpath

2004-05-08 Thread Jason van Zyl
On Sat, 2004-05-08 at 12:40, Sean Muse wrote:
 OK.  After hearing people talk about Maven and how
 great it is, I finally decided to give it a whirl. 
 Unfortunately, I am already running into problems.  I
 am hoping someone here can help me.
 
 I am using IntelliJ as an IDE.  Given that all my
 library dependencies should be pulled from a
 repository, how do I setup my IDE to use these files?

Currently the IDEA plugin we have only goes one way which is from a
project.xml file to the requisite IDEA files. 

You need to create a project.xml file and then you can use the IDEA
plugin to generate your IDEA files. 

Once you have a project.xml file for your project maven idea will do
the trick.

I am working on going in the other direction so that you can create a
project.xml from IDEA files that is good enough for building. But for
now you're stuck with having to create a project.xml file first.

I too use IDEA all the time and I'll soon have an IDEA - project.xml
thingy.

 
 /Sean
 
 
   
   
 __
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs  
 http://hotjobs.sweepstakes.yahoo.com/careermakeover
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


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



RE: IntelliJ (or any IDE) classpath

2004-05-08 Thread Aleksandr Shneyderman

I am not sure how IntelliJ does it but in Eclipse
I configure a variable to point to my local maven 
Repository and mount relevant jars for the project
Using the variable. All of my prjects use realtively
Small amount of jars, so it is feasible in my case.
Also, make sure to run maven for the first time, so
It can cache the jars in its local repository and you 
Will be able to find them.

This only solves the problem of IDE seeing the needed
Jars you will still need to run the builds manually
I have an extra command line open so I can rebuild when
I have to.

Just to note: there are also plugins available, that can help
You within your IDE I just never used them. I know for sure
Eclipse has one, not sure of IntelliJ.

Alex.

-Original Message-
From: Sean Muse [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 08, 2004 12:40 PM
To: [EMAIL PROTECTED]
Subject: IntelliJ (or any IDE) classpath


OK.  After hearing people talk about Maven and how
great it is, I finally decided to give it a whirl. 
Unfortunately, I am already running into problems.  I
am hoping someone here can help me.

I am using IntelliJ as an IDE.  Given that all my
library dependencies should be pulled from a
repository, how do I setup my IDE to use these files?


/Sean




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
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: IntelliJ (or any IDE) classpath

2004-05-08 Thread Geoffrey
I did the following for http://simplegamenet.sf.net (see CVS web access):

Create project.xml
Add the property of the idea plugin telling its 4 in project.
maven idea (idea:multiproject doesn't work yet for me)

Build the project, add the jar to IntelliJ's libraries and switch of make
before running and run that jar.

Also I am using MavenConsolePlugin in IntelliJ, see Settings/plugins

wkr,
Geoffrey

Sean Muse [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
 OK.  After hearing people talk about Maven and how
 great it is, I finally decided to give it a whirl.
 Unfortunately, I am already running into problems.  I
 am hoping someone here can help me.

 I am using IntelliJ as an IDE.  Given that all my
 library dependencies should be pulled from a
 repository, how do I setup my IDE to use these files?


 /Sean




 __
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs
 http://hotjobs.sweepstakes.yahoo.com/careermakeover




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