Then you didn't install the daemon project. It looks like you need to run
"mvn -Dpackaging=osgi-bundle install" in the root to get this to happen.

As Richard said earlier, the Felix build is less-than-ideal.

Justin

On Mon, Dec 28, 2009 at 1:19 PM, Viktor Ransmayr
<[email protected]>wrote:

> Hi Justin,
>
>    did as you proposed. - Build errors are down to 1. - It seem that the
> recipe does not work
> for 'org.apache.felix.daemon'. - Its pom states version '0.9.0-SNAPSHOT',
> which I use, however
> I receive the following build error:
>
> <Log>
>
> C:\Snapshots\Felix\installers>mvn -Dpackaging=bundle install
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Felix Installers
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> C:\Snapshots\Felix\installers\src\main\resources
> [INFO] Copying 2 resources to META-INF
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.daemon/0.9.0-SNAPSHOT/org.apache.felix.daemon-0.9.0-SNAPSHOT.pom
> [INFO] Unable to find resource
> 'org.apache.felix:org.apache.felix.daemon:pom:0.9.0-SNAPSHOT' in repository
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
> [INFO] snapshot org.apache.felix:org.apache.felix.shell:1.5.0-SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.felix:org.apache.felix.shell.tui:1.5.0-SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot
> org.apache.felix:org.apache.felix.bundlerepository:1.5.0-SNAPSHOT: checking
> for updates from apache.snapshots
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.daemon/0.9.0-SNAPSHOT/org.apache.felix.daemon-0.9.0-SNAPSHOT.jar
> [INFO] Unable to find resource
> 'org.apache.felix:org.apache.felix.daemon:jar:0.9.0-SNAPSHOT' in repository
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.felix:org.apache.felix.daemon:jar:0.9.0-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.felix
> -DartifactId=org.apache.felix.daemon -Dversion=0.9.0-SNAPSHOT
> -Dpackaging=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=org.apache.felix
> -DartifactId=org.apache.felix.daemon -Dversion=0.9.0-SNAPSHOT
> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) org.apache.felix:installers:jar:0.9.0-SNAPSHOT
>        2) org.apache.felix:org.apache.felix.daemon:jar:0.9.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
>
> for artifact:
>  org.apache.felix:installers:jar:0.9.0-SNAPSHOT
>
> from the specified remote repositories:
>  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>  central (http://repo1.maven.org/maven2)
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Mon Dec 28 18:47:27 CET 2009
> [INFO] Final Memory: 9M/16M
>
> [INFO]
> ------------------------------------------------------------------------
> C:\Snapshots\Felix\installers>
>
> </Log>
>
> Regards,
>
> Viktor
>
> Am 28.12.2009 18:37, schrieb Justin Edelson:
>
>> On Mon, Dec 28, 2009 at 12:25 PM, Viktor Ransmayr<
>> [email protected]
>>
>>
>>> Hi Justin, hi Richard,
>>>
>>>
>>>    with the proposed procedure I made a small progress, i.e. the build
>>> errors are down by one. - I used
>>>
>>>
>>> <version>2.1.0-SNAPSHOT</version>
>>>
>>> for all dependencies, which seems to be wrong. - So my question is now:
>>> How
>>> and where do I find the
>>> proper versions to be used for:
>>>
>>>
>>>
>> Yep. That's just for main. For the rest, you need to look in the pom.xml
>> files corresponding to each project, i.e. shell is in shell/pom.xml,
>> shell.tui is in shell.tui/pom.xml, etc.
>>
>> Alternatively, you could look in ~/.m2/repository to find the versions
>> which
>> you built earlier (e.g.
>> ~/.m2/repository/org/apache/felix/org.apache.felix.shell/).
>>
>> This assumes that you want to use the latest versions of each of these
>> projects. If not, simply substitute the desired version number.
>>
>> HTH,
>>
>> Justin
>>
>>
>

Reply via email to