繁体   English   中英

target文件夹下package文件夹中的大写字母

[英]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

结果(当“自动构建”打开时)它一遍又一遍地构建(永不停止)认为它总是有一些尚未构建的东西。

如果我将项目名称更改为小写并从原型生成它,我就没有问题。

然后看起来我在某处的字符串大小写有问题,但我无法弄清楚它在哪里。

这是我到目前为止所做的:

  • 检查每个文件是否存在大小写错误的“myProfile”字符串。
  • 在错误的情况下检查每个文件的 ${artifactId}。
  • 检查 maven 程序集插件配置。
  • 检查每个 package 名称是否有错误。

当我从 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM