mvn-get 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +114 -2
- data/lib/mvn-get/cli.rb +17 -0
- data/lib/mvn-get/mvn-get.rb +1 -1
- data/mvn-get.gemspec +1 -1
- metadata +1 -5
- data/.gitignore +0 -22
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/Rakefile +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b99cf7e56c520315b9298e2747432b8fe0d499
|
4
|
+
data.tar.gz: ca6656cc87e1ef14fc995f51239e44acf7d4b973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61747338de538f3c32ad83d5f5459b28862ca48a5466afce90a2009cd1afc774467da10b3bbfc56303147de1d0de72f1fee5199d68bd84616bf8cbcd3271fe0
|
7
|
+
data.tar.gz: 73bb9d30b2b0b84386399aff6ae331ccaa8630534340af5e8156c15c928830d482e4cac8619c9ec6e767fba15e6a2ca7c8214c6c0e82e74d36977449c541c256
|
data/README.md
CHANGED
@@ -4,11 +4,123 @@ mvn-get is a java toolkit for quickly checking and setting up library dependenci
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
$ gem install mvn-get
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
### mvn-get help
|
12
|
+
|
13
|
+
```
|
14
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get help
|
15
|
+
Commands:
|
16
|
+
mvn-get deps LIBRARY_NAME # check dependencies of LIBRARY_NAME
|
17
|
+
mvn-get help [COMMAND] # Describe available commands or one specific...
|
18
|
+
mvn-get install LIBRARY_NAME # install all dependencies of LIBRARY_NAME
|
19
|
+
mvn-get search LIBRARY_NAME # search library call LIBRARY_NAME
|
20
|
+
```
|
21
|
+
|
22
|
+
### mvn-get install LIB_NAME
|
23
|
+
|
24
|
+
```
|
25
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get install unirest
|
26
|
+
Select library 'com.mashape.unirest:unirest-java:1.4.5'
|
27
|
+
Check dependencies...
|
28
|
+
16 Dependencies:
|
29
|
+
avalon-framework:avalon-framework:4.1.5
|
30
|
+
commons-codec:commons-codec:20041127.091804
|
31
|
+
commons-logging:commons-logging:1.2
|
32
|
+
javax.mail:mail:1.4.3
|
33
|
+
javax.servlet:servlet-api:2.3
|
34
|
+
junit:junit:3.8.1
|
35
|
+
log4j:log4j:1.2.17
|
36
|
+
logkit:logkit:1.0.1
|
37
|
+
org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.0
|
38
|
+
org.apache.httpcomponents:httpasyncclient:4.0.2
|
39
|
+
org.apache.httpcomponents:httpclient:4.3.6
|
40
|
+
org.apache.httpcomponents:httpcore-nio:4.4.1
|
41
|
+
org.apache.httpcomponents:httpcore:4.4.1
|
42
|
+
org.apache.httpcomponents:httpmime:4.3.6
|
43
|
+
org.apache.openejb:javaee-api:5.0-2
|
44
|
+
org.json:json:20140107
|
45
|
+
Start downloading...
|
46
|
+
[1/17] com.mashape.unirest:unirest-java:1.4.5
|
47
|
+
[2/17] avalon-framework:avalon-framework:4.1.5
|
48
|
+
[3/17] commons-codec:commons-codec:20041127.091804
|
49
|
+
[4/17] commons-logging:commons-logging:1.2
|
50
|
+
[5/17] javax.mail:mail:1.4.3
|
51
|
+
[6/17] javax.servlet:servlet-api:2.3
|
52
|
+
[7/17] junit:junit:3.8.1
|
53
|
+
[8/17] log4j:log4j:1.2.17
|
54
|
+
[9/17] logkit:logkit:1.0.1
|
55
|
+
[10/17] org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.0
|
56
|
+
[11/17] org.apache.httpcomponents:httpasyncclient:4.0.2
|
57
|
+
[12/17] org.apache.httpcomponents:httpclient:4.3.6
|
58
|
+
[13/17] org.apache.httpcomponents:httpcore-nio:4.4.1
|
59
|
+
[14/17] org.apache.httpcomponents:httpcore:4.4.1
|
60
|
+
[15/17] org.apache.httpcomponents:httpmime:4.3.6
|
61
|
+
[16/17] org.apache.openejb:javaee-api:5.0-2
|
62
|
+
[17/17] org.json:json:20140107
|
63
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ ls
|
64
|
+
avalon-framework-4.1.5.jar javaee-api-5.0-2.jar
|
65
|
+
commons-codec-20041127.091804.jar json-20140107.jar
|
66
|
+
commons-logging-1.2.jar junit-3.8.1.jar
|
67
|
+
geronimo-jms_1.1_spec-1.0.jar log4j-1.2.17.jar
|
68
|
+
httpasyncclient-4.0.2.jar logkit-1.0.1.jar
|
69
|
+
httpclient-4.3.6.jar mail-1.4.3.jar
|
70
|
+
httpcore-4.4.1.jar servlet-api-2.3.jar
|
71
|
+
httpcore-nio-4.4.1.jar unirest-java-1.4.5.jar
|
72
|
+
httpmime-4.3.6.jar
|
73
|
+
```
|
74
|
+
|
75
|
+
### mvn-get deps LIB_NAME
|
76
|
+
|
77
|
+
```
|
78
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get deps guava
|
79
|
+
Please specify a library, for example:
|
80
|
+
com.github.ben-manes.caffeine:guava
|
81
|
+
io.janusproject.guava:guava
|
82
|
+
de.weltraumschaf.commons:guava
|
83
|
+
com.google.guava:guava
|
84
|
+
com.vaadin.external.google:guava
|
85
|
+
io.janusproject.guava:guava-parent
|
86
|
+
com.google.guava:guava-parent
|
87
|
+
com.google.guava:guava-parent-jdk5
|
88
|
+
com.googlecode.guava-osgi:guava-osgi
|
89
|
+
net.javacrumbs.future-converter:java8-guava
|
90
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get deps com.google.guava:guava
|
91
|
+
Select library 'com.google.guava:guava:18.0'
|
92
|
+
Check dependencies...
|
93
|
+
1 Dependencies:
|
94
|
+
com.google.code.findbugs:jsr305:3.0.0
|
95
|
+
```
|
96
|
+
|
97
|
+
or specify library version
|
98
|
+
|
99
|
+
```
|
100
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get deps com.google.guava:guava:15.0
|
101
|
+
Select library 'com.google.guava:guava:15.0'
|
102
|
+
Check dependencies...
|
103
|
+
2 Dependencies:
|
104
|
+
com.google.code.findbugs:jsr305:3.0.0
|
105
|
+
javax.inject:javax.inject:1
|
106
|
+
```
|
107
|
+
|
108
|
+
### mvn-get search LIB_NAME
|
109
|
+
|
110
|
+
```
|
111
|
+
honda@ubuntu:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib$ mvn-get search com.google.guava:guava
|
112
|
+
Candidates:
|
113
|
+
com.google.guava:guava:18.0
|
114
|
+
com.google.guava:guava:18.0-rc2
|
115
|
+
com.google.guava:guava:18.0-rc1
|
116
|
+
com.google.guava:guava:17.0
|
117
|
+
com.google.guava:guava:17.0-rc2
|
118
|
+
com.google.guava:guava:17.0-rc1
|
119
|
+
com.google.guava:guava:16.0.1
|
120
|
+
com.google.guava:guava:16.0
|
121
|
+
com.google.guava:guava:16.0-rc1
|
122
|
+
com.google.guava:guava:15.0
|
123
|
+
```
|
12
124
|
|
13
125
|
## Contributing
|
14
126
|
|
data/lib/mvn-get/cli.rb
CHANGED
@@ -44,6 +44,23 @@ end
|
|
44
44
|
|
45
45
|
class CommandLine < Thor
|
46
46
|
|
47
|
+
desc "search LIBRARY_NAME", "search library call LIBRARY_NAME"
|
48
|
+
def search(lib_name)
|
49
|
+
search_result = MavenCentral.search(lib_name)
|
50
|
+
if search_result["candidates"].size > 0
|
51
|
+
puts "Candidates:"
|
52
|
+
search_result["candidates"].each {|x| puts "\t#{x}"}
|
53
|
+
else
|
54
|
+
puts "No available library call #{lib_name}"
|
55
|
+
end
|
56
|
+
|
57
|
+
if search_result["suggestions"].size > 0
|
58
|
+
print "\nOr... " if search_result["candidates"].size > 0
|
59
|
+
puts "Did you mean:"
|
60
|
+
search_result["suggestions"].each {|x| puts "\t#{x}"}
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
47
64
|
desc "deps LIBRARY_NAME", "check dependencies of LIBRARY_NAME"
|
48
65
|
def deps(lib_name)
|
49
66
|
repo = check_dependencies(lib_name)
|
data/lib/mvn-get/mvn-get.rb
CHANGED
data/mvn-get.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/HondaDai/mvn-get"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files =
|
16
|
+
spec.files = %w[mvn-get.gemspec] + Dir['*.md', 'bin/*', 'lib/**/*.rb']
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mvn-get
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HondaDai
|
@@ -121,11 +121,7 @@ executables:
|
|
121
121
|
extensions: []
|
122
122
|
extra_rdoc_files: []
|
123
123
|
files:
|
124
|
-
- ".gitignore"
|
125
|
-
- Gemfile
|
126
|
-
- LICENSE.txt
|
127
124
|
- README.md
|
128
|
-
- Rakefile
|
129
125
|
- bin/mvn-get
|
130
126
|
- lib/mvn-get.rb
|
131
127
|
- lib/mvn-get/cli.rb
|
data/.gitignore
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
Gemfile.lock
|
7
|
-
InstalledFiles
|
8
|
-
_yardoc
|
9
|
-
coverage
|
10
|
-
doc/
|
11
|
-
lib/bundler/man
|
12
|
-
pkg
|
13
|
-
rdoc
|
14
|
-
spec/reports
|
15
|
-
test/tmp
|
16
|
-
test/version_tmp
|
17
|
-
tmp
|
18
|
-
*.bundle
|
19
|
-
*.so
|
20
|
-
*.o
|
21
|
-
*.a
|
22
|
-
mkmf.log
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2015 HondaDai
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED