# Custom database class in maven plugin

**URL:** <https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403>\
**Category:** Liquibase Development\
**Created:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403 "2010-06-16T02:44:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquibase\_lb](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@liquibase\_lb](https://forum.liquibase.org/u/liquibase_lb)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/1 "2010-06-16T02:44:00Z")

</div>

Hi all

The maven plugin doesn’t support custom database classes, which we need here to support a rather non-standard legacy MS SQL Server setup.

I’ve created [http://liquibase.jira.com/browse/CORE-633](http://liquibase.jira.com/browse/CORE-633) with patches to 1.9.5 and trunk, although I haven’t tested the trunk one - I’m having issues just doing svn up in the trunk dir atm, I keep getting prompted for a password to [liquibase.jira.com](http://liquibase.jira.com) (?). Not sure what’s going on there.

Anyway, just thought I’d raise it here in case there’s any chance that it could get applied before 2.0 so that I don’t have to keep patching the liquibase maven plugin to run it here.

Thanks

Tom

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/2 "2010-06-16T02:44:00Z")

</div>

I applied the patch to trunk, but it failed on the 1.9 branch.&nbsp;

You shouldn’t get prompted for a password to update or checkout svn.&nbsp; It uses the same username/password as [liquibase.jira.com](http://liquibase.jira.com), which if you supply you can commit.&nbsp;

Nathan

---

<div class="post-metadata">

**Author:** ![liquibase\_lb](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@liquibase\_lb](https://forum.liquibase.org/u/liquibase_lb)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/3 "2010-06-16T02:44:00Z")

</div>

> _Originally posted by: Nathan_  
> I applied the patch to trunk, but it failed on the 1.9 branch.&nbsp;

Hmm, ok, I’ll retest - it was just generated using svn diff, so I assumed it would be ok. Is there going to be a 1.9.6 release at some point? Otherwise there’s not much point I suppose.

> _Originally posted by: Nathan_  
> You shouldn't get prompted for a password to update or checkout svn.&nbsp; It uses the same username/password as liquibase.jira.com, which if you supply you can commit.

OK cool, I’ll try that, thanks.

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/4 "2010-06-16T02:44:00Z")

</div>

Yes, I am plannign to continue with 1.9 builds for a while at least.&nbsp;

Nathan

---

<div class="post-metadata">

**Author:** ![liquibase\_lb](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@liquibase\_lb](https://forum.liquibase.org/u/liquibase_lb)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/5 "2010-06-16T02:44:00Z")

</div>

There were two patches there, one against 1.9.5 and one against trunk. The 1.9.5 one applied cleanly for me against the 1\_9 branch… maybe you applied the trunk one against 1.9?

C:\Development\eclipse-workspace\liquibase-1.9-branch\>patch -p0 \< ..\liquibase-1.9.5\maven-database-class-1.9.5.patch patching file `maven/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java' Hunk #1 succeeded at 79 (offset 2 lines). Hunk #2 succeeded at 203 (offset 6 lines).

C:\Development\eclipse-workspace\liquibase-1.9-branch\>

Thanks for looking at the patch!

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [June 16, 2010, 2:44am UTC](https://forum.liquibase.org/t/custom-database-class-in-maven-plugin/1403/6 "2010-06-16T02:44:00Z")

</div>

I’m still getting a “The patch seems outdated” error.&nbsp; I am trying to apply it with tortoise, perhaps that is the problem.

I’ll look into it more after I get the 2.0 RC out.

Nathan
