I have an EAR file built with maven. The EAR contains several jars and I need to add a line in the manifest file for just one of these jars. I know of the maven-jar-plugin option (manifestEntries) but this is good for a single standalone jar, not one that is inside an EAR.
相关问题
- Include pom.xml in Jar with gradle
- What order does maven find its dependencies?
- proguard causing EnumMap NPE on dynamically declar
- How to resolve Maven exec plugin: classpath too lo
- Maven: How to read the Parent POM version
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- New Maven install: mvn -version java.lang.ClassNot
- What's the difference between archetype.xml an
- NoNodeAvailableException[None of the configured no
If you take a deeper look into maven-ear-plugin configuration you will find the archive configuration part which is exactly intended for such purposes.
This can be added to the configuration of the maven-ear-plugin:
Which gives you any opportunity you need.
I think can you look at the
maven-shade-plugin
and use theManifestResourceTransformer
to change the manifest for the jar.