Open yukihane opened 1 year ago
exec:java
executes main method of given class in existing JVM. Unless requested class is in org.codehaus.mojo.exec
- it has to be public I belive.
Use exec:exec
to execute Main.main in external java process.
This is likely a regression, it works with v1.5.0
. Probably due to using MethodHandles.publicLookup()
in #119. Having main
in a package-private visible class is valid.
When executing
mvn clean compile exec:java
, following error occurs:On the other hand,
java src/main/java/Main.java
command does well.I think a main class doesn't need to be public.
RESOURCES
src/main/java/Main.java
:pom.xml
: