簡體   English   中英

使用Jhipster和Mongodb時我無法添加實體

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

我正在嘗試使用===>在jhipster項目中添加實體

jhipster entity <entityName>

當我運行我的項目時,出現此錯誤===>

    [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

文件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