4

I'm trying to build an EAR that consist of some resource adapter (let's call it resource.rar) and some other JARs. resource.rar contains several JARs: - resource-api.jar - resource-impl.jar - resource-ejb.jar - others...

What I need to do is to replace persistence.xml that is in the following path: my_application.ear/resource.rar/resource-ejb.jar/META-INF/persistence.xml with some filered resource. My goal is to change properties like:
property name="hibernate.hbm2ddl.auto"
property name="hibernate.dialect"

maven-ear-plugin allows to unpack artifacts but as far as I know it is possible only for one level structure.

Jean-Rémy Revy
  • 5,607
  • 3
  • 39
  • 65
Pidzama
  • 53
  • 6

1 Answers1

2

Have a look at the TrueZip Maven plugin.

Jan
  • 1,032
  • 11
  • 26
carlspring
  • 31,231
  • 29
  • 115
  • 197