Bytecoder icon indicating copy to clipboard operation
Bytecoder copied to clipboard

Add dependencies for maven

Open ansjain83 opened this issue 3 years ago • 2 comments

I would like to use external decencies like 'org.json' , added to maven but getting following error while running 'mvn clean install' Failed to execute goal de.mirkosertic.bytecoder:bytecoder-mavenplugin:2021-11-02:compile (default) on project com.test.webassembly: Error running bytecoder: Cannot find virtual method getPackage in non-abstract class java/lang/Class with signature java.lang.Package() -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

ansjain83 avatar Jun 01 '22 12:06 ansjain83

Hi!

Thank you for using Bytecoder!

JSON unmarshalling support implemented by third party libraries like GSON etc. is currently not fully supported and implemented, due to some missing JPMS APIs in Bytecoder and very limited reflection support due to AOT compilation.

Sorry, thats the way it is. There is no quick fix available.

Mirko

mirkosertic avatar Jun 03 '22 07:06 mirkosertic

See also #733

mirkosertic avatar Jun 03 '22 07:06 mirkosertic

Closed due to no further feedback.

mirkosertic avatar Mar 29 '23 16:03 mirkosertic