Good day to you, Gustav,

Maven 2 can user your project.properties, but you'd have to configure that
in the <filters/> section of your pom. Something like

<project>
  ...
  <filters>
    <filter>src/main/filters/project.properties</filter>
  </filters>
  ...
</project>

Cheers,
Franz


Gustav wrote:
> 
> Hi ... reading and using "proof and error" methodology I finally could
> make work the plugin ...
> 
> Two things to take in account:
> 
> 1 -  maven 2 dont look for project.properties. Instead, the properties
> must be defined in pom.xml as the following example:
>       <properties>
>       
> <jahia.tomcat.path>/usr/local/tomcat-jahia-pruebas/webapps/jahia</jahia.tomcat.path>
>       </properties>
> 
> 2 - There's something wrong in plugin documentation, the configuration tag
> must be a child tag of plugin tag (in documentation is a child of
> execution tag)
> 
> 
> Making these two changes works fine ...
> 
> 
> 
> Gustav wrote:
>> 
>> Hi ...  thanks for the reply
>> 
>> I checked that, the parameter outputDirectory is not setted correctly ...
>> 
>> [DEBUG] Configuring mojo
>> 'org.codehaus.mojo:dependency-maven-plugin:1.0:copy-dependencies' -->
>> [DEBUG]   (f) outputDirectory =
>> /home/gustavo/proyectos/eclipsews3.2/imagegallery-template/target/dependency
>> [DEBUG]   (f) reactorProjects =
>> [EMAIL PROTECTED]
>> [DEBUG]   (f) stripVersion = false
>> 
>> this is not the directory I configured in xml ...
>> 
>> 
>> I need to copy a dependency jar file to a tomcat webapp lib and, later,
>> copy a jar to an arbitrary path inside the webapp ...
>> Do you know another plugin for doing that ??
>> 
>> 
>> 
>> 
>> Brian E. Fox wrote:
>>> 
>>> The configuration looks correct. If you use mvn -X install > out.txt,
>>> you can then look through the output and see for sure what values are
>>> being passed to the plugin. It seems most likely that the propery isn't
>>> being defined.
>>> 
>>> As far as the codehaus/apache versions, they are the same plugin but the
>>> apache one hasn't been released yet:
>>> http://maven.apache.org/plugins/maven-dependency-plugin/faq.html
>>> 
>>> -----Original Message-----
>>> From: Gustav [mailto:[EMAIL PROTECTED] 
>>> Sent: Tuesday, December 26, 2006 4:23 PM
>>> To: [email protected]
>>> Subject: dependencies plugin maven 2
>>> 
>>> 
>>> Hi
>>> 
>>>  ... i'm using maven 2 and i want to copy a file to a specified
>>> directory ...
>>> 
>>> I found the dependencies plugin, with the following example
>>> 
>>>                     <plugin>
>>>                             <groupId>org.codehaus.mojo</groupId>
>>>     
>>> <artifactId>dependency-maven-plugin</artifactId>
>>>                             <executions>
>>>                                     <execution>
>>>     
>>> <id>copy-dependencies</id>
>>>                                             <phase>package</phase>
>>>                                             <goals>
>>>     
>>> <goal>copy-dependencies</goal>
>>>                                             </goals>
>>>                                             <configuration>
>>>     
>>> <outputDirectory>${tomcat.jahia.dir}</outputDirectory>
>>>                                             </configuration>
>>>                                     </execution>
>>>                             </executions>
>>>                     </plugin>
>>> 
>>> this works ok, except that it dont take in account outputParameter
>>> property (it was defined in project.properties) ...
>>> 
>>> I saw another examples that use a dependencies plugin from apache
>>> instead of codehaus, but I can't find this plugin 
>>> 
>>> Any ideas ??
>>> Another way to solve that ??
>>> 
>>> thanks in advance
>>> --
>>> View this message in context:
>>> http://www.nabble.com/dependencies-plugin-maven-2-tf2883751s177.html#a80
>>> 57039
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> 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]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dependencies-plugin-maven-2-tf2883751s177.html#a8073789
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to