VirtualBox

10 年 前 建立

7 年 前 結束

#14118 closed defect (fixed)

Incorrect function with maven-assembly-plugin

回報者: CoolBalance 負責人:
元件: shared folders 版本: VirtualBox 4.3.28
關鍵字: maven "Incorrect Function" 副本:
Guest type: Windows Host type: Linux

描述

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)

附加檔案 (2)

testassembly.zip (2.1 KB ) - 10 年 前, 由 CoolBalance 新增
Simple maven project to show maven-assembly-plugin "Incorrect Function" bug
VBox.log.old (220.0 KB ) - 8 年 前, 由 IanFromCanada 新增
vbox log file from windows 7 guest with maven war issue on shared directory

下載所有附檔: .zip

更動歷史 (18)

10 年 前CoolBalance 編輯

附檔: 新增 testassembly.zip

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

comment:1 10 年 前CoolBalance 編輯

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

comment:2 9 年 前jaagup 編輯

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 9 年 前CoolBalance 編輯

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

comment:4 9 年 前Frank Mehnert 編輯

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

comment:5 9 年 前AntMan 編輯

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.

最後由 AntMan 編輯於 9 年 前 (上一筆) (差異)

8 年 前IanFromCanada 編輯

附檔: 新增 VBox.log.old

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

comment:6 8 年 前IanFromCanada 編輯

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 8 年 前IanFromCanada 編輯

最後由 IanFromCanada 編輯於 8 年 前 (上一筆) (差異)

comment:8 8 年 前IanFromCanada 編輯

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 8 年 前Daan 編輯

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.)

最後由 Daan 編輯於 8 年 前 (上一筆) (差異)

comment:10 8 年 前gnodet 編輯

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
最後由 gnodet 編輯於 8 年 前 (上一筆) (差異)

comment:11 7 年 前ayentibco 編輯

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 7 年 前jcsahnwaldt 編輯

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 7 年 前jcsahnwaldt 編輯

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 7 年 前Valery Ushakov 編輯

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

comment:15 7 年 前Valery Ushakov 編輯

元件: othershared folders

comment:16 7 年 前sunlover 編輯

狀態: newclosed
處理結果: fixed

Fixed in VirtualBox Guest Additions 5.2.8.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette