Advertisement
Guest User

Untitled

a guest
Apr 6th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.90 KB | None | 0 0
  1. ➜ igor 9:24:42 /home/igor/projects/javalite/simple-example git:(master) mvn db-migrator:create
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------------------------------------------------------------
  5. [INFO] Building ActiveJDBC - Simple Maven Example 1.0-SNAPSHOT
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO]
  8. [INFO] --- db-migrator-maven-plugin:1.4.13:create (default-cli) @ simple-example ---
  9. [INFO] Sourcing database configuration from file: /home/igor/projects/javalite/simple-example/src/main/resources/database.properties
  10. [INFO] Environment: development.test
  11. [INFO] Executing: create database movies_test
  12. [INFO] Created database jdbc:mysql://localhost/movies_test
  13. [INFO] Executing: create table schema_version (version varchar(32) not null unique, applied_on timestamp not null, duration int not null)
  14. [INFO] Environment: development
  15. [INFO] Executing: create database movies
  16. [INFO] Created database jdbc:mysql://localhost/movies
  17. [INFO] Executing: create table schema_version (version varchar(32) not null unique, applied_on timestamp not null, duration int not null)
  18. [INFO] ------------------------------------------------------------------------
  19. [INFO] BUILD SUCCESS
  20. [INFO] ------------------------------------------------------------------------
  21. [INFO] Total time: 0.645 s
  22. [INFO] Finished at: 2017-04-06T09:24:48-05:00
  23. [INFO] Final Memory: 10M/240M
  24. [INFO] ------------------------------------------------------------------------
  25.  
  26.  
  27.  
  28. ➜ igor 9:24:48 /home/igor/projects/javalite/simple-example git:(master) mvn db-migrator:migrate
  29. [INFO] Scanning for projects...
  30. [INFO]
  31. [INFO] ------------------------------------------------------------------------
  32. [INFO] Building ActiveJDBC - Simple Maven Example 1.0-SNAPSHOT
  33. [INFO] ------------------------------------------------------------------------
  34. [INFO]
  35. [INFO] --- db-migrator-maven-plugin:1.4.13:migrate (default-cli) @ simple-example ---
  36. [INFO] Sourcing database configuration from file: /home/igor/projects/javalite/simple-example/src/main/resources/database.properties
  37. [INFO] Environment: development.test
  38. [INFO] Migrating jdbc:mysql://localhost/movies_test using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  39. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  40. [INFO] Migrating database, applying 1 migration(s)
  41. [INFO] Running migration 20151116225557_create_tables.sql
  42. [INFO] Executing: CREATE TABLE movies (
  43. id INT(11) NOT NULL AUTO_INCREMENT,
  44. title TEXT,
  45. year INT(11),
  46. PRIMARY KEY (id)
  47. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  48. [INFO] Executing: CREATE TABLE people (
  49. id INT(11) NOT NULL AUTO_INCREMENT,
  50. name TEXT,
  51. PRIMARY KEY (id)
  52. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  53. [INFO] Executing: CREATE TABLE movies_people (
  54. id INT(11) NOT NULL AUTO_INCREMENT,
  55. movie_id INTEGER NOT NULL,
  56. person_id INTEGER NOT NULL,
  57. PRIMARY KEY (id)
  58. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  59. [INFO] Migrated database
  60. [INFO] Environment: development
  61. [INFO] Migrating jdbc:mysql://localhost/movies using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  62. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  63. [INFO] Migrating database, applying 1 migration(s)
  64. [INFO] Running migration 20151116225557_create_tables.sql
  65. [INFO] Executing: CREATE TABLE movies (
  66. id INT(11) NOT NULL AUTO_INCREMENT,
  67. title TEXT,
  68. year INT(11),
  69. PRIMARY KEY (id)
  70. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  71. [INFO] Executing: CREATE TABLE people (
  72. id INT(11) NOT NULL AUTO_INCREMENT,
  73. name TEXT,
  74. PRIMARY KEY (id)
  75. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  76. [INFO] Executing: CREATE TABLE movies_people (
  77. id INT(11) NOT NULL AUTO_INCREMENT,
  78. movie_id INTEGER NOT NULL,
  79. person_id INTEGER NOT NULL,
  80. PRIMARY KEY (id)
  81. ) ENGINE = InnoDB DEFAULT CHARSET = utf8
  82. [INFO] Migrated database
  83. [INFO] ------------------------------------------------------------------------
  84. [INFO] BUILD SUCCESS
  85. [INFO] ------------------------------------------------------------------------
  86. [INFO] Total time: 0.736 s
  87. [INFO] Finished at: 2017-04-06T09:25:14-05:00
  88. [INFO] Final Memory: 10M/240M
  89. [INFO] ------------------------------------------------------------------------
  90.  
  91.  
  92. ➜ igor 9:25:15 /home/igor/projects/javalite/simple-example git:(master) mvn clean install
  93. [INFO] Scanning for projects...
  94. [INFO]
  95. [INFO] ------------------------------------------------------------------------
  96. [INFO] Building ActiveJDBC - Simple Maven Example 1.0-SNAPSHOT
  97. [INFO] ------------------------------------------------------------------------
  98. [INFO]
  99. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple-example ---
  100. [INFO] Deleting /home/igor/projects/javalite/simple-example/target
  101. [INFO]
  102. [INFO] --- db-migrator-maven-plugin:1.4.13:migrate (dev_migrations) @ simple-example ---
  103. [INFO] Sourcing database configuration from file: /home/igor/projects/javalite/simple-example/src/main/resources/database.properties
  104. [INFO] Environment: development.test
  105. [INFO] Migrating jdbc:mysql://localhost/movies_test using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  106. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  107. [INFO] No new migrations are found
  108. [INFO] Environment: development
  109. [INFO] Migrating jdbc:mysql://localhost/movies using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  110. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  111. [INFO] No new migrations are found
  112. [INFO]
  113. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simple-example ---
  114. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  115. [INFO] Copying 2 resources
  116. [INFO]
  117. [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ simple-example ---
  118. [INFO] Changes detected - recompiling the module!
  119. [INFO] Compiling 4 source files to /home/igor/projects/javalite/simple-example/target/classes
  120. [INFO]
  121. [INFO] >>> activejdbc-instrumentation:1.4.13:instrument (default) > process-classes @ simple-example >>>
  122. [INFO]
  123. [INFO] --- db-migrator-maven-plugin:1.4.13:migrate (dev_migrations) @ simple-example ---
  124. [INFO] Sourcing database configuration from file: /home/igor/projects/javalite/simple-example/src/main/resources/database.properties
  125. [INFO] Environment: development.test
  126. [INFO] Migrating jdbc:mysql://localhost/movies_test using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  127. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  128. [INFO] No new migrations are found
  129. [INFO] Environment: development
  130. [INFO] Migrating jdbc:mysql://localhost/movies using migrations at /home/igor/projects/javalite/simple-example/src/migrations/
  131. [INFO] Trying migrations at: /home/igor/projects/javalite/simple-example/src/migrations
  132. [INFO] No new migrations are found
  133. [INFO]
  134. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simple-example ---
  135. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  136. [INFO] Copying 2 resources
  137. [INFO]
  138. [INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ simple-example ---
  139. [INFO] Nothing to compile - all classes are up to date
  140. [INFO]
  141. [INFO] <<< activejdbc-instrumentation:1.4.13:instrument (default) < process-classes @ simple-example <<<
  142. [INFO]
  143. [INFO] --- activejdbc-instrumentation:1.4.13:instrument (default) @ simple-example ---
  144. **************************** START INSTRUMENTATION ****************************
  145. Directory: /home/igor/projects/javalite/simple-example/target/classes
  146. Instrumented class: /home/igor/projects/javalite/simple-example/target/classes/activejdbc/examples/simple/Movie.class
  147. Instrumented class: /home/igor/projects/javalite/simple-example/target/classes/activejdbc/examples/simple/MoviesPeople.class
  148. Instrumented class: /home/igor/projects/javalite/simple-example/target/classes/activejdbc/examples/simple/Person.class
  149. **************************** END INSTRUMENTATION ****************************
  150. [INFO] Instrumentation: directory /home/igor/projects/javalite/simple-example/target/test-classes does not exist, skipping
  151. [INFO]
  152. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ simple-example ---
  153. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  154. [INFO] skip non existing resourceDirectory /home/igor/projects/javalite/simple-example/src/test/resources
  155. [INFO]
  156. [INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ simple-example ---
  157. [INFO] Changes detected - recompiling the module!
  158. [INFO] Compiling 1 source file to /home/igor/projects/javalite/simple-example/target/test-classes
  159. [INFO]
  160. [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ simple-example ---
  161. [INFO] Surefire report directory: /home/igor/projects/javalite/simple-example/target/surefire-reports
  162.  
  163. -------------------------------------------------------
  164. T E S T S
  165. -------------------------------------------------------
  166. Running activejdbc.examples.simple.MovieSpec
  167. [main] INFO org.javalite.activejdbc.DB - Opened connection: com.mysql.jdbc.JDBC4Connection@43a25848
  168. [main] INFO org.javalite.activejdbc.DB - Opened connection: com.mysql.jdbc.JDBC4Connection@7921b0a2
  169. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 sec - in activejdbc.examples.simple.MovieSpec
  170.  
  171. Results :
  172.  
  173. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
  174.  
  175. [INFO]
  176. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ simple-example ---
  177. [INFO] Building jar: /home/igor/projects/javalite/simple-example/target/simple-example-1.0-SNAPSHOT.jar
  178. [INFO]
  179. [INFO] --- maven-install-plugin:2.4:install (default-install) @ simple-example ---
  180. [INFO] Installing /home/igor/projects/javalite/simple-example/target/simple-example-1.0-SNAPSHOT.jar to /home/igor/.m2/repository/org/javalite/simple-example/1.0-SNAPSHOT/simple-example-1.0-SNAPSHOT.jar
  181. [INFO] Installing /home/igor/projects/javalite/simple-example/pom.xml to /home/igor/.m2/repository/org/javalite/simple-example/1.0-SNAPSHOT/simple-example-1.0-SNAPSHOT.pom
  182. [INFO] ------------------------------------------------------------------------
  183. [INFO] BUILD SUCCESS
  184. [INFO] ------------------------------------------------------------------------
  185. [INFO] Total time: 3.125 s
  186. [INFO] Finished at: 2017-04-06T09:25:42-05:00
  187. [INFO] Final Memory: 20M/215M
  188. [INFO] ------------------------------------------------------------------------
  189.  
  190.  
  191. ➜ igor 9:25:46 /home/igor/projects/javalite/simple-example git:(master) mvn dependency:unpack-dependencies
  192. [INFO] Scanning for projects...
  193. [INFO]
  194. [INFO] ------------------------------------------------------------------------
  195. [INFO] Building ActiveJDBC - Simple Maven Example 1.0-SNAPSHOT
  196. [INFO] ------------------------------------------------------------------------
  197. [INFO]
  198. [INFO] --- maven-dependency-plugin:2.8:unpack-dependencies (default-cli) @ simple-example ---
  199. [INFO] Unpacking /home/igor/.m2/repository/org/javalite/javalite-common/1.4.13/javalite-common-1.4.13.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  200. [INFO] Unpacking /home/igor/.m2/repository/org/javalite/activejdbc/1.4.13/activejdbc-1.4.13.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  201. [INFO] Unpacking /home/igor/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  202. [INFO] Unpacking /home/igor/.m2/repository/org/javalite/app-config/1.4.13/app-config-1.4.13.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  203. [INFO] Unpacking /home/igor/.m2/repository/org/slf4j/slf4j-simple/1.7.9/slf4j-simple-1.7.9.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  204. [INFO] Unpacking /home/igor/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  205. [INFO] Unpacking /home/igor/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  206. [INFO] Unpacking /home/igor/.m2/repository/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  207. [INFO] Unpacking /home/igor/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  208. [INFO] Unpacking /home/igor/.m2/repository/junit/junit/4.12/junit-4.12.jar to /home/igor/projects/javalite/simple-example/target/dependency with includes "" and excludes ""
  209. [INFO] ------------------------------------------------------------------------
  210. [INFO] BUILD SUCCESS
  211. [INFO] ------------------------------------------------------------------------
  212. [INFO] Total time: 1.547 s
  213. [INFO] Finished at: 2017-04-06T09:26:23-05:00
  214. [INFO] Final Memory: 12M/303M
  215. [INFO] ------------------------------------------------------------------------
  216.  
  217.  
  218.  
  219. ➜ igor 9:26:23 /home/igor/projects/javalite/simple-example git:(master) java -classpath target/dependency:target/classes activejdbc.examples.simple.Main
  220. [main] INFO org.javalite.activejdbc.DB - Opened connection: com.mysql.jdbc.JDBC4Connection@2503dbd3
  221. Model: activejdbc.examples.simple.Movie, table: 'movies', attributes: {id=1, title=Saving private Ryan, year=1998}
  222. Model: activejdbc.examples.simple.Movie, table: 'movies', attributes: {id=2, title=Jaws, year=1982}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement