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.
How to manipulate Manifest file with maven
7k Views Asked by Tomer At
2
There are 2 best solutions below
1
maba
On
I think can you look at the maven-shade-plugin and use the ManifestResourceTransformer to change the manifest for the jar.
Related Questions in MAVEN
- Auto reload with play2
- maven pom.xml dependencies order vs classpath/build path order
- How to ignore or fix the duplicate classes warning?
- Scala Eclipse IDE compiler giving errors until "clean" is run
- How to run multiple "mvn test"-commands from batch file?
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- javaCV Maven project
- Logging error when executing Maven SonarQube plugin
- Gradle: Override transitive dependency by version classifier
- Why we need maven if there's javac that compiles the code?
- jar file input == null while java app is working
- JPA and web app
- Test Selector Plugin Jenkins returns No tests were executed
- Eclipse OSGI unsatisfied constraint
- GlassFish 4.0 CDI deployment failure + Apache Spark
Related Questions in MAVEN-2
- Maven profile dependency with another profile
- Maven implicit profile Activation
- Get the whole index of Maven Central
- Apache IVY Unable to resolve dependencies for MAVEN Projects
- Java application using Maven Build
- maven 2.2.1 build error : Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
- How to deal with checksum issue in maven 2.2.1
- Add external jar to the project and build process using maven
- Is it possible to declare multiple artifactIDs per dependency?
- Maven 2 works but Maven 3 gives authentication error with same settings and server
- get sca module bindings in EAR before deploying
- Maven <mirror> tag, meaning of external:* parameter
- Multiple maven project with different package
- how to get eclipse neon to work with maven 2
- How to stop IntelliJ IDEA from creating new annotation processor profiles when a pom file is changed
Related Questions in EAR
- How to add more jax-rs components to the application?
- Servlet not working in EJB Project in Intellij IDEA
- Maven Ear with two war files
- How to pass client Locale to remote EJB Bean via JNDI
- how to get java source code from war file?
- WebLogic EAR deployment sometimes fails on Guava java.lang.LinkageError: loader constraint violation
- Why WildFly ignores filters defined in web.xml?
- Glassfish 4.1.1 / EAR / java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName XYZ
- Gradle ear build with dependencies from war file
- Error deploying EAR project in Eclipse with Wildfly 10.0
- EAR application works on Websphere8.5 but refuses to work on Websphere liberty 16.0.0.4
- Cannot start application in WebSphere when jars in the ear file don't have versions in their filename
- jboss-deployment-structure.xml does not loads the dependencies in My EAR project
- Packaging EJB with Spring in an EAR in Weblogic
- Maven multi project
Related Questions in MAVEN-EAR-PLUGIN
- Multi module dependencies in maven EAR?
- Invalid packaging for parent POM must be "pom" but is "war"
- Maven Integration for RAD7.5 along with automatic Websphere compatible EAR creation
- Custom jboss-app.xml using Maven
- Maven EAR: ejb module + application client (app client) module
- How to add WAR inside EAR with Maven
- maven - need to create ear bundle
- Want to build multimodule pom which builds 2 ear from same project in maven
- How to manipulate Manifest file with maven
- Maven multi-module project duplicates ear output, one without resource filtering
- How to replace file inside JAR which is inside RAR in Maven EAR build
- Possible to Combine Multiple Ears for deployment?
- In Maven2, what's the simplest way to build a WAR and the EAR to contain that WAR in a single POM?
- How do I get the correct application.xml file to appear in my EAR file using Maven?
- error during build EAR file in Maven
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.