[ 
https://issues.apache.org/jira/browse/MJDEPS-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Naman Nigam updated MJDEPS-10:
------------------------------
    Description: 
Moving this from 
[StackOverflow#46727928|https://stackoverflow.com/questions/46727928/error-unknown-option-m-while-using-module-option-of-maven-jdeps-plugin]

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 
bq. Error: unknown option: -M
bq. Usage: jdeps <options> <path ...>]
bq. 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 
pf the attribute? (not aware of what was the initial construct used

  was:
Moving this from 
[StackOverflow#46727928|https://stackoverflow.com/questions/46727928/error-unknown-option-m-while-using-module-option-of-maven-jdeps-plugin]

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


> Error: unknown option: -M while using module option of maven-jdeps-plugin
> -------------------------------------------------------------------------
>
>                 Key: MJDEPS-10
>                 URL: https://issues.apache.org/jira/browse/MJDEPS-10
>             Project: MJDEPS
>          Issue Type: Bug
>            Reporter: Naman Nigam
>
> Moving this from 
> [StackOverflow#46727928|https://stackoverflow.com/questions/46727928/error-unknown-option-m-while-using-module-option-of-maven-jdeps-plugin]
> 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 
> bq. Error: unknown option: -M
> bq. Usage: jdeps <options> <path ...>]
> bq. 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 pf the attribute? (not aware of what was the initial construct used



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to