Questions tagged [maven-ear-plugin]

Maven plugin intended to configure and produce ear files.

Documentation

Official site : http://maven.apache.org/plugins/maven-ear-plugin/

Introduction

This plugin generates J2EE Enterprise Archive (EAR) file. It can also generate the >deployment descriptor file (e.g. application.xml).

The EAR plugin supports the following artifacts:

  • ejb
  • war
  • jar
  • ejb-client
  • rar
  • ejb3
  • par
  • sar
  • wsr
  • har
  • app-client
103 questions
3
votes
2 answers

Multiple identical jar files in an ear file

I have produced an ear file with a war file inside but the ear file contains jar files which are already in the lib folder of the war file. How can I remove the duplicate jar files and where should those jar files be? In the war file's lib folder or…
newguy
  • 5,668
  • 12
  • 55
  • 95
3
votes
2 answers

Building EAR from a single Maven project

There is a Maven project that used to have JAR packaging type. Now the project has evolved, and it is required that it be built as EAR, including the JAR proper and its dependencies altogether. Does it necessarily mean I have to introduce the second…
Dimitri
  • 301
  • 2
  • 13
3
votes
3 answers

Maven: How to add files to the root inside an EAR with maven-ear-plugin?

I need to add 2 XML files inside an EAR generated with maven-ear-plugin. Unfortunately, I haven't seen a way to add an arbitrary file to an EAR; the documentation of the plugin which reads "The EAR plugin supports the following artifacts: ejb, war,…
wishihadabettername
  • 14,231
  • 21
  • 68
  • 85
3
votes
2 answers

Basic ear-package deployment in JBoss

This is what I would like to achieve: 1 ear-package: all.ear The ear-package contains two war's (A.war, B.war in the root of the ear) The ear-package contains 1 self-made jar C and a lot of third party jars (under APP-INF\lib) This package needs…
Thomas Stubbe
  • 1,945
  • 5
  • 26
  • 40
3
votes
3 answers

Maven-ear-plugin - excluding multiple modules i.e. jars, wars etc

I've been using the Maven EAR plugin for creating my ear files for a new project. I noticed in the plugin documentation you can specify exclude statements for modules. For example the configuration for my plugin is as follows...
James Murphy
  • 800
  • 1
  • 15
  • 29
3
votes
1 answer

JBoss EAR deployment order

I have 5 EARs that need to be deployed. One of them, local-configuration-ear-0.3.5-SNAPSHOT.ear, is a dependency of all the others, and they require it at deployment time, i.e. local-configuration-ear-0.3.5-SNAPSHOT.ear needs to be deployed first.…
Zoltán
  • 21,321
  • 14
  • 93
  • 134
3
votes
1 answer

How to build two EARs using maven, one with modules packed and the other unpacked?

I am building an EAR that contains unpacked WARs. But due to a bug in Arqullian Test Framework, I need to build another EAR, that will look the same, but the WARs inside will be packed. I thought of using two different executions of…
MartinTeeVarga
  • 10,478
  • 12
  • 61
  • 98
2
votes
1 answer

Moving From Ant to Maven: How do I setup an EAR Project?

We have a fairly complex project that use to be built in Ant, but now we're moving to Maven. There is a core jar and a variety of filter jars that depend upon the core jar. These jars are assembled into a SAR along with other dependent jars and a…
David W.
  • 105,218
  • 39
  • 216
  • 337
2
votes
0 answers

Excluding JAR Files From the EAR using maven

My EAR includes 8 JAR files which are in the root of my EAR. I want to delete two of them for my final deployment EAR package. I was trying do this as it is described…
MagGGG
  • 19,198
  • 2
  • 29
  • 30
2
votes
1 answer

My ear which was build with maven does not generates its APP-INF/lib

As I said in title when i build ear the artifacts (wars and ejbs) are copied inside ear but the APP-INF/lib is missing, and i don't know what could be the reason. This is a part of pom.xml:
user398920
  • 1,421
  • 2
  • 12
  • 10
2
votes
1 answer

How to proceed with ear build in maven2?

I very new to maven2. Till yesterday i was successful in building war from maven2. My next target is to build ear file for a war file including few of jar files as well. Can you please help with that. I would be greatly thankful. Regards Gnash-85
NareshKumar
  • 1,609
  • 3
  • 16
  • 13
2
votes
1 answer

maven-ear-plugin project property lookup fails

I have created simple ear project with filters. I want to use different settings for each environment, those settings should be passed to generated application.xml file in the form of env-entries. The generation of ear package is done with…
TrueCurry
  • 205
  • 3
  • 12
2
votes
1 answer

Error when building the project after add a to maven pom.xml :Artifact is not a dependency of the project

I have added a new to my maven pom.xml file. org.apache.maven.plugins maven-ear-plugin ............ javax.transaction
prime
  • 14,464
  • 14
  • 99
  • 131
2
votes
2 answers

How to manipulate Manifest file with maven

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…
Tomer
  • 17,787
  • 15
  • 78
  • 137
1
vote
1 answer

How to prevent maven from duplicating jars in an EAR file?

I have an EAR file built by maven and currently I have a commons project which I'd like to put in an EAR\lib, so I used the maven-ear-plugin with the 'bundleDir' tag which works fine, only that now my commons.jar appears in both the lib folder and…
Tomer
  • 17,787
  • 15
  • 78
  • 137