Closed farsalhasnaa closed 1 year ago
I was unable to download my application from start.vaadin.com.
This was the configuration used:
{ "applicationConfiguration": { "projectName": "My App", "groupId": "com.return.platform", "vaadinVersion": "v24", "codeGeneration": "JAVA", "dockerConfiguration": true, "kubernetesConfiguration": true, "alwaysGenerateBackend": true, "javaVersion": 19, "access": "LOGGED_IN", "experimentalFeatures": [], "git": true, "runOnRandomPort": true, "database": "H2", "generatedProjectId": "8f71d98e-4639-408a-9e43-20a27ce8b614" }, "theme": { "componentStyles": {}, "variant": "dark", "styles": " html {\n --lumo-shade: hsl(214, 10%, 3%);\n --lumo-shade-5pct: hsla(214, 10%, 3%, 0.05);\n --lumo-shade-10pct: hsla(214, 10%, 3%, 0.1);\n --lumo-shade-20pct: hsla(214, 10%, 3%, 0.2);\n --lumo-shade-30pct: hsla(214, 10%, 3%, 0.3);\n --lumo-shade-40pct: hsla(214, 10%, 3%, 0.4);\n --lumo-shade-50pct: hsla(214, 10%, 3%, 0.5);\n --lumo-shade-60pct: hsla(214, 10%, 3%, 0.6);\n --lumo-shade-70pct: hsla(214, 10%, 3%, 0.7);\n --lumo-shade-80pct: hsla(214, 10%, 3%, 0.8);\n --lumo-shade-90pct: hsla(214, 10%, 3%, 0.9);\n --lumo-base-color: #000000;\n --lumo-body-text-color: hsla(214, 0%, 99%, 0.94);\n --lumo-size-xl: 3rem;\n --lumo-size-l: 2.5rem;\n --lumo-size-m: 2rem;\n --lumo-size-s: 1.75rem;\n --lumo-size-xs: 1.5rem;\n --lumo-space-xl: 1.875rem;\n --lumo-space-l: 1.25rem;\n --lumo-space-m: 0.625rem;\n --lumo-space-s: 0.3125rem;\n --lumo-space-xs: 0.1875rem;\n\n }\n\n [theme~=\"dark\"] {\n\n }\n" }, "views": [ { "name": "Main", "type": "menu-on-left-layout", "route": "", "entityId": -1, "children": [ { "id": 5, "name": "Empty", "type": "empty-view", "route": "empty", "icon": "file", "entityId": -1, "access": "PUBLIC", "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "name": "Hello World", "type": "hello-world-view", "route": "hello", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false, "icon": "globe-solid", "id": 1 }, { "id": 3, "name": "Collaborative Master-Detail", "type": "collaborative-master-detail-view", "route": "collaborative-master-detail", "icon": "columns-solid", "entityId": 1, "children": [], "generateTestData": true, "generateUrlTemplate": true }, { "id": 4, "name": "Person Form", "type": "person-form-view", "route": "person-form", "icon": "user", "entityId": 1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 6, "name": "Dashboard", "type": "dashboard-view", "route": "dashboard", "icon": "chart-area-solid", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 7, "name": "Card List", "type": "card-list-view", "route": "card-list", "icon": "list-solid", "entityId": -1, "children": [], "generateTestData": true, "generateUrlTemplate": false }, { "id": 8, "name": "List", "type": "list-view", "route": "list", "icon": "th-solid", "entityId": -1, "children": [], "generateTestData": true, "generateUrlTemplate": false }, { "id": 11, "name": "Person Form2", "type": "person-form-view", "route": "person-form2", "icon": "user", "entityId": 1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 12, "name": "Address Form", "type": "address-form-view", "route": "address-form", "icon": "map-marker-solid", "entityId": 2, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 13, "name": "Credit Card Form", "type": "credit-card-form-view", "route": "credit-card-form", "icon": "credit-card", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 14, "name": "Map", "type": "map-view", "route": "map", "icon": "map", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 15, "name": "Spreadsheet", "type": "spreadsheet-view", "route": "spreadsheet", "icon": "file-excel", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 16, "name": "Chat", "type": "chat-view", "route": "chat", "icon": "comments", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 17, "name": "Rich Text Editor", "type": "editor-view", "route": "rich-text-editor", "icon": "edit", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 18, "name": "Image List", "type": "image-list-view", "route": "image-list", "icon": "th-list-solid", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 19, "name": "Checkout Form", "type": "checkout-form-view", "route": "checkout-form", "icon": "credit-card", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false }, { "id": 20, "name": "Grid with Filters", "type": "grid-with-filters-view", "route": "grid-with-filters", "icon": "filter-solid", "entityId": 1, "children": [], "generateTestData": true, "generateUrlTemplate": false }, { "id": 26, "name": "Visual View Builder", "type": "custom-view", "route": "visual-view-builder", "icon": "pencil-ruler-solid", "entityId": -1, "children": [], "generateTestData": false, "generateUrlTemplate": false, "componentModel": { "type": "layout-column", "parameters": { "mainLength": "100%", "crossLength": "100%", "gap": "m", "padding": "m" }, "children": [ { "type": "layout-row", "parameters": { "crossLength": "100%", "gap": "m" }, "children": [] }, { "type": "layout-column", "parameters": { "mainLength": "100%", "crossLength": "100%", "gap": "m", "padding": "m" }, "children": [ { "type": "login-form" }, { "type": "details" } ] }, { "type": "layout-row", "parameters": { "crossLength": "100%", "gap": "m" } } ] } } ], "generateTestData": false, "generateUrlTemplate": false, "id": 0 } ], "entities": [ { "id": 1, "name": "SamplePerson", "fields": [ { "name": "id", "dataType": "ID", "editorType": "vaadin-text-field", "fieldType": "Integer", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "firstName", "dataType": "FIRST_NAME", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "lastName", "dataType": "LAST_NAME", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "email", "dataType": "EMAIL", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "jakarta.validation.constraints.Email", "dev.hilla.Nonnull" ] }, { "name": "phone", "dataType": "PHONE_NUMBER", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "dateOfBirth", "dataType": "DATE_OF_BIRTH", "editorType": "vaadin-date-picker", "fieldType": "LocalDate", "uiType": "Text", "validators": [ "jakarta.annotation.Nullable" ] }, { "name": "occupation", "dataType": "OCCUPATION", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "role", "dataType": "WORK_ROLE", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "important", "dataType": "BOOLEAN_10_90", "editorType": "vaadin-checkbox", "fieldType": "boolean", "uiType": "Checkbox", "validators": [] } ] }, { "id": 2, "name": "SampleAddress", "fields": [ { "name": "id", "dataType": "ID", "editorType": "vaadin-text-field", "fieldType": "Integer", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "street", "dataType": "ADDRESS", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "postalCode", "dataType": "ZIP_CODE", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "city", "dataType": "CITY", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "state", "dataType": "STATE", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "country", "dataType": "COUNTRY", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] } ] }, { "id": 5, "name": "User", "fields": [ { "name": "id", "dataType": "ID", "editorType": "vaadin-text-field", "fieldType": "Integer", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "username", "dataType": "FIRST_NAME", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "name", "dataType": "FULL_NAME", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "hashedPassword", "dataType": "TWO_WORDS", "editorType": "vaadin-text-field", "fieldType": "Password", "uiType": "Text", "validators": [] }, { "name": "roles", "dataType": "WORD", "editorType": "vaadin-text-field", "fieldType": "String", "uiType": "Text", "validators": [ "dev.hilla.Nonnull" ] }, { "name": "profilePicture", "dataType": "PROFILE_PICTURE_URL", "editorType": "vaadin-upload", "fieldType": "ImageData", "uiType": "Image", "validators": [ "dev.hilla.Nonnull" ], "uiHints": { "gridColumnWidth": "96px", "height": "MEDIUM", "roundImage": true } } ] } ] }
Thanks, this is because of "groupId": "com.return.platform" and return being a Java reserved word
"groupId": "com.return.platform"
return
This is a working version of the project my-app.zip
I was unable to download my application from start.vaadin.com.
This was the configuration used: