You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "mike perham (JIRA)" <ji...@codehaus.org> on 2005/11/08 18:15:06 UTC

[jira] Created: (MNG-1461) EAR plugin ignores application XML setting

EAR plugin ignores application XML setting
------------------------------------------

         Key: MNG-1461
         URL: http://jira.codehaus.org/browse/MNG-1461
     Project: Maven 2
        Type: Bug
  Components: maven-ear-plugin  
    Versions: 2.0    
    Reporter: mike perham


In EarMojo.java:

    /**
     * The location of the application.xml file to be used within the ear file.
     *
     * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
     */
    private File applicationXmlFile;


I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50357 ] 

mike perham commented on MNG-1461:
----------------------------------

Stephane, thanks.  Unfortunately I'm limited by my IDE, IBM's Rational Software Architect, to keeping the META-INF contents off the project basedir (i.e. ${basedir}/META-INF.  If you think about it, the plugin does not support this layout because resources have to be placed in a subdirectory.  Do you know of any way to support this layout?  I've modified the ear plugin to check for the existence of a META-INF off the project root directory and automatically copy its contents to the EAR's META-INF but I can't think of any cleaner way of dealing with it.

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_51161 ] 

Stephane Nicoll commented on MNG-1461:
--------------------------------------

Please do not reopen this issue ; it has nothing to do with that. Let's keep things cleany separated.

No, I didn't add the property. You can user earSourceIndules META-INF/** 

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.0.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50352 ] 

Stephane Nicoll commented on MNG-1461:
--------------------------------------

You are right, it's not used anywhere.

As a workaround:

#1 Check the documentation:
http://maven.apache.org/plugins/maven-ear-plugin/generate-application-xml-mojo.html

You can disable application.xml generation: 
<generateApplicationXml>false</generateApplicationXml>

#2 Make sure that your custom application.xml is located in a resources directory picked up by the EAR plugin. A good example is:
src/main/application/META-INF/application.xml

Thanks for reporting the issue.





> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-1461) EAR plugin ignores application XML setting

Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1461?page=all ]
     
mike perham reopened MNG-1461:
------------------------------


I don't see the metainf property discussed in your comment.  Are you going to add it?

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.0.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50365 ] 

mike perham commented on MNG-1461:
----------------------------------

Well, RSA sees that myEar is an EAR project (via an eclipse nature in .project) and expects the application.xml file to be in myEar/META-INF.  pom.xml is in myEar.  But if I set the source dir as you suggest, the ear will contain itself because the myEar/target directory will be recursively included.  Does that make more sense?

Exactly.  Your suggestion would solve the problem.

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1461?page=all ]
     
Stephane Nicoll closed MNG-1461:
--------------------------------

     Resolution: Fixed
    Fix Version: 2.0.1

This is done

custom application.xml can now be specified properly. Overrides any other file found in the source directories

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.0.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1461?page=all ]
     
Stephane Nicoll closed MNG-1461:
--------------------------------

    Resolution: Fixed

Please open a separate change request if you want the metaInf property. 

Thanks.

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.0.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50363 ] 

Stephane Nicoll commented on MNG-1461:
--------------------------------------

Ok OK I got your problem. You have to place META-INF info in some src/some-dir.

I will see if I can do something about this too.  You will need a property like metaInfSourceDirectory where all content would be moved to the META-INF of the EAR, right?

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MEAR-2) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MEAR-2?page=all ]
     
Stephane Nicoll closed MEAR-2:
------------------------------

     Resolution: Fixed
    Fix Version: 2.1

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MEAR-2
>          URL: http://jira.codehaus.org/browse/MEAR-2
>      Project: Maven 2.x Ear Plugin
>         Type: Bug

>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_50360 ] 

Stephane Nicoll commented on MNG-1461:
--------------------------------------

Mike,

If you are limited by you IDE (I don't get you on this BTW), change the earSourceDirectory settings
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html

<earSourceDirectory>/home/mike/some-dir/</earSourceDirectory>

In some-dir create a META-INF and put your application.xml.

I don't know if it's your current issue. Anyway, I am expecting to fix this by the end of the week. Stay tuned.

> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MEAR-2) EAR plugin ignores application XML setting

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MEAR-2?page=all ]
     
Stephane Nicoll reopened MEAR-2:
--------------------------------


> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MEAR-2
>          URL: http://jira.codehaus.org/browse/MEAR-2
>      Project: Maven 2.x Ear Plugin
>         Type: Bug

>     Reporter: mike perham
>     Assignee: Stephane Nicoll

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1461) EAR plugin ignores application XML setting

Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1461?page=comments#action_51166 ] 

mike perham commented on MNG-1461:
----------------------------------

This works.  Thanks Stephane for your help!!!

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<version>2.1-SNAPSHOT</version>
                <configuration>
                    <defaultJavaBundleDir>lib/</defaultJavaBundleDir>
                    <earSourceDirectory>${basedir}</earSourceDirectory>
                    <earSourceIncludes>META-INF/**</earSourceIncludes>
                </configuration>
            </plugin>


> EAR plugin ignores application XML setting
> ------------------------------------------
>
>          Key: MNG-1461
>          URL: http://jira.codehaus.org/browse/MNG-1461
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: mike perham
>     Assignee: Stephane Nicoll
>      Fix For: 2.0.1

>
>
> In EarMojo.java:
>     /**
>      * The location of the application.xml file to be used within the ear file.
>      *
>      * @parameter expression="${basedir}/src/main/application/META-INF/application.xml"
>      */
>     private File applicationXmlFile;
> I set this and Maven still generates an application.xml file anyways.  Checking the code, this variable is never actually referenced anywhere so it appears impossible to use the EAR plugin with a pre-written application.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org