Embedded GlassFish ignores Maven test resources

后端 未结 3 2107
無奈伤痛
無奈伤痛 2021-01-06 00:09

I have several session beans that I have written unit tests for. I have setup Maven to include a persistence.xml in the src/main/resources/META-INF directory that refers to

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 01:03

    By "embedded glassfish container", do you mean a maven plugin that runs glassfish for you? The classpath for a maven plugin is different and managed differently than the maven test classpath. You might need to be working with a different classpath.

提交回复
热议问题