Add jar to EAR in Eclipse
        Posted  
        
            by Gerard
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Gerard
        
        
        
        Published on 2010-03-24T13:30:16Z
        Indexed on 
            2010/03/24
            13:33 UTC
        
        
        Read the original article
        Hit count: 445
        
I have several projects in an EAR in Eclipse. These projects themselves have dependency jar's on the build path marked as "do not export, do not contribute to others".
Now in Eclipse I add jar's to the EAR via the EAR properties "Java EE Module Dependencies". I browse to the jar (add jar) and click ok. The jar is added to the list.
When I click apply, the added jar is gone from the list, it cannot be found in other properties, it is contained in the hidden folder .settings in the file org.eclipse.wst.common.component.
This behaviour does not make much sense to me, what am I missing?
© Stack Overflow or respective owner