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 Assignee: Brian Fox Priority: Minor 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