Introductionmvnhack is executable jar with no dependency. mvnhack can download libraries from maven2 repositories without maven2. download mvnhack here RequirementsJavaSE 6(tested by 1.6.0_17) or more Usagejava -jar mvnhack.jar [groupId] [artifactId] [version] flat=[on/off] dest=[path]
Yaml based dependenciesjava -jar mvnhack.jar [yml]
More OptionsVM Arguments
Implicit Repositories
Examplesjava -jar mvnhack-0.0.2.jar commons-httpclient 2.0.2 you get commons-httpclient-2.0.2.jar ,commons-logging-1.0.3.jar and some source.jars into execution directory. in this case,
java -jar mvnhack-0.0.2.jar org.slf4j slf4j-simple 1.4.3 flat=off dest=./foo you get slf4j-simple-1.4.3.jar ,slf4j-api-1.4.3.jar and some source.jars into execution directory. in this case,
java -Dproxy=http://proxy.example.com:8080 -Drepository=http://public.planetmirror.com/pub/maven/, -jar mvnhack-0.0.2.jar commons-httpclient 2.0.2 this case, use HTTP proxy access to remote repositories and use addtional repository. dependencies.yml example. flatten : true destination : ./lib proxy : http://proxy.example.com:8080 http.nonProxyHosts : localhost repositories : - http://repository.codehaus.org/ - https://repository.jboss.org/nexus/content/repositories/releases/ dependencies : - org.yaml snakeyaml 1.8 this case, override 4 parameters.
and define dependency. dependencies are whitespace separated string sequence contains 2 or 3 value like base usage. you want to know any other yaml syntax. read YAML_syntax |
► Sign in to add a comment