maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MASSEMBLY-118) assembly <files> uses maven parent relative path and not the modules relative path
Date Fri, 27 Oct 2006 19:09:03 GMT
     [ http://jira.codehaus.org/browse/MASSEMBLY-118?page=all ]

John Casey updated MASSEMBLY-118:
---------------------------------

             Priority: Major  (was: Critical)
    Affects Version/s: 2.1
        Fix Version/s: 2.2

> assembly <files> uses maven parent relative path and not the modules relative path
> ----------------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-118
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-118
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Baerrach bonDierne
>             Fix For: 2.2
>
>         Attachments: MASSEMBLY-118-patch.txt, MASSEMBLY-118-patch.txt, MASSEMBLY-118-patch.txt,
Maven Assembly Bug.zip
>
>
> In mvn 2.0.4 if I have an assemly descriptor that has the following:
> 	<files>
> 		<file>
> 			<source>src/site/apt/index.apt</source>
> 			<outputDirectory></outputDirectory>
> 			<destName>README.txt</destName>
> 		</file>
> 	</files>
> and a maven project that looks like:
> Maven Assembly Bug
> - pom.xml
> - assembly-bug-module
>   - pom.xml
>   - src/site/apt/index.apt
> with the assembly:assembly bound to the package phase inside assembly-bug-module/pom.xml
as
> 	<build>
> 		<plugins>
> 			<plugin>
> 				<artifactId>maven-assembly-plugin</artifactId>
> 				<executions>
> 					<execution>
> 						<id>package-assembly</id>
> 						<phase>package</phase>
> 						<goals>
> 							<goal>assembly</goal>
> 						</goals>
> 						<configuration>
> 							<descriptors>
> 								<descriptor>
> 									src/main/assembly/bin.xml
> 								</descriptor>
> 							</descriptors>
> 						</configuration>
> 					</execution>
> 				</executions>
> 			</plugin>
> then when I run mvn install inside assembly-bug-module:
> assembly-bug-module> mvn install
> the command works fine
> When I run mvn install inside the "Maven Assembly Bug" directory the command will fail
> Maven Assembly Bug> mvn install
> [INFO] [assembly:assembly {execution: package-assembly}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error adding file to archive: <path>\Maven Assembly Bug\src\site\apt\index.apt
isn't a file.
> Example project is attached as a zip file.
> Trying to change the descriptor to use ${project.build.sourceDirectory} does not work
as this is not resoolved.
> [INFO] Error adding file to archive: <path>\Maven Assembly Bug\assembly-bug-module\${project.build.sourceDirectory}
> \site\apt\index.apt isn't a file.

-- 
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

        

Mime
View raw message