for some old version of git-commit-id-plugin, for example, `
4.9.10
there is a Auth Fail error, when the plugin is in execution.
Turns out there was a bug (should be fixed in latest version), which uses JGitDataProvider, and requesting for
`
LOCAL_BRANCH_AHEAD and LOCAL_BRANCH_BEHIND
mark the plugin as office sorted out the issue
<plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <version>4.9.10</version> <configuration> <verbose>false</verbose> <useNativeGit>true</useNativeGit> <offline>true</offline> </configuration>
Published
Originally published at https://lwpro2.wordpress.com on March 22, 2022.
Turns out when spring boot construct the configuration bean, it’s using the setter method to map the values.
So for IgniteConfiguration, for example, even though the variable for peer ClassLoading is
private boolean p2pEnabled =DFLT_P2P_ENABLED;
however, the values below won’t work
instead, it should be
peerClassLoadingEnabled: true
as the setter to set the p2pEnabled is actually called
public IgniteConfiguration setPeerClassLoadingEnabled(boolean p2pEnabled) { this.p2pEnabled = p2pEnabled; return this; }
Published
Originally published at https://lwpro2.wordpress.com on March 3, 2022.
there are many options for continuous deployment. one possible approach is to leverage on ansible and couple it with gitlab.
so in .gitlab-ci.yml
add a deploy stage
ansible will try to remove the old container and start the newly built docker image from previous steps.
Published
Originally published at https://lwpro2.wordpress.com on January 25, 2022.
I was not able to generate the git.properties
at the beginning. somehow turns out it was due to a missing version for the plugin.
<plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <version>4.0.5</version> <!--need to add the specific version--> <executions> <execution> <goals> <goal>revision</goal> </goals> </execution> </executions> </plugin>
with that, at packaging, it could generate the package with the SHA.
<version>1.0-${git.commit.id.abbrev}-SNAPSHOT</version>
the package name like ABC-1.0-7X7X40a-SNAPSHOT.jar
at runtime, with spring actuator enabled, it could auto pick up the commit info:
Published
Originally published at https://lwpro2.dev on January 13, 2022.
following up with https://lwpro2.dev/2021/12/28/maven-nested-modules/ and https://lwpro2.dev/2021/12/14/microservies-in-monorepo/, there are times where a class defined upstream (either third party or shared library internally) should be overriden.
The trick is to keep the class name exact with the same package name. when maven shaded the class, it would pick up the class…