简体   繁体   English

使用Jhipster和Mongodb时我无法添加实体

[英]I can't add an entity when using Jhipster and Mongodb

I'm trying to add an entity in a jhipster project using ===> 我正在尝试使用===>在jhipster项目中添加实体

jhipster entity <entityName>

and when I run my project I have this error ===> 当我运行我的项目时,出现此错误===>

    [ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/imen/Bureau/StageSifast2017/EntityTest/src/main/java/com/mycompany/myapp/domain/Imen.java:[3,33] package org.hibernate.annotations does not exist
[ERROR] /home/imen/Bureau/StageSifast2017/EntityTest/src/main/java/com/mycompany/myapp/domain/Imen.java:[4,33] package org.hibernate.annotations does not exist
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.553 s
[INFO] Finished at: 2017-08-01T12:04:47+02:00
[INFO] Final Memory: 52M/478M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project entity-test: Compilation failure: Compilation failure: 
[ERROR] /home/imen/Bureau/StageSifast2017/EntityTest/src/main/java/com/mycompany/myapp/domain/Imen.java:[3,33] package org.hibernate.annotations does not exist
[ERROR] /home/imen/Bureau/StageSifast2017/EntityTest/src/main/java/com/mycompany/myapp/domain/Imen.java:[4,33] package org.hibernate.annotations does not exist
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

le fichier Imen.java ou se trouve l'erreur dans les import de import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; 文件Imen.java或import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy;

Welcome to the JHipster Information Sub-Generator

##### **JHipster Version(s)**

```
/home/imen
└── (empty)

```

cat: no such file or directory: .yo-rc.json

##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**

```yaml

```


##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**


```yaml





```


##### **Browsers and Operating System**

openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

git version 2.13.0

node: v7.0.0

npm: 5.3.0

bower: 1.8.0

gulp:
[10:11:36] CLI version 1.3.0

yeoman: 2.0.0

yarn: 0.27.5

Execution complete

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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