[jbosstools-issues] [JBoss JIRA] (JBIDE-9778) Maven embedded projects are not properly generated as jars in the deploy folder
Fred Bricon (Resolved) (JIRA)
jira-events at lists.jboss.org
Wed Oct 5 05:42:16 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fred Bricon resolved JBIDE-9778.
--------------------------------
Resolution: Migrated to another ITS
It's an upstream (i.e. m2e-wtp) bug. I opened https://issues.sonatype.org/browse/MECLIPSEWTP-182 to follow up on the problem.
As a workaround, you need to manually add the correct source path folders in your org.eclipse.wst.common.component file :
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="java">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>
{noformat}
> Maven embedded projects are not properly generated as jars in the deploy folder
> -------------------------------------------------------------------------------
>
> Key: JBIDE-9778
> URL: https://issues.jboss.org/browse/JBIDE-9778
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: maven
> Affects Versions: 3.2.0.Final, 3.2.1.Final
> Environment: Eclipse Helios SR1
> Reporter: Eric B
> Assignee: Fred Bricon
> Labels: jar, maven
> Attachments: jboss tools maven bug - complete.zip, jboss tools maven bug - complete.zip, jboss tools maven bug.zip, Screenshot-engine-configuration-1.0-SNAPSHOT.jar .png
>
>
> I have a Maven eclipse webapp project created and deployed in my JBoss server. I have the deploy set to deploy as an exploded war, so I can see all the files that it produces in the deployment directory.
> My webapp project is dependent on another Eclipse project (server.jar artifact). If I have both projects open in Eclipse at the same time, everything works fine.
> My server.jar project is also dependent on other Eclipse projects (supportLib.jar). If I have those dependent projects opened at the same time, then the exploded jar file is invalid. Instead of exporting everything in src/main/java/* to the jar file, it exports everything from src/*. Consequently, the TopLevel in my jar file in the embedded projects is main.java.myTLD instead of myTLD.
> For example, if I have the supportLib.jar project with files "src/main/java/myTld/file.java" opened at the same time as server.jar and webapp.war, then the exported war for supportLib.jar in the webapp.war folder is contains "META-INF and main" rather than "META-INF and myTLD".
> I have updated to the latest version of JBoss Tools from the Helios update site and continue to see this problem.
--
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