Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Eclipse maven template oasp4j-template-server version 2.4.0 produces pom with missing dependency spring-boot-starter-jdbc #613

Closed
Jan-PeterRichterCG opened this issue Dec 15, 2017 · 2 comments

Comments

@Jan-PeterRichterCG
Copy link

When you create a new OASP4J using the template io.oasp.java.templates/oasp4j-template-server version 2.4.0 as found on https://repo1.maven.org/maven2 the pom of the xxx-core project does not contain the following dependency:

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

This dependency is needed (at least) to make the H2 database work in file mode (see https://stackoverflow.com/questions/37903105/how-to-configure-spring-boot-to-use-file-based-h2-database discussion of answer 14)

Use of H2 in file mode is not explicitly described in src/main/resources/config/app/application.properties but there is a file application-h2file.properties. That file, however is useless without the above mentioned dependency. Also, the file application-h2mem.properties may be useless [have not tested].

Without the dependency these files / the configurations therein are (for whatever reason) not evaluated.

@hohwille
Copy link
Member

Thanks for the feedback. See also #608 so absolutely makes sense. IMHO we just missed 2.5.0 - pitty.
Will flag for 3.0.0. Should be trivial to fix.

@hohwille hohwille added this to the oasp:3.0.0 milestone Jan 12, 2018
@hohwille hohwille modified the milestones: oasp:EVE, oasp:2.6.0 May 8, 2018
@hohwille
Copy link
Member

Was resolved with #629 that has been merged. The new archetype version 2.6.0 will therefore not have the stated problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants