Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

セットアップをスマートにすればJava開発はもっと速くなる

600 views

Published on

JJUG CCC 2016 Spring (2016/5/21)のセッションで使用したスライドです。
http://www.java-users.jp/?page_id=2377

Published in: Technology
  • Be the first to comment

セットアップをスマートにすればJava開発はもっと速くなる

  1. 1. $ mvn archetype:generate $ mvn site $ mvn verify $ mvn cf:deploy
  2. 2. $ mvn archetype:generate -Dfilter=javaee7 project ├── pom.xml ├── src │ ├── main <- application config & sample source │ └── test <- sample test source └── tools <- tool config ├── flyway ├── hibernate-tools ├── mysql └── was-liberty
  3. 3. $ mvn -P mysql ~/.sitoolkit/repository/mysql ├── download │   └── mysql-5.7.12-osx10.11-x86_64.tar.gz <- download file └── runtime └── mysql-5.7.12-osx10.11-x86_64 <- program files ├── bin ├── docs ├── include project ├── pom.xml └── tools └── mysql ├── my.cnf <- config file └── data <- database files
  4. 4. $ mvn -P was-liberty WebSphere Liberty ~/.m2 └── repository └── com/ibm//websphere/appserver/runtime/wlp-javaee7/ ${version}/wlp-javaee7-${version}.zip <- download file project ├── pom.xml ├── target │ └── liberty/wlp <- program files │ └── tools └── was-liberty <- config files └── server.xm
  5. 5. $ mvn -P db-migrate project ├── pom.xml │ └── src/main/java │ └── a/b/c/JpaEntity.java <- jpa entity ├── target │ └── generate-sources/hibernate-tools/ │ └── a/b/c/JpaEntityBase.java <- jpa entity base │ └── tools ├── flyway │ └── V1__create-table.sql <- DDL script │ └── hibernate-tools └── hibernate-revenge.xml <- config file
  6. 6. project ├── pom.xml ├── src │ └── test │ └── java │ └── a/b/c/JunitTest.java <- unit test code ├── target │ └── site │ └── project-report.html └── tools ├── checkstyle <- code analyze tool config └── findbugs $ mvn site
  7. 7. $ mvn -P it WebSphere Liberty project ├── pom.xml ├── target │ └── evidence │ └── FeatureIT.html <- test evidence │ └── testscript └── FeatureIT.xlsx <- test script
  8. 8. $ mvn cf:push -P cf,mysql-bluemix project ├── pom.xml └── target └── myproject-1.0-SNAPSHOT.war
  9. 9. node { stage "Checkout" git url: "git@host:org/repo.git" def mvnHome = tool "M3" stage "Commit" sh "${mvnHome}/bin/mvn clean site -P mysql,db-migrate stage "Acceptance" sh "${mvnHome}/bin/mvn verify -P mysql,was-liberty,it" stage "Deploy" sh "${mvnHome}/bin/mvn cf:push -P cf" sh "${mvnHome}/bin/mvn flyway:migrate -P mysql,mysql-bluemix" }

×