-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Milestone
Description
Overview of the issue
I can't build my application with microservice and mongo options. It fails with the following information.
[INFO] --- properties-maven-plugin:1.0.0:read-project-properties (default) @ accountancy ---
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ accountancy ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 41 source files to /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[33,12] class, interface, or enum expected
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[65,5] class, interface, or enum expected
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[69,5] class, interface, or enum expected
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.525 s
[INFO] Finished at: 2019-10-11T10:05:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project accountancy: Compilation failure: Compilation failure:
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[33,12] class, interface, or enum expected
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[65,5] class, interface, or enum expected
[ERROR] /Users/julien/Development/jhipster/generator/issues/jhipster-microservices-h2/src/main/java/io/jsadaoui/trainning/config/SecurityConfiguration.java:[69,5] class, interface, or enum expected
[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
Motivation for or Use Case
Reproduce the error
- Generate new microservice jhipster application with mongo
- Build the project with maven or gradle
Related issues
Suggest a Fix
JHipster Version(s)
generated with 6.4.0
JHipster configuration
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
"generator-jhipster": {
"applicationType": "microservice",
"gitCompany": "",
"baseName": "accountancy",
"packageName": "io.jsadaoui.trainning",
"packageFolder": "io/jsadaoui/trainning",
"serverPort": 8082,
"serviceDiscoveryType": "eureka",
"authenticationType": "jwt",
"uaaBaseName": "../uaa",
"cacheProvider": "no",
"enableHibernateCache": false,
"websocket": false,
"databaseType": "mongodb",
"devDatabaseType": "mongodb",
"prodDatabaseType": "mongodb",
"searchEngine": false,
"enableSwaggerCodegen": false,
"messageBroker": false,
"buildTool": "maven",
"useSass": true,
"clientPackageManager": "npm",
"testFrameworks": [
"gatling"
],
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en"
],
"clientFramework": "angularX",
"jhiPrefix": "jhi",
"jhipsterVersion": "6.4.0",
"jwtSecretKey": "ODE4NjJkMzIyODYwNjkwMTFhOTgzYjk0MzUzMjEzNDUzZTBkYmM1MTdlN2E2OTg5NTNiMzE4NWJlZjA0YzEyMDBjOGM5Y2UzZDE2OTYxOTI3OGVkMDkzYzM4MzQ1OGI5MGViMTI3MWE2YTIwOGIyYmY1ZWE5NzNiYTJlNDlhOGQ=",
"embeddableLaunchScript": false,
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [],
"blueprints": [],
"skipClient": true,
"skipUserManagement": true
},
"git-provider": "GitHub",
"git-company": "juliensadaoui",
"repository-name": "accountancy"
}
**Entity configuration(s) entityName.json files generated in the .jhipster directory
##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**
<details>
<summary>JDL entity definitions</summary>
<pre>
code String required
date Instant required
details String
status InvoiceStatus required
paymentMethod PaymentMethod required
paymentDate Instant required
paymentAmount BigDecimal required
}
enum InvoiceStatus {
PAID, ISSUED, CANCELLED
}
entity Shipment {
trackingCode String
date Instant required
details String
}
enum PaymentMethod {
CREDIT_CARD, CASH_ON_DELIVERY, PAYPAL
}
relationship OneToMany {
Invoice{shipment} to Shipment{invoice(code) required}
}
service Invoice, Shipment with serviceClass
paginate Invoice, Shipment with pagination
microservice Invoice, Shipment with accountancy
</pre>
</details>
Environment and Tools
##### **Environment and Tools**
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
git: 2.23.0
node: v8.11.1
npm: 6.11.3
yeoman: 3.1.0
Browsers and Operating System
- [ x] Checking this box is mandatory (this is just to show you read everything)