-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add demo-war profile #17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe changes introduce a new Maven profile named Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
pom.xml (2)
508-528
: Dependencies Configuration in Demo-War Profile
The dependencies are configured appropriately for the demo WAR package. Thevaadin-core
dependency correctly excludesvaadin-dev
, and the inclusion ofcommons-demo
meets the demo requirements. One suggestion is to verify whether an explicit version should be provided forslf4j-simple
—unless it is managed in a parent or global dependency management section—to avoid potential inconsistencies across environments.
529-597
: Build Plugins Setup in Demo-War Profile
The build section nicely composes the required plugins:
- The
maven-antrun-plugin
(version 1.7) is used to perform multiple resource copy and cleanup operations, which is a practical solution for reorganizing source and resource directories.- The
vaadin-maven-plugin
is configured to prepare and build the frontend in the compile phase, aligning with Vaadin’s build process.- The
maven-war-plugin
is properly set up to generate a WAR without aweb.xml
, which is standard for modern web applications.A couple of considerations:
- The use of
failonerror="false"
in the<copy>
and<delete>
tasks is a defensive choice; ensure that silently ignoring errors is acceptable for your CI/CD pipeline.- Consider evaluating if upgrading the
maven-antrun-plugin
version could offer improved performance or additional safeguards, if applicable to your project requirements.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
pom.xml
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: build-vaadin24
🔇 Additional comments (1)
pom.xml (1)
503-507
: Profile Declaration and Production Mode Property Validity
The new "demo-war" profile correctly establishes the intended environment by setting<vaadin.productionMode>true</vaadin.productionMode>
. This ensures that the application runs in production mode when this profile is activated.
2409741
to
1c575c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
See https://github.com/FlowingCode/AddonStarter24/pull/57
Summary by CodeRabbit