Hi all,
after update/compile to the last state of trunk the liquibase doesn’t started at all. See my configuration in http://liquibase.org/forum/index.php?topic=293.0
now i’m receiving follows:
C:\dev\reckitt\pim2\liquibase\pim2>mvn package -Pdevelopment
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Update PIM db 2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ pim2 ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 127 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ pim2 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- liquibase-maven-plugin:2.0-rc2-SNAPSHOT:updateSQL (generate-step) @ pim2 ---
[INFO] ------------------------------------------------------------------------
[INFO] Loading artfacts into URLClassLoader
[INFO] there are no resolved artifacts for the Maven project.
[INFO] artifact: file:/C:/dev/reckitt/pim2/liquibase/pim2/target/classes/
[INFO] artifact: file:/C:/dev/reckitt/pim2/liquibase/pim2/target/test-classes
[INFO] ------------------------------------------------------------------------
[INFO] Settings----------------------------
[INFO] driver: net.sourceforge.jtds.jdbc.Driver
[INFO] url: jdbc:jtds:sqlserver://localhost:1433;DatabaseName=pim
[INFO] username: sa
[INFO] password: null
[INFO] use empty password: false
[INFO] properties file: null
[INFO] properties file will override? false
[INFO] prompt on non-local database? false
[INFO] clear checksums? false
[INFO] changeLogFile: C:\dev\reckitt\pim2\liquibase\pim2\target\classes/changeset-pim2.xml
[INFO] drop first? false
[INFO] context(s): development
[INFO] number of changes to apply: 0
[INFO] migrationSQLOutputFile: C:\dev\reckitt\pim2\liquibase\pim2\target\liquibase\migrate.sql
[INFO] ------------------------------------------------------------------------
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.database.core.HibernateDatabase: Missing dependency org/hibernate/cfg/Configuration
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.database.core.HibernateGenericDialect: Missing dependency org/hibernate/dialect/Dialect
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.snapshot.core.HibernateDatabaseSnapshotGenerator: Missing dependency org/hibernate/diale
ct/Dialect
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.database.core.HibernateDatabase: Missing dependency org/hibernate/cfg/Configuration
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.database.core.HibernateGenericDialect: Missing dependency org/hibernate/dialect/Dialect
WARNING 17.02.10 17:35:liquibase: Could not configure extension class liquibase.snapshot.core.HibernateDatabaseSnapshotGenerator: Missing dependency org/hibernate/diale
ct/Dialect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.469s
[INFO] Finished at: Wed Feb 17 17:35:41 CET 2010
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0-rc2-SNAPSHOT:updateSQL (generate-step) on project pim2: Error setting up or running Liquibase: j
ava.sql.SQLException: Network error IOException: Connection refused: connect -> [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
How can I switch Hibernate out?
Thanks.
Did you just update/compile in the last 20 hours? I started pulling the hibernate support out of core and into a contrib module.
Is that an error from building liquibase? Or from running liquibase?
It looks like it failed running the compiled liquibase code because it wasn’t able to connect to your database. Would there be a problem with your database connection? Or do you think it was in the liquibase connection logic?
Nathan
Yes, it was the last update from the trunk.
The compilation of the self liquibase is OK. After applying to the current project i’ve get this error.
I’m waiting for the Hibernate pulling out.
Thanx
Since you are seeing hibernate errors, you must not be on the lastest build. Could you grab a new build from liquibase.org/ci/latest and see what that does?
Nathan
Hi Nathan,
the error is not corrected 
The last stand of the trunk
C:\dev\org\liquibase\trunk>svn info
Path: .
URL: http://liquibase.jira.com/svn/CORE/trunk
Repository Root: http://liquibase.jira.com/svn
Repository UUID: e6edf6fb-f266-4316-afb4-e53d95876a76
Revision: 1291
Node Kind: directory
Schedule: normal
Last Changed Author: nvoxland
Last Changed Rev: 1291
Last Changed Date: 2010-02-19 22:45:07 +0100 (??, 19 ??? 2010)
The error is the same.
C:\dev\reckitt\pim2\liquibase\pim2>mvn package -Pdevelopment
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Update PIM db 2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ pim2 ---
[WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 127 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ pim2 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- liquibase-maven-plugin:2.0-rc2-SNAPSHOT:updateSQL (generate-step) @ pim2 ---
[INFO] ------------------------------------------------------------------------
[INFO] Loading artfacts into URLClassLoader
[INFO] there are no resolved artifacts for the Maven project.
[INFO] artifact: file:/C:/dev/reckitt/pim2/liquibase/pim2/target/classes/
[INFO] artifact: file:/C:/dev/reckitt/pim2/liquibase/pim2/target/test-classes
[INFO] ------------------------------------------------------------------------
[INFO] Settings----------------------------
[INFO] driver: net.sourceforge.jtds.jdbc.Driver
[INFO] url: jdbc:jtds:sqlserver://localhost:1433;DatabaseName=pim
[INFO] username: sa
[INFO] password: null
[INFO] use empty password: false
[INFO] properties file: null
[INFO] properties file will override? false
[INFO] prompt on non-local database? false
[INFO] clear checksums? false
[INFO] changeLogFile: C:\dev\reckitt\pim2\liquibase\pim2\target\classes/changeset-pim2.xml
[INFO] drop first? false
[INFO] context(s): development
[INFO] number of changes to apply: 0
[INFO] migrationSQLOutputFile: C:\dev\reckitt\pim2\liquibase\pim2\target\liquibase\migrate.sql
[INFO] ------------------------------------------------------------------------
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.database.core.HibernateDatabase: Missing dependency org/hibernate/cfg/Configuration
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.database.core.HibernateGenericDialect: Missing dependency org/hibernate/dialect/Dialect
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.snapshot.core.HibernateDatabaseSnapshotGenerator: Missing dependency org/hibernate/diale
ct/Dialect
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.database.core.HibernateDatabase: Missing dependency org/hibernate/cfg/Configuration
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.database.core.HibernateGenericDialect: Missing dependency org/hibernate/dialect/Dialect
WARNING 22.02.10 19:52:liquibase: Could not configure extension class liquibase.snapshot.core.HibernateDatabaseSnapshotGenerator: Missing dependency org/hibernate/diale
ct/Dialect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.454s
[INFO] Finished at: Mon Feb 22 19:52:30 CET 2010
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0-rc2-SNAPSHOT:updateSQL (generate-step) on project pim2: Error setting up or running Liquibase: j
ava.sql.SQLException: Network error IOException: Connection refused: connect -> [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
Content of the file C:\dev\reckitt\pim2\liquibase\pim2\pom.xml
http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
de.reckittbenckiser
mssql-updater-parent
2.0
jar
pim2
Update PIM db
Update PIM database
org.liquibase
liquibase-maven-plugin
${liquibase.version}
ALL
true
basedir
${project.build.outputDirectory}
<properties>
<mssql.server>localhost</mssql.server>
<mssql.url.databasename>pim</mssql.url.databasename>
<mssql.url.port>1433</mssql.url.port>
</properties>
<profiles>
<profile>
<id>technical</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>technical</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>supdirector</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>supdirector</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>gendirector</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>gendirector</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sales</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>sales</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>security</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>security</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
-=====> Content of the parent POM <======
http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
de.reckittbenckiser
mssql-updater-parent
pom
MSSQL DB updater
2.0
Update MSSQL databases for Reckitt Benckiser Applications
<build>
<sourceDirectory>src/main/liquibase</sourceDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/liquibase</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.sql</include>
<include>**/*.csv</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<dependencies>
<dependency>
<groupId>${mssql.driver.groupId}</groupId>
<artifactId>${mssql.driver.artifactId}</artifactId>
<version>${mssql.driver.version}</version>
</dependency>
</dependencies>
<configuration>
<changeLogFile>${changelog.file}</changeLogFile>
<url>jdbc:jtds:sqlserver://${mssql.server}:${mssql.url.port};DatabaseName=${mssql.url.databasename}</url>
<driver>${mssql.driver}</driver>
<username>${mssql.username}</username>
<password>${mssql.password}</password>
<contexts>${changelog.context}</contexts>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
</configuration>
<executions>
<execution>
<id>generate-step</id>
<phase>compile</phase>
<goals>
<goal>updateSQL</goal>
</goals>
</execution>
<execution>
<id>update-step</id>
<phase>process-test-resources</phase>
<goals>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>${sql.version}</version>
<dependencies>
<!-- specify the dependent jdbc driver here -->
<dependency>
<groupId>${mssql.driver.groupId}</groupId>
<artifactId>${mssql.driver.artifactId}</artifactId>
<version>${mssql.driver.version}</version>
</dependency>
</dependencies>
<!-- common configuration shared by all executions -->
<configuration>
<url>jdbc:jtds:sqlserver://${mssql.server}:${mssql.url.port};DatabaseName=${mssql.url.databasename}</url>
<driver>${mssql.driver}</driver>
<username>${mssql.username}</username>
<password>${mssql.password}</password>
<autocommit>true</autocommit>
<delimiterType>row</delimiterType>
<delimiter>GO</delimiter>
<keepFormat>true</keepFormat>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<properties>
<liquibase.version>2.0-rc2-SNAPSHOT</liquibase.version>
<sql.version>1.3</sql.version>
<mssql.driver.groupId>net.sourceforge.jtds</mssql.driver.groupId>
<mssql.driver>net.sourceforge.jtds.jdbc.Driver</mssql.driver>
<mssql.driver.artifactId>jtds</mssql.driver.artifactId>
<mssql.driver.version>1.2.2</mssql.driver.version>
<mssql.username>sa</mssql.username>
<mssql.password></mssql.password>
<changelog.PATH>${project.build.outputDirectory}</changelog.PATH>
<changelog.file>${changelog.PATH}/changeset-${project.artifactId}.xml</changelog.file>
<changelog.context>current</changelog.context>
<mssql.server>localhost</mssql.server>
<mssql.url.port>1433</mssql.url.port>
</properties>
<profiles>
<profile>
<id>development</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>development</contexts>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>${sql.version}</version>
<configuration>
<srcFiles>
<srcFile>${project.artifactId}-develompent.sql</srcFile>
</srcFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>production</id>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<contexts>production</contexts>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
In the changelog.xml file I do not use Hibernate facility, of course…
Any thought, how trouble could be shot?
Thanks
It seems the sources was on my environment broken only. After deleting and restoring codebase(trunk) Hibernate dependency need no more.
Sorry for bothering.
Oleg
No problem, glad you figured it out
Nathan