maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Tadeu de Carvalho (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MJMOD-23) Error: path must be a directory
Date Fri, 22 Feb 2019 20:10:00 GMT
Andre Tadeu de Carvalho created MJMOD-23:
--------------------------------------------

             Summary: Error: path must be a directory
                 Key: MJMOD-23
                 URL: https://issues.apache.org/jira/browse/MJMOD-23
             Project: Maven JMod Plugin
          Issue Type: Bug
    Affects Versions: 3.0.0-alpha-2
         Environment: Ubuntu Linux 18.04 LTS, kernel 4.15.0-45-generic, Maven 3.6.0, Java
11.0.2 OpenJDK.
            Reporter: Andre Tadeu de Carvalho


Hi!

I was testing the build of the following project: [https://github.com/java-modularity-examples/maven-jigsaw-examples/tree/master/modularized-args4j-usage] with
the current *master* branch of maven-jmod-plugin and it returned the error below:

 
{code:java}
[DEBUG] /home/andre/.sdkman/candidates/java/11.0.2-open/bin/jmod @/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/jmodCreateArgs
[INFO]
Error: path must be a directory: /home/andre/.m2/repository/args4j/args4j/2.34-SNAPSHOT/args4j-2.34-SNAPSHOT-client.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for modularized-args4j-usage 1.0-SNAPSHOT:
[INFO]
[INFO] modularized-args4j-usage ........................... SUCCESS [ 0.140 s]
[INFO] app ................................................ FAILURE [ 2.154 s]
[INFO] app-jlink .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

{code}
 

and it seems that the error comes from the generated *jmod* command:

 
{code:java}
jmod create \
--module-version \
1.0-SNAPSHOT \
--class-path \
"/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/classes"
\
--main-class \
com.andretadeu.example.args4j.app.Main \
--module-path \
"/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/classes:/home/andre/.m2/repository/args4j/args4j/2.34-SNAPSHOT/args4j-2.34-SNAPSHOT-client.jar:/home/andre/.sdkman/candidates/java/11.0.2-open/jmods"
\
/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/jmods/app.jmod
{code}
which adds *args4j-2.34-SNAPSHOT-client.jar* JAR directly, instead of the folder containing
the modularized JAR. The command should be:
{code:java}
jmod create \
--module-version \
1.0-SNAPSHOT \
--class-path \
"/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/classes"
\
--main-class \
com.andretadeu.example.args4j.app.Main \
--module-path \
"/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/classes:/home/andre/.m2/repository/args4j/args4j/2.34-SNAPSHOT:/home/andre/.sdkman/candidates/java/11.0.2-open/jmods"
\
/home/andre/workspaces/oss/java-modularity-examples/maven-jigsaw-examples/modularized-args4j-usage/app/target/jmods/app.jmod
{code}
Thanks,

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message