zoukankan      html  css  js  c++  java
  • Eclipse 创建新的workspace

    工具:eclipse  版本:4.5.1

    1、配置jdk(java-Compiler)、maven(Mven-User Settings)

    2、从svn拉取项目,创建.project(修改其项目名称)和.classpath文件,然后配置工程的jdk,clean项目,这样就OK了

    3、附上.classpath文件和.project文件内容

    .classpath文件:

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <classpath>
     3     <classpathentry kind="src" output="target/classes" path="src/main/java">
     4         <attributes>
     5             <attribute name="optional" value="true"/>
     6             <attribute name="maven.pomderived" value="true"/>
     7         </attributes>
     8     </classpathentry>
     9     <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
    10         <attributes>
    11             <attribute name="maven.pomderived" value="true"/>
    12         </attributes>
    13     </classpathentry>
    14     <classpathentry kind="src" output="target/test-classes" path="src/test/java">
    15         <attributes>
    16             <attribute name="optional" value="true"/>
    17             <attribute name="maven.pomderived" value="true"/>
    18         </attributes>
    19     </classpathentry>
    20     <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
    21         <attributes>
    22             <attribute name="maven.pomderived" value="true"/>
    23         </attributes>
    24     </classpathentry>
    25     <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
    26         <attributes>
    27             <attribute name="maven.pomderived" value="true"/>
    28             <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
    29         </attributes>
    30     </classpathentry>
    31     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
    32         <attributes>
    33             <attribute name="maven.pomderived" value="true"/>
    34         </attributes>
    35     </classpathentry>
    36     <classpathentry kind="output" path="target/classes"/>
    37 </classpath>

    .project文件:

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <projectDescription>
     3     <name>ccjoin-crontab</name>
     4     <comment></comment>
     5     <projects>
     6     </projects>
     7     <buildSpec>
     8         <buildCommand>
     9             <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
    10             <arguments>
    11             </arguments>
    12         </buildCommand>
    13         <buildCommand>
    14             <name>org.eclipse.jdt.core.javabuilder</name>
    15             <arguments>
    16             </arguments>
    17         </buildCommand>
    18         <buildCommand>
    19             <name>org.eclipse.wst.common.project.facet.core.builder</name>
    20             <arguments>
    21             </arguments>
    22         </buildCommand>
    23         <buildCommand>
    24             <name>org.eclipse.wst.validation.validationbuilder</name>
    25             <arguments>
    26             </arguments>
    27         </buildCommand>
    28         <buildCommand>
    29             <name>org.eclipse.m2e.core.maven2Builder</name>
    30             <arguments>
    31             </arguments>
    32         </buildCommand>
    33     </buildSpec>
    34     <natures>
    35         <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
    36         <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
    37         <nature>org.eclipse.jdt.core.javanature</nature>
    38         <nature>org.eclipse.m2e.core.maven2Nature</nature>
    39         <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
    40         <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    41     </natures>
    42 </projectDescription>
  • 相关阅读:
    聊聊简单又灵活的权限设计(RBAC)
    手把手搭建一个属于自己的在线 IDE
    聊一聊如何搭建高性能网站哪一些事
    一个老程序员的忠告:你这辈子输就输在以为靠技术就能生存下
    缓存提升性能的关键性手段
    python学习笔记1之-python简介及其环境安装
    聊一聊mycat数据库集群系列之双主双重实现
    mycat数据库集群系列之mycat读写分离安装配置
    mycat数据库集群系列之mysql主从同步设置
    mycat数据库集群系列之数据库多实例安装
  • 原文地址:https://www.cnblogs.com/wzk-0000/p/6427343.html
Copyright © 2011-2022 走看看