[jira] [Commented] (MNG-7759) java.lang.NullPointerException at org.apache.maven.repository.internal.DefaultModelCache.newInstance (DefaultModelCache.java:37)

2023-04-12 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MNG-7759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17711680#comment-17711680
 ] 

Rich M commented on MNG-7759:
-

[~cstamas] I was able to test it now, and the fix works perfectly fine. As you 
mentioned, I do see several warnings, but none of that blocks me for now. 
Thanks for the quick fix. By when should I expect version 3.9.2 released ?

> java.lang.NullPointerException at 
> org.apache.maven.repository.internal.DefaultModelCache.newInstance 
> (DefaultModelCache.java:37)
> 
>
> Key: MNG-7759
> URL: https://issues.apache.org/jira/browse/MNG-7759
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.9.1
>Reporter: Rich M
>Assignee: Tamas Cservenak
>Priority: Major
> Fix For: 3.9.2, 4.0.0-alpha-6, 4.0.0
>
>
> I am using grails-maven-plugin, and the execution fails with Maven version 
> 3.9.1. It works perfectly fine with Maven version 3.8.8.
>  
> [ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.4:clean 
> (default-clean) on project XX: Failed to create classpath for Grails 
> execution.: NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.grails:grails-maven-plugin:2.4.4:clean (default-clean) on project 
> XX: Failed to create classpath for Grails execution.
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:347)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create 
> classpath for Grails execution.
>     at org.grails.maven.plugin.AbstractGrailsMojo.resolveBuildDependencies 
> (AbstractGrailsMojo.java:585)
>     at org.grails.maven.plugin.AbstractGrailsMojo.createExecutionContext 
> (AbstractGrailsMojo.java:380)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:371)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:334)
>     at org.grails.maven.plugin.GrailsCleanMojo.execute 
> (GrailsCleanMojo.java:35)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at 

[jira] [Commented] (MNG-7759) java.lang.NullPointerException at org.apache.maven.repository.internal.DefaultModelCache.newInstance (DefaultModelCache.java:37)

2023-04-12 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MNG-7759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17711441#comment-17711441
 ] 

Rich M commented on MNG-7759:
-

[~cstamas] is there a way I can download your PR code as a Maven zip to test it 
locally ?

> java.lang.NullPointerException at 
> org.apache.maven.repository.internal.DefaultModelCache.newInstance 
> (DefaultModelCache.java:37)
> 
>
> Key: MNG-7759
> URL: https://issues.apache.org/jira/browse/MNG-7759
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.9.1
>Reporter: Rich M
>Assignee: Tamas Cservenak
>Priority: Major
> Fix For: 3.9.2, 4.0.0-alpha-6, 4.0.0
>
>
> I am using grails-maven-plugin, and the execution fails with Maven version 
> 3.9.1. It works perfectly fine with Maven version 3.8.8.
>  
> [ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.4:clean 
> (default-clean) on project XX: Failed to create classpath for Grails 
> execution.: NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.grails:grails-maven-plugin:2.4.4:clean (default-clean) on project 
> XX: Failed to create classpath for Grails execution.
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:347)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create 
> classpath for Grails execution.
>     at org.grails.maven.plugin.AbstractGrailsMojo.resolveBuildDependencies 
> (AbstractGrailsMojo.java:585)
>     at org.grails.maven.plugin.AbstractGrailsMojo.createExecutionContext 
> (AbstractGrailsMojo.java:380)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:371)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:334)
>     at org.grails.maven.plugin.GrailsCleanMojo.execute 
> (GrailsCleanMojo.java:35)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at 

[jira] [Commented] (MNG-7759) java.lang.NullPointerException at org.apache.maven.repository.internal.DefaultModelCache.newInstance (DefaultModelCache.java:37)

2023-04-12 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MNG-7759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17711249#comment-17711249
 ] 

Rich M commented on MNG-7759:
-

Thanks [~cstamas] for letting me know. I am hoping the plugin developers will 
upgrade it to Maven 3, otherwise we will need to find a way to move away from 
this plugin. For now, will the Maven version 3.9.2 fix the NPE issue ?

> java.lang.NullPointerException at 
> org.apache.maven.repository.internal.DefaultModelCache.newInstance 
> (DefaultModelCache.java:37)
> 
>
> Key: MNG-7759
> URL: https://issues.apache.org/jira/browse/MNG-7759
> Project: Maven
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.9.1
>Reporter: Rich M
>Priority: Major
> Fix For: 3.9.2, 4.0.0-alpha-6, 4.0.0
>
>
> I am using grails-maven-plugin, and the execution fails with Maven version 
> 3.9.1. It works perfectly fine with Maven version 3.8.8.
>  
> [ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.4:clean 
> (default-clean) on project XX: Failed to create classpath for Grails 
> execution.: NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.grails:grails-maven-plugin:2.4.4:clean (default-clean) on project 
> XX: Failed to create classpath for Grails execution.
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:347)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create 
> classpath for Grails execution.
>     at org.grails.maven.plugin.AbstractGrailsMojo.resolveBuildDependencies 
> (AbstractGrailsMojo.java:585)
>     at org.grails.maven.plugin.AbstractGrailsMojo.createExecutionContext 
> (AbstractGrailsMojo.java:380)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:371)
>     at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
> (AbstractGrailsMojo.java:334)
>     at org.grails.maven.plugin.GrailsCleanMojo.execute 
> (GrailsCleanMojo.java:35)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at 

[jira] [Created] (MNG-7759) java.lang.NullPointerException at org.apache.maven.repository.internal.DefaultModelCache.newInstance (DefaultModelCache.java:37)

2023-04-11 Thread Rich M (Jira)
Rich M created MNG-7759:
---

 Summary: java.lang.NullPointerException at 
org.apache.maven.repository.internal.DefaultModelCache.newInstance 
(DefaultModelCache.java:37)
 Key: MNG-7759
 URL: https://issues.apache.org/jira/browse/MNG-7759
 Project: Maven
  Issue Type: Bug
  Components: Core
Affects Versions: 3.9.1
Reporter: Rich M


I am using grails-maven-plugin, and the execution fails with Maven version 
3.9.1. It works perfectly fine with Maven version 3.8.8.

 

[ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.4:clean 
(default-clean) on project XX: Failed to create classpath for Grails 
execution.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.grails:grails-maven-plugin:2.4.4:clean (default-clean) on project XX: 
Failed to create classpath for Grails execution.
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:347)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create 
classpath for Grails execution.
    at org.grails.maven.plugin.AbstractGrailsMojo.resolveBuildDependencies 
(AbstractGrailsMojo.java:585)
    at org.grails.maven.plugin.AbstractGrailsMojo.createExecutionContext 
(AbstractGrailsMojo.java:380)
    at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
(AbstractGrailsMojo.java:371)
    at org.grails.maven.plugin.AbstractGrailsMojo.runGrails 
(AbstractGrailsMojo.java:334)
    at org.grails.maven.plugin.GrailsCleanMojo.execute (GrailsCleanMojo.java:35)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:342)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 

[jira] [Created] (MEAR-308) Facing issues with "deleting outdated resource"

2022-04-04 Thread Rich M (Jira)
Rich M created MEAR-308:
---

 Summary: Facing issues with "deleting outdated resource"
 Key: MEAR-308
 URL: https://issues.apache.org/jira/browse/MEAR-308
 Project: Maven EAR Plugin
  Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Rich M
 Attachments: build.log, earmetainfissue.zip

I am using maven-resources plugin to copy an additional file insider EAR 
META-INF folder. It works fine for the first time with clean. But when run 
again without clean, EAR plugin deletes the file saying "deleting outdated 
resource...".

The pipeline runs the clean install first, and then run mvn deploy at later 
stage. Since mvn deploy builds ear again, it results in ear without the 
additional file.

Here is a sample code attached. To recreate the problem:
 # Run mvn clean package. Note that \target\testear-1.0\META-INF will have 2 
files.
 # Run mvn package. \target\testear-1.0\META-INF will have only 1 file now.

How can this behavior be fixed ?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (SUREFIRE-1928) NullPointerException at AbstractSurefireMojo.java:3300

2021-07-14 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/SUREFIRE-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17380723#comment-17380723
 ] 

Rich M commented on SUREFIRE-1928:
--

[~tibordigana], any further update on this ?

> NullPointerException at AbstractSurefireMojo.java:3300
> --
>
> Key: SUREFIRE-1928
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1928
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: Maven Surefire Plugin
>Affects Versions: 3.0.0-M5
> Environment: Windows, Java 8
>Reporter: Rich M
>Assignee: Tibor Digana
>Priority: Blocker
>
> I have following dependency in my pom:
> 
> org.apache.maven.plugins
> maven-surefire-plugin
> 3.0.0-M5
>   
> 
> org.apache.maven.surefire
> surefire-junit-platform
> 3.0.0-M5  
> 
> 
> 
>  
> Running the tests leads to NPE:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) 
> on project junit5: Execution default-test of goal org.ap
> ache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.: 
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test 
> (default-test) on proje
> ct junit5: Execution default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:90)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:55)
>  at java.lang.reflect.Method.invoke (Method.java:508)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:148)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:90)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> 

[jira] [Commented] (SUREFIRE-1928) NullPointerException at AbstractSurefireMojo.java:3300

2021-07-06 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/SUREFIRE-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17376120#comment-17376120
 ] 

Rich M commented on SUREFIRE-1928:
--

Not sure if the issue is same. It reports NPE on setCachedClasspath 
(AbstractSurefireMojo.java:4121), while I am seeing at 
JUnitPlatformProviderInfo.alignProviderVersions 
(AbstractSurefireMojo.java:3300).

I also tried using mvn test -e -T 1C -Daether.metadataResolver.threads=1 but no 
change.

> NullPointerException at AbstractSurefireMojo.java:3300
> --
>
> Key: SUREFIRE-1928
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1928
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: Maven Surefire Plugin
>Affects Versions: 3.0.0-M5
> Environment: Windows, Java 8
>Reporter: Rich M
>Assignee: Tibor Digana
>Priority: Blocker
>
> I have following dependency in my pom:
> 
> org.apache.maven.plugins
> maven-surefire-plugin
> 3.0.0-M5
>   
> 
> org.apache.maven.surefire
> surefire-junit-platform
> 3.0.0-M5  
> 
> 
> 
>  
> Running the tests leads to NPE:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) 
> on project junit5: Execution default-test of goal org.ap
> ache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.: 
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test 
> (default-test) on proje
> ct junit5: Execution default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:90)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:55)
>  at java.lang.reflect.Method.invoke (Method.java:508)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:148)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main 

[jira] [Commented] (SUREFIRE-1928) NullPointerException at AbstractSurefireMojo.java:3300

2021-07-06 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/SUREFIRE-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17376114#comment-17376114
 ] 

Rich M commented on SUREFIRE-1928:
--

[~tibordigana] I am using Maven 3.8.1, which is the latest available version.

> NullPointerException at AbstractSurefireMojo.java:3300
> --
>
> Key: SUREFIRE-1928
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1928
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: Maven Surefire Plugin
>Affects Versions: 3.0.0-M5
> Environment: Windows, Java 8
>Reporter: Rich M
>Assignee: Tibor Digana
>Priority: Blocker
>
> I have following dependency in my pom:
> 
> org.apache.maven.plugins
> maven-surefire-plugin
> 3.0.0-M5
>   
> 
> org.apache.maven.surefire
> surefire-junit-platform
> 3.0.0-M5  
> 
> 
> 
>  
> Running the tests leads to NPE:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) 
> on project junit5: Execution default-test of goal org.ap
> ache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.: 
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test 
> (default-test) on proje
> ct junit5: Execution default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:90)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:55)
>  at java.lang.reflect.Method.invoke (Method.java:508)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-test of goal 
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:148)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>  at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>  at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:90)
>  at 

[jira] [Created] (SUREFIRE-1928) NullPointerException at AbstractSurefireMojo.java:3300

2021-07-06 Thread Rich M (Jira)
Rich M created SUREFIRE-1928:


 Summary: NullPointerException at AbstractSurefireMojo.java:3300
 Key: SUREFIRE-1928
 URL: https://issues.apache.org/jira/browse/SUREFIRE-1928
 Project: Maven Surefire
  Issue Type: Bug
  Components: Maven Surefire Plugin
Affects Versions: 3.0.0-M5
 Environment: Windows, Java 8
Reporter: Rich M


I have following dependency in my pom:



org.apache.maven.plugins

maven-surefire-plugin

3.0.0-M5

  



org.apache.maven.surefire

surefire-junit-platform

3.0.0-M5  







 

Running the tests leads to NPE:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on 
project junit5: Execution default-test of goal org.ap
ache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.: 
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on 
proje
ct junit5: Execution default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:215)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
 at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:90)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke (Method.java:508)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test failed.
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:148)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
 at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
 at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
 at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
 at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
 at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
 at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:90)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke (Method.java:508)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NullPointerException
 at 

[jira] [Created] (SUREFIRE-1920) After adding junit-platform-runner dependency, Junit 5 test cases are ignored

2021-06-25 Thread Rich M (Jira)
Rich M created SUREFIRE-1920:


 Summary: After adding junit-platform-runner dependency, Junit 5 
test cases are ignored
 Key: SUREFIRE-1920
 URL: https://issues.apache.org/jira/browse/SUREFIRE-1920
 Project: Maven Surefire
  Issue Type: Bug
  Components: Maven Surefire Plugin
Affects Versions: 3.0.0-M5
Reporter: Rich M


I want to run Junit 4 and 5 test cases in same project. Some of the JUnit5 test 
cases also have @RunWith(JUnitPlatform.class) annotation to run with Junit4.

To successfully compile class having above annotation, I would need to add 
"junit-platform-runner" dependency in pom.xml, but the moment I add it, Maven 
ignores JUnit 5 test cases.

I have tried various combinations but nothing seems to work. Note that if I 
remove the class having above annotation and remove "junit-platform-runner" 
dependency from pom, then Maven is able to run the remaining Junit 4 and 5 test 
cases successfully. Problem seems to be only with @RunWith(JUnitPlatform.class) 
annotation and "junit-platform-runner" dependency.

Note that when I use maven-surefire-plugin version 3.0.0-M4, then everything 
works fine. Seems to be a bug with 3.0.0-M5. 

Source code - [https://github.com/niajthat/junit45]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-05 Thread Rich M (Jira)


 [ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rich M updated MCOMPILER-463:
-
Attachment: debug_compiler error with 381.log

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, debug_compiler error with 
> 381.log, no error with 380.log, sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-05 Thread Rich M (Jira)


 [ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rich M updated MCOMPILER-463:
-
Attachment: (was: debug_compiler error with 381.log)

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, no error with 380.log, 
> sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-05 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339768#comment-17339768
 ] 

Rich M commented on MCOMPILER-463:
--

here it is (debug_compiler error with 381.log)..

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, debug_compiler error with 
> 381.log, no error with 380.log, sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-05 Thread Rich M (Jira)


 [ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rich M updated MCOMPILER-463:
-
Attachment: debug_compiler error with 381.log

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, debug_compiler error with 
> 381.log, no error with 380.log, sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-05 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339754#comment-17339754
 ] 

Rich M commented on MCOMPILER-463:
--

Could be, but there is something in version 3.8.1 which is causing it to fail.

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, no error with 380.log, 
> sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-04 Thread Rich M (Jira)


[ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17339056#comment-17339056
 ] 

Rich M commented on MCOMPILER-463:
--

[~michael-o] Here is the hello-world throwing error with 3.8.1 and working fine 
with 3.8.0. Also attaching the logs.

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, no error with 380.log, 
> sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-04 Thread Rich M (Jira)


 [ 
https://issues.apache.org/jira/browse/MCOMPILER-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rich M updated MCOMPILER-463:
-
Attachment: no error with 380.log
sample.zip
compiler error with 381.log

> Missing class - org.codehaus.plexus.compiler.CompilerException
> --
>
> Key: MCOMPILER-463
> URL: https://issues.apache.org/jira/browse/MCOMPILER-463
> Project: Maven Compiler Plugin
>  Issue Type: Bug
>Affects Versions: 3.8.1
>Reporter: Rich M
>Priority: Major
> Attachments: compiler error with 381.log, no error with 380.log, 
> sample.zip
>
>
> I am not sure what I am doing wrong here. Seems like a bug to me.
> I am trying to use compiler version 3.8.1 and it results in following error:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
> (default-compile) on project hello-world: Execution default-compile of goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A 
> required class was missing while executing 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
> org.codehaus.plexus.compiler.CompilerException
> [ERROR] -
> [ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = 
> file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
> [ERROR] urls[1] = 
> file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
> In pom.xml,:
> 
>   
>     
>   org.apache.maven.plugins
>   maven-compiler-plugin
>   3.8.1
>    
>   
> 
> Note that the moment I change version to 3.8.0, everything starts working 
> fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (MCOMPILER-463) Missing class - org.codehaus.plexus.compiler.CompilerException

2021-05-03 Thread Rich M (Jira)
Rich M created MCOMPILER-463:


 Summary: Missing class - 
org.codehaus.plexus.compiler.CompilerException
 Key: MCOMPILER-463
 URL: https://issues.apache.org/jira/browse/MCOMPILER-463
 Project: Maven Compiler Plugin
  Issue Type: Bug
Affects Versions: 3.8.1
Reporter: Rich M


I am not sure what I am doing wrong here. Seems like a bug to me.

I am trying to use compiler version 3.8.1 and it results in following error:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) 
on project hello-world: Execution default-compile of goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: A required 
class was missing while executing 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile: 
org.codehaus.plexus.compiler.CompilerException
[ERROR] -
[ERROR] realm = plugin>org.apache.maven.plugins:maven-compiler-plugin:3.8.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = 
file:/C:/Users/user/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.8.1/maven-compiler-plugin-3.8.1.jar
[ERROR] urls[1] = 
file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]

In pom.xml,:


  
    
  org.apache.maven.plugins
  maven-compiler-plugin
  3.8.1
   
  


Note that the moment I change version to 3.8.0, everything starts working fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)