You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Arnaud Quiblier <aq...@gmail.com> on 2006/03/22 23:04:55 UTC

[BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Hi folks,

I just download the SVN felix-trunk version recently repackaged.
And launch a maven2 install, as suggested in the "build-install.sh".
My just-newly-re-installed box was absolutely "virgin" ...
So after just few downloads (sic) and compilations, I get the following
error :


[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Felix Examples: Spell Check w/ Service Binder
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[...]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://cvs.apache.org/maven-snapshot-repository/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
[WARNING] Unable to get resource from repository apache.snapshots (
http://cvs.apache.org/maven-snapshot-repository)
Downloading:
http://m2.safehaus.org/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
[WARNING] Unable to get resource from repository safehaus (
http://m2.safehaus.org)
Downloading:
http://repo1.maven.org/maven2/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


It seems that the "servicebinder-1.0.pom" is unreachable.
So I check manually the maven2 repository :

http://cvs.apache.org/maven-snapshot-repository/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
=> this directory does not exists

http://m2.safehaus.org/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
=> This directory exists but does not contain the file "
servicebinder-1.0.pom" (contains just the corresponding jar)

http://repo1.maven.org/maven2/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
=> this directory does not exists


Then I check the corresponding pom :
"${FELIX_HOME}/org.apache.felix.examples.spellcheckbinder/pom.xml".
I see that the "servicebinder" dependency is flagged "provided", as you can
see below :

[...]
<dependency>
 <groupId>org.ungoverned.gravity.servicebinder</groupId>
 <artifactId>servicebinder</artifactId>
 <version>1.0</version>
 <scope>provided</scope>
</dependency>
[...]


So here my questions :
1/ May I do something wrong ?
2/ Should be a "provided" dependency downloaded during
compile-package-install time ?
3/ If yes, is there a repository where I can find the corresponding pom and
jar ? Should I add this repo to my "settings.xml" ?


Greetings,

--
</arnaud>

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Marcel Offermans <ma...@luminis.nl>.
On Saturday 25 March 2006 22:44, Enrique Rodriguez wrote:

> Please 'svn up'.

Yes, that works for me! :)

> In the same check-in, I added the Service Binder module to the Felix
> parent pom.  You should now be able to 'mvn install' in either the Felix
> parent directory or in the Service Binder module directory.

Ah yes, I just added the dependency manager to that pom too.

About testing, I guess we should somehow start integrating some tests into the 
repository too, but that's probably the subject for a different thread!

Greetings, Marcel

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Enrique Rodriguez <en...@gmail.com>.
Marcel Offermans wrote:
> On Saturday 25 March 2006 20:31, Enrique Rodriguez wrote:
> 
>> I checked a ported Service Binder into the Felix repo.  It builds and
>> installs into the Felix runtime OK for me.
> 
> I just tried to build it, but it complains about the "org.kxml.parser" package 
> being missing. I did a svn update, then went into the servicebinder folder 
> and did:
> 
> mvn install
> 
> Should I build the project in a different way to make this work?

Please 'svn up'.  I had an erroneous scope statement in the Service 
Binder pom that caused compiling to fail.  Since classes were being 
compiled with Eclipse, I didn't notice until I tried 'mvn clean install'.

In the same check-in, I added the Service Binder module to the Felix 
parent pom.  You should now be able to 'mvn install' in either the Felix 
parent directory or in the Service Binder module directory.

We still need to:

- test it more with bundles that depend on Service Binder
- switch the tutorial spellcheck example to use it
- mvn deploy it

Enrique

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Marcel Offermans <ma...@xs4all.nl>.
On Saturday 25 March 2006 20:31, Enrique Rodriguez wrote:

> I checked a ported Service Binder into the Felix repo.  It builds and
> installs into the Felix runtime OK for me.

I just tried to build it, but it complains about the "org.kxml.parser" package 
being missing. I did a svn update, then went into the servicebinder folder 
and did:

mvn install

Should I build the project in a different way to make this work?

Greetings, Marcel

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Enrique Rodriguez <en...@gmail.com>.
Arnaud Quiblier wrote:
> [...]
> <dependency>
>  <groupId>org.ungoverned.gravity.servicebinder</groupId>
>  <artifactId>servicebinder</artifactId>
>  <version>1.0</version>
>  <scope>provided</scope>
> </dependency>
> [...]

Arnaud,

I checked a ported Service Binder into the Felix repo.  It builds and 
installs into the Felix runtime OK for me.  I need another block of time to:

- test it more with bundles that depend on Service Binder
- wire it into the Felix parent pom
- switch the tutorial spellcheck example to use it
- deploy it

Until then I could use more eyes on it and any issues reported.

Enrique

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Arnaud Quiblier <aq...@gmail.com>.
Thanks for your reply Enrique.

You are not doing anything wrong.  The M2 setup is not complete.  The
> dependency (Service Binder) needs to be m2venized and 'mvn deploy'd.
> Neither Alex nor I caught this as we have the jar manually setup
> locally, since we use SB elsewhere.  We have a grant for SB so we are
> going to port it in the next couple days, to the org.apache.felix
> namespace and get it out to an M2 repo.


Great ! Not a problem to wait ...

The best thing you can do for now is manually add it to your local M2
> repo.  I forget the procedure for manually loading a jar; I recommend
> checking M2 doco or just wait a couple days.  When SB does move to Felix
> it will be as an M2 module anyway so you'll pick it up from an 'svn up'
> and 'mvn install'.


I've never done this before, but sounds like usefull. So I write here the
process, this could help someone.

The documentation your were talking about is "Guide to installing 3rd party
JARs" at
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html

1/ Download the ServiceBinder jar at
http://m2.safehaus.org/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.jar

2/ Go to the dir you download the jar, and execute :

mvn install:install-file -Dfile=servicebinder-1.0.jar \
    -DgroupId=org.ungoverned.gravity.servicebinder \
    -DartifactId=servicebinder -Dversion=1.0 -Dpackaging=jar

Now ServiceBinder is avalaible in your local repository.

--
</arnaud>

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by Enrique Rodriguez <en...@gmail.com>.
Arnaud Quiblier wrote:
> Hi folks,
> 
> I just download the SVN felix-trunk version recently repackaged.
> And launch a maven2 install, as suggested in the "build-install.sh".
> My just-newly-re-installed box was absolutely "virgin" ...
> So after just few downloads (sic) and compilations, I get the following
> error :
...
> So here my questions :
> 1/ May I do something wrong ?
> 2/ Should be a "provided" dependency downloaded during
> compile-package-install time ?
> 3/ If yes, is there a repository where I can find the corresponding pom and
> jar ? Should I add this repo to my "settings.xml" ?

You are not doing anything wrong.  The M2 setup is not complete.  The 
dependency (Service Binder) needs to be m2venized and 'mvn deploy'd. 
Neither Alex nor I caught this as we have the jar manually setup 
locally, since we use SB elsewhere.  We have a grant for SB so we are 
going to port it in the next couple days, to the org.apache.felix 
namespace and get it out to an M2 repo.

The best thing you can do for now is manually add it to your local M2 
repo.  I forget the procedure for manually loading a jar; I recommend 
checking M2 doco or just wait a couple days.  When SB does move to Felix 
it will be as an M2 module anyway so you'll pick it up from an 'svn up' 
and 'mvn install'.

We're on it.

Enrique

Re: [BUILD ERROR] Apache Felix Examples: Spell Check w/ Service Binder

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I believe that Enrique/Alex were moving Service Binder source into the 
Felix repo, so maybe this is a temporary issue during the transition, 
but they can probably answer that. :-)

-> richard

Arnaud Quiblier wrote:
> Hi folks,
>
> I just download the SVN felix-trunk version recently repackaged.
> And launch a maven2 install, as suggested in the "build-install.sh".
> My just-newly-re-installed box was absolutely "virgin" ...
> So after just few downloads (sic) and compilations, I get the following
> error :
>
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Apache Felix Examples: Spell Check w/ Service Binder
> [INFO]    task-segment: [clean, install]
> [INFO]
> ----------------------------------------------------------------------------
> [...]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://cvs.apache.org/maven-snapshot-repository/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
> [WARNING] Unable to get resource from repository apache.snapshots (
> http://cvs.apache.org/maven-snapshot-repository)
> Downloading:
> http://m2.safehaus.org/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
> [WARNING] Unable to get resource from repository safehaus (
> http://m2.safehaus.org)
> Downloading:
> http://repo1.maven.org/maven2/org/ungoverned/gravity/servicebinder/servicebinder/1.0/servicebinder-1.0.pom
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> It seems that the "servicebinder-1.0.pom" is unreachable.
> So I check manually the maven2 repository :
>
> http://cvs.apache.org/maven-snapshot-repository/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
> => this directory does not exists
>
> http://m2.safehaus.org/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
> => This directory exists but does not contain the file "
> servicebinder-1.0.pom" (contains just the corresponding jar)
>
> http://repo1.maven.org/maven2/org/ungoverned/gravity/servicebinder/servicebinder/1.0/
> => this directory does not exists
>
>
> Then I check the corresponding pom :
> "${FELIX_HOME}/org.apache.felix.examples.spellcheckbinder/pom.xml".
> I see that the "servicebinder" dependency is flagged "provided", as you can
> see below :
>
> [...]
> <dependency>
>  <groupId>org.ungoverned.gravity.servicebinder</groupId>
>  <artifactId>servicebinder</artifactId>
>  <version>1.0</version>
>  <scope>provided</scope>
> </dependency>
> [...]
>
>
> So here my questions :
> 1/ May I do something wrong ?
> 2/ Should be a "provided" dependency downloaded during
> compile-package-install time ?
> 3/ If yes, is there a repository where I can find the corresponding pom and
> jar ? Should I add this repo to my "settings.xml" ?
>
>
> Greetings,
>
> --
> </arnaud>
>
>