Bug 1040931

Summary: Maven plugin creates empty switchyard.xml when using resources filtering
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tomas Rohovsky <trohovsk>
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: NEW --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, ganandan, oskutka, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Maven plugin creates empty switchyard.xml when using resources filtering. As a result, Maven resource filtering does not work as expected. A workaround for this is generating the filtered resource to another directory and including that in the Mojo configuration.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reporducer none

Description Tomas Rohovsky 2013-12-12 11:13:16 UTC
Created attachment 835734 [details]
reporducer

Maven plugin creates empty switchyard.xml when using resources filtering (http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html). It does not matter if switchyard.xml contains placeholders or not. The reporducer is attached.

Steps to reproduce:
1. run reproducer: mvn clean package -DjmsImpl=activemq
2. open switchyard.xml from target directory, it contains only root element
3. open jmsImpl.xml to see that ${jmsImpl} was correctly substituated

Comment 1 JBoss JIRA Server 2013-12-12 13:11:07 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1892 to Closed

Comment 2 Keith Babo 2013-12-12 13:12:03 UTC
Note workaround mentioned here:
https://issues.jboss.org/browse/SWITCHYARD-1501

Comment 3 kconner 2014-10-07 17:57:55 UTC
PRIVATE: related to 1083087