slim3 quickstart


# mvn archetypeを実行

```bash
$ mvn archetype:generate -DarchetypeCatalog=http://slim3.github.com/slim3/archetype-catalog.xml
```

# archetypeを聞いてくるので、1を入力

``` bash
Choose archetype:
1: http://slim3.github.com/slim3/archetype-catalog.xml -> org.slim3:slim3-archetype-quickstart (Archetype - slim3-archetype-quickstart(slim3-1.0.17-SNAPSHOT,appengine-1.8.2))
2: http://slim3.github.com/slim3/archetype-catalog.xml -> org.slim3:slim3-archetype-kotori-quickstart (Archetype - slim3-archetype-kotori-quickstart(slim3-1.0.17-SNAPSHOT,appengine-1.8.2))
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
```

# Propertyを入力

groupId,artifactIdは未入力Enterでも大丈夫だろう

```bash
Define value for property 'groupId': : org.sinmetal
Define value for property 'artifactId': : simple-slim3
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  org.sinmetal: :
```

# 確認してくるので、Yを入力

```bash
Y: : Y
```

# artifactIdで指定した値のDirができてるのを確認

```bash
drwxr-xr-x   6 sinmetal  staff  204 11  4 21:11 simple-slim3
```

# pom.xmlのappengineversionを最新にする

```pom.xml
<appengine.version>1.9.14</appengine.version>
```

最新Versionは以下から確認
https://cloud.google.com/appengine/downloads

# pom.xmlがあるdirで、mvn install

```bash
$ pwd
/Users/sinmetal/workspace/simple-slim3

$ ll
total 48
-rw-r--r--  1 sinmetal  staff     90 11  4 21:11 build.properties
-rw-r--r--  1 sinmetal  staff   4694 11  4 21:11 build.xml
drwxr-xr-x  3 sinmetal  staff    102 11  4 21:25 eclipse.lib
-rw-r--r--  1 sinmetal  staff  10423 11  4 21:26 pom.xml
drwxr-xr-x  4 sinmetal  staff    136 11  4 21:11 src
drwxr-xr-x  7 sinmetal  staff    238 11  4 21:26 target

$ mvn install
```

# Finish !

# 全部通したLog

```bash
$ mvn archetype:generate -DarchetypeCatalog=http://slim3.github.com/slim3/archetype-catalog.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://slim3.github.com/slim3/archetype-catalog.xml -> org.slim3:slim3-archetype-quickstart (Archetype - slim3-archetype-quickstart(slim3-1.0.17-SNAPSHOT,appengine-1.8.2))
2: http://slim3.github.com/slim3/archetype-catalog.xml -> org.slim3:slim3-archetype-kotori-quickstart (Archetype - slim3-archetype-kotori-quickstart(slim3-1.0.17-SNAPSHOT,appengine-1.8.2))
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Downloading: http://slim3.github.com/slim3/org/slim3/slim3-archetype-quickstart/1.0.17-SNAPSHOT/maven-metadata.xml
Downloaded: http://slim3.github.com/slim3/org/slim3/slim3-archetype-quickstart/1.0.17-SNAPSHOT/maven-metadata.xml (788 B at 1.8 KB/sec)
Define value for property 'groupId': : org.sinmetal
Define value for property 'artifactId': : simple-slim3
Define value for property 'version':  1.0-SNAPSHOT: :
Define value for property 'package':  org.sinmetal: :
Confirm properties configuration:
groupId: org.sinmetal
artifactId: simple-slim3
version: 1.0-SNAPSHOT
package: org.sinmetal
 Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: slim3-archetype-quickstart:1.0.17-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.sinmetal
[INFO] Parameter: artifactId, Value: simple-slim3
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.sinmetal
[INFO] Parameter: packageInPathFormat, Value: org/sinmetal
[INFO] Parameter: package, Value: org.sinmetal
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: org.sinmetal
[INFO] Parameter: artifactId, Value: simple-slim3
[INFO] project created from Archetype in dir: /Users/sinmetal/workspace/simple-slim3
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.059 s
[INFO] Finished at: 2014-11-04T21:11:49+09:00
[INFO] Final Memory: 16M/310M
[INFO] ------------------------------------------------------------------------
```