Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7261

help:evaluate throws serious warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.8.2
    • None
    • Command Line

    Description

      Problem

      mvn help:evaluate throws serious warnings:

      $ mvn help:evaluate -Dexpression=project.modules --quiet -DforceStdout
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/Users/alan/.m2/repository/com/thoughtworks/xstream/xstream/1.4.11.1/xstream-1.4.11.1.jar) to field java.util.TreeMap.comparator
      WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      <strings>
        <string>child-1</string>
        <string>child-2</string>
        <string>child-3</string>
      </strings>
      

      Background

      Maven & JDK version:

      $ mvn -v
      Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
      Maven home: /usr/local/Cellar/maven/3.8.2/libexec
      Java version: 11.0.12, vendor: Amazon.com Inc., runtime: /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
      Default locale: en_CA, platform encoding: UTF-8
      OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
      

      Create a multi-module project similar to:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
      
        <groupId>com.example</groupId>
        <artifactId>parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
      
        <packaging>pom</packaging>
      
        <name>Example - Parent</name>
        <description>${project.name}</description>
      
        <modules>
          <module>child-1</module>
          <module>child-2</module>
          <module>child-3</module>
        </modules>
      
        ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            alan-czajkowski Alan Czajkowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: