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
1
vote
1 answer

Log4j Issue with Skinny WAR: Logs are merged into single log file instead of writing into separate web applications log files

I am using Websphere7 to deploy EAR file. EAR file contains two different application war files like App1, App2. I am building my application EAR file using maven-ear-plugin as skinny war. . |-- META-INF | `-- application.xml |-- lib | --…
Narendra Verma
  • 2,372
  • 6
  • 34
  • 61
1
vote
2 answers

maven - not copying project jar outside /lib while EAR packaging

This is happening while packaging the EAR My pom.xml is packaging the ear file where it should include projectA.jar file and projectB.war outside the /lib folder. Apparently, projectA.jar file is going inside the /lib folder which is not supposed to…
Madhu CM
  • 2,296
  • 6
  • 29
  • 38
1
vote
1 answer

strategy for maven ear packaging, building dependant projects

After looking at various suggestions, I still can't seem to have any successful maven strategy for ear files. I have this structure: parent pom.xml: ... MyProject-ear MyProject-ejb
ymajoros
  • 2,454
  • 3
  • 34
  • 60
1
vote
1 answer

how create an ejb-jar file to deploy in Glass Fish server v3

I would like to know how deploy an EJB application? that also has web services with jax-ws... I read this link http://java.sun.com/developer/onlineTraining/Beans/EJBTutorial/step5.html#Create%20the%20ejb-jar%20file but use weblogic to generated…
Will86
  • 157
  • 1
  • 4
  • 13
1
vote
0 answers

How do I get the correct application.xml file to appear in my EAR file using Maven?

I'm using Maven 3.0.3 with the Maven EAR plugin (v2.7). I'm having trouble getting the proper application.xml file included in my EAR distribution. Although a target/application.xml is correctly generated ...
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

Does the Maven Assembly Plugin (maven-assembly-plugin) support the EAR format?

Does the maven-assembly-plugin support EAR as a valid format? The documentation seems to indicate you can configure it any way you want: zip tar.gz tar.bz2 jar dir war and any other format that the ArchiveManager has been configured…
user4903
0
votes
1 answer

Loading web app jars in order using maven - same as websphereclassloaderMode="PARENT_LAST" in websphere

I'm deploying to websphere using the maven plugin http://maven.apache.org/plugins/maven-ear-plugin/usage.html. I need to set the ordering of when the project jars are loaded, so that the project jars are loaded for a given application prior to…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
0 answers

How to add jar files in WAR WEB-INF/lib, when skinny-wars is used?

I have two WAR files inside an EAR file. I use skinny wars (maven-ear-plugin) so that all common jar files of the WARs are added in the root lib directory of the EAR file. In this case, the WEB-INF/lib of both WARs are empty. However, there are two…
0
votes
0 answers

Integration tests when building an EAR

I noticed that the standard EAR lifecycle of Maven does not mention tests: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html It is true that unit tests make little sense in EARs (there is no code to compile). But what…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0
votes
1 answer

JBossXBException

I have an ear file that is generated through Maven EAR plugin. The ear file has only one module which is the ejb module. I am able to deploy it to JBoss 4.2.1-GA inside Eclipse but when I tried running it an exception is encountered during startup.…
Bob Santos
  • 55
  • 1
  • 7
0
votes
1 answer

EAR maven plugin does not see project dependency

I am having a problem with maven-ear-plugin that keep failing because of "not dependency defined" this is my…
Balint
  • 295
  • 2
  • 11
0
votes
2 answers

application.xml for Jboss 6

Can we package ear for jboss 6 ? What will be application.xml uri ??
Suraj
  • 437
  • 8
  • 20
0
votes
1 answer

Creating EAR with Maven

project structure: domain project (containing Pojos/Entities) service project (EJB project) service client project (interfaces for service project) web project ear project parent project (just containing parent pom) How do I have to configure the…
y0dA
  • 53
  • 1
  • 2
  • 7
0
votes
1 answer

WEB-INF/classes empty upon MavenBuild

I am building a multi modules project the hierarchy for it as follow : ParentProject |_ WebModule |_src |_main |_ java …
k.elgohary
  • 403
  • 8
  • 21
0
votes
1 answer

Ear Deployment in Jboss AS 7 failure with ClassNotFoundException

I am migrating an existing project to AS7. My Ear Structure is below, Guys some one please help the structure is correct or not. Because I am getting ClassNotFoundException when I am deploying, I think I have placed jar in wrong place. Ear …
Ganesan S
  • 85
  • 1
  • 3
  • 13