Skip to content

[MCOMPILER-495] createMissingPackageInfoClasses fails in packages that only contain a package-info.java #714

@jira-importer

Description

@jira-importer

Jeff Maxwell opened MCOMPILER-495 and commented

createMissingPackageInfoClasses fails in packages that only contain a package-info.java as the parent path may not be created.

 

Warning:  Error creating missing package info classes java.nio.file.NoSuchFileException: /home/runner/work/spring/spring/security/crypto/spring-boot-security-crypto/target/classes/com/myorg/spring/boot/security/crypto/web/server/embedded/package-info.class     at sun.nio.fs.UnixException.translateToIOException (UnixException.java:92)     at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:106)     at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:111)     at sun.nio.fs.UnixFileSystemProvider.newByteChannel (UnixFileSystemProvider.java:218)     at java.nio.file.spi.FileSystemProvider.newOutputStream (FileSystemProvider.java:484)     at java.nio.file.Files.newOutputStream (Files.java:228)     at java.nio.file.Files.write (Files.java:3512)     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.createMissingPackageInfoClasses (AbstractCompilerMojo.java:1364)     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1229)     at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:198)     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:210)     at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:195)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)     at java.util.concurrent.FutureTask.run (FutureTask.java:264)     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)     at java.lang.Thread.run (Thread.java:833)

Affects: 3.10.0, 3.10.1

Remote Links:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions