Well, let's not get stuck on it :) Some options:
1) Ask on derby-user, to see if anyone there wants to help 2) Disable the derby.war part of the maven publishing, and do all the rest 3) Skip the maven publishing entirely. If somebody else really wants this maven stuff, then they'll show up and help us figure it out. bryan On Tue, Mar 5, 2019 at 6:57 AM Rick Hillegas <rick.hille...@gmail.com> wrote: > > On 3/4/19 8:10 PM, Bryan Pendleton wrote: > > Hmmm.. Googling says this, which has some things to try: > > > > https://stackoverflow.com/questions/7539970/cannot-construct-org-apache-maven-plugin-war-util-webappstructure-as-it-does-not > > Thanks, Bryan. Yes, I saw that one. That's why I ran the experiments > with different jdk versions. I don't know how to get maven to use the > correct war plugin. Our poms don't specify version levels for any maven > plugins. I am lost in a thicket of default behaviors which I don't > understand. > > Thanks, > > -Rick > > > > > I'm not a big Maven user either, I'm afraid. > > > > bryan > > > > On Mon, Mar 4, 2019 at 5:11 PM Rick Hillegas <rick.hille...@gmail.com> > > wrote: > >> I am looking for some advice about how to get over the following maven > >> problem which I have tripped across while trying to deploy the 10.15.1.3 > >> artifacts to the Nexus staging repository. > >> > >> The deployment of derby.war is failing with the error included at the > >> end of this message. I am not a maven expert and the advice on the web > >> does not help me move this forward. I have tried running the following > >> command... > >> > >> mvn -Dgpg.passphrase="cat gcn gov vtd nth amc" deploy > >> > >> ...using JDK 6, 7, 8, 9, and 11. I get a different error with JDK 6. > >> With the other JDKs, I get the error at the end of this message. My > >> naive misunderstanding of what's going on is that, for reasons which are > >> hidden in the secret maven handshakes, maven is trying to build a war > >> file and failing--even though we don't want maven to build a war file, > >> we just want to upload derby.war to the repository. > >> > >> I hope that someone can help me push through this error. Otherwise, the > >> only options I see are: > >> > >> 1) Delay the publication of 10.15.1.3 until I have learned enough maven > >> to be able to fix this. That is an unbounded problem. Since this has to > >> happen in my spare time and I am busy, this option could take weeks. > >> > >> 2) Remove the deployment of derby.war. People who want the war file can > >> get it from the Derby distributions. I have never used the war file > >> myself, so I wouldn't miss it. > >> > >> I am leaning toward option 2. > >> > >> I would appreciate any advice which the community can give me. > >> > >> Thanks, > >> -Rick > >> > >> --------------------------------------------- > >> > >> [INFO] [war:war {execution: default-war}] > >> [INFO] Packaging webapp > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] FATAL ERROR > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Cannot construct org.apache.maven.plugin.war.util.WebappStructure > >> as it does not have a no-args constructor > >> ---- Debugging information ---- > >> message : Cannot construct > >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a > >> no-args constructor > >> cause-exception : > >> com.thoughtworks.xstream.converters.reflection.ObjectAccessException > >> cause-message : Cannot construct > >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a > >> no-args constructor > >> class : org.apache.maven.plugin.war.util.WebappStructure > >> required-type : org.apache.maven.plugin.war.util.WebappStructure > >> path : /webapp-structure > >> line number : 1 > >> ------------------------------- > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Trace > >> com.thoughtworks.xstream.converters.ConversionException: Cannot > >> construct org.apache.maven.plugin.war.util.WebappStructure as it does > >> not have a no-args constructor > >> ---- Debugging information ---- > >> message : Cannot construct > >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a > >> no-args constructor > >> cause-exception : > >> com.thoughtworks.xstream.converters.reflection.ObjectAccessException > >> cause-message : Cannot construct > >> org.apache.maven.plugin.war.util.WebappStructure as it does not have a > >> no-args constructor > >> class : org.apache.maven.plugin.war.util.WebappStructure > >> required-type : org.apache.maven.plugin.war.util.WebappStructure > >> path : /webapp-structure > >> line number : 1 > >> ------------------------------- > >> at > >> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63) > >> at > >> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) > >> at > >> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) > >> at > >> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117) > >> at > >> com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29) > >> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846) > >> at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833) > >> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781) > >> at > >> org.apache.maven.plugin.war.util.WebappStructureSerializer.fromXml(WebappStructureSerializer.java:73) > >> at > >> org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:404) > >> at > >> org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:375) > >> at > >> org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:181) > >> at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143) > >> at > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > >> at > >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> at > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> at > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> at java.lang.reflect.Method.invoke(Method.java:606) > >> at > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > >> at > >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >> Caused by: > >> com.thoughtworks.xstream.converters.reflection.ObjectAccessException: > >> Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it > >> does not have a no-args constructor > >> at > >> com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59) > >> at > >> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257) > >> at > >> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124) > >> at > >> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56) > >> ... 31 more > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 1 minute 3 seconds > >> [INFO] Finished at: Mon Mar 04 16:51:32 PST 2019 > >> [INFO] Final Memory: 50M/389M > >> [INFO] > >> ------------------------------------------------------------------------ > >> >