在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:OpenJPA开源软件地址:https://gitee.com/apache/openjpa开源软件介绍:Apache OpenJPA - READMEPrefaceThank you for downloading this release of Apache OpenJPA. Apache OpenJPA is an implementation of the Java Persistence API specification. LicenseThe content of this repository is licensed under Apache License 2.0http://www.apache.org/licenses/LICENSE-2.0 Further InformationThe following files can be found in the openjpa-project subdirectory:
For documentation and project information, please visit our project site: http://openjpa.apache.org/ CompilingThe best way to compile Apache OpenJPA yourself is to run the build against the default derby database. $> mvn clean install -Dsurefire.excludes.locking=**/* Testing against different DatabasesThe Apache OpenJPA project also contains a setup for testing against multiple databases.The easiest way is to use Docker.We assume that Docker is installed to be used by your current user.The respective database image has to be started manually before starting the build.The reason for not starting it as part of the build itself is to be able to look at the database content after the build did run.
To start e.g. a PostgreSQL Docker image you can simply invoke the following command.Note the -N Maven option which stands for 'non-recursive'.This is used because the docker container is configured only at the root project but not at his children. mvn -N -Ptest-mysql-docker docker:start After that, you can execute your tests with the respective Maven profile mvn clean install -Ptest-mysql-docker Once the Docker image for the database is not needed any longer one can stop and remove it: mvn -N -Ptest-mysql-docker docker:stopmvn -N -Ptest-mysql-docker docker:remove The following Maven profiles do exist so far:
|
请发表评论