I read http://felix.apache.org/site/maven-bundle-plugin-bnd.html and
used the information there to get a "library plugin" to build, that
holds jars from other projects, as an Eclipse plug-in.
I followed the suggestions in the section of the above documentation
titled Eclipse/PDE Integration. Everything seemed to work OK, but other
plugins which depended on this library plugin couldn't see the classes,
when the plug-in project was "open". I finally discovered that the
eclipse:eclipse run I did on this project had set up links to the
referenced jars, (because I didn't run eclipse:eclipse from a super
POM), and then put in classpath entries for those links. The classpath
entries in the .classpath file looked like:
<classpathentry kind="lib"
path="target/dependency/uimaj-examples-2.3.0-incubating-SNAPSHOT.jar"/>
To get this to work, I had to change these to
<classpathentry exported="true" kind="lib"
path="target/dependency/uimaj-examples-2.3.0-incubating-SNAPSHOT.jar"/>
which I could do in the editor, or by going to the project properties,
picking Java Build Path, and picking the right-most tab - order and
export, and checking the "export" box.
Is this lack of setting the exported="true" flag in this case a bug in
eclipse:eclipse, or am I approaching this in the wrong way?
I did scan the eclipse:eclipse (maven-eclipse-plugin) source to see if I
could see where they might deal with exported="true", but didn't get any
hits.
Thanks for any insights.
-Marshall Schor (Committer on the UIMA incubator project, trying to get
our Eclipse plugin builds to be more maven - standardized)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]