Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mvn install -DenvName=SODCH-DEMO -DskipTests -P production
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building mvd-db 1.68
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] --- maven-jgit-buildnumber-plugin:1.2.9:extract-buildnumber (git-buildnumber) @ mvd-db ---
- [INFO] Git info extracted, revision: '926c408', branch: 'Sprint68_patch1', tag: '', commitsCount: '9460', buildnumber: 'Sprint68_patch1.9460.926c408'
- [INFO]
- [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (initialize) @ mvd-db ---
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mvd-db ---
- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] Copying 2 resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mvd-db ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mvd-db ---
- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] skip non existing resourceDirectory /home/tomcat/SODCH/mvd-db/src/test/resources
- [INFO]
- [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mvd-db ---
- [INFO] No sources to compile
- [INFO]
- [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mvd-db ---
- [INFO] Tests are skipped.
- [INFO]
- [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mvd-db ---
- [INFO]
- [INFO] --- maven-install-plugin:2.4:install (default-install) @ mvd-db ---
- [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
- [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
- [INFO]
- [INFO] --- flyway-maven-plugin:3.2.1:migrate (db.isod.migrate) @ mvd-db ---
- [INFO] Flyway 3.2.1 by Boxfuse
- [INFO] Database: jdbc:postgresql://sodch-db-demo.it.mvd.ru:5432/mvddbdemo (PostgreSQL 9.6)
- [INFO] Validated 826 migrations (execution time 00:00.097s)
- [INFO] Current version of schema "isod": 68.0155.1
- [WARNING] outOfOrder mode is active. Migration of schema "isod" may not be reproducible.
- [INFO] Migrating schema "isod" to version 68.0158.1 - tbSUMMARY REPORT ATTRIBUTE
- [INFO] Migrating schema "isod" to version 68.0232 - tbTEMPLATE CONFIG
- [INFO] Migrating schema "isod" to version 68.0260.1 - vwOVERDUE KUSP
- [INFO] Migrating schema "isod" to version 68.0262 - tbDEPARTMENT TO GASPS
- [INFO] Migrating schema "isod" to version 68.0262.1 - tbDEPARTMENT TO GASPS
- [INFO] Migrating schema "isod" to version 68.5036 - vwACCIDENT REPORT
- [INFO] Migrating schema "isod" to version 68.5054 - vwKUSP REPORT REG DATE
- [INFO] Successfully applied 7 migrations to schema "isod" (execution time 00:28.085s).
- [INFO]
- [INFO] --- flyway-maven-plugin:3.2.1:migrate (db.analyst.migrate) @ mvd-db ---
- Sep 25, 2017 7:03:22 PM org.postgresql.Driver connect
- SEVERE: Connection error:
- org.postgresql.util.PSQLException: The connection attempt failed.
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:275)
- at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
- at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:194)
- at org.postgresql.Driver.makeConnection(Driver.java:450)
- at org.postgresql.Driver.connect(Driver.java:252)
- at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:299)
- at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnection(DriverDataSource.java:261)
- at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:50)
- at org.flywaydb.core.Flyway.execute(Flyway.java:1385)
- at org.flywaydb.core.Flyway.info(Flyway.java:1140)
- at org.flywaydb.maven.MigrateMojo.doExecute(MigrateMojo.java:30)
- at org.flywaydb.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:524)
- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
- at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
- at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
- at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
- at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
- at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
- at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
- at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
- at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
- at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
- at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
- at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
- Caused by: java.net.UnknownHostException: sodch-fias01.it.mvd.ru
- at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
- at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
- at java.net.Socket.connect(Socket.java:589)
- at org.postgresql.core.PGStream.<init>(PGStream.java:68)
- at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:144)
- ... 33 more
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 30.682 s
- [INFO] Finished at: 2017-09-25T19:03:22+03:00
- [INFO] Final Memory: 14M/222M
- [INFO] ------------------------------------------------------------------------
- [WARNING] The requested profile "production" could not be activated because it does not exist.
- [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]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement