よく利用しそうなMavenのdependency

よく使いそうなやつを随時メモしていく。

- Maven2 用と Gradle 用の記述をメモ。
- バージョンは、基本的に調べたときの最新版。
- 陳腐化する可能性あり。


#Java EE
##API
http://search.maven.org/#search|gav|1|g%3A%22javax%22%20AND%20a%3A%22javaee-api%22

```xml:
<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>7.0</version>
</dependency>
```

```groovy:
dependencies {
    providedCompile 'javax:javaee-api:7.0'
}
```

##Servlet
http://search.maven.org/#search|gav|1|g%3A%22javax.servlet%22%20AND%20a%3A%22servlet-api%22
http://mvnrepository.com/artifact/javax.servlet/javax.servlet-api

```xml:
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
</dependency>
```

```groovy:
dependencies {
    providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
}
```

##JSTL
http://search.maven.org/#artifactdetails|javax.servlet|jstl|1.2|jar

```xml:
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
</dependency>
```

```groovy:
dependencies {
    providedCompile 'javax.servlet:jstl:1.2'
}
```

#Jersey
##containers
http://search.maven.org/#search|gav|1|g%3A%22org.glassfish.jersey.containers%22%20AND%20a%3A%22jersey-container-servlet%22

```xml:
<dependency>
    <groupId>org.glassfish.jersey.containers</groupId>
    <artifactId>jersey-container-servlet</artifactId>
    <version>2.5.1</version>
</dependency>
```

```groovy:
dependencies {
    compile'org.glassfish.jersey.containers:jersey-container-servlet:2.5.1'
}
```

##client
http://search.maven.org/#search|gav|1|g%3A%22org.glassfish.jersey.core%22%20AND%20a%3A%22jersey-client%22

```xml:
<dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-client</artifactId>
    <version>2.5.1</version>
</dependency>
```

```groovy:
dependencies {
    compile'org.glassfish.jersey.core:jersey-client:2.5.1'
}
```

##ext
http://search.maven.org/#search|ga|1|g%3A%22org.glassfish.jersey.ext%22

###mvc-jsp
```xml:
<dependency>
    <groupId>org.glassfish.jersey.ext</groupId>
    <artifactId>jersey-mvc-jsp</artifactId>
    <version>2.5.1</version>
</dependency>
```

```groovy:
dependencies {
    compile'org.glassfish.jersey.ext:jersey-mvc-jsp:2.5.1'
}
```

###mvc-mustache
```xml:
<dependency>
    <groupId>org.glassfish.jersey.ext</groupId>
    <artifactId>jersey-mvc-mustache</artifactId>
    <version>2.5.1</version>
</dependency>
```

```groovy:
dependencies {
    compile'org.glassfish.jersey.ext:jersey-mvc-mustache:2.5.1'
}
```


#Tomcat
http://search.maven.org/#search|ga|1|g%3A%22org.apache.tomcat%22

##Servlet API
http://search.maven.org/#search|gav|1|g%3A%22org.apache.tomcat%22%20AND%20a%3A%22tomcat-servlet-api%22

```xml:
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-servlet-api</artifactId>
    <version>7.0.50</version>
</dependency>
```

```groovy:
dependencies {
    providedCompile 'org.apache.tomcat:tomcat-servlet-api:7.0.50'
}
```

#JUnit
##JUnit
http://search.maven.org/#search|ga|1|a%3A%22junit%22

```xml:
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
</dependency>
```

```groovy:
dependencies {
    testCompile 'junit:junit:4.11'
}
```

```groovy:hamcrest明示用
dependencies {
    testCompile 'junit:junit:4.11', {
        transitive = false
    }
}
```

##Hamcrest
http://search.maven.org/#search|ga|1|g%3A%22org.hamcrest%22

```xml:
<dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest-all</artifactId>
    <version>1.3</version>
</dependency>
```

```groovy:
dependencies {
    testCompile 'org.hamcrest:hamcrest-all:1.3'
}
```

##JMockit
###1.8 以上
http://search.maven.org/#search|gav|1|g%3A%22org.jmockit%22%20AND%20a%3A%22jmockit%22

```xml:
<dependency>
    <groupId>org.jmockit</groupId>
    <artifactId>jmockit</artifactId>
    <version>1.9</version>
</dependency>
```

```groovy:
dependencies {
    testCompile 'org.jmockit:jmockit:1.9'
}
```

###1.7 以前
http://search.maven.org/#search|ga|1|a%3A%22jmockit%22

```xml:
<dependency>
    <groupId>com.googlecode.jmockit</groupId>
    <artifactId>jmockit</artifactId>
    <version>1.6</version>
</dependency>
```

```groovy:
dependencies {
    testCompile 'com.googlecode.jmockit:jmockit:1.6'
}
```

##DBUnit
http://search.maven.org/#search|ga|1|a%3A%22dbunit%22

```xml:
<dependency>
    <groupId>org.dbunit</groupId>
    <artifactId>dbunit</artifactId>
    <version>2.4.9</version>
</dependency>
```

```groovy:
dependencies {
    testCompile 'org.dbunit:dbunit:2.4.9'
}
```

#Apache Commons
##Lang
http://search.maven.org/#search|ga|1|a%3A%22commons-lang3%22

```xml:
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.2.1</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.apache.commons:commons-lang3:3.2.1'
}
```

##IO
http://search.maven.org/#search|ga|1|a%3A%22commons-io%22

```xml:
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-io</artifactId>
    <version>1.3.2</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.apache.commons:commons-io:1.3.2'
}
```

##Collections
http://search.maven.org/#search|ga|1|a%3A%22commons-collections4%22

```xml:
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-collections4</artifactId>
    <version>4.0</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.apache.commons:commons-collections4:4.0'
}
```

##CLI
http://search.maven.org/#search|gav|1|g%3A%22commons-cli%22%20AND%20a%3A%22commons-cli%22

```xml:
<dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.2</version>
</dependency>
```

```groovy:
dependencies {
    compile 'commons-cli:commons-cli:1.2'
}
```

##Codec
http://search.maven.org/#search|gav|1|g%3A%22commons-codec%22%20AND%20a%3A%22commons-codec%22

```xml:
<dependency>
    <groupId>commons-codec</groupId>
    <artifactId>commons-codec</artifactId>
    <version>1.9</version>
</dependency>
```

```groovy:
dependencies {
    compile 'commons-codec:commons-codec:1.9'
}
```

#Log4j
http://search.maven.org/#search|ga|1|a%3A%22log4j%22

```xml:
<dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.17</version>
</dependency>
```

```groovy:
dependencies {
    compile 'log4j:log4j:1.2.17'
}
```

#SLF4J
http://search.maven.org/#search|ga|1|g%3A%22org.slf4j%22

##slf4j-log4j12
http://search.maven.org/#search|gav|1|g%3A%22org.slf4j%22%20AND%20a%3A%22slf4j-log4j12%22

```xml:
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.7.6</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.slf4j:slf4j-log4j12:1.7.6'
}
```

#Groovy
http://search.maven.org/#search|gav|1|g%3A%22org.codehaus.groovy%22%20AND%20a%3A%22groovy%22

```xml:
<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy</artifactId>
    <version>2.2.1</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.codehaus.groovy:groovy:2.2.1'
}
```

#JSONIC
http://search.maven.org/#search|gav|1|g%3A%22net.arnx%22%20AND%20a%3A%22jsonic%22

```xml:
<dependency>
    <groupId>net.arnx</groupId>
    <artifactId>jsonic</artifactId>
    <version>1.3.3</version>
</dependency>
```

```groovy:
dependencies {
    compile 'net.arnx:jsonic:1.3.3'
}
```

#Jetty
http://search.maven.org/#search|ga|1|org.eclipse.jetty.aggregate

```xml:
<dependency>
    <groupId>org.eclipse.jetty.aggregate</groupId>
    <artifactId>jetty-all</artifactId>
    <version>9.2.1.v20140609</version>
</dependency>
```

```groovy:
dependencies {
    compile 'org.eclipse.jetty.aggregate:jetty-all:9.2.1.v20140609'
}
```