Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Embed-Dependency are not copied to the project anymore

I think your setup is close to what we have in m2e, where m2e embedded
maven runtime is a meven-bundle-plugin project with <embed-dependency>
and m2e-core is a pde/tycho project that depends on the embedded
runtime.

Everything works with 3.8M5 (PDE is broken in M6, so you want
to skip that) and m2e 1.1M6. I do not remember if m2e 1.0 is expected to
work, I stopped using it after we introduced consolidated update maven
project UI in 1.1 ;-)

--
Regards,
Igor

On 12-03-23 2:00 AM, Yves Langisch wrote:
Just inside Eclipse. If I want to use a class from the wrapper bundle in
another plugin which has the wrapper bundle declared as Require-Bundle.
After manually copying the wrapped jars into the jars folder all is fine.

Please have a look to the attached screenshot showing the issue.

minishow-common-dependencies is my wrapper bundle. The automatically
creation of the MANIFEST.MF works fine. I use this wrapper bundle in the
plugin above. But as long as long as I do not add the wrapped jars
folder manually (highlighted) the Client class does not see my restlet
classes and the Eclipse compiler cannot resolve them.

Thanks
Yves



On Mar 23, 2012, at 1:56 AM, Igor Fedorenko wrote:

How do you run your app and/or tests that "do cannot see" the classes
from embedded dependencies?

--
Regards,
Igor

On 12-03-22 5:52 PM, Yves Langisch wrote:
Hi,

I use the maven-bundle-plugin to generate a wrapper bundle. Before
the reworked<Embed-Dependency> support [1] I was able to properly
import the project into Eclipse using m2e. With the appropriate
lifecycle mapping the MANIFEST.MF was created and the dependencies
have been copied into the project directory (folder jar
with<Embed-Directory>jars<Embed-Directory>).

Now with the new version I had to remove the mapping. The MANIFEST.MF
is generated but the Embed-Directory is missing now. My classpath
entries in the manifest look like e.g. 'jars/restlet.jar,...' which
is fine. But since the jars are not in place the path is not valid
and the referencing plugins cannot see the exported restlet classes.

How can I make this work again with m2e 1.0 / 0.6.0 ?

[1]
https://github.com/sonatype/m2eclipse-tycho/commit/52acd659504dfb55306f6d06d569f7d2f8752cfc

Thanks Yves



_______________________________________________ m2e-users mailing
list m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/m2e-users




_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top