Uploaded image for project: 'Maven JDeps Plugin'
  1. Maven JDeps Plugin
  2. MJDEPS-10

Error: unknown option: -M while using module option of maven-jdeps-plugin

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1
    • None

    Description

      Moving this from StackOverflow#46727928

      Using minimal pom.xml with Java9 as -

          <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-jdeps-plugin</artifactId>
                  <version>3.1.0</version>
                  <configuration>
                      <module>true</module>
                  </configuration>
                  <executions>
                      <execution>
                          <goals>
                              <goal>jdkinternals</goal> <!-- verify main classes -->
                              <goal>test-jdkinternals</goal> <!-- verify test classes -->
                          </goals>
                      </execution>
                  </executions>
              </plugin>
      

      Results into

      Error: unknown option: -M
      Usage: jdeps <options> <path ...>]
      use -h, -?, -help, or --help for a list of possible options
      

      Also, -m <module-name>/ --module <module-name> in the tool I can see are used to specify the root module for analysis..would this also need a change in Type of the attribute? (not aware of what was the initial construct of the tool used to be)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rfscholte Robert Scholte
            namannigam12 Naman Nigam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment