-
Notifications
You must be signed in to change notification settings - Fork 302
Extra directories created when default <generateGitPropertiesFilename> is used #124
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
Comments
Hi, Can you try to add
to your config and try again? According to a the comment from here #81 (comment) with this option the plugin will "behaves as expected". |
Hi @TheSnoozer Thanks for the tip. Following is the result of Case 1:
Case 2:
Case 3:
Case 3 is my intended behavior. Hope these will help to track down the issue and fix the default behavior for the plugin (specially for Windows). Thanks |
Hi @ktoso I'd like replicate this bug in https://github.com/ktoso/git-commit-id-debugging as well, for you to fix the issue. But I'm unable to build that project. Probably because versions in |
Hi @keheliya, Case 1:
Case 2:
Case 3:
This results show the same behaviour as in #124 (comment) PS: tested with v2.1.10 PSS: the default-value for It seems that all the trouble comes from
|
This should be resolved in #125 Cheers! |
I'm a bit confused. In spring boot's latest (1.1.4), the plugin config is like so:
so i'm guessing that should be switched with
Yes? or is this a bug in 2.1.8-2.1.10 and will be resolved in 2.1.11? |
Hi @drdamour,
the git-commit-id-plugin created a directory/propertiesFile like
which resulted in this bug ticket (pay atention to the double basedir-Variable). In later versions you need to set
to get a directory/propertiesFile like
The Bug should be resolved in the next Version (likely the 2.1.11) where you can configure your Plugin both ways. In both ways (either a full path or a relative path in the generateGitPropertiesFilename) the plugin should create a directory/propertiesFile like
|
Help who have the code please give me :(( |
In my plugin configuration I'm not specifically setting the
<generateGitPropertiesFilename>
property. But looks like it creates an extra directory structure for writing the GitPropertiesFile. For example if my project directory is:/home/foo/dev/projectABC
, the files are written in following locations for the submodules:/home/foo/dev/projectABC/module1/home/foo/dev/projectABC/module1/target/classes/git.properties
/home/foo/dev/projectABC/module2/home/foo/dev/projectABC/module2/target/classes/git.properties
Although this is harmless in linux/OS X (except few extra directories are created) it causes problems in Windows as follows:
Looks like it's a bug when resolving
${project.basedir}
My plugin configuration is as follows:
Please let me know if I have configured it wrong.
The text was updated successfully, but these errors were encountered: