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

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


    [ https://issues.jboss.org/browse/JBIDE-10590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654070#comment-12654070 ] 

erik van altena commented on JBIDE-10590:
-----------------------------------------

Ah, upon inspecting for another issue I filed I discovered that you can override the deployment name by double clicking the server runtime and then selecting the deployment tab. That works and that at least makes the issue a minor one.

But then I run into the next oddity: the settings for the war module seem to be ignored out of the box. The deployment tab mentions the war module as being deployed as 'app-web.war' while in fact it ends up in the deployments directory as 'app-web-1.0.0-SNAPSHOT.war', just like Maven would name it if you don't provide a finalName. However, as soon as I tab over the deployment location and save the changes to the runtime configuration, upon full publish the web module gets the directory name as it is listed in the deployments tab.
                
> 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