2009/1/25 Thiago Moreira (timba) <[email protected]>

>  Hi there,
>
>  I'm trying to build and install a Eclipse plugin using the
> maven-bundle-plugin, but until now I was unable. I have two questions!
>
>   - How can I reference on the pom.xml the dependecies that my project need
>   from the Eclipse environment ?? Here is the list
>
> org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.jdt.core,
> org.eclipse.ui.console
>

you need to find a Maven repository that provides artifacts for these
packages
then you can include them in your pom.xml <dependencies> just like any other
Maven dependency

if you can't find a remote repository then the maven-eclipse-plugin can
generate
local artifacts based on your current Eclipse installation:

   http://maven.apache.org/plugins/maven-eclipse-plugin/to-maven-mojo.html

  - I'm working with SNAPSHOTs version, but apparently, Eclipse don't
>   accept String on the version field, like 1.2.3-SNAPSHOT, only 1.2.3.
> Someone
>   knows how to build a bundle based only on the number of the version of
> your
>   project??
>

when you create your bundle (or generate your Eclipse project files using
the
maven-eclipse-plugin) the version should be mapped automatically to a format
that Eclipse accepts, such as 1.2.3.SNAPSHOT - I've done this several times
without Eclipse complaining.

have you tried the recent 1.5.0-SNAPSHOT of the bundleplugin? this contains
a new version of the Bnd Tool which gives you great control over bundle and
package versions (ie. so you can drop the SNAPSHOT part if you want to)

otherwise send us a copy of your pom in case it's a configuration issue.

Thanks
>
>  Thiago Moreira
>

-- 
Cheers, Stuart

Reply via email to