maven assembly- sub folder -
i want use maven assembly plugin assembly
'<plugin> <artifactid>maven-assembly-plugin</artifactid> <executions> <execution> <id>dist</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/dist.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin>'
my descriptor file :
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> <id>dist</id> <formats> <format>dir</format> </formats> <files> <file> <source>pom.xml</source> <outputdirectory>/et</outputdirectory> </file> </files> </assembly>
the result folder hierarchy is: et-> myproject-mysnapshot-dist -> pom.xml
i want result : et->pom.xml
how can configure ?
add
<includebasedirectory>false</includebasedirectory>
to assembly descriptor.
Comments
Post a Comment