I need to maintain a situation created during an artistic process. So I got the idea of bundling this state in my own zip and opening it in the prepared stage. Additional real results will also be deployed. This result is a bundle of files created, which is valuable within the next artwork.
I am trying to create two result zones, but appointing another assembly name is ignored and always myArtifact-version.zip is deployed.
What's wrong?
Thank you in advance, Sven
My palm looks like this:
& lt; Project ... & gt; & Lt; ArtifactId & gt; MyArtifact & lt; / ArtifactId> & Lt; Group & gt; De.myGroup & lt; / Group & gt; & Lt; Packaging & gt; Pom & lt; / Packaging & gt; ... & lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; De.myGroup & lt; / Group & gt; & Lt; ArtifactId & gt; Generation-Status & lt; / ArtifactId> & Lt; Version & gt; $ {Project.version} & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt; & Lt; Construction & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-dependency-plugin & lt; / ArtifactId> & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; Shell dependency & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; OutputDirectory & gt; $ {Project.build.directory} / config & lt; / OutputDirectory & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; & Lt; Plugin & gt; ... a forwarding generation & lt; / Plugin & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-assembly-plug-in & lt; / ArtifactId> & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Results & lt; / Id & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; A & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; Descriptor & gt; & Lt; Descriptor & gt; Src / collect / bundle generation-results.xml & lt; / Narrator & gt; & Lt; / Narrator & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; Execution & gt; & Lt; ID & gt; Status & lt; / Id & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Goals & gt; & Lt; Goal & gt; A & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; Descriptor & gt; & Lt; Descriptor & gt; Src / collect / bundle generation-status.xml & lt; / Narrator & gt; & Lt; / Narrator & gt; & Lt; FinalName & gt; Generation-Status - $ {project.version} & lt; / FinalName & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt; & Lt; / Create & gt; & Lt; / Project & gt; The assemblies are:
Gene-Result. XML:
& lt; Assembly ... & gt; & Lt; Id & gt; & Lt; / Id & gt; & Lt; Formats & gt; & Lt; Format & gt; ZIP & lt; / Format & gt; & Lt; / Formats & gt; & Lt; BaseDirectory & gt; & Lt; / BaseDirectory & gt; & Lt; IncludeBaseDirectory & gt; False & lt; / IncludeBaseDirectory & gt; & Lt; Fileset & gt; & Lt; Fileset & gt; & Lt; Directory & gt; $ {Project.build.directory} / Export & lt; / Directory & gt; & Lt; Included & gt; & Lt; Included & gt; some * / ** / * *. & Lt ;. / Include & gt; & Lt; / Include & gt; & Lt; / Fileset & gt; & Lt; / Fileset & gt; & Lt; / Assembly & gt; Bundle-Gen-Status. Xml
& lt; Assembly ... & gt; & Lt; Id & gt; & Lt; / Id & gt; & Lt; Formats & gt; & Lt; Format & gt; ZIP & lt; / Format & gt; & Lt; / Formats & gt; & Lt; BaseDirectory & gt; & Lt; / BaseDirectory & gt; & Lt; IncludeBaseDirectory & gt; False & lt; / IncludeBaseDirectory & gt; & Lt; Fileset & gt; & Lt; Fileset & gt; & Lt; Directory & gt; $ {Project.build.directory} / config & lt; / Directory & gt; & Lt; Included & gt; & Lt; Included & gt; Status.file & lt; / Include & gt; & Lt; / Include & gt; & Lt; OutputDirectory & gt; Classes / scripts & lt; / OutputDirectory & gt; & Lt; / Fileset & gt; & Lt; / Fileset & gt; & Lt; / Assembly & gt;
You can use the T target to achieve it.
Comments
Post a Comment