Re: Maven2 plugin and build property overrideDir
Emmanuel Bardet <[email protected]> Fri, 13 Mar 2009 12:15:49 +0100
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Greg,
I tried your clever suggestion but I cannot get it to work. AFA I
understand, I have a maven version (Eclipse 34 embedded) that does not
set the classpath order as wished. Hence, the myTemplates.jar content
is not picked up.
Thanks a lot for your help anyway. I'll wait for the overrideDir
property being implemented in the plugin and in the meantime I will
change the torque templates directly.
Thanks again.
Emmanuel
Le 12 mars 09 à 12/03-15:39, Greg Monroe a écrit :
> Did a little research into this and found what MAY be a quick
> work-around. Not sure it's the final method and I haven't
> tested it, but it should work.
>
> Basically, you can define "system" scope dependencies in Maven
> Poms. There are things that just get added to all goal class
> paths and can point to any directory on the system. So, you
> could add your template overrides as a system dependency. E.g.:
>
> ...
> <plugin>
> <dependencies>
> <dependency>
> <groupId>my.torque.overrides</groupId>
> <artifactId>templateDir</artifactId>
> <version>0.1</version>
> <scope>system</scope>
> <systemPath>${basedir}/src/template/myTemplates.jar</systemPath>
> </dependency>
> ...
>
> </dependencies>
> </plugin>
>
> Notes:
>
> - The ${basedir} property is the directory containing the pom.xml
> - Maven says it "checks for the existence of the file" pointed to
> by the systemPath tag. It might be possible use a directory
> rather than a jar.
>
>
>> -----Original Message-----
>> From: Greg Monroe [mailto:[email protected]]
>> Sent: Wednesday, March 11, 2009 3:43 PM
>> To: 'Apache Torque Users List'
>> Subject: RE: Maven2 plugin and build property overrideDir
>>
>> You're correct, it isn't currently supported. If I remember
>> right, there was an issue with Maven 2 not letting you easily
>> modify a Mojo's class path (at least at the time the plug-in
>> was built). That's how the overrideDir is being implemented
>> in Maven 1.
>>
>> Full support of Maven 2 is one of the objectives of 4.0. In
>> fact, one of the developers (Thomas V) just asked recently
>> about this feature... and that led me to start looking at
>> Maven2 coding. No promises, but if I can find some time
>> I might work some on this (unless someone's already
>> doing it...)
>>
>>> -----Original Message-----
>>> From: Emmanuel Bardet [mailto:[email protected]]
>>> Sent: Wednesday, March 11, 2009 12:50 PM
>>> To: [email protected]
>>> Subject: Maven2 plugin and build property overrideDir
>>>
>>> Hello there,
>>>
>>> It seems the overrideDir property is not being used by the Maven2
>>> plugin. Is this right? If so, is there any plan to add it to a
>>> later
>>> version?
>>>
>>> Thanks,
>>>
>>> Emmanuel
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> DukeCE Privacy Statement:
>> Please be advised that this e-mail and any files transmitted with
>> it are confidential communication or may otherwise be privileged or
>> confidential and are intended solely for the individual or entity
>> to whom they are addressed. If you are not the intended recipient
>> you may not rely on the contents of this email or any attachments,
>> and we ask that you please not read, copy or retransmit this
>> communication, but reply to the sender and destroy the email, its
>> contents, and all copies thereof immediately. Any unauthorized
>> dissemination, distribution or copying of this communication is
>> strictly prohibited.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>