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
127
votes
10 answers

Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)

I am using Eclipse 3.7 Indigo with Maven M2E Plugin 1.0.100. Using the JBoss 7.x JavaEE 6 EAR archetype, the pom for EAR is giving me this error: Plugin execution not covered by lifecycle configuration: …
Oh Chin Boon
  • 23,028
  • 51
  • 143
  • 215
103
votes
6 answers

Maven2: Best practice for Enterprise Project (EAR file)

I am just switching from Ant to Maven and am trying to figure out the best practice to set up a EAR file based Enterprise project? Let's say I want to create a pretty standard project with a jar file for the EJBs, a WAR file for the Web tier and the…
Maik
  • 1,057
  • 2
  • 8
  • 4
50
votes
3 answers

Removing version number from file name with Maven

I have a project with 5 modules in maven. Right now, when I do a "mvn clean install", it generates an ear containing the two jars, one war and one sar from the other modules. All the file names contain the version, e.g., projectx-ear-2.0.0.ear,…
Bani
  • 1,149
  • 2
  • 10
  • 17
37
votes
2 answers

Maven dependency resolution and scope overriding

Disclaimer (I originally asked the question in a very detailed manner over here. I've excerpted it here as the maven-users mailing list has gone quiet on this question.) (not just another newbie question) Reference My reference material…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
32
votes
4 answers

How do I upgrade the version of a maven plugin?

I am using the maven-ear-plugin version 2.3.1 - I know there is a new version available: http://maven.apache.org/plugins/maven-ear-plugin/ I can't work out how to upgrade to the latest version?
johnstok
  • 96,212
  • 12
  • 54
  • 76
23
votes
2 answers

How to add WAR inside EAR with Maven

I have EAR with an application and I need to extend this app with my own code that is packaged as a WAR. Is there a maven plugin that can help me with putting the WAR inside the EAR? The manual procedure is to put WAR inside EAR and add module to…
stalker
  • 1,300
  • 1
  • 13
  • 16
18
votes
2 answers

Create complete EAR Project with Maven and Eclipse Helios

I read some articles about how to set up eclipse and maven to create a new empty ear project but all solutions weren't complete or are to old. I believe that I need to create three pom.xml files / or three projects: client project with the WEB-APP…
Hauke
  • 1,405
  • 5
  • 23
  • 44
18
votes
3 answers

Invalid packaging for parent pom.xml, must be "pom" but is "ear"

Could anybody suggest me an solution with the following exception. I am going to create a multi-module project. Parent Project name is LOGICBACKEND child project name is DBAccess I need to have ear file of LOGICBACKEND which should contain DBAccess…
KItis
  • 5,476
  • 19
  • 64
  • 112
17
votes
3 answers

Maven ear plugin - "doubled" artifact when not using clean

When building an ear through the Maven ear plugin, I experienced that applying package without clean can lead to inconsistent results: If I change the version of a dependency, the dependency now appears twice in the ear, in the old and the new…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
16
votes
5 answers

How to remove version number from war file

I have a Dependency in child pom like this. sample-groupID sfint 1.0.0-SNAPSHOT war
rajan.sngh
  • 453
  • 2
  • 5
  • 17
14
votes
1 answer

error during build EAR file in Maven

I'm facing the followinf issue : Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml (default-generate-application-xml) on project UserAdminEAR: Artifact[war:com.syril.administration:UserAdmin] is…
syril
  • 271
  • 1
  • 5
  • 17
12
votes
3 answers

In java EE, which jars should I put in the library dir?

I have a Java EE project. The project is built using maven into an .ear archive. There is a library jar containing a JPA 2 persistence unit, which is located in the library directory of the ear (so multiple other modules can use it). While adding an…
Simon Lindgren
  • 500
  • 1
  • 6
  • 14
9
votes
3 answers

Maven: No marketplace entries found to handle castor, antrun, and ear plugins

I am importing a maven project into Eclipse. I have the m2e plugin installed and it is pointing to maven 2.2.1 on my machine. I am getting these three errors: No marketplace entries found to handle castor-maven-plugin:1.0:generate in Eclipse No…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
9
votes
3 answers

In Maven2, what's the simplest way to build a WAR and the EAR to contain that WAR in a single POM?

Situation is pretty straightforward. I have a Java webapp that I'm converting to be built with Maven. At present, the app is built with Ant into a single WAR file, which is then bundled into an EAR with a very simple…
Justin Searls
  • 4,789
  • 4
  • 45
  • 56
7
votes
2 answers

maven-ear-plugin is not including jarModule into application.xml

I've been following the example on the maven-ear-plugin site that shows how to add third-party libraries to the generated application.xml. However, it does not appear to be working as I expected. Similarly the web module contextRoot is being…
mrswadge
  • 1,659
  • 1
  • 20
  • 43
1
2 3 4 5 6 7