You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by TonyDrago <do...@yahoo.co.uk> on 2006/07/12 21:30:39 UTC

building source with Eclipse & Maven2

Hi,

I'm trying to build the latest snapshot of the ServiceMix source with
Eclipse/Maven. Here are the steps I followed:

1. with the current directory set to
apache-servicemix-3.0-incubating-SNAPSHOT/src, I built the source with maven
via "mvn install -Dmaven.test.skip=true"

2. built Eclipse projects via "mvn eclipse:eclipse"

3. using Eclipse's "Import" feature, I selected "Existing Projects into
Workspace". I set the root directory to
apache-servicemix-3.0-incubating-SNAPSHOT/src, and this imported the source
as 26 separate projects:

http-su
jbi-maven-plugin
...
servicemix-wsn2005

Steps 1 and 2 worked fine. But when I imported te projects into Eclipse, the
following projects have errors

servicemix-binding-component
servicemix-sca
servicemix-service-engine

The classes in both servicemix-service-engine and
servicemix-binding-component have the following package statement:

package ${packageName};

which is obviously an error. In the case of servicemix-sca the following
import is failing:

import javax.xml.bind.annotation.AccessType;

I'm not sure why everything builds fine from the command-line with maven,
but I'm having problems in Eclipse?

Thanks in Advance,
Tony
-- 
View this message in context: http://www.nabble.com/building-source-with-Eclipse---Maven2-tf1933055.html#a5295860
Sent from the ServiceMix - User forum at Nabble.com.


Re: building source with Eclipse & Maven

Posted by TonyDrago <do...@yahoo.co.uk>.
Thanks! There doesn't seem to be a new snapshot release with the fix, but I
guess you just need to change all the references from:

javax.xml.bind.annotation.AccessType

to

javax.xml.bind.annotation.XmlAccessType

At least it compiles if you do that :)
-- 
View this message in context: http://www.nabble.com/building-source-with-Eclipse---Maven2-tf1933055.html#a5308352
Sent from the ServiceMix - User forum at Nabble.com.


Re: building source with Eclipse & Maven

Posted by Philip Dodds <ph...@gmail.com>.
The servicemix-service-engine and servicemix-binding-component are actually
Maven2 archetypes and therefore aren't real projects that run in Eclipse (so
you probably don't want to import them into Eclipse).  The problem with the
AccessType was corrected earlier this week :)

P

On 7/12/06, TonyDrago <do...@yahoo.co.uk> wrote:
>
>
> Hi,
>
> I'm trying to build the latest snapshot of the ServiceMix source with
> Eclipse/Maven. Here are the steps I followed:
>
> 1. with the current directory set to
> apache-servicemix-3.0-incubating-SNAPSHOT/src, I built the source with
> maven
> via "mvn install -Dmaven.test.skip=true"
>
> 2. built Eclipse projects via "mvn eclipse:eclipse"
>
> 3. using Eclipse's "Import" feature, I selected "Existing Projects into
> Workspace". I set the root directory to
> apache-servicemix-3.0-incubating-SNAPSHOT/src, and this imported the
> source
> as 26 separate projects:
>
> http-su
> jbi-maven-plugin
> ...
> servicemix-wsn2005
>
> Steps 1 and 2 worked fine. But when I imported te projects into Eclipse,
> the
> following projects have errors
>
> servicemix-binding-component
> servicemix-sca
> servicemix-service-engine
>
> The classes in both servicemix-service-engine and
> servicemix-binding-component have the following package statement:
>
> package ${packageName};
>
> which is obviously an error. In the case of servicemix-sca the following
> import is failing:
>
> import javax.xml.bind.annotation.AccessType;
>
> I'm not sure why everything builds fine from the command-line with maven,
> but I'm having problems in Eclipse?
>
> Thanks in Advance,
> Tony
> --
> View this message in context:
> http://www.nabble.com/building-source-with-Eclipse---Maven2-tf1933055.html#a5295860
> Sent from the ServiceMix - User forum at Nabble.com.
>
>