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

[jira] [Resolved] (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:all-tabpanel ]

William Puhl resolved MASSEMBLY-828.
------------------------------------
    Resolution: Workaround

I was able to resolve this by using the <excludes> option for the file set in the assembly descriptor.

> 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
>
>         Attachments: etlStoreJournalExport.xml, pom.xml
>
>
> 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)