问题描述
项目是mavenproject,我已经转化成DaynamicWebProject,但启动resin的时候还是提示如下错误:Couldnotreadmavenproject1problemwasencounteredwhilebuildingtheeffectivemodel[FATAL]Non-readablePOMD:programworkspaceSDCCODdcmsMain4EPpom.xml:D:programworkspaceSDCCODdcmsMain4EPpom.xml(系统找不到指定的文件。)@forprojectatD:programworkspaceSDCCODdcmsMain4EPpom.xml1problemwasencounteredwhilebuildingtheeffectivemodel[FATAL]Non-readablePOMD:programworkspaceSDCCODdcmsMain4EPpom.xml:D:programworkspaceSDCCODdcmsMain4EPpom.xml(系统找不到指定的文件。)@forprojectatD:programworkspaceSDCCODdcmsMain4EPpom.xml
解决方案
解决方案二:
.project文件中包含maven相关的nature和buildCommand配置,去掉没?<buildCommand><name>org.eclipse.m2e.core.maven2Builder</name><arguments></arguments></buildCommand><nature>org.eclipse.m2e.core.maven2Nature</nature>
解决方案三:
引用1楼markcxz的回复:
.project文件中包含maven相关的nature和buildCommand配置,去掉没?<buildCommand><name>org.eclipse.m2e.core.maven2Builder</name><arguments></arguments></buildCommand><nature>org.eclipse.m2e.core.maven2Nature</nature>
已经去掉了,我的project文件:<?xmlversion="1.0"encoding="UTF-8"?><projectDescription><name>dcms</name><comment></comment><projects></projects><buildSpec><buildCommand><name>org.eclipse.ui.externaltools.ExternalToolBuilder</name><triggers>full,incremental,</triggers><arguments><dictionary><key>LaunchConfigHandle</key><value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch</value></dictionary></arguments></buildCommand><buildCommand><name>org.eclipse.jdt.core.javabuilder</name><arguments></arguments></buildCommand><buildCommand><name>org.eclipse.wst.common.project.facet.core.builder</name><arguments></arguments></buildCommand><buildCommand><name>org.eclipse.wst.validation.validationbuilder</name><arguments></arguments></buildCommand><buildCommand><name>com.aptana.ide.core.unifiedBuilder</name><arguments></arguments></buildCommand></buildSpec><natures><nature>org.eclipse.jem.workbench.JavaEMFNature</nature><nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature><nature>org.eclipse.wst.common.project.facet.core.nature</nature><nature>org.eclipse.jdt.core.javanature</nature><nature>com.aptana.projects.webnature</nature><nature>org.eclipse.wst.jsdt.core.jsNature</nature></natures></projectDescription>
解决方案四:
用压缩软件打开看看打包出来的jar,看看里面有没有maven的信息;试试新建一个工程项目,再把原工程中的相关代码拷过去打包行不行?没用过resin,祝你好运
解决方案五:
既然是maven项目,你右键项目选择maven——》Disablemavennature,然后就取消maven了