Hi, I blogged about this with examples. I can't copy and paste on the iPhone but you can find it at http://blogs.Sonatype.com/brian

Sent from my iPhone

On Aug 23, 2008, at 8:08 AM, "Graham Leggett" <[EMAIL PROTECTED]> wrote:

Hi all,

I have a need to override a specific dependency used by the maven- torque-plugin, and I am struggling to convince maven v2.0.9 to do this.

The symptoms are that the original jar is being used, instead of the overridden jar, which is effectively ignored.

To test this, I have deleted the original jar completely from my local maven repository, and what I expect to happen is that maven should not try to download this dependency again, because it has been overridden.

In practise, maven downloads the original jar, and ignores the overridden jar.

Is there anything obvious that I have missed in this process?

My plugin definition looks like this:

    <plugin>
     <groupId>org.apache.torque</groupId>
     <artifactId>torque-maven-plugin</artifactId>
     <version>3.3</version>
     <dependencies>
       <dependency>
         <groupId>org.apache.derby</groupId>
         <artifactId>derby</artifactId>
         <version>10.4.1.3</version>
       </dependency>
       <dependency>
         <groupId>org.apache.torque</groupId>
         <artifactId>torque-templates</artifactId>
         <version>3.3.1</version>
       </dependency>
     </dependencies>
   </plugin>

Regards,
Graham
--

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

Reply via email to