I have a two questions regarding the Maven Eclipse plugin and
especially its PDE mode...

1) I would like to use ${groupId}.${artifactId} instead of the
artifact ID alone as project name in .project and (more importantly)
as Bundle-SymbolicName in META-INF/MANIFEST.MF. Is this possible?

2) In PDE mode the plugin creates <linkedResources> in the .project
file.. At this point it uses the absolute path of the jar file for the
<location> element. I think a better solution would be to define a
path variable (similar to M2_REPO) under
"Preferences/General/Workspace/Linked Resources" and make the location
relative to that path variable. "mvn eclipse:add-maven-repo" should
also add this variable to the workspace.

The absolute path should be removed from source attachments in
.classpath too. One way to accomplish this would be to create another
link in .project and use it as sourcepath in .classpath.

Here's an example that seems to work:

.project:
 <linkedResources>
   <link>
     <name>ognl-2.6.9.jar</name>
     <type>1</type>
     <location>M2/ognl/ognl/2.6.9/ognl-2.6.9.jar</location>
   </link>
   <link>
     <name>ognl-2.6.9-sources.jar</name>
     <type>1</type>
     <location>M2/ognl/ognl/2.6.9/ognl-2.6.9-sources.jar</location>
   </link>
 </linkedResources>

.classpath:
 <classpathentry kind="lib" path="ognl-2.6.9.jar"
sourcepath="ognl-2.6.9-sources.jar"/>

where M2 is a path variable defined under
"Preferences/General/Workspace/Linked Resources" or in
~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
respectively.

Thanks
Markus

--
Always remember you're unique. Just like everyone else.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to