[jbosstools-issues] [JBoss JIRA] (JBIDE-10590) maven integration - finalName is ignored

erik van altena (Created) (JIRA) jira-events at lists.jboss.org
Thu Jan 5 09:38:09 EST 2012


maven integration - finalName is ignored
----------------------------------------

                 Key: JBIDE-10590
                 URL: https://issues.jboss.org/browse/JBIDE-10590
             Project: Tools (JBoss Tools)
          Issue Type: Enhancement
          Components: maven
    Affects Versions: 3.3.0.M5
            Reporter: erik van altena
            Assignee: Fred Bricon


I'm not sure if this belongs under the hood of the m2eclipse plugin or JBoss Tools; it seems that m2eclipse could also be to blame if I see what is created in the target directories. Anyway, I'll report the problem just in case it is helpful.


I have a simple Mavenized project with a parent pom that manages an ejb, war and ear module that I hot-deploy to a JBoss 7 server (by dragging the ear module to the server runtime). Pretty much the average JEE application structure. 

When you provide a finalName in for example the maven EAR plugin, that is the name that Maven will give to the produced ear file. JBoss Tools however seems to ignore the finalName and uses the name of the Eclipse project (or the directory name as the module exists on disc) as the deployed name. An example will help to illustrate that:

ear module as it exists on disc: myproject-ear
finalName mentioned in the ear plugin: myproject

Maven will then produce a myproject.ear, JBoss Tools will hot-deploy a myproject-ear.ear


This may seem trivial, but this will break code that does manual JDNI lookups as the global jndi name of EJBs changes.

Similarly: the bundleFileName property of the Maven ear plugin will alter the resulting filename of packaged child modules and should also be considered by JBoss Tools during publishing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list