You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ldebello <lu...@hotmail.com> on 2019/01/14 14:06:35 UTC
activemq-trunk does not compile with Zulu JDK7/8
I was trying to build https://github.com/apache/activemq-artemis with "mvn
-Pdev install -DskipTests=true" but it fails with:
---- 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
-------------------------------
This happens because the "artemis-hawtio/artemis-console/pom.xml" has the
configuration "<useCache>true</useCache>" for maven-war-plugin and it tries
to use xstream to read/write this cache and xstream for Zulu JDK use
PureJavaReflectionProvider which does not support classes with no-args
constructor.
Work-around:
If you remove the useCache configuration the build will take longer but it
will work.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: activemq-trunk does not compile with Zulu JDK7/8
Posted by ldebello <lu...@hotmail.com>.
I have just posted this here in case someone else hit this issue, giving the
fact this is very specific to zulu jvm which is not being taking into
account in xstream, I do not want to slow down the build of everybody just
because my build fails. Also the useCache is marked as experimental in
documentation so this kind of issue can happen.
If others start hitting this it can be useful to change the parameter or
have another profile or a way to skip this cache
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: activemq-trunk does not compile with Zulu JDK7/8
Posted by Tim Bain <tb...@alumni.duke.edu>.
It sounds like you're proposing a code change, so you'd need to submit an
enhancement request in JIRA for it.
Tim
On Mon, Jan 14, 2019, 7:14 AM ldebello <luis_debello@hotmail.com wrote:
> I was trying to build https://github.com/apache/activemq-artemis with "mvn
> -Pdev install -DskipTests=true" but it fails with:
>
> ---- 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
> -------------------------------
>
> This happens because the "artemis-hawtio/artemis-console/pom.xml" has the
> configuration "<useCache>true</useCache>" for maven-war-plugin and it tries
> to use xstream to read/write this cache and xstream for Zulu JDK use
> PureJavaReflectionProvider which does not support classes with no-args
> constructor.
>
> Work-around:
> If you remove the useCache configuration the build will take longer but it
> will work.
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>