GithubHelp home page GithubHelp logo

mybatis / migrations-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
22.0 17.0 16.0 2.45 MB

Maven plugin for the MyBatis Migrations tool

Home Page: https://github.com/mybatis/migrations-maven-plugin/releases/

License: Apache License 2.0

Java 100.00%
java maven-plugin migration-tool

migrations-maven-plugin's Issues

Support for case sensitive databases

I've seen that mybatis-migrations since 3.1.0 supports case sensitive databases. However maven plugin still uses older 3.0.x version.
Maybe it is time to do a release for migrations-maven-plugin ?

Minor Documentation Bug

On the usage page, under "The migration:status goal", the example uses 'mvn migrate:status' instead of 'mvn migration:status'.

include plugin in migrations releases even just as a version bump

Currently the migrations plugin does not depend on the latest migrations library version. It's possible to specify the version by adding a direct dependency in the plugin section of the POM, if the library is still compatible.

But it is still conter intuitive and most users won't benefit from the latest migrations improvements when using the plugin.

Can the plugin be included in the migrations release train?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/ci.yaml
  • actions/checkout v4
  • actions/setup-java v4
.github/workflows/codeql.yml
  • actions/checkout v4
  • actions/setup-java v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/coveralls.yaml
  • actions/checkout v4
  • actions/setup-java v4
.github/workflows/site.yaml
  • actions/checkout v4
  • actions/setup-java v4
  • JamesIves/github-pages-deploy-action v4
.github/workflows/sonar.yaml
  • actions/checkout v4
  • actions/setup-java v4
.github/workflows/sonatype.yaml
  • actions/checkout v4
  • actions/setup-java v4
maven
pom.xml
  • org.mybatis:mybatis-parent 44
  • org.apache.maven:maven-plugin-api 3.9.8
  • org.apache.maven.plugin-tools:maven-plugin-annotations 3.13.1
  • org.mybatis:mybatis-migrations 3.3.11
  • org.apache.maven.reporting:maven-reporting-api 4.0.0-M12
  • org.apache.maven.doxia:doxia-sink-api 2.0.0-M12
  • org.apache.maven.doxia:doxia-core 2.0.0-M12
  • org.apache.maven.doxia:doxia-site-renderer 2.0.0-M19
  • org.apache.maven.reporting:maven-reporting-impl 4.0.0-M15
  • org.apache.maven.plugin-testing:maven-plugin-testing-harness 4.0.0-beta-1
  • org.hsqldb:hsqldb 2.7.3
  • org.codehaus.plexus:plexus-utils 4.0.1
  • org.codehaus.plexus:plexus-xml 3.0.1
  • org.apache.maven:maven-artifact 3.9.8
  • org.apache.maven:maven-core 3.9.8
  • org.apache.maven:maven-model 3.9.8
  • org.apache.maven.shared:maven-shared-utils 3.4.2
  • com.google.guava:guava 33.2.1-jre
  • org.junit.jupiter:junit-jupiter-engine 5.10.3
  • org.junit.vintage:junit-vintage-engine 5.10.3
  • commons-beanutils:commons-beanutils 1.9.4
  • commons-collections:commons-collections 3.2.2
  • commons-io:commons-io 2.16.1
  • org.apache.commons:commons-lang3 3.14.0
  • org.apache.maven.plugins:maven-invoker-plugin 3.7.0
  • org.apache.maven.plugins:maven-plugin-plugin 3.13.1
  • org.apache.maven.plugins:maven-plugin-report-plugin 3.13.1
src/it/migration-plugin-check-env-pom/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-check-env/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-check-multi/mod1/pom.xml
src/it/migration-plugin-check-multi/mod2/pom.xml
src/it/migration-plugin-check-multi/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-check/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-command-down/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-command-parameter/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-command-script/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-command/pom.xml
  • org.hsqldb:hsqldb 2.7.3
src/it/migration-plugin-init-idpattern/pom.xml
src/it/migration-plugin-init-repo/pom.xml
src/it/migration-plugin-new/pom.xml
src/it/migration-plugin-report-multi/mod1/pom.xml
src/it/migration-plugin-report-multi/mod2/pom.xml
src/it/migration-plugin-report-multi/mod3/pom.xml
src/it/migration-plugin-report-multi/pom.xml
  • org.hsqldb:hsqldb 2.7.3
  • org.apache.maven.plugins:maven-site-plugin 3.12.1
src/it/migration-plugin-report/pom.xml
  • org.hsqldb:hsqldb 2.7.3
  • org.apache.maven.plugins:maven-site-plugin 3.12.1
src/it/migration-plugin-skip/pom.xml
  • org.hsqldb:hsqldb 2.7.3
maven-wrapper
.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.8
  • maven-wrapper 3.3.2

  • Check this box to trigger a request for Renovate to run again on this repository

Read environment variable in properties file

How to read system (mac:~/.profile) environment variables in a properties file. I created development and production properties files in environment folder like below

development.properties:
username=${db_username}
password=${db_password}

Now when I run mvn migration:status, i get following error

[ERROR] Failed to execute goal org.mybatis.maven:migrations-maven-plugin:1.1.3:status (default-cli) on project test: Execution default-cli of goal org.mybatis.maven:migrations-maven-plugin:1.1.3:status failed: Could not create SqlRunner. Cause: org.postgresql.util.PSQLException: FATAL: role "${db_username}" does not exist

plugin is not replacing variables. Am I doing it wrong or is this not supported by plugin?

Test cases don't fully work

I noticed that all the test cases were not setup properly so I turned them on. This resulted in 4 classes failing under the test package. Possibly similar issues exists on integration tests but I didn't check those.

For regular tests, all get this error 'mybatis-migration_TEST.script (The system cannot find the file specified)'

Since some tests do pass, I'm leaving those on which will in turn show some code coverage which this library was clearly missing.

Text Formatting in Stored Procedures is stripped by Mybatis

When we run Mybatis on an mssql server, all of the formatting present in the create script in the script folder for deployment with mybaits, all the line spacing, blank lines, any meanifeul formatting is all stripped and jumbled when you view the stored procedure in the db itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.