[ 
https://issues.apache.org/jira/browse/MASSEMBLY-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

William Puhl updated MASSEMBLY-828:
-----------------------------------
    Attachment: etlStoreJournalExport.xml
                pom.xml

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

Reply via email to