VirtualBox

Opened 9 years ago

Closed 6 years ago

#14118 closed defect (fixed)

Incorrect function with maven-assembly-plugin

Reported by: CoolBalance Owned by:
Component: shared folders Version: VirtualBox 4.3.28
Keywords: maven "Incorrect Function" Cc:
Guest type: Windows Host type: Linux

Description

Running Ubuntu 15.04 host (problem also exists with 14.10 - didn't test elsewhere) and Windows XP (tested Windows 7 as well) guest. Run a simple maven-assembly build results in a failure reporting "Incorrect Function". I've attached a simple project to reproduce this. Note that the problem occurs with maven-assembly-plugin versions later than 2.4.1. (current is 2.5.4). The problem exists in earlier versions of VirtualBox as well. Unzip the zip somewhere and run "mvn package" from the project folder. (testassembly). Tested several java versions (6,7,8)

Attachments (2)

testassembly.zip (2.1 KB ) - added by CoolBalance 9 years ago.
Simple maven project to show maven-assembly-plugin "Incorrect Function" bug
VBox.log.old (220.0 KB ) - added by IanFromCanada 8 years ago.
vbox log file from windows 7 guest with maven war issue on shared directory

Download all attachments as: .zip

Change History (18)

by CoolBalance, 9 years ago

Attachment: testassembly.zip added

Simple maven project to show maven-assembly-plugin "Incorrect Function" bug

comment:1 by CoolBalance, 9 years ago

I forgot to mention that this occurs using shared folders only. Using the internal local drive works fine.

comment:2 by jaagup, 9 years ago

Same issue on Windows 8.1 host and Windows Server 2008 R2 guest with maven-war-plugin.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project <project-name>: Error assembling WAR: Failed to determine inclusion status for: G:\<project-dir>\target\<project-name-with-version>\WEB-INF\web.xml: G:\<project-dir>\target\<project-name-with-version>\WEB-INF\web.xml: Incorrect function. -> [Help 1]

comment:3 by CoolBalance, 8 years ago

VirtualBox 5.0.12r104815 still has the issue. (used maven 3.3.9 as well).

comment:4 by Frank Mehnert, 8 years ago

Could you also attach a VBox.log file of a VM session when you ran the plugin in the guest?

comment:5 by AntMan, 8 years ago

I have the same problem with maven-war-plugin version 2.6.

VirtualBox version 5.0.14 r105127
Host OS: Windows 7 Enterprise SP1
Hosting OS: OSX El Capitan 10.11.3

The problem persists also for maven-assembly plugin and relates only to shared folders mounted as drives.

Last edited 8 years ago by AntMan (previous) (diff)

by IanFromCanada, 8 years ago

Attachment: VBox.log.old added

vbox log file from windows 7 guest with maven war issue on shared directory

comment:6 by IanFromCanada, 8 years ago

Same problem for me on vbox 5.1.2 r108956 with windows 7x32 guest. I've attached my vbox.log file since one was requested earlier.

This used to work before I upgraded to vbox 5. I think I was last on version 4 something though.

comment:7 by IanFromCanada, 8 years ago

Last edited 8 years ago by IanFromCanada (previous) (diff)

comment:8 by IanFromCanada, 8 years ago

switching from maven-war-plugin 2.6 down to 2.4 allows maven to succeed.

<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version>

or moving the code to a non shared folder and keeping 2.6 or 2.5.

comment:9 by Daan, 7 years ago

I did install the latest version of Virtual Box (5.1.14) on the the host and the guest extensions on the guest. The problem still occurs. And not only with the war plugin, but also with the jar plugin.

Host: Windows 10, Guest: Windows 7

(Using a standard share does not seem to be a workaround, because the guest needs a VPN connection that modifies the routing table.)

Last edited 7 years ago by Daan (previous) (diff)

comment:10 by gnodet, 7 years ago

Same here with Virtual Box 5.1.18.
Host: OS X 10.12.3
Guest: Windows 7 64 bits or Windows 10 64 bits

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project jline-terminal: Error assembling JAR
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	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:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR
	at org.apache.maven.plugins.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:231)
	at org.apache.maven.plugins.jar.AbstractJarMojo.execute(AbstractJarMojo.java:255)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 20 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Failed to determine inclusion status for: Z:\work\git\jline3\terminal\pom.xml
	at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:468)
	at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:375)
	at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:591)
	at org.apache.maven.plugins.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:224)
	... 23 more
Caused by: java.nio.file.FileSystemException: Z:\work\git\jline3\terminal\pom.xml: Incorrect function.

	at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
	at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:90)
	at sun.nio.fs.WindowsAclFileAttributeView.getFileSecurity(WindowsAclFileAttributeView.java:88)
	at sun.nio.fs.WindowsAclFileAttributeView.getOwner(WindowsAclFileAttributeView.java:121)
	at sun.nio.fs.FileOwnerAttributeViewImpl.getOwner(FileOwnerAttributeViewImpl.java:91)
	at org.codehaus.plexus.components.io.attributes.Java7FileAttributes.<init>(Java7FileAttributes.java:89)
	at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPathJava7(PlexusIoResourceAttributeUtils.java:336)
	at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:198)
	at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributes(PlexusIoResourceAttributeUtils.java:175)
	at org.codehaus.plexus.components.io.resources.ResourceFactory.createResource(ResourceFactory.java:21)
	at org.codehaus.plexus.archiver.ArchiveEntry.createFileEntry(ArchiveEntry.java:208)
	at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:464)
	... 26 more
Last edited 7 years ago by gnodet (previous) (diff)

comment:11 by ayentibco, 7 years ago

Same here with VB 5.1.20 Guest Win2008R2 with maven-jar-plugin:3.0.2. Using shared folders with a git repo on the host.

comment:12 by jcsahnwaldt, 6 years ago

Same error message here.
VirtualBox Version 5.2.6 r120293 (Qt5.6.3)
Host: Mac OS 10.13.2 (17C205)
Guest: Windows 7 Starter 32-bit
(User name of owner of parent\com.foo.bar\target\classes is the same on Host and Guest)

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project com.foo.bar: Error assembling JAR: E:\parent\com.foo.bar\target\classes: Incorrect function. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project com.foo.bar: Error assembling JAR

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR

at org.apache.maven.plugins.jar.AbstractJarMojo.createArchive (AbstractJarMojo.java:231) at org.apache.maven.plugins.jar.AbstractJarMojo.execute (AbstractJarMojo.java:255) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Caused by: org.codehaus.plexus.archiver.ArchiverException: E:\parent\com.foo.bar\target\classes: Incorrect function.

at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext (AbstractArchiver.java:516) at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain (AbstractZipArchiver.java:255) at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute (AbstractZipArchiver.java:233) at org.codehaus.plexus.archiver.AbstractArchiver.createArchive (AbstractArchiver.java:993) at org.apache.maven.archiver.MavenArchiver.createArchive (MavenArchiver.java:649) at org.apache.maven.plugins.jar.AbstractJarMojo.createArchive (AbstractJarMojo.java:224) at org.apache.maven.plugins.jar.AbstractJarMojo.execute (AbstractJarMojo.java:255) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Caused by: java.nio.file.FileSystemException: E:\parent\com.foo.bar\target\classes: Incorrect function.

at sun.nio.fs.WindowsException.translateToIOException (WindowsException.java:86) at sun.nio.fs.WindowsException.rethrowAsIOException (WindowsException.java:90) at sun.nio.fs.WindowsAclFileAttributeView.getFileSecurity (WindowsAclFileAttributeView.java:88) at sun.nio.fs.WindowsAclFileAttributeView.getOwner (WindowsAclFileAttributeView.java:121) at sun.nio.fs.FileOwnerAttributeViewImpl.getOwner (FileOwnerAttributeViewImpl.java:91) at org.codehaus.plexus.components.io.attributes.Java7FileAttributes.<init> (Java7FileAttributes.java:89) at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResourcesJava7 (PlexusIoFileResourceCollection.java:193) at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources (PlexusIoFileResourceCollection.java:288) at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext (AbstractArchiver.java:512) at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain (AbstractZipArchiver.java:255) at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute (AbstractZipArchiver.java:233) at org.codehaus.plexus.archiver.AbstractArchiver.createArchive (AbstractArchiver.java:993) at org.apache.maven.archiver.MavenArchiver.createArchive (MavenArchiver.java:649) at org.apache.maven.plugins.jar.AbstractJarMojo.createArchive (AbstractJarMojo.java:224) at org.apache.maven.plugins.jar.AbstractJarMojo.execute (AbstractJarMojo.java:255) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) 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:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290) at org.apache.maven.cli.MavenCli.main (MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

[ERROR] [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :com.foo.bar

comment:13 by jcsahnwaldt, 6 years ago

Update:
Error occurs with maven-jar-plugin versions 3.0.2, 3.0.1, 3.0.0, 2.6
Error does not occur with maven-jar-plugin version 2.5
Yay! :-)

comment:14 by Valery Ushakov, 6 years ago

Please, can you give a try to a test build of Guest Additions 5.2.*, r120493 or later.

comment:15 by Valery Ushakov, 6 years ago

Component: othershared folders

comment:16 by sunlover, 6 years ago

Resolution: fixed
Status: newclosed

Fixed in VirtualBox Guest Additions 5.2.8.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use