application.xml gets changed.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

application.xml gets changed.

Timothy Mcginnis

Hi all,

I have another issue.

In my multi-module project I have an ear project that contains a application.xml file.

my-project
    my-project-core
    my-project-ear
        src/main/application/web-app/META-INF/application.xml
    my-project-war

The ear looks like this when I pull it out of SCM.

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <description>This subproject is the EAR project for the web application.</description>
  <display-name>content-manager-ear</display-name>
  <module>
    <web>
      <web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
      <context-root>ContentMgrWeb</context-root>
    </web>
  </module>
</application>

Note the context-root tag in the web module.

When I import the subproject as a maven module for some reason it changes that context-root and now my application.xml looks like this.

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <description>This subproject is the EAR project for the web application.</description>
  <display-name>content-manager-ear</display-name>
  <module>
    <web>
      <web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
      <context-root>content-manager-web-1.0.4-SNAPSHOT</context-root>
    </web>
  </module>
</application>

Once it is imported and I replace the application.xml with the correct version it will stay that way.  There seems to be something in the import process that is changing it.  Any ideas?

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

Reply | Threaded
Open this post in threaded view
|

Re: application.xml gets changed.

Timothy Mcginnis

I forgot to say several things.

I am working in RSA 7.5.4 with m2eclipse 0.9.8.200905041414

My ear pom.xml contains the following build stanza to, hopefully, set the context -root.

<build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <configuration>
                                        <version>5</version>
                                        <generateApplicationXml>true</generateApplicationXml>
                                        <modules>
                                                <webModule>
                                                        <groupId>com.aes.common.content-manager</groupId>
                                                        <artifactId>content-manager-web</artifactId>
                                                        <contextRoot>ContentMgrWeb</contextRoot>
                                                        <bundleFileName>content-manager-web-${version}.war</bundleFileName>
                                                </webModule>
                                        </modules>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA



From: [hidden email]
To: [hidden email]
Date: 01/05/2010 03:22 PM
Subject: [m2eclipse-user]  application.xml gets changed.






Hi all,


I have another issue.


In my multi-module project I have an ear project that contains a application.xml file.


my-project

   my-project-core

   my-project-ear

       src/main/application/web-app/META-INF/application.xml

   my-project-war


The ear looks like this when I pull it out of SCM.


<?
xml version="1.0" encoding="UTF-8"?>
<
application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
 
<description>This subproject is the EAR project for the web application.</description>
 
<display-name>content-manager-ear</display-name>
 
<module>
   
<web>
     
<web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
     
<context-root>ContentMgrWeb</context-root>
   
</web>
 
</module>
</
application>

Note the context-root tag in the web module.


When I import the subproject as a maven module for some reason it changes that context-root and now my application.xml looks like this.


<?
xml version="1.0" encoding="UTF-8"?>
<
application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
 
<description>This subproject is the EAR project for the web application.</description>
 
<display-name>content-manager-ear</display-name>
 
<module>
   
<web>
     
<web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
     
<context-root>content-manager-web-1.0.4-SNAPSHOT</context-root>
   
</web>
 
</module>
</
application>

Once it is imported and I replace the application.xml with the correct version it will stay that way.  There seems to be something in the import process that is changing it.  Any ideas?


Tim McGinnis
717 720-1962
Web Development
AES/PHEAA

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

Reply | Threaded
Open this post in threaded view
|

Re: application.xml gets changed.

Fred Bricon
EAR support was somewhat limited in m2e 0.9.8.
application.xml was mostly controled by WTP (which uses the project name as context root by default)

Things have been significantly improved with m2e 0.9.9 -hopefully-. Try the latest development version if you can.

regards,

Fred Bricon.

On Tue, Jan 5, 2010 at 9:25 PM, <[hidden email]> wrote:

I forgot to say several things.

I am working in RSA 7.5.4 with m2eclipse 0.9.8.200905041414

My ear pom.xml contains the following build stanza to, hopefully, set the context -root.

<build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ear-plugin</artifactId>
                                <configuration>
                                        <version>5</version>
                                        <generateApplicationXml>true</generateApplicationXml>
                                        <modules>
                                                <webModule>
                                                        <groupId>com.aes.common.content-manager</groupId>
                                                        <artifactId>content-manager-web</artifactId>
                                                        <contextRoot>ContentMgrWeb</contextRoot>
                                                        <bundleFileName>content-manager-web-${version}.war</bundleFileName>
                                                </webModule>
                                        </modules>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA



From: [hidden email]
To: [hidden email]
Date: 01/05/2010 03:22 PM
Subject: [m2eclipse-user]  application.xml gets changed.






Hi all,


I have another issue.


In my multi-module project I have an ear project that contains a application.xml file.


my-project

   my-project-core

   my-project-ear

       src/main/application/web-app/META-INF/application.xml

   my-project-war


The ear looks like this when I pull it out of SCM.


<?
xml version="1.0" encoding="UTF-8"?>
<
application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
 
<description>This subproject is the EAR project for the web application.</description>
 
<display-name>content-manager-ear</display-name>
 
<module>
   
<web>
     
<web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
     
<context-root>ContentMgrWeb</context-root>
   
</web>
 
</module>
</
application>

Note the context-root tag in the web module.


When I import the subproject as a maven module for some reason it changes that context-root and now my application.xml looks like this.


<?
xml version="1.0" encoding="UTF-8"?>
<
application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
 
<description>This subproject is the EAR project for the web application.</description>
 
<display-name>content-manager-ear</display-name>
 
<module>
   
<web>
     
<web-uri>content-manager-web-1.0.4-SNAPSHOT.war</web-uri>
     
<context-root>content-manager-web-1.0.4-SNAPSHOT</context-root>
   
</web>
 
</module>
</
application>

Once it is imported and I replace the application.xml with the correct version it will stay that way.  There seems to be something in the import process that is changing it.  Any ideas?


Tim McGinnis
717 720-1962
Web Development
AES/PHEAA

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================

==============================================================================
This message contains privileged and confidential information intended for the above addressees only.  If you
receive this message in error please delete or destroy this message and/or attachments.  

The sender of this message will fully cooperate in the civil and criminal prosecution of any individual engaging
in the unauthorized use of this message.
==============================================================================