Skip to content

Remove plexus-container-default depedency #1857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
matejsp opened this issue Aug 9, 2019 · 7 comments · Fixed by #2099
Closed

Remove plexus-container-default depedency #1857

matejsp opened this issue Aug 9, 2019 · 7 comments · Fixed by #2099
Labels
Milestone

Comments

@matejsp
Copy link

matejsp commented Aug 9, 2019

Based on codehaus-plexus/plexus-containers#17 this dependency is obsolete and should be removed.

Why? I am having a problem running mapstruct in intelij when using module-info.java

Information:java: compiler message file broken: key=compiler.misc.msg.bug arguments=11, {1}, {2}, {3}, {4}, {5}, {6}, {7}
Information:java: java.lang.module.FindException: Unable to derive module descriptor for /Users/mspiller/.m2/repository/org/codehaus/plexus/plexus-container-default/1.6/plexus-container-default-1.6.jar
Information:java: 	at java.base/jdk.internal.module.ModulePath.readJar(ModulePath.java:647)
Information:java: 	at java.base/jdk.internal.module.ModulePath.readModule(ModulePath.java:330)
Information:java: 	at java.base/jdk.internal.module.ModulePath.scan(ModulePath.java:236)
Information:java: 	at java.base/jdk.internal.module.ModulePath.scanNextEntry(ModulePath.java:189)
Information:java: 	at java.base/jdk.internal.module.ModulePath.findAll(ModulePath.java:165)
Information:java: 	at java.base/java.lang.module.Resolver.findAll(Resolver.java:842)
Information:java: 	at java.base/java.lang.module.Resolver.bind(Resolver.java:223)
Information:java: 	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:482)
Information:java: 	at java.base/java.lang.module.Configuration.resolveAndBind(Configuration.java:288)
Information:java: 	at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getServiceLoader(JavacFileManager.java:985)
Information:java: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Information:java: 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Information:java: 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Information:java: 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Information:java: 	at org.jetbrains.jps.javac.JavacMain$2.invoke(JavacMain.java:290)
Information:java: 	at com.sun.proxy.$Proxy22.getServiceLoader(Unknown Source)
Information:java: 	at com.sun.proxy.$Proxy23.getServiceLoader(Unknown Source)
Information:java: 	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorLoader(JavacProcessingEnvironment.java:261)
Information:java: 	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(JavacProcessingEnvironment.java:237)
Information:java: 	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.instance(JavacProcessingEnvironment.java:193)
Information:java: 	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.initProcessAnnotations(JavaCompiler.java:1136)
Information:java: 	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:922)
Information:java: 	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
Information:java: 	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)
Information:java: 	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
Information:java: 	at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
Information:java: 	at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:195)
Information:java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:460)
Information:java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:330)
Information:java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:255)
Information:java: 	at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:213)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1324)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1004)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1071)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:965)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:794)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:376)
Information:java: 	at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
Information:java: 	at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:139)
Information:java: 	at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:288)
Information:java: 	at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:121)
Information:java: 	at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:228)
Information:java: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
Information:java: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Information:java: 	at java.base/java.lang.Thread.run(Thread.java:834)
Information:java: Caused by: java.lang.IllegalArgumentException: plexus.container.default: Invalid module name: 'default' is not a Java identifier
Information:java: 	at java.base/jdk.internal.module.Checks.requireModuleName(Checks.java:59)
Information:java: 	at java.base/java.lang.module.ModuleDescriptor$Builder.<init>(ModuleDescriptor.java:1550)
Information:java: 	at java.base/java.lang.module.ModuleDescriptor.newAutomaticModule(ModuleDescriptor.java:2438)
Information:java: 	at java.base/jdk.internal.module.ModulePath.deriveModuleDescriptor(ModulePath.java:507)
Information:java: 	at java.base/jdk.internal.module.ModulePath.readJar(ModulePath.java:643)
Information:java: 	... 49 more
Information:java: Errors occurred while compiling module 'zzzz-api'
Information:javac 11 was used to compile java sources
Information:2019-08-09 16:09 - Build completed with 1 error and 1 warning in 3 s 245 ms
Error:java: Compilation failed: internal java compiler error
@filiphr
Copy link
Member

filiphr commented Aug 11, 2019

This is a known IntelliJ problem, see IDEA-200481.

The plexus-container-default-dependency is a test dependency which is being incorrectly picked up by IntelliJ.

@filiphr filiphr closed this as completed Aug 11, 2019
@imochurad
Copy link

Is there a chance that this issue will get fixed on MapStruct end? It doesn't seem as IntelliJ team has it at the top of their priority list. When it comes down to whether to use MapStruct or IntelliJ, MapStruct will be dropped in favor of IntelliJ.

@filiphr
Copy link
Member

filiphr commented Apr 12, 2020

I'll do that. I'll make sure that the next release does not publish the test dependencies in the pom. That's what I did for the Gem Tools

@filiphr filiphr reopened this Apr 12, 2020
@filiphr filiphr added this to the 1.4.0 milestone Apr 12, 2020
@filiphr filiphr added the build label Apr 12, 2020
@imochurad
Copy link

Thank you for reopening this issue! Any rough ETA on the new release with this problem tackled?
I do not mean to push it, just need to plan accordingly on my end.

@filiphr
Copy link
Member

filiphr commented Apr 13, 2020

I can't give you an ETA in the moment. However, we are aware that we need to do a release as soon as possible. There are number of improvements already on master that a lot of people are awaiting for.

Currently we have 2 issues that we would like to resolve before going for the next release:

  • Using constructors for mapping - working on it currently
  • ValueMapping SPI - a PR needs to be reviewed

@imochurad
Copy link

imochurad commented Apr 14, 2020

Can this get fixed and then users could reference a developer build?

@filiphr
Copy link
Member

filiphr commented Apr 15, 2020

I already said earlier that we are going to look into it and try to fix it. That is why I reopened it and added it to the 1.4 release.

filiphr added a commit to filiphr/mapstruct that referenced this issue May 17, 2020
…rom released pom

For some reason when using annotationProcessorPaths IntelliJ includes the provided and test scoped dependencies on the annotation processor paths.
With this change there would be no test dependencies that IntelliJ can add.
filiphr added a commit that referenced this issue May 17, 2020
…sed pom

For some reason when using annotationProcessorPaths IntelliJ includes the provided and test scoped dependencies on the annotation processor paths.
With this change there would be no test dependencies that IntelliJ can add.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants