Use packaging=pom and then use the build helper plugin to attach the XML file.
On Mon, Aug 29, 2011 at 11:17 AM, Andy Glick <andygl...@gmail.com> wrote: > You have asked about "XML packaging". In Maven parlance packaging refers to > the type of the artifact that the current Maven "module" will produce. > Normally packaging is a kind of Java archive, of which jar, war, ear and > osgi bundle are a partial enumeration. The other common value for packaging > is "pom" which indicates that the module with pom packaging is an > aggregating module for usually 2 or more other modules. Maven has been > designed so that in normal usage, each module produces one and only one > artifact. So a module that produces a war file might be a 1st module and a > module that produces an ear including the war might be a 2nd module and > there might be a 3rd pom module that references/manages the other 2. > > In Maven parlance your question reads like, how do I get maven to prepare a > module whose result is a single XML file. Without further explanation that > doesn't seem very sensible. Perhaps you could rephrase your question and > explain the result that you are attempting to achieve, rather than telling > us what Maven technique you have been unable to apply? > > On 8/29/11 10:15 AM, frank vestris wrote: >> >> Hi, >> >> I would like to have a maven project where the packaging is "xml" (or >> another file type). >> Is it possible ? >> >> in my pom: >> <packaging>xml</packaging> >> >> but Eclipse don't want to: >> >> Description Resource Path Location Type >> Project build error: 'packaging' with value 'xml' is invalid. Aggregator >> projects require 'pom' as packaging. pom.xml /root-project line 1 >> Maven >> Problem >> >> Thank you >> Frank >> >> >> -- >> View this message in context: >> http://maven.40175.n5.nabble.com/maven-project-with-xml-packaging-tp4746306p4746306.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org