>>>>> Steinar Bang <[EMAIL PROTECTED]>:

Here's my mistake:

>   <dependency>
>    <groupId>org.eclipse.osgi</groupId>
>    <artifactId>org.eclipse.osgi</artifactId>
>    <version>3.2.1-R32x_v20060919</version>
>    <scope>system</scope>
>    
> <systemPath>${basedir}/target/dependencies/someosgiapp/org.eclipse.osgi_3.2.1_R32x_v20060919.jar</systemPath>
>   </dependency>

The value of <systemPath> is wrong.  It should be:
    
<systemPath>${basedir}/target/dependency/someosgiapp/org.eclipse.osgi_3.2.1_R32x_v20060919.jar</systemPath>

Ie. "target/dependency" (the default <outputDirectory> of
dependency:unpack), instead of "target/dependencies".

And you were also right about this:

>>>>> "Stuart McCulloch" <[EMAIL PROTECTED]>:

>> also check which build phase you do the unpacking, as the dependency
>> will be checked during [resources:resources] - so you probably need
>> to bind the unpacking goal to the generate-resources phase...

I had the unpacking done in generate-test-resources.  And that worked on
an "mvn install" with the node already present (once I got the
<systemPath> right), but not when I did "mvn clean install".

Moving the unpacking to generate-resources made "mvn clean install"
work.

Thanx for your help, Stuart!


- Steinar


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

Reply via email to