When I try to import a component as described in the documentation i get following build error:
BUILD SUCCESSFUL Total time: 11.379 secs [23:55:04.110] Create standard screens
[23:55:04.453] Created file modules\web\src\com\dirdalit\sales\web\saleorder\sale-order-browse.xml
[23:55:04.606] Created file modules\web\src\com\dirdalit\sales\web\saleorder\sale-order-edit.xml
[23:55:04.696] Created file modules\web\src\com\dirdalit\sales\web\saleorder\SaleOrderBrowse.java
[23:55:04.790] Created file modules\web\src\com\dirdalit\sales\web\saleorder\SaleOrderEdit.java
[23:55:04.819] File modules\web\src\com\dirdalit\sales\web\saleorder\sale-order-edit.xml registered as sales$SaleOrder.edit in modules\web\src\com\dirdalit\sales\web-screens.xml
[23:55:04.848] File modules\web\src\com\dirdalit\sales\web\saleorder\sale-order-browse.xml registered as sales$SaleOrder.browse in modules\web\src\com\dirdalit\sales\web-screens.xml
[23:55:04.931] Standard screens have been created successfully
[23:55:40.691] Creating database jdbc:hsqldb:hsql://localhost/sales
:app-core:assembleDbScripts
FAILED FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':app-core:assembleDbScripts'. >
Could not find cust-core-db.jar (com.dirdalit.customers:cust-core:0.2).
Searched in the following locations:
file:/C:/Users/kjell/.m2/repository/com/dirdalit/customers/cust-core/0.2/cust-core-0.2-db.jar
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED Total time: 2.616 secs [23:55:43.520] Task 'createDb' failed
org.gradle.internal.resolve.ArtifactNotFoundException:
Could not find cust-core-db.jar (com.dirdalit.customers:cust-core:0.2).
Searched in the following locations:
file:/C:/Users/kjell/.m2/repository/com/dirdalit/customers/cust-core/0.2/cust-core-0.2-db.jar
No. The cust-core-db.jar does not exist.
It is not created when running Install App Component.
I have tried to change version, disabled snapshot, Cleaned, Assemble and checked sql script and then run Install App Component.
In fact, such JAR is not needed. The DB scripts are built in the cust-core-0.2-db.zip. The question is, why you app requires this non-existent artifact?
Could you attach the app-component.xml file that I mentioned above?
In the old one the artifact classifier=“db” is added after property name="cuba.springContextConfig"
In the new one artifact classifier=“db” is added before property name=“cuba.springContextConfig”
This is definitely the cause of the problem. The most important thing is that in the wrong app-component.xml, the dbscripts artifact element has no ext=“zip” attribute.
Would be great to find out the reason why the app-component.xml was generated incorrectly. At what moment did you create it? On what version of the platform and Studio? Were there any entities and DB schema in the project at that moment?