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

Fred Bricon (Resolved) (JIRA) jira-events at lists.jboss.org
Thu Jan 5 10:23:09 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-10590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon resolved JBIDE-10590.
---------------------------------

        Labels: m2e-wtp upstream wtp  (was: )
    Resolution: Migrated to another ITS


The finalName issue is a known bug in Eclipse WTP, you can follow up progress here : https://bugs.eclipse.org/bugs/show_bug.cgi?id=340918

The current workaround, as you noticed, is to use the deployment tab of JBoss AS.

The fact the modules names are overridden in that tab is a different issue. Module names should be initialized with the corresponding archiveName in the EAR component descriptor. Can you open a different bug on the JBossAS/Servers component?

I'm closing this issue as out-of-scope.
                
> 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
>              Labels: upstream, m2e-wtp, wtp
>
> 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