Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
maven_gemify.rb can't find ruby-maven?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robin Salkeld  
View profile  
 More options Aug 3 2012, 4:51 pm
From: Robin Salkeld <li...@ruby-forum.com>
Date: Fri, 03 Aug 2012 22:51:23 +0200
Local: Fri, Aug 3 2012 4:51 pm
Subject: [jruby-user] maven_gemify.rb can't find ruby-maven?
Hello all,

I'm not sure if this is actually a bug or my misunderstanding of the
feature. I'm trying to use the maven_gemify.rb code ("borrowing" some of
the in-process integration with Maven to do some cool stuff, actually ;)
and I had thought that the code intended to automatically use the
ruby-maven gem if it was installed. However, I just get the "can not
find maven3 installation. install ruby-maven with..." error.

Looking at the code it looks like you still have to add the bin
directory of the ruby-maven gem to your PATH for it to be detected. Is
that intentional? If so I'm not sure why the code looks for the gem in
the first place since it also has a "mvn" binary and works perfectly
well as a regular Maven installation.

If nothing else the error message is deceptive since just installing the
gem won't resolve the issue by itself.

Cheers,
Robin

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kristian  
View profile  
 More options Aug 3 2012, 5:26 pm
From: kristian <m.krist...@web.de>
Date: Sat, 4 Aug 2012 02:56:33 +0530
Local: Fri, Aug 3 2012 5:26 pm
Subject: Re: [jruby-user] maven_gemify.rb can't find ruby-maven?
hi,

the next incarnation of maven_gemify.rb is
https://github.com/mkristian/jbundler - not exactly a replacement . .
.

but anyways jbundler uses the jars from ruby-maven to do ts stuff and
does not fall back on a maven install since the internal jars supplied
by maven3.0.x are not all binary compatible to each other.

maybe jbundler is a better starting point for you !?

- Kristian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Salkeld  
View profile  
 More options Aug 10 2012, 6:16 pm
From: Robin Salkeld <li...@ruby-forum.com>
Date: Sat, 11 Aug 2012 00:16:55 +0200
Local: Fri, Aug 10 2012 6:16 pm
Subject: [jruby-user] Re: maven_gemify.rb can't find ruby-maven?
kristian wrote in post #1071230:

> hi,

> the next incarnation of maven_gemify.rb is
> https://github.com/mkristian/jbundler - not exactly a replacement . .
> .

> but anyways jbundler uses the jars from ruby-maven to do ts stuff and
> does not fall back on a maven install since the internal jars supplied
> by maven3.0.x are not all binary compatible to each other.

> maybe jbundler is a better starting point for you !?

> - Kristian

Interesting, although not as useful for my case as I'm trying to
leverage the code in maven_gemify.rb that launches Maven in-proc, rather
than shelling out. Thanks for the tip though!

Robin

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kristian  
View profile  
 More options Aug 11 2012, 2:32 am
From: kristian <m.krist...@web.de>
Date: Sat, 11 Aug 2012 12:02:00 +0530
Subject: Re: [jruby-user] Re: maven_gemify.rb can't find ruby-maven?

On Sat, Aug 11, 2012 at 3:46 AM, Robin Salkeld <li...@ruby-forum.com> wrote:
> launches Maven in-proc

OK - one more trial :)

maybe ruby-maven gem is helpful ?

require 'ruby-maven'
rmvn = Maven::RubyMaven.new
rmvn.exec_in('/my-project', 'install')

this works both with jruby as well MRI. MRI launches 'java' and jruby
it will launch it directly inside the same JVM (in the similar manner
as maven_gemify)

regards,
Kristian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kristian  
View profile  
 More options Aug 11 2012, 4:14 am
From: kristian <m.krist...@web.de>
Date: Sat, 11 Aug 2012 13:44:07 +0530
Local: Sat, Aug 11 2012 4:14 am
Subject: Re: [jruby-user] Re: maven_gemify.rb can't find ruby-maven?
you also need before executing maven.

        mvn.options['-f'] = 'pom.xml'

a flaw in the API :(

- Kristian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kristian  
View profile  
 More options Aug 12 2012, 11:36 pm
From: kristian <m.krist...@web.de>
Date: Mon, 13 Aug 2012 09:06:59 +0530
Local: Sun, Aug 12 2012 11:36 pm
Subject: Re: [jruby-user] Re: maven_gemify.rb can't find ruby-maven?
after writing the last email I realized that I did things were not as
I remembered them to be and altogether the gem was not useful for
others. so I straighten things a bit and also made sure when running
on jruby maven will execute on the same JVM. overall the code is
cleaner and more straightforward then what I did in maven_gemify.rb.

https://github.com/mkristian/ruby-maven

regards,
Kristian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »