On Fri, Jul 31, 2009 at 10:53 AM, Stephen Duncan Jr < [email protected]> wrote:
> I'm trying to manually build an assembly that aggregates multiple > assemblies, to make an installer. So, I depend on the .tar.gz produced from > other assemblies, I use the dependency-plugin to unpack those dependencies. > While versions are SNAPSHOTs, all of the directories after unpacking have > names like artifactId-1.0-SNAPSHOT. I'd like to rename them to match the > timestamped version when the dependencies are pulled from the repository. > Is there a way to access the timestamped version number from the build? > (From there I could use the antrun plugin or the GMaven plugin to do the > rename) > > -- > Stephen Duncan Jr > www.stephenduncanjr.com > For now, I'm using the maven-assembly-plugin to to create a directory assembly with dependencySet. This is the only tool I know of right now that produces the dependency files with the timestamp in the name instead of "SNAPSHOT". I'm then looping over the files in the directory produced and extracting out the names and the versions from the name. I'd love to find out a cleaner way of getting this information... -- Stephen Duncan Jr www.stephenduncanjr.com
