[ http://jira.codehaus.org/browse/MDEP-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox closed MDEP-65. ------------------------- Resolution: Fixed Fix Version/s: 2.0-alpha-2 Patch applied and snapshot deployed. Thanks for submitting! > Copy dependencies in a Maven repository like layout > --------------------------------------------------- > > Key: MDEP-65 > URL: http://jira.codehaus.org/browse/MDEP-65 > Project: Maven 2.x Dependency Plugin > Issue Type: New Feature > Affects Versions: 2.0-alpha-2, 2.0 > Reporter: Alexis Midon > Assigned To: Brian Fox > Fix For: 2.0-alpha-2 > > Attachments: repository-layout.patch > > > I use the dependency plugin in my Maven project at work. > But we need a tiny feature not yet implemented by your plugin. > Actually we would like to copy some dependencies in a repository like layout. > This exactly what your plugin does except for the repository part. > _example:_ I'd like to move dependencies in something like > {{outputDirectory/junit/junit/3.8.1/junit-3.8.1.jar}} and so on > To help you, I implemented this feature in the maven-dependency-plugin trunk > (as of revision 510010) and the patch is in attachment. > Here are details of the development: > - add a new optional boolean property in > org.apache.maven.plugin.dependency.AbstractFromDependenciesMojo : > useRepositoryLayout > - add a new parameter to DependencyUtil.getFormattedOutputDirectory(...) > - update all calls to this method > - update unit test and add specific tests for this new parameter > _Example POM:_ > {code:xml} > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <execution> > <id>copy-dependencies</id> > <phase>package</phase> > <goals> > <goal>copy-dependencies</goal> > </goals> > <configuration> > > <outputDirectory>${project.build.directory}/alternateLocation</outputDirectory> > <useRepositoryLayout>true</useRepositoryLayout> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > {code} > I tried to create a new issue in jira but the url failed. > I hope you will find this feature attractive, and I will be glad to answer > any of your request about it. -- 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