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
6
votes
2 answers

Has maven changed ear-element from "defaultjavabundledir" to "defaultlibbundledir", if so when?

In a POM-file i found a "maven-ear-plugin" configuration that uses "defaultJavaBundleDir", but it seems that "defaultLibBundleDir" is the correct (according to the schema and various documentation). The Maven POM schema is version 4.0.0. Is this a…
Brummo
  • 1,030
  • 2
  • 12
  • 18
6
votes
3 answers

How to get rid of version number in JNDI names, Jboss EAP 6, EJB 3.1

I have EJBs in EJB 3.1 which I am trying to deploy in JBoss EAP 6, but when I start the server. It appends version no in JNDI names as shown below. 18:27:57,068 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor]…
Jigar Naik
  • 1,946
  • 5
  • 29
  • 60
5
votes
2 answers

maven ear plugin not picking up application.xml

I am using jbosscc-seam-archtype 1.2 and I am putting the application.xml in EAR project, under /src/main/application/META-INF/ but the maven-ear-plugin is not picking it up. any suggestion? Here is the snippet of my maven EAR plugin:
Ikthiander
  • 3,917
  • 8
  • 37
  • 54
5
votes
3 answers

Maven Integration for RAD7.5 along with automatic Websphere compatible EAR creation

I want to understand the entire process for integrating Maven with RAD Version 7.5 and creation of the EAR file using maven. I have been able to successfully integrate Maven with RAD 7.5 using. I also integrated maven-ear plugin with my maven…
Varun
  • 101
  • 1
  • 7
5
votes
1 answer

Maven: Use the filtering mechanism for text files not under 'resources'?

I need to customize a number of XML files which are not under resources (in particular, they are under an EAR's project src/main/application). The filtering mechanism would be perfect for this, but my understanding (correct?) is that it works for…
wishihadabettername
  • 14,231
  • 21
  • 68
  • 85
5
votes
1 answer

maven-ear-plugin - How to manipulate Manifest.MF of webModule and ejbModule?

I have a multimodule maven project with the following structure: app (parent) -- pom.xml -- app-ear -- pom.xml -- app-ejb -- src -- pom.xml -- app-web -- src -- pom.xml app/pom.xml This is my…
Mauricio
  • 53
  • 1
  • 4
4
votes
1 answer

maven-ear-plugin and JBoss AS 7

I am in the process of migrating to JBoss AS 7, and using maven build, seems to me the maven-ear-plugin does not support JBoss AS 7 yet. By default it uses JBoss AS 4. Does this cause problem? I am also still trying to figure out as I go along how…
TS-
  • 4,311
  • 8
  • 40
  • 52
4
votes
1 answer

How to replace file inside JAR which is inside RAR in Maven EAR build

I'm trying to build an EAR that consist of some resource adapter (let's call it resource.rar) and some other JARs. resource.rar contains several JARs: - resource-api.jar - resource-impl.jar - resource-ejb.jar - others... What I need to do is to…
Pidzama
  • 53
  • 6
4
votes
2 answers

Eclipse m2e-wtp plugin constantly overwriting application.xml

I've inherited a project where we already have an application.xml file for my maven-ear-plugin project. We have to use that. But when I import this bloody project into eclipse, it is constantly overwriting this file - I have to go to local history…
user937347
  • 41
  • 2
4
votes
2 answers

How to make the Maven EAR Plugin automatically manage the classpath for dependencies?

I started using the maven ear plugin about 12 months ago and want to find out if there are any alternatives. One of the benefits of Maven is the dependency management however you seem to almost completely lost this with the ear plugin. It builds all…
James
  • 3,597
  • 11
  • 47
  • 57
4
votes
1 answer

Build an ear using maven

I am new with maven, i have a task to change building of an ear from ant build to maven build. Are somewhere some tutorials related to this, how to build an ear using maven ? Please guide me if you know something related to this.... Thanks…
Mircea
  • 49
  • 1
  • 1
  • 2
4
votes
0 answers

Generate resource-env-ref entries in maven-ear-plugin generated application.xml

so the need is to add resource-env-ref entries in a maven project who's application.xml is generated by maven-ear-plugin. Checked with the source of the plugin and there's nothing even remotely close to resource-env-ref. And it's difficult to…
3
votes
1 answer

How to tell maven to copy a certain project jar to the EAR lib?

I have an application with many sub projects, currently I use maven2 to compile and package it to an EAR which is then deployed on JBOSS 4.2.3. Up until now all the jars where just sitting in the EAR root but now we moved to JBOSS 7.1 and in order…
Tomer
  • 17,787
  • 15
  • 78
  • 137
3
votes
1 answer

Maven EAR plugin: Adding generated resources

In a custom Maven plugin, I add a file as resource by using the addResource of MavenProject. This works well for JAR projects, but for EARs, I see that the relevant file is copied to target/classes and then ignored. It is not present in the…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
3
votes
1 answer

Deactivate maven-ear-plugin

The goal ear:ear is automatically attached to the package phase if one builds an ear. I would like to eliminate it. Unfortunately, it has no skip parameter. How can I "deattach" a goal from a phase?
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142