maven-ear-plugin

JBoss EAR deployment order

风流意气都作罢 提交于 2020-02-02 06:25:07
问题 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. All 5 of the EARs are located in the deployments folder. I read here that I can use jboss-deployment-structure.xml to manage the order of EAR deployment, but I ran into some issues. The file I made looks like this: <?xml version="1.0" encoding="UTF

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

会有一股神秘感。 提交于 2019-12-30 08:13:15
问题 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 implementation of Shiro's Permission interface as an entity in this persistence unit, I had trouble getting the ear to deploy correctly, because the shiro classes where unavailable in the persistence unit. I eventually figured out that I needed to

How to remove version number from war file

我与影子孤独终老i 提交于 2019-12-30 04:46:26
问题 I have a Dependency in child pom like this. <dependencies> <dependency> <groupId>sample-groupID</groupId> <artifactId>sfint</artifactId> <version>1.0.0-SNAPSHOT</version> <type>war</type> </dependency> </dependencies> And I am using maven-ear-plugin. <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven.ear.plugin</artifactId> <version>2.10</version> <configuration> <modules> <webModule> <groupId>sample-gropuID</groupId> <artifactId>sfint</artifactId> <version>1.0.0

How do I upgrade the version of a maven plugin?

怎甘沉沦 提交于 2019-12-20 08:26:27
问题 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? 回答1: The default plugin versions are inherited from the Super POM, and you can check them with mvn help:effective-pom . If you want to override the version provided there, add this to your POM: <project> <build> <plugins> <plugin> <artifactId>maven-ear-plugin</artifactId> <version>2.3.1</version> <

How to add WAR inside EAR with Maven

别来无恙 提交于 2019-12-17 17:39:09
问题 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 application.xml. I would like to automate that. EDIT: small clarification - the WAR project is using maven but for EAR I have only the binary file nothing more. 回答1: I'd create a new module that has <packaging>ear</packaging> . In the dependencies

Create complete EAR Project with Maven and Eclipse Helios

旧时模样 提交于 2019-12-17 15:44:37
问题 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 structure (like a regular dynamic web project). This should result in a WAR file. server project with the ejbs. This should be a JAR file. ear project which joins both projects together. I tried that with help of the integrated maven plugin in

Maven2: Best practice for Enterprise Project (EAR file)

一个人想着一个人 提交于 2019-12-17 02:17:15
问题 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 encapsulating EAR file, with the corresponding deployment descriptors. How would I go about it? Create the project with archetypeArtifactId=maven-archetype-webapp as with a war file, and extend from there? What is the best project structure (and

How can I force the Maven EAR plugin to use a context root variable within application.xml?

泪湿孤枕 提交于 2019-12-13 00:45:25
问题 I'm using the Maven EAR plugin to generate the application.xml of my EAR, which contains a WAR. I want the contextRoot of that WAR to be determined at runtime (this works thanks to JBoss AS 7), so the application.xml should contain something like this: <module> <web> <web-uri>my.war</web-uri> <context-root>${my.context.root}</context-root> </web> </module> This works by setting the System Property my.context.root within JBoss AS 7 and configuring JBoss to replace variables within XML

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

a 夏天 提交于 2019-12-12 10:53:25
问题 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 project and I can create the EAR using mvn package command from Run Configurations. However, that EAR cab not be deployed to Websphere Application Server. So, what I want to understand is: Is there a way to create an EAR that can be deployed to Websphere

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

烂漫一生 提交于 2019-12-12 02:57:10
问题 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 for http://maven.apache.org/plugins/maven-assembly-plugin/ 回答1: Yes, it does. Just specify in your assembly descriptor: <formats> <format>ear</format> </formats> 回答2: It can but you should use the maven-ear-plugin instead, cause it know better about ejbs etc. of