Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. mvn install -DenvName=SODCH-DEMO -DskipTests -P production
  2. [INFO] Scanning for projects...
  3. [INFO]
  4. [INFO] ------------------------------------------------------------------------
  5. [INFO] Building mvd-db 1.68
  6. [INFO] ------------------------------------------------------------------------
  7. [INFO]
  8. [INFO] --- maven-jgit-buildnumber-plugin:1.2.9:extract-buildnumber (git-buildnumber) @ mvd-db ---
  9. [INFO] Git info extracted, revision: '926c408', branch: 'Sprint68_patch1', tag: '', commitsCount: '9460', buildnumber: 'Sprint68_patch1.9460.926c408'
  10. [INFO]
  11. [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (initialize) @ mvd-db ---
  12. [INFO]
  13. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mvd-db ---
  14. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  15. [INFO] Copying 2 resources
  16. [INFO]
  17. [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mvd-db ---
  18. [INFO] Nothing to compile - all classes are up to date
  19. [INFO]
  20. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mvd-db ---
  21. [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  22. [INFO] skip non existing resourceDirectory /home/tomcat/SODCH/mvd-db/src/test/resources
  23. [INFO]
  24. [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mvd-db ---
  25. [INFO] No sources to compile
  26. [INFO]
  27. [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mvd-db ---
  28. [INFO] Tests are skipped.
  29. [INFO]
  30. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mvd-db ---
  31. [INFO]
  32. [INFO] --- maven-install-plugin:2.4:install (default-install) @ mvd-db ---
  33. [INFO] Installing /home/tomcat/SODCH/mvd-db/target/mvd-db-1.68.jar to /home/tomcat/.m2/repository/ru/atc/mvd-db/1.68/mvd-db-1.68.jar
  34. [INFO] Installing /home/tomcat/SODCH/mvd-db/pom.xml to /home/tomcat/.m2/repository/ru/atc/mvd-db/1.68/mvd-db-1.68.pom
  35. [INFO]
  36. [INFO] --- flyway-maven-plugin:3.2.1:migrate (db.isod.migrate) @ mvd-db ---
  37. [INFO] Flyway 3.2.1 by Boxfuse
  38. [INFO] Database: jdbc:postgresql://sodch-db-demo.it.mvd.ru:5432/mvddbdemo (PostgreSQL 9.6)
  39. [INFO] Validated 826 migrations (execution time 00:00.097s)
  40. [INFO] Current version of schema "isod": 68.0155.1
  41. [WARNING] outOfOrder mode is active. Migration of schema "isod" may not be reproducible.
  42. [INFO] Migrating schema "isod" to version 68.0158.1 - tbSUMMARY REPORT ATTRIBUTE
  43. [INFO] Migrating schema "isod" to version 68.0232 - tbTEMPLATE CONFIG
  44. [INFO] Migrating schema "isod" to version 68.0260.1 - vwOVERDUE KUSP
  45. [INFO] Migrating schema "isod" to version 68.0262 - tbDEPARTMENT TO GASPS
  46. [INFO] Migrating schema "isod" to version 68.0262.1 - tbDEPARTMENT TO GASPS
  47. [INFO] Migrating schema "isod" to version 68.5036 - vwACCIDENT REPORT
  48. [INFO] Migrating schema "isod" to version 68.5054 - vwKUSP REPORT REG DATE
  49. [INFO] Successfully applied 7 migrations to schema "isod" (execution time 00:28.085s).
  50. [INFO]
  51. [INFO] --- flyway-maven-plugin:3.2.1:migrate (db.analyst.migrate) @ mvd-db ---
  52. Sep 25, 2017 7:03:22 PM org.postgresql.Driver connect
  53. SEVERE: Connection error:
  54. org.postgresql.util.PSQLException: The connection attempt failed.
  55. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:275)
  56. at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
  57. at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:194)
  58. at org.postgresql.Driver.makeConnection(Driver.java:450)
  59. at org.postgresql.Driver.connect(Driver.java:252)
  60. at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:299)
  61. at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnection(DriverDataSource.java:261)
  62. at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:50)
  63. at org.flywaydb.core.Flyway.execute(Flyway.java:1385)
  64. at org.flywaydb.core.Flyway.info(Flyway.java:1140)
  65. at org.flywaydb.maven.MigrateMojo.doExecute(MigrateMojo.java:30)
  66. at org.flywaydb.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:524)
  67. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
  68. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
  69. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  70. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  71. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
  72. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
  73. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  74. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  75. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
  76. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
  77. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
  78. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
  79. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  80. at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
  81. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  82. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  83. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  84. at java.lang.reflect.Method.invoke(Method.java:498)
  85. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  86. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  87. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  88. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  89. Caused by: java.net.UnknownHostException: sodch-fias01.it.mvd.ru
  90. at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
  91. at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  92. at java.net.Socket.connect(Socket.java:589)
  93. at org.postgresql.core.PGStream.<init>(PGStream.java:68)
  94. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:144)
  95. ... 33 more
  96.  
  97. [INFO] ------------------------------------------------------------------------
  98. [INFO] BUILD FAILURE
  99. [INFO] ------------------------------------------------------------------------
  100. [INFO] Total time: 30.682 s
  101. [INFO] Finished at: 2017-09-25T19:03:22+03:00
  102. [INFO] Final Memory: 14M/222M
  103. [INFO] ------------------------------------------------------------------------
  104. [WARNING] The requested profile "production" could not be activated because it does not exist.
  105. [ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2.1:migrate (db.analyst.migrate) on project mvd-db: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:postgresql://sodch-fias01.it.mvd.ru:5432/analyst) for user 'analyst': The connection attempt failed. Unknown host sodch-fias01.it.mvd.ru -> [Help 1]
  106. [ERROR]
  107. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  108. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  109. [ERROR]
  110. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  111. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement