You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Lars George <la...@gmail.com> on 2010/02/20 10:59:55 UTC

Ivy and IntelliJ

Hi,

Can someone recommend the right plugin for IntelliJ to get Ivy working
with hbase-trunk? I tried the first it found but it wants an ant
script to generate the details. I selected ivy-targets.xml and that
seemed to have the ivy-init it is looking for, but then fails with
other missing stuff. Suggestions?

I can only hope we get Maven running soon since that is natively
supported in IJ. Or is Paul's patch in and Maven ready to go?

Thanks,
Lars

Re: Ivy and IntelliJ

Posted by Paul Smith <ps...@aconex.com>.
On 20/02/2010, at 8:59 PM, Lars George wrote:

> Hi,
> 
> Can someone recommend the right plugin for IntelliJ to get Ivy working
> with hbase-trunk? I tried the first it found but it wants an ant
> script to generate the details. I selected ivy-targets.xml and that
> seemed to have the ivy-init it is looking for, but then fails with
> other missing stuff. Suggestions?
> 

As an IntelliJ newbie (I hear Ryan's ears prick up across the Pacific... :) ), I couldn't get Hbase/Ivy to work under Intellij either.   I thought I was just too new at IntelliJ.  I also couldn't get it really working under Eclipse either (that's before your blog post though, perhaps if I had tried it after reading that I would have been more successful.. :) )

> I can only hope we get Maven running soon since that is natively
> supported in IJ. Or is Paul's patch in and Maven ready to go?

stack is testing and trying and desperately fighting off my own stupidity in some cases.  Hoping for your humble patience.   

cheers,

Paul

Re: Ivy and IntelliJ

Posted by Lars George <la...@gmail.com>.
Thanks guys! I'll try IvyIDEA asap. Paul, no worries mate, I am glad  
you took that task on!

On Feb 20, 2010, at 13:58, Lars Francke <la...@gmail.com> wrote:

>> Can someone recommend the right plugin for IntelliJ to get Ivy  
>> working
>> with hbase-trunk? I tried the first it found but it wants an ant
>> script to generate the details. I selected ivy-targets.xml and that
>> seemed to have the ivy-init it is looking for, but then fails with
>> other missing stuff. Suggestions?
>
> I have the build working with Ivyidea but not the version from the
> plugin repository (that doesn't seem to work with IntelliJ 9.x). Use
> 0.9-beta2[1]. I've had no complaints so far.
>
> IntelliJ automatically detected the new Ivy facets. I then selected
> ivy.xml from the main directory as my dependencies file (in the Module
> settings -> Facets -> IvyIDEA section) and added the properties file
> (libraries.properties) from the ivy/ directory. The last thing you
> have to set up is: "Use module specific settings" -> "Your own" ->
> ivy/ivysettings.xml.
>
> I did that for each module (stargate, transactional, ...) but that
> depends on your project layout. When that is done go to "Tools" ->
> "Ivy IDEA" -> "Resolve for all modules". That locked my IntelliJ up
> for a couple of minutes but it eventually recovered and everything
> worked as expected.
>
> Hope that works!
>
> Cheers,
> Lars
>
> [1] http://code.google.com/p/ivyidea/

Re: Ivy and IntelliJ

Posted by Lars Francke <la...@gmail.com>.
> Can someone recommend the right plugin for IntelliJ to get Ivy working
> with hbase-trunk? I tried the first it found but it wants an ant
> script to generate the details. I selected ivy-targets.xml and that
> seemed to have the ivy-init it is looking for, but then fails with
> other missing stuff. Suggestions?

I have the build working with Ivyidea but not the version from the
plugin repository (that doesn't seem to work with IntelliJ 9.x). Use
0.9-beta2[1]. I've had no complaints so far.

IntelliJ automatically detected the new Ivy facets. I then selected
ivy.xml from the main directory as my dependencies file (in the Module
settings -> Facets -> IvyIDEA section) and added the properties file
(libraries.properties) from the ivy/ directory. The last thing you
have to set up is: "Use module specific settings" -> "Your own" ->
ivy/ivysettings.xml.

I did that for each module (stargate, transactional, ...) but that
depends on your project layout. When that is done go to "Tools" ->
"Ivy IDEA" -> "Resolve for all modules". That locked my IntelliJ up
for a couple of minutes but it eventually recovered and everything
worked as expected.

Hope that works!

Cheers,
Lars

[1] http://code.google.com/p/ivyidea/