maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Reynolds (JIRA)" <>
Subject [jira] Commented: (MASSEMBLY-256) Regression: pom properties are no longer expanded in descriptor.
Date Mon, 25 Feb 2008 16:16:29 GMT


Mark Reynolds commented on MASSEMBLY-256:

I pointed to your staging repo but I am still not having any luck. I don't think this is working.
Using my original example, I have tried <outputDirectory>${fileLocation}</outputDirectory>
and <outputDirectory>${}</outputDirectory> in the
descriptor. When I package with -X i see something like this:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached'
[DEBUG]   (s) appendAssemblyId = true
[DEBUG]   (f) attach = true
[DEBUG]   (s) basedir = C:\Documents and Settings\mreynolds\Desktop\assembly-issue
[DEBUG]   (s) descriptors = [Ljava.lang.String;@154864a
[DEBUG]   (f) dryRun = false
[DEBUG]   (s) finalName = myartifact-1.0-SNAPSHOT
[DEBUG]   (f) ignoreDirFormatExtensions = false
[DEBUG]   (s) ignoreMissingDescriptor = false
[DEBUG]   (s) includeSite = false
[DEBUG]   (s) localRepository = [local] -> file://C:\Documents and Settings\mreynolds\.m2\repository
[DEBUG]   (s) outputDirectory = C:\Documents and Settings\mreynolds\Desktop\assembly-issue\target
[DEBUG]   (f) project = MavenProject: com.whatever:myartifact:1.0-SNAPSHOT @ C:\Documents
and Settings\mreynolds\Desktop\assembly-issue\pom.xml
[DEBUG]   (s) reactorProjects = [MavenProject: com.whatever:myartifact:1.0-SNAPSHOT @ C:\Documents
and Settings\mreynolds\Desktop\assembly-issue\pom.x
[DEBUG]   (f) remoteRepositories = [[mrb.stage] ->,
[map.stage] -> http:/
/, [central] ->]
[DEBUG]   (s) siteDirectory = C:\Documents and Settings\mreynolds\Desktop\assembly-issue\target\site
[DEBUG]   (f) skipAssembly = false
[DEBUG]   (s) tarLongFileMode = warn
[DEBUG]   (s) tempRoot = C:\Documents and Settings\mreynolds\Desktop\assembly-issue\target\archive-tmp
[DEBUG]   (s) workDirectory = C:\Documents and Settings\mreynolds\Desktop\assembly-issue\target\assembly\work
[DEBUG] -- end configuration --
[INFO] [assembly:attached {execution: default}]
[INFO] Reading assembly descriptor: src/main/assembly/myassembly.xml
[DEBUG] Before assembly is interpolated:

<?xml version="1.0" encoding="UTF-8"?><assembly>

[DEBUG] After assembly is interpolated:

<?xml version="1.0" encoding="UTF-8"?><assembly>

[DEBUG] All known ContainerDescritporHandler components: [plexus]
[DEBUG] No dependency sets specified.
[DEBUG] FileSet[${}] dir perms: 40755 file perms: 100644
[DEBUG] The archive base directory is 'null'
[DEBUG] Adding file-set from directory: 'C:\Documents and Settings\mreynolds\Desktop\assembly-issue\src\main\files'
assembly output directory is: '${}/'
[DEBUG] Adding directory file-set in: C:\Documents and Settings\mreynolds\Desktop\assembly-issue\src\main\files
to archive location: ${project.propert
[INFO] Building zip: C:\Documents and Settings\mreynolds\Desktop\assembly-issue\target\
[DEBUG] adding directory ${}/
[DEBUG] adding entry ${}/some.file
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Feb 25 11:12:44 EST 2008
[INFO] Final Memory: 7M/15M
[INFO] ------------------------------------------------------------------------

> Regression: pom properties are no longer expanded in descriptor.
> ----------------------------------------------------------------
>                 Key: MASSEMBLY-256
>                 URL:
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-2
>         Environment: maven 2.0.8
> windows xp sp2
>            Reporter: Mark Reynolds
>            Assignee: John Casey
>             Fix For: 2.2-beta-2
>         Attachments:
> Attached is a minimal project which demonstrates this issue.
> The pom contains a property:
>     <project>
>         ...
>         <properties>
>             <fileLocation>file/path</fileLocation>
>         </properties>
>     </project>
> The descriptor uses this property in specifying the output directory for a fileSet:
> <assembly>
>     ...
>     <fileSets>
>         <fileSet>
>             <directory>src/main/files</directory>
>             <outputDirectory>${fileLocation}</outputDirectory>
>         </fileSet>
>     </fileSets>
> </assembly>
> In versions 2.1, 2.2-beta-1, and 2.2-SNAPSHOT of the assembly plugin, this property is
expanded so the resulting archive has files in file/path/....
> In the latest 2.2-beta-2-SNAPSHOT, the resulting archive has files in ${fileLocation}/...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message