首次在MyEclipse 2017中构建 - >在maven构建中有错误

时间:2017-08-25 06:00:06

标签: java maven

我的网络项目运行顺畅。但是当在另一台同事电脑上时,它安装了myEclipse 2017和jdk 1.7。首次构建项目时,它会显示错误对话框,其中包含以下详细信息。我尝试新建另一个工作区并删除.m2 / repository文件夹并更新maven构建。发生了相同的错误对话这应该是环境问题。我该怎么办呢?

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'strut2_tiles_serialize_dac'.
assertion failed: Marker property value is too long: Problems encountered while deleting resources. (org.apache.maven.plugins:maven-war-plugin:2.6:war:default-war:package)

org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
                at org.eclipse.core.internal.resources.Resource.delete(Resource.java:795)
                at org.eclipse.core.internal.resources.Resource.delete(Resource.java:750)
                at org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.deleteFilteredResources(ResourceFilteringBuildParticipant.java:165)
                at org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.clean(ResourceFilteringBuildParticipant.java:155)
                at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.clean(MavenBuilderImpl.java:391)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$2.method(MavenBuilder.java:201)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$2.method(MavenBuilder.java:1)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:118)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:108)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:89)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder.clean(MavenBuilder.java:223)
                at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:737)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
                at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
                at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:403)
                at org.eclipse.core.internal.resources.Project$1.run(Project.java:551)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
                at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:529)
                at org.eclipse.core.internal.resources.Project.build(Project.java:112)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:460)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:346)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
                at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1351)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:343)
                at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
                at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains: Could not delete '/strut2_tiles_serialize_dac/target/m2e-jee/web-resources'.
org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting resources.
                at org.eclipse.core.internal.localstore.FileSystemResourceManager.delete(FileSystemResourceManager.java:370)
                at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFolder(ResourceTree.java:358)
                at org.eclipse.core.internal.resources.ResourceTree.standardDeleteFolder(ResourceTree.java:810)
                at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1832)
                at org.eclipse.core.internal.resources.Resource.delete(Resource.java:782)
                at org.eclipse.core.internal.resources.Resource.delete(Resource.java:750)
                at org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.deleteFilteredResources(ResourceFilteringBuildParticipant.java:165)
                at org.eclipse.m2e.wtp.internal.filtering.ResourceFilteringBuildParticipant.clean(ResourceFilteringBuildParticipant.java:155)
                at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.clean(MavenBuilderImpl.java:391)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$2.method(MavenBuilder.java:201)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$2.method(MavenBuilder.java:1)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:118)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:108)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:89)
                at org.eclipse.m2e.core.internal.builder.MavenBuilder.clean(MavenBuilder.java:223)
                at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:737)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
                at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
                at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
                at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:403)
                at org.eclipse.core.internal.resources.Project$1.run(Project.java:551)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
                at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:529)
                at org.eclipse.core.internal.resources.Project.build(Project.java:112)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:460)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:346)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
                at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
                at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1351)
                at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:343)
                at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
                at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains: Problems encountered while deleting files.
Contains: Could not delete: C:\Users\xxxxchan\Desktop\New folder\target\m2e-jee\web-resources\.svn\all-wcprops.
java.nio.file.AccessDeniedException: C:\Users\rwmchan\Desktop\New folder\target\m2e-jee\web-resources\.svn\all-wcprops
                at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
                at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
                at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
                at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
                at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
                at java.nio.file.Files.deleteIfExists(Files.java:1165)
                at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:218)
                at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:238)
                at org.eclipse.core.internal.filesystem.local.LocalFile.internalDelete(LocalFile.java:238)
                at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:136)
                at org.eclipse.core.internal.localstore.DeleteVisitor.delete(DeleteVisitor.java:63)
                at org.eclipse.core.internal.localstore.DeleteVisitor.visit(DeleteVisitor.java:151)
                at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:111)
                at org.eclipse.core.internal.localstore.FileSystemResourceManager.delete(FileSystemResourceManager.java:367)
                at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFolder(ResourceTree.ja

1 个答案:

答案 0 :(得分:2)

检查您是否拥有以下文件夹的写入权限。

C:\ Users \ rwmchan \ Desktop \ New folder \ target \ m2e-jee \ web-resources.svn \ all-wcprops

从堆栈跟踪中复制以下异常。

  

java.nio.file.AccessDeniedException:C:\ Users \ rwmchan \ Desktop \ New   文件夹\目标\ M2E-JEE \ web的resources.svn \全wcprops