After Maven build can not upload EAR to WebSphere Correctly [message #1816364] |
Mon, 28 October 2019 13:02 |
Eyal Goren Messages: 1 Registered: October 2019 |
Junior Member |
|
|
Hi,
We have a Maven project that has a module of WAR, and a Module of EAR that contains it, after the Maven runs and the EAR is build, I can upload it directly to WebSphere, and it works.
But If I try to do it from Eclipse, after the Server is defined, Idefined in the project facet the type EAR, so when I want to add a resource, I can, but when I "open" the resource, I see twice the war.
When I check in the file looseconfig.xmi, I see that it contains-
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.jst.j2ee.commonarchivecore.looseconfig:LooseArchive xmi:version="2.0" xmlns:xmi="<link>" xmlns:org.eclipse.jst.j2ee.commonarchivecore.looseconfig="commonarchive.looseconfig.xmi" uri="<ProjectLocation>" binariesPath="<ProjectLocation>" resourcesPath="<ProjectLocation>" archiveType="EAR">
<looseChildren uri="<ProjectName>Ear/target/<ProjectName>Ear/<ProjectName>Web-1.0.0-SNAPSHOT.war" binariesPath="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\<ProjectName>\<ProjectName>Web-1.0.0-SNAPSHOT.war" resourcesPath="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\<ProjectName>\<ProjectName>Web-1.0.0-SNAPSHOT.war" archiveType="WAR"/>
<looseChildren uri="<ProjectName>Web/target/<ProjectName>Web-1.0.0-SNAPSHOT.war" binariesPath="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\<ProjectName>\<ProjectName>Web-1.0.0-SNAPSHOT.war" resourcesPath="C:/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\<ProjectName>\<ProjectName>Web-1.0.0-SNAPSHOT.war" archiveType="WAR"/>
</org.eclipse.jst.j2ee.commonarchivecore.looseconfig:LooseArchive>
Looks like instead of detecting the WAR in the EAR, it detect the WARs on the Maven project.
Any idea what is wrong here?
Thanks
Eyal
|
|
|
Powered by
FUDForum. Page generated in 0.02092 seconds