ZeroTurnaround Support Forum » JRebel Development and Plugins

maven plugin not checking uptodate

(6 posts)
  • Started 7 months ago by mskjeret
  • Latest reply from lauri
  • 1 Members Subscribed To Topic

  1. mskjeret

    Member
    Posts: 5

    Hi all (and sorry for cross-posting this)

    I have an annoying problem with the jrebel maven plugin. It generates a new rebel.xml on each compile, and do not check if the file is actually up-to-date.

    This means that the jar/war etc. will be re-packed every time I run package/compile. This is a bit annoying, but not the end of the world.
    Is it possible to set in configuration that there should be an uptodate check? e.g. timestamp on pom vs. rebel.xml?

    Magne

    Posted 7 months ago #
  2. lauri

    Member
    Posts: 482

    You could place jrebel maven plugin into a profile to enabel/disable it when needed

    Posted 7 months ago #
  3. mskjeret

    Member
    Posts: 5

    Hi

    I agree that this could be one solution. My only concern is that every developer needs to remember to include the profile after a clean.

    I could be nasty and execute the jrebel plugin after clean!!!!

    I think however still that it would be a nice feature for the plugin to check if the xml file is up to date.
    Is the plugin open-source?

    Posted 7 months ago #
  4. lauri

    Member
    Posts: 482

    Maven plugin sources are at http://repos.zeroturnaround.com/svn/mvn-jr-plugin/

    Posted 7 months ago #
  5. mskjeret

    Member
    Posts: 5

    Hi

    I've created a simple patch that allows me to configure if the rebel.xml always should be generated or if there should be an up to date check.

    The plugin will then allow a configuration ala:
    <configuration>
    <force>false</force>
    </configuration>

    The force-element defaults to true so it will not change the semantics of the plugin for existing users.

    If force is set to false, then it will check in this order:
    1. Is the rebel.xml present in the configured folder? If not, generate.
    2. Is rebel.xml older than the pom.xml? If, then generate.

    Is this patch something you want to have a look at? I will of course gladly contribute it back to the community if it meets your standards.

    Cheers Magne

    Posted 7 months ago #
  6. lauri

    Member
    Posts: 482

    send the patch to support@zeroturnaround.com

    Posted 7 months ago #

RSS feed for this topic

Reply

(required)

(required)

(optional)

(required)

Allowed markup: a blockquote code em strong ul ol li.
Put code in between `backticks`.

Olark Livehelp