mwiede / jsch

fork of the popular jsch library
Other
723 stars 135 forks source link

Error compiling latest release on netbeans. #275

Open gscorrea opened 1 year ago

gscorrea commented 1 year ago

Getting this error when trying to build on netbeans 16 with OpenJDK 16.0.2. Help really appreciated.

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  02:06 min
Finished at: 2023-02-06T20:28:33-08:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.3.0:jar (default-jar) on project jsch: Error assembling JAR: Failed to determine inclusion status for: W:\home\<user>\<folder>\jsch\.flattened-pom.xml: W:\home\<user>\<folder>\jsch\.flattened-pom.xml: Incorrect function -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
norrisjeremy commented 1 year ago

Hi @gscorrea,

Does the error happen if you use a supported version of Java (i.e. the latest Java 17 release, or the current Java 19 release)? Java 16 is old and no longer supported by the OpenJDK community. Also, if the error still happens for you, can you rerun Maven with the -X switch enabled and post the full build log?

Thanks, Jeremy

gscorrea commented 1 year ago

I did try with java 17, but it then fail before saying 17 is not on the list and list is only 16. I will run compile again with -X and send full trace.