mybatis / migrations-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWMaven plugin for the MyBatis Migrations tool
Home Page: https://github.com/mybatis/migrations-maven-plugin/releases/
License: Apache License 2.0
Maven plugin for the MyBatis Migrations tool
Home Page: https://github.com/mybatis/migrations-maven-plugin/releases/
License: Apache License 2.0
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 ?
On the usage page, under "The migration:status goal", the example uses 'mvn migrate:status' instead of 'mvn migration:status'.
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?
$ mvn migration:init -Dmigration.idpattern=000
$ mvn migration:new -Dmigration.idpattern=000
$ mvn migration:script -Dmigration.v1=pending
$ mvn migration:script -Dmigration.v1=pending_undo
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
.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
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
.mvn/wrapper/maven-wrapper.properties
maven 3.9.8
maven-wrapper 3.3.2
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?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.