-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archetype contains batch artefacts even when no batch was generated #336
Comments
The sources are located in a Maybe this bug has been there from the start and nobody noticed or reported this before. This "optional additions" for the maven archetype are kind of odd. |
devon4j/templates/server/src/main/resources/META-INF/maven/archetype-metadata.xml Line 18 in 466368d
IMHO this means that |
That sounds much more reasonable: We could have our simple standard archetype as is without batch, ear, and other clutter. Then we could have an additional partial archetype for batch that afterwards can be "added" as "additional opt-in feature"? |
I will have a look at it and hopefully find a good solution. But the approach with partial and a basic variant of the template appealed to me. And I would drop |
Ok now I found a good solution without partial and it works ;). First you execute: Then you go in the folder sampleapp and execute: The pom.xml has many empty lines which is related to this issue. Maybe we should remove empty lines. |
Expected behavior
As a user of devon4j, I want to create a new app with minimal content so that I am not spammed with unneccessary pointless classes that I have to delete.
Actual behavior
Even though I did not choose to generate my app with batch I got the following files (starting from the root of the create app and NOT in
batch
subfolder/module):./src/main/resources/db/migration/h2/V0005__Add_batch_tables.sql
./src/main/java/org/example/app/SpringBootBatchApp.java
./src/main/java/org/example/app/general/batch/impl/config/BeansBatchConfig.java
./src/test/java/org/example/app/general/batch/base/test/SpringBatchIntegrationTest.java
./src/test/java/org/example/app/general/common/base/test/TestUtil.java
This looks like something is messed in the archetype to me.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
devon java create org.example.app
cd app
find src
Affected version:
Latest
devon4j
version2020.12.001
.Documentation notice:
Together with this story also the EAR support to generate an
ear
module has been removed as it is entirely obsolete and more considered as anti-pattern that should not be explicitly supported.The text was updated successfully, but these errors were encountered: