`

The folder is already a source folder;maven web 创建source folder 不能创建的问题

阅读更多

转自:http://www.java123.net/v/985931.html

 

maven web项目不能创建src/main/java等文件夹的问题

eclipse 创建maevn web项目,在选择maven_archetype_web原型后,默认只有src/main/resources这个Source Floder。 按照maven目录结构,添加src/main/java、src/test/java等Source Floder时,会报目The folder is already a

    eclipse创建maevn web项目,在选择maven_archetype_web原型后,默认只有src/main/resources这个Source Floder。

    按照maven目录结构,添加src/main/java、src/test/java等Source Floder时,会报目The folder is already a source folder的错误。

    解决办法:用Navigator视图,直接在src/main目录下建立java目录。

    分析原因: 项目属性->Java Build Path->Source,会看到src/main/java, src/test/java已存在,但是Missing。所以只需要创建目录,Source Floder就出现了。

分享到:
评论

相关推荐

    maven的优缺点 项目

    编译的时候让web项目依赖与Service(java项目)_source folder;配置麻烦,项目与项目之间的依赖头脑得相当清晰 这个缺点Maven解决了; 请听今天的内容 拆分前:图一 拆分后是图二 3. 介绍 官网:...

    maven2 plugin for eclipse

    接下来就是测试一下maven能不能在eclipse里运行。新建一个项目 名为test. File->new ->project,选择java project 点next.然后在Project name 一栏输入test 然后我们回在下边看到有一个 JRE 的表。这个是指定你的...

    基于MyEclipse搭建maven+springmvc整合图文教程(含源码0

    在使用maven 打包或者编译时报:-source1.3 中不支持注释错误解决方案如下:      <artifactId>maven-compiler-plugin  <version>2.0.2    <source>1.5</source>  <target>1.5         添加如下配置就...

    maven+eclipse

    在eclipse中创建maven...创建目录结构:工程右键:new-Source Folder,创建如下几个目录 依次设置java,resources目录的class输出目录,工程右键:build path-Source,双击Source Folder,在弹出框中选择输出的目录。

    jenkins_git_maven_tomcat_jdk.zip

    jenkins自动化部署全套方案:包括tomcat、jdk、maven、git; 而且还包括jenkins所需插件(plugins.zip); 首次安装选择推荐插件时出现“: No such plugin: cloudbees-folder” 解决方案 1、下载附件资源:cloudbees-...

    Android代码-GroupOfX

    For a working implementation of this library see the sample/ folder. Create and use Group.OfX (where X ∈ {Two, Three, Four, ..., Ten}) just like you would a Pair object. Group.OfFour aGroupOfFour = ...

    Android代码-Liqp

    Liqp ...in your local Maven repository, as well as in the project's target/ folder. Usage This library can be used in two different ways: to construct a parse tree of some Liquid inp

    案例最终的代码实现,上传至服务器

    <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> $MODULE_DIR$/target" /> <orderEntry type="sourceFolder" forTests="false" /> ...

    Android代码-Steppers

    Download the library folder. Copy to root project folder Add to your settings.gradle file the following code line: "include ':app', ':steppers'" Rebuild the project Add dependency File → Project ...

    开源bbs源码java-SpringMvcSpringMyBatis:SpringMvcSpringMybatisMySql项目

    开源 bbs 源码 java SpringMVC+Spring+MyBatis项目 前 言 本项目是用maven管理创建的一个简单的SpringMvc+Spring+MyBatis的web框架,里面用到些...Maven规定,必须创建以下几个Source Folder: src/main/resources src/

    Android代码-WaveLoadingView

    For a working implementation of this project see the sample/ folder. Step 1 Include the library as a local library project or add the dependency in your build.gradle. dependencies { compile 'me....

    TableReservation:RESTful Web服务,用于管理表保留

    要求Java版本:1.8 Maven版本:3.5.0运行项目 cd path/to/folder// Clone the projectgit clone https://github.com/Jouda-Hidri/TableReservation.git// Build and test the applicationmvn clean install// Test ...

    维基百科javaAPI----JWPL

    In order to run the jars, you have to add the jars in the dependency folder to your classpath and define the main class. These jars are mainly intended for integration in your projects if you are not ...

    javacv-platform-1.3.3-src

    Here is a small demo program demonstrating the most frequently useful parts: import java.io.File; import java.net.URL; import org.bytedeco.javacv.*; import org.bytedeco.javacpp.*; import org....

    markwilliamson-webtest

    markwilliamson-webtest Mark Williamson Web测试提交 服务安装 先决条件 您将需要一台装有Java 8 JDK和Maven的计算机。 指示 下载源代码。 如果以ZIP格式下载,请解压缩该文件。 导航到包含源代码的文件夹(它将...

    spring 最新框架jar

    below, [`./gradlew`][] is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build. ### Prerequisites [Git][] and [JDK 8 update 20 or...

    maven-watch-test:使用grunt观看和执行Maven测试用例

    该软件包旨在测试Maven项目测试用例。 假定您有一个单独的测试用例项目,并且没有包含在与源相同的程序包中。 运行手表 grunt mvnwatch:<FOLDER> 刚才发生了什么? 运行手表将监听文件夹中的.java文件更改,并且...

    Android代码-Android-SocialButtons

    As of now, this is only a UI library. This library does not provide any social network functionality. That you have to code yourself. Screenshots How to use Include the library You can either ...

    Android代码-progressbutton

    ProgressButton is a custom progress indicator with a tiny footprint. The default implementation provides a pin progress button as seen on the Android design site. Based on the sample code provided by...

    Maven-CRX-Plugin:Maven CRX插件

    Maven CRX插件目的这是一个为基于Maven 2.x +的版本而设计的插件,用于自动执行符合CRX的软件包部署。 它允许在构建过程中设置上传和安装命令,以加快整个开发周期。 在具有CRX 2.3或更高版本的实例上,它通过提供在...

Global site tag (gtag.js) - Google Analytics