XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Maven WAR plugin fails on Java 9 because of a dependency on XStream.

      XStream issue: https://github.com/x-stream/xstream/issues/74
      War plugin issue: https://issues.apache.org/jira/browse/MWAR-397

      Work around can be to set

       export MAVEN_OPTS="--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED"
      

      Modules that fail are:

      [INFO] Camel :: Example :: ActiveMQ :: Tomcat                      
      [INFO] Camel :: Example :: CDI :: REST :: Servlet                   
      [INFO] Camel :: Example :: CXF :: Tomcat                            
      [INFO] Camel :: Example :: Report Incident                          
      [INFO] Camel :: Example :: Restlet :: JDBC                          
      [INFO] Camel :: Example :: Servlet REST Blueprint                   
      [INFO] Camel :: Example :: Servlet Tomcat                           
      [INFO] Camel :: Example :: Servlet Tomcat without Spring            
      [INFO] Camel :: Example :: Spring :: Web Services                   
      [INFO] Camel :: Example :: Spring :: Security                       
      [INFO] Camel :: Example :: Swagger :: (XML)  
      

      Attachments

        Issue Links

          Activity

            People

              jpoth John Poth
              jpoth John Poth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: