Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-553

Releasing fails on windows os

    XMLWordPrintable

Details

    • N/A
    • N/A
    • Awaiting Contributor feedback

    Description

      Releasing fails on windows os with message :

          [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-javadoc-exists) @ application-forum ---
          [WARNING] Rule 0: org.apache.maven.plugins.enforcer.EvaluateBeanshell failed with message:
          Couldn't evaluate condition: ("xar" != "jar") || ("xar" == "jar" && new java.io.File("D:\dev\git\xwiki-app\application-forum2\target\checkout\target/appl
      cation-forum-1.1-SNAPSHOT-javadoc.jar").exists())
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 24.499s
          [INFO] Finished at: Sun Mar 23 23:30:29 GMT+01:00 2014
          [INFO] Final Memory: 28M/499M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce (enforce-javadoc-exists) on project application-forum: Some E
      forcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please read the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      The workaround is to add -Denforcer.skip=true to your command as in:

      mvn release:perform -Denforcer.skip=true
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              sbaloul Sofiane Baloul
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: