On Tue, Jan 12, 2010 at 10:32 AM, Ron Wheeler <
[email protected]> wrote:

> Anders Hammar wrote:
>
>> It should work if you specify scope of 'provided' on the grouping pom
>> dependency.
>>
>> /Anders
>>
>>
> To clarify your point, I understand that I should do the following:
> In the project pom.xml that creates the war file, I should reference the
> shared pom as
>     <dependency>
>         <groupId>com.artifact_software.lms</groupId>
>         <artifactId>lms-pom-shared</artifactId>
>         <version>1.7.2-SNAPSHOT</version>
>         <type>pom</type>
>     </dependency>
> which will give it compile scope
>

This should have <scope>provided</scope>.


>
> In the lms-pom-shared pom.xml, I should reference the dependencies as
>        <dependency>
>           <groupId>commons-logging</groupId>
>           <artifactId>commons-logging</artifactId>
>           <version>${commons-logging.version}</version>
>           <scope>provided</scope>
>       </dependency>
>

This should have <scope>compile</scope>

Reply via email to