[英]Capital letter in package folder under target folder
我的项目信息如下:
<groupId>com.entreprise.myprofile</groupId>
<artifactId>myProfile</artifactId>
当我构建我的项目时,我在目标文件夹下有以下结构:
target > classes > com > entreprise > myProfile
(大写 P)而不是:
target > classes > com > entreprise > myprofile
结果(当“自动构建”打开时)它一遍又一遍地构建(永不停止)认为它总是有一些尚未构建的东西。
如果我将项目名称更改为小写并从原型生成它,我就没有问题。
然后看起来我在某处的字符串大小写有问题,但我无法弄清楚它在哪里。
这是我到目前为止所做的:
当我从 eclipse 或命令提示符执行“Maven 安装”时,我得到:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project myProfileBusiness: Compilation failure: Compilation failure:
[ERROR] \workspace_myprofile\myProfileBusiness\target\filtered-sources\com\entreprise\myprofile\business\services\MyProfileService.java:[12,36] package com.entreprise.myprofile.dao does not exist
[ERROR] \workspace_myprofile\myProfileBusiness\target\filtered-sources\com\entreprise\myprofile\business\services\MyProfileService.java:[34,15] cannot find symbol
[ERROR] symbol : class IProfileDataDAO
[ERROR] location: class com.entreprise.myprofile.business.services.MyProfileService
[ERROR] \workspace_myprofile\myProfileBusiness\target\filtered-sources\com\entreprise\myprofile\business\services\MyProfileService.java:[39,31] cannot find symbol
[ERROR] symbol : class IProfileDataDAO
[ERROR] location: class com.entreprise.myprofile.business.services.MyProfileService
[ERROR] -> [Help 1]
您认为问题可能出在哪里?
我认为您重命名了 java 文件的父文件夹,只是在 Windows 环境中更改了一些大写或小写字母。
如果是这样......只需删除目标文件夹并重建项目
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.