You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2016/09/09 14:57:21 UTC

[jira] [Commented] (MASSEMBLY-828) Assembly dropping attributes in xml assembly files in versions after 2.1

    [ https://issues.apache.org/jira/browse/MASSEMBLY-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477246#comment-15477246 ] 

Karl Heinz Marbaise commented on MASSEMBLY-828:
-----------------------------------------------

First you know that you are talking about a [plugin version|http://maven.apache.org/plugins-archives/maven-assembly-plugin-2.1/assembly.html] which is about 9 years old? Furthermore to be honest I don't see any kind of information in the documentation which supports this scenario which you are describing ? The maven-assembly-plugin does not support such configuration file or to be more accurate that I know...Can you give more details about the scenario and maybe an example project which you can attach to this jira issue?

> Assembly dropping attributes in xml assembly files in versions after 2.1
> ------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-828
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-828
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: William Puhl
>             Fix For: 2.1
>
>
> Part of the assembly is to copy xml files from the project to the output directory.  In versions after 2.1, maven-assmbly-plugin is dropping some attributes that are defined in the xml as it copies it to the output directory. This started occurring after version 2.1. 
> Example: 
> assembly includes test.xml to be copied to output directory.  test.xml looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <Transformations xmlns="etl.vertexinc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <Transformation name="xxxx" destSchemaReleaseId="xxxx">
>     <TransformationRule srcDataSet="xxxx"  srcfield="*" 
>     										destDataSet="xxxx"
>     										type="ASSIGN"/>
>   </Transformation>
>   <Transformation name="xxxx" destSchemaReleaseId="xxxx" customTask="some.package.name">
>   	<TransformationRule srcDataSet="xxxx"
>   											srcField="*"
>   											destDataSet="xxxx"
>   											type="ASSIGN" />
>   </Transformation>
> </Transformations>
> After maven-assembly-plugin completes the assembly, the packaged jar contains test.xml like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <Transformations xmlns="etl.vertexinc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <Transformation name="xxxx" destSchemaReleaseId="xxxx">
>     <TransformationRule srcDataSet="xxxx"  srcfield="*" 
>     										destDataSet="xxxx"
>     										type="ASSIGN"/>
>   </Transformation>
>   <Transformation name="xxxx" destSchemaReleaseId="xxxx">
>   	<TransformationRule srcDataSet="xxxx"
>   											srcField="*"
>   											destDataSet="xxxx"
>   											type="ASSIGN" />
>   </Transformation>
> </Transformations>
> The attribute for the 2nd <Transformation> element (customTask="some.package.name") is missing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)