You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2008/01/03 03:50:57 UTC
[jira] Closed: (MDEP-119) build-classpath should create destination
directory for the classpath file
[ http://jira.codehaus.org/browse/MDEP-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox closed MDEP-119.
--------------------------
Resolution: Fixed
> 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