Re: Problem building war file
Julian, Yes, I realized that after I looked at the version of my plugin. Thanks. Enrique Julian Wood <[EMAIL PROTECTED]> wrote on 02/28/2007 12:37:02 PM: > The problem is with different versions of the war plugin. Version > 2.0.1 and below used the syntax you tried, while newer versions need > additional configuration. The additional config is not backwards > compatible. > > Try this: > > > > true addDefaultImplementationEntries> > > > < BuildVersion >${buildNumber} > > > > You should also specify that you need version 2.0.2 (or greater) of > the war plugin, either in pluginManagement, or in the plugin spec > itself. > > J > > On 26-Feb-07, at 1:01 PM, Jo Vandermeeren wrote: > > > Hi Enrique, > > > > Well.. Do you add a BuildVersion attribute to the manifest > > someplace else? > > > > Cheers > > Jo > > > > On 2/26/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: > >> > >> > >> Hi, > >> I'm running into problems building my war file. Inside my parent > >> pom, I > >> am > >> adding entry to my manifest file, but when it creates the war > >> file, it > >> complains about an Embedded error. Anyone seen this before? > >> > >> > >> > >> maven-war-plugin >> artifactId> > >> > >> > >> > >> > >> ${buildNumber} > >> > >> > >> > >> > >> > >> [INFO] > >> - > >> --- > >> [ERROR] BUILD ERROR > >> [INFO] > >> - > >> --- > >> [INFO] Error assembling WAR > >> > >> Embedded error: The attribute "BuildVersion" may not occur more > >> than once > >> in the same section > >> [INFO] > >> - > >> --- > >> [INFO] For more information, run Maven with the -e switch > >> [INFO] > >> - > >> --- > >> [INFO] Total time: 2 minutes 52 seconds > >> [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 > >> [INFO] Final Memory: 40M/110M > >> [INFO] > >> - > >> --- > >> > >> Thanks > >> > >> Enrique > >> > > -- > Julian Wood <[EMAIL PROTECTED]> > > Software Engineer > Teaching & Learning Centre > University of Calgary > > http://tlc.ucalgary.ca > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: Problem building war file
The problem is with different versions of the war plugin. Version 2.0.1 and below used the syntax you tried, while newer versions need additional configuration. The additional config is not backwards compatible. Try this: trueaddDefaultImplementationEntries> < BuildVersion >${buildNumber} You should also specify that you need version 2.0.2 (or greater) of the war plugin, either in pluginManagement, or in the plugin spec itself. J On 26-Feb-07, at 1:01 PM, Jo Vandermeeren wrote: Hi Enrique, Well.. Do you add a BuildVersion attribute to the manifest someplace else? Cheers Jo On 2/26/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: Hi, I'm running into problems building my war file. Inside my parent pom, I am adding entry to my manifest file, but when it creates the war file, it complains about an Embedded error. Anyone seen this before? maven-war-pluginartifactId> ${buildNumber} [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Error assembling WAR Embedded error: The attribute "BuildVersion" may not occur more than once in the same section [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 2 minutes 52 seconds [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 [INFO] Final Memory: 40M/110M [INFO] - --- Thanks Enrique -- Julian Wood <[EMAIL PROTECTED]> Software Engineer Teaching & Learning Centre University of Calgary http://tlc.ucalgary.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem building war file
Hi Jo, I only see this error on my SLES10 dev box, but not on my RHEL3 build server. The workaround wouId be to add the attribute to the children pom.xml files rather than the parent, but I would have to do so in 50 different poms, would be a PITA, imo;-) Cheers Enrique "Jo Vandermeeren" To "Maven Users List" 02/26/2007 02:01 PM cc Subject Please respond to Re: Problem building war file "Maven Users List" <[EMAIL PROTECTED] he.org> Hi Enrique, Well.. Do you add a BuildVersion attribute to the manifest someplace else? Cheers Jo On 2/26/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: > > > Hi, > I'm running into problems building my war file. Inside my parent pom, I > am > adding entry to my manifest file, but when it creates the war file, it > complains about an Embedded error. Anyone seen this before? > > > > maven-war-plugin > > > > > ${buildNumber} > > > > > > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error assembling WAR > > Embedded error: The attribute "BuildVersion" may not occur more than once > in the same section > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 2 minutes 52 seconds > [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 > [INFO] Final Memory: 40M/110M > [INFO] > > > Thanks > > Enrique >
Re: Problem building war file
Hi Enrique, Well.. Do you add a BuildVersion attribute to the manifest someplace else? Cheers Jo On 2/26/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: Hi, I'm running into problems building my war file. Inside my parent pom, I am adding entry to my manifest file, but when it creates the war file, it complains about an Embedded error. Anyone seen this before? maven-war-plugin ${buildNumber} [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR Embedded error: The attribute "BuildVersion" may not occur more than once in the same section [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 minutes 52 seconds [INFO] Finished at: Mon Feb 26 12:28:34 CST 2007 [INFO] Final Memory: 40M/110M [INFO] Thanks Enrique