spring-data-jpa-bootstrap
Use to Bootstrap a New Spring Data JPA Project
Usage
Checkout this project and then run:
-
mvn archetype:create-from-project from the project's root directory
-
replace the following generated file:
target\generated-sources\archetype\target\classes\META-INF\maven\archetype-metadata.xml
with the following
${projectRoot}\archetype-metadata.xml
-
run mvn install from the folder target/generated-sources/archetype
-
run mvn archetype:generate -DarchetypeCatalog=local in a new folder to create the new project.
-
Maven filters the version attribute in XMl encoding directive <?xml version="1.0" ...> with the version attribute specified for the project so fix these files.
-
To update QueryDSL generated classes as part of the Eclipse build install the lastest version of the QueryDSL m2e plugin by adding a new update site and intsalling the Eclipse plugin as per the instructions below:
-
Set the database properties as required and run the unit test.