maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Fox (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MDEP-119) build-classpath should create destination directory for the classpath file
Date Tue, 01 Jan 2008 01:41:57 GMT

     [ http://jira.codehaus.org/browse/MDEP-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brian Fox updated MDEP-119:
---------------------------

    Fix Version/s: 2.0-alpha-5

> build-classpath should create destination directory for the classpath file
> --------------------------------------------------------------------------
>
>                 Key: MDEP-119
>                 URL: http://jira.codehaus.org/browse/MDEP-119
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Improvement
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4
>            Reporter: Adrian Hempel, Atlassian
>            Assignee: Brian Fox
>            Priority: Minor
>             Fix For: 2.0-alpha-5
>
>
> I am binding the build-classpath goal to the generate-resources phase, as follows:
> {code:xml}
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <executions>
>     <execution>
>       <id>build-classpath</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>build-classpath</goal>
>       </goals>
>       <configuration>
>         <cpFile>${project.build.outputDirectory}/com/atlassian/bamboo/agent/classserver/Agent.classpath</cpFile>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}
> However, it fails, because the target directory doesn't exist:
> bq. {{[INFO] Error while opening/closing classpath file '/Users/ahempel/workarea/private/atlassian/bamboo/trunk/bamboo-agent-classserver/target/classes/com/atlassian/bamboo/agent/classserver/Agent.classpath':
java.io.FileNotFoundException: /Users/ahempel/workarea/private/atlassian/bamboo/trunk/bamboo-agent-classserver/target/classes/com/atlassian/bamboo/agent/classserver/Agent.classpath
(No such file or directory)}}
> The build-classpath goal can be improved by creating the missing directory, rather than
throwing a FileNotFoundException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message