Hi, I'm using Maven 3.0.3 with WebSphere 6.1. In my src/main/webapp/META-INF/application.xml file, I have
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application> <display-name>myco</display-name> <module> <web> <web-uri>myco-app-1.0-SNAPSHOT.war</web-uri> <context-root>myco</context-root> </web> </module> </application> I had to change the "web-uri" component to match the WAR file generated by Maven, otherwise, my app doesn't deploy. Problem is, with each incremental build, I have to change this file by hand. Is there a way I can get Maven to auto-generate the file for me when it builds the EAR? Here's my pom.xml ... <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.company.mycousa.myco</groupId> <artifactId>super-pom</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>myco Super POM</name> <modules> <module>myco-app</module> <module>myco-app-ear</module> <module>myco-web</module> </modules> </project> Thanks, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Can-Maven-dynamically-change-my-application-xml-file-tp4426525p4426525.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
