You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "COLLIGNON (JIRA)" <ji...@codehaus.org> on 2013/04/08 11:29:52 UTC

[jira] (MDEP-135) add a 'failIfArtifactNotFound' boolean property to copy goal

    [ https://jira.codehaus.org/browse/MDEP-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=323352#comment-323352 ] 

COLLIGNON commented on MDEP-135:
--------------------------------

Hello,

I Have almost the same use case in my project. This parameter will be a good solution for me too.

Thanks in advance
                
> add a 'failIfArtifactNotFound' boolean property to copy goal
> ------------------------------------------------------------
>
>                 Key: MDEP-135
>                 URL: https://jira.codehaus.org/browse/MDEP-135
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: New Feature
>          Components: copy
>    Affects Versions: 2.0
>            Reporter: Ian Springer
>
> This parameter would be optional and would default to true. 
> Here is my use case for wanting such a parameter... In our project, we support both Oracle and Postgres and like to bundle the JDBC driver jars for both these DBs in our distribution. However, due to licensing issues, the Oracle JDBC driver jar is not available on any public Maven repos. However, if a member of our team is building our distribution internally, they would have access to an internal repo that does have the Oracle jar. Or someone might have manually installed the Oracle jar into their local repo. In either case, we'd like to be able to configure the copy goal to copy the Oracle jar into our distribution if it is accessible, but otherwise to proceed without failing the build (maybe just printing an INFO message stating that the jar could not be found and so was not copied).
> Here's an example usage of the parameter:
>           <execution>
>             <id>copy</id>
>             <phase>package</phase>
>             <goals>
>               <goal>copy</goal>
>             </goals>
>             <configuration>
>               <artifactItems>
>                 <artifactItem>
>                   <groupId>com.oracle</groupId>
>                   <artifactId>ojdbc14</artifactId>
>                   <version>10.2.0.3.0</version>
>                   <failIfArtifactNotFound>false</failIfArtifactNotFound>
>                   <outputDirectory>target/dist-dir/lib</outputDirectory>
>                 </artifactItem>
>               </artifactItems>
>             </configuration>
>           </execution>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira