GithubHelp home page GithubHelp logo

jgit complains on fantom dirty changes, how to configure jgit through releaser plugin? about multi-module-maven-release-plugin HOT 12 CLOSED

danielflower avatar danielflower commented on August 27, 2024
jgit complains on fantom dirty changes, how to configure jgit through releaser plugin?

from multi-module-maven-release-plugin.

Comments (12)

danielflower avatar danielflower commented on August 27, 2024

Hi there - that's very weird. I've not managed to reproduce that - any idea on what causes those to be marked as having changes?

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

I got a similar problem, where the plugin asks me to check two files which are symlinks to real files in the same directory.

Removing the symlinks will yield the same error (which is now correct, since they have been deleted but not commited).

Commiting the removed symlinks resolve the error and I can continue with the release.

from multi-module-maven-release-plugin.

danielflower avatar danielflower commented on August 27, 2024

I'm not sure what the behaviour with symlinks is supposed to be. For this kind of thing, the plugin just relies on jgit - do you think this is a bug in jgit? In fact, do you consider this to be a bug?

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

The symlinks where committed to git, so they where not unstaged changes at least. So yes, I'd consider it a bug. But yeah, probably in jgit; LocalGitRepo just calls isClean it seems? The symlinks are listed from the getUncommitedChanges() list.

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

Actually, with jgit 4.0.1.201506240215-r it seems to be fixed! 3.7.1.201504261725-r still has the issue though.

Not sure if there are any incompabilities with 4.0, but it seems to work. All test cases succeeded!

from multi-module-maven-release-plugin.

danielflower avatar danielflower commented on August 27, 2024

That's excellent. I won't be able to release it until tomorrow unfortunately.

Thanks a lot for tracking down the problem.

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

Note that this may or may not fix the original poster's issues, I only had the symlink related issue.

from multi-module-maven-release-plugin.

danielflower avatar danielflower commented on August 27, 2024

Released version 1.2.2 to hopefully fix this. Can you let me know if it works now?

Thanks again.

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

Symlinks seems to work fine in 1.2.2, thanks!

from multi-module-maven-release-plugin.

danielflower avatar danielflower commented on August 27, 2024

Just realised that this change broke compatibility with Java 6. Unfortunately Java 6 is still important in some places.

I might roll back to the previous version of jgit. So the work around for the issue here is using version 3.2.2 until Java 6 support is dropped.

from multi-module-maven-release-plugin.

stromnet avatar stromnet commented on August 27, 2024

FYI: This can be overriden in the project using the plugin:

            <plugin>
                <groupId>com.github.danielflower.mavenplugins</groupId>
                <artifactId>multi-module-maven-release-plugin</artifactId>
..
                <dependencies>
                    <dependency>
                        <groupId>org.eclipse.jgit</groupId>
                        <artifactId>org.eclipse.jgit</artifactId>
                        <version>4.0.1.201506240215-r</version>
                    </dependency>
                </dependencies>
            </plugin>

from multi-module-maven-release-plugin.

danielflower avatar danielflower commented on August 27, 2024

Maybe I should do it the other way around - just tell Java 6 users to use version 1.2.0 of this plugin and bump the major version and switch to Java 7.

from multi-module-maven-release-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.