Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find last plugin version #76

Open
narcisobenigno opened this issue Feb 9, 2012 · 2 comments
Open

find last plugin version #76

narcisobenigno opened this issue Feb 9, 2012 · 2 comments

Comments

@narcisobenigno
Copy link

hey man, what about discover the latest plugin version parsing the html from central maven repo?
So i wont need pass the plugin version every time i install a plugin.
For exemple:
vraptor plugin vraptor-test -v1.0.0

I think we can do that:

vraptor plugin vraptor-test

=)

Best regards!!

@guilhermesilveira
Copy link
Member

that would be great!
On Feb 9, 2012 9:03 PM, "nj_all" <
reply@reply.github.com>
wrote:

hey man, what about discover the latest version of plugin parse the html
from central maven repo?
So i wont need pass the plugin version every time i install a plugin.
For exemple:
vraptor plugin vraptor-test -v1.0.0

I think we can do that:

vraptor plugin vraptor-test

=)

Best regards!!


Reply to this email directly or view it on GitHub:
#76

@rodolfoliviero
Copy link
Member

Nokogiri rocks!! The code below search the latest vraptor version. =)
require 'open-uri'
require 'nokogiri'

doc = Nokogiri::HTML(open("http://mvnrepository.com/artifact/br.com.caelum/vraptor"))
doc.xpath('//a[@class = "versionbutton release"]')[0].children[0].text```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants