When workspace project dependencies are closed, m2e/m2e-wtp reference
binaries from your local repo, if they exist.
I assume the glassfish server adapter never unpacks referenced binaries by
default. And I don't know if you can force it to unpack such dependencies.
I hardly use glassfish so you'll have better luck asking the glassfish
tools team.

Regards,

Fred Bricon

On Tue, Sep 25, 2012 at 11:21 PM, Steve Hostettler <steve.hostett...@b-i.com
> wrote:

> Thanks for the quick answer. I will ask the glassfish plugin team but just
> to be sure that I am clear. The problem occurs as soon as one of the
> projects is closed.
> I assume that the default policy in that case is to use the jar instead of
> a directory. Are you aware of such a rule?
>
> Steve
>
> Thanks again and I'll come back with
>
> On Sep 25, 2012, at 4:33 PM, Fred Bricon wrote:
>
> m2e-wtp doesn't do any deployment by itself. This is the server adapter
> responsibility to unpack archives during deployment. I *think*, you should
> ask on  https://forums.oracle.com/forums/forum.jspa?forumID=578 or
> whatever place you can find support for the glassfish server adapter (let
> me know if you find out)
>
> Regards,
>
> Fred Bricon
>
> On Tue, Sep 25, 2012 at 2:38 PM, Steve Hostettler <
> steve.hostett...@b-i.com<mailto:steve.hostett...@b-i.com>> wrote:
> Hello,
>
> first let me thanks the m2e* team for the great job. I work on a rather
> large project organized as follow:
>
> -EAR
>
> -EJB A1
> -EJB A2
> -WAR A3
>
>
> -EJB C1
> -EJB C2
> -WAR C3
>
> -EJB C1
> -EJB C2
> -WAR C3
>
> Developers usually only work on one or two projects. Say EJB A2 and WAR
> A3. The other dependencies are pulled from the nexus.
>
> Now the problem is that I would like to test the whole thing (that is the
> ear). When deploying the ear on glassfish under eclipse I get the following
> error message:
> "Expected to find an expanded directory for submodule {0} but found a JAR.
> If this is a directory deployment be sure to expand all submodules."
>
> I tried to put <unpack>true</unpack>  on all modules of the pom.xml but it
> did not solve the problem
>
> This comes from the fact that m2e-wtp do not unpack the jars/wars that are
> not part of the workspace.
>
>
> Have someone any idea on how to solve that?
>
>
> Many thanks in advance
> Steve
> _______________________________________________
> m2e-users mailing list
> m2e-users@eclipse.org<mailto:m2e-users@eclipse.org>
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
> _______________________________________________
> m2e-users mailing list
> m2e-users@eclipse.org<mailto:m2e-users@eclipse.org>
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>



-- 
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to