Skip to content

Instantly share code, notes, and snippets.

@EricWittmann
Created July 22, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricWittmann/45d4b4a305ae607c2887 to your computer and use it in GitHub Desktop.
Save EricWittmann/45d4b4a305ae607c2887 to your computer and use it in GitHub Desktop.
[INFO] ------------------------------------------------------------------------
[INFO] Building apiman-distro-ddl 1.1.5.Final
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ apiman-distro-ddl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- liquibase-maven-plugin:3.3.5:update (h2-update) @ apiman-distro-ddl ---
[INFO] ------------------------------------------------------------------------
[INFO] Loading artfacts into URLClassLoader
[INFO] artifact: file:/home/rof/src/github.com/apiman/apiman/manager/api/beans/target/classes/
[INFO] artifact: file:/home/rof/src/github.com/apiman/apiman/common/util/target/classes/
[INFO] artifact: file:/home/rof/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
[INFO] artifact: file:/home/rof/.m2/repository/junit/junit/4.11/junit-4.11.jar
[INFO] artifact: file:/home/rof/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
[INFO] artifact: file:/home/rof/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar
[INFO] artifact: file:/home/rof/src/github.com/apiman/apiman/distro/ddl/target/classes/
[INFO] artifact: file:/home/rof/src/github.com/apiman/apiman/distro/ddl/target/test-classes
[INFO] ------------------------------------------------------------------------
[INFO] Settings
----------------------------
[INFO] driver: org.h2.Driver
[INFO] url: jdbc:h2:/home/rof/src/github.com/apiman/apiman/distro/ddl/target/apiman_manager_api;DATABASE_TO_UPPER=false;
[INFO] username: sa
[INFO] password: *****
[INFO] use empty password: true
[INFO] properties file: null
[INFO] properties file will override? false
[INFO] prompt on non-local database? false
[INFO] clear checksums? false
[INFO] changeLogFile: /src/main/liquibase/master.xml
[INFO] context(s): null
[INFO] label(s): null
[INFO] number of changes to apply: 0
[INFO] drop first? false
[INFO] ------------------------------------------------------------------------
[INFO] Executing on Database: jdbc:h2:/home/rof/src/github.com/apiman/apiman/distro/ddl/target/apiman_manager_api;DATABASE_TO_UPPER=false;
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] apiman ............................................. SUCCESS [ 0.168 s]
[INFO] apiman-common ...................................... SUCCESS [ 0.000 s]
[INFO] apiman-common-auth ................................. SUCCESS [ 0.493 s]
[INFO] apiman-common-util ................................. SUCCESS [ 0.033 s]
[INFO] apiman-common-config ............................... SUCCESS [ 0.069 s]
[INFO] apiman-common-plugin ............................... SUCCESS [ 0.655 s]
[INFO] apiman-common-servlet .............................. SUCCESS [ 0.234 s]
[INFO] apiman-distro ...................................... SUCCESS [ 0.001 s]
[INFO] apiman-distro-data ................................. SUCCESS [ 0.031 s]
[INFO] apiman-gateway ..................................... SUCCESS [ 0.001 s]
[INFO] apiman-gateway-engine .............................. SUCCESS [ 0.000 s]
[INFO] apiman-gateway-engine-beans ........................ SUCCESS [ 0.027 s]
[INFO] apiman-gateway-engine-core ......................... SUCCESS [ 1.007 s]
[INFO] apiman-test ........................................ SUCCESS [ 0.001 s]
[INFO] apiman-test-common ................................. SUCCESS [ 0.051 s]
[INFO] apiman-manager ..................................... SUCCESS [ 0.000 s]
[INFO] apiman-manager-api ................................. SUCCESS [ 0.001 s]
[INFO] apiman-manager-api-beans ........................... SUCCESS [ 0.312 s]
[INFO] apiman-manager-api-config .......................... SUCCESS [ 0.024 s]
[INFO] apiman-manager-api-rest ............................ SUCCESS [ 0.039 s]
[INFO] apiman-manager-api-core ............................ SUCCESS [ 0.762 s]
[INFO] apiman-manager-api-security ........................ SUCCESS [ 0.041 s]
[INFO] apiman-gateway-api ................................. SUCCESS [ 0.000 s]
[INFO] apiman-gateway-api-rest ............................ SUCCESS [ 0.015 s]
[INFO] apiman-manager-api-gateway ......................... SUCCESS [ 0.030 s]
[INFO] apiman-manager-api-rest-impl ....................... SUCCESS [ 0.058 s]
[INFO] apiman-manager-api-jpa ............................. SUCCESS [ 0.026 s]
[INFO] apiman-manager-api-jpa-idm ......................... SUCCESS [ 0.041 s]
[INFO] apiman-manager-api-es .............................. SUCCESS [ 0.149 s]
[INFO] apiman-manager-api-war ............................. SUCCESS [ 0.077 s]
[INFO] apiman-gateway-engine-es ........................... SUCCESS [ 0.480 s]
[INFO] apiman-manager-test ................................ SUCCESS [ 0.000 s]
[INFO] apiman-manager-test-api ............................ SUCCESS [ 21.314 s]
[INFO] apiman-distro-db ................................... SUCCESS [ 0.087 s]
[INFO] apiman-distro-db-es ................................ SUCCESS [ 0.102 s]
[INFO] apiman-distro-ddl .................................. FAILURE [ 0.848 s]
[INFO] apiman-distro-es ................................... SKIPPED
[INFO] apiman-manager-api-ispn ............................ SKIPPED
[INFO] apiman-manager-api-war-wildfly8 .................... SKIPPED
[INFO] apiman-manager-ui .................................. SKIPPED
[INFO] apiman-manager-ui-hawtio ........................... SKIPPED
[INFO] apiman-manager-ui-hawtio-wildfly8 .................. SKIPPED
[INFO] apiman-gateway-engine-ispn ......................... SKIPPED
[INFO] apiman-gateway-engine-policies ..................... SKIPPED
[INFO] apiman-gateway-platforms ........................... SKIPPED
[INFO] apiman-gateway-platforms-servlet ................... SKIPPED
[INFO] apiman-gateway-platforms-war ....................... SKIPPED
[INFO] apiman-gateway-api-rest-impl ....................... SKIPPED
[INFO] apiman-gateway-platforms-war-wildfly8 .............. SKIPPED
[INFO] apiman-gateway-platforms-war-wildfly8-api .......... SKIPPED
[INFO] apiman-gateway-platforms-war-wildfly8-gateway ...... SKIPPED
[INFO] apiman-gateway-platforms-war-wildfly8-modules ...... SKIPPED
[INFO] apiman-distro-wildfly8 ............................. SKIPPED
[INFO] apiman-manager-api-micro ........................... SKIPPED
[INFO] apiman-gateway-engine-osgi ......................... SKIPPED
[INFO] apiman-gateway-platforms-undertow .................. SKIPPED
[INFO] apiman-gateway-test ................................ SKIPPED
[INFO] apiman-gateway-platforms-vertx ..................... SKIPPED
[INFO] apiman-gateway-platforms-war-` ..................... SKIPPED
[INFO] apiman-tools ....................................... SKIPPED
[INFO] apiman-tools-dev-server ............................ SKIPPED
[INFO] apiman-tools-dev-server-gateway .................... SKIPPED
[INFO] apiman-tools-dev-server-manager-api ................ SKIPPED
[INFO] apiman-tools-i18n .................................. SKIPPED
[INFO] apiman-tools-services .............................. SKIPPED
[INFO] apiman-tools-server-all ............................ SKIPPED
[INFO] apiman-test-policies ............................... SKIPPED
[INFO] apiman-test-suite .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.217 s
[INFO] Finished at: 2015-07-21T17:42:56+00:00
[INFO] Final Memory: 55M/904M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.3.5:update (h2-update) on project apiman-distro-ddl: Error setting up or running Liquibase: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Table "DATABASECHANGELOGLOCK" already exists; SQL statement:
[ERROR] CREATE TABLE DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID)) [42101-168]
[ERROR] -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :apiman-distro-ddl
@bgaisford
Copy link

The error seems to indicate that the build was executed without the clean option --> Table "DATABASECHANGELOGLOCK" already exists. Is that a possibility within the build workflow?

@EricWittmann
Copy link
Author

Ah ha! Yes that explains it. When I do a release I often do the full mvn clean install, then do some smoke tests, then do a mvn deploy. I don't have an explanation for why it failed in CI.

@EricWittmann
Copy link
Author

Actually - the CI does a mvn clean install and then it does two separate mvn test runs with different params (testing JPA and then testing Elastic). I guess that explains it?

@bgaisford
Copy link

Let's just remove the step for now as it's causing problems. I'll submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment