mysql-dists

Portables MySQL Maven artifacts

License

License

Categories

Categories

MySQL Data Databases
GroupId

GroupId

com.github.mike10004
ArtifactId

ArtifactId

mysql-dists
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

pom
Description

Description

mysql-dists
Portables MySQL Maven artifacts
Project URL

Project URL

https://github.com/mike10004/mysql-dists
Source Code Management

Source Code Management

https://github.com/mike10004/mysql-dists

Download mysql-dists

Filename Size
mysql-dists-1.0.2.pom 4 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.mike10004/mysql-dists/ -->
<dependency>
    <groupId>com.github.mike10004</groupId>
    <artifactId>mysql-dists</artifactId>
    <version>1.0.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.mike10004/mysql-dists/
implementation 'com.github.mike10004:mysql-dists:1.0.2'
// https://jarcasting.com/artifacts/com.github.mike10004/mysql-dists/
implementation ("com.github.mike10004:mysql-dists:1.0.2")
'com.github.mike10004:mysql-dists:pom:1.0.2'
<dependency org="com.github.mike10004" name="mysql-dists" rev="1.0.2">
  <artifact name="mysql-dists" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.mike10004', module='mysql-dists', version='1.0.2')
)
libraryDependencies += "com.github.mike10004" % "mysql-dists" % "1.0.2"
[com.github.mike10004/mysql-dists "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • example

mysql-dists

Projects that build mysql distribution artifacts for use as embedded databases in Maven projects. These are designed to be compatible with jcabi-mysql-maven-plugin.

Each subdirectory is an independent project configured to do the following:

  • download a MySQL or MariaDB tarball
  • extract the tarball
  • repackage the contents as a zip usable as a jcabi-mysql-maven-plugin MySQL distribution artifact

Each project is configured with a "practice" profile that tests the construction of that zip by downloading a tarball from the user web directory on localhost. If you have Apache installed, you can enable the userdir module and put the practice/ziptest-1.0.tar.gz tarball in your shared directory such that it is downloadable from the URL http://localhost/~USERNAME/mysql-dists-test/ziptest-1.0.tar.gz.

To create a new MySQL distribution, make a copy of an existing subdirectory and change values in pom.xml, as indicated by comments in that file, to reflect the correct parameters for the target MySQL distribution. Then run mvn install in your new directory to the new MySQL distribution zip to your local repository.

To confirm that it works, in the example directory, run

mvn verify -Dmysql-dist.artifactId=MY_DIST_ARTIFACTID -Dmysql-dist.version=MY_DIST_VERSION

and the project's integration tests will run using the embedded MySQL distribution that you specified with the mysql-dist.artifactId and mysql-dist.version system properties.

Versions

Version
1.0.2