Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-340

maven deploy fails if server output anything in .bashrc, or uses tput ...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • wagon-ssh
    • None
    • Linux Server

    Description

      Suppose I have a

      echo "Welcome to my Server" 1>&2

      in the .bashrc on my server.

      Then I can use scp just fine to copy files to the server. However maven fails, at least it claims so. This gets worse when it is send to stdout.

      [INFO] [install:install

      {execution: default-install}

      ]
      [INFO] Installing /home/fm/dcc/dcc-domain/target/dcc-domain-0.0.1-SNAPSHOT.jar to /home/fm/.m2/repository/dcc-domain/dcc-domain/0.0.1-SNAPSHOT/dcc-domain-0.0.1-SNAPSHOT.jar
      [INFO] [deploy:deploy

      {execution: default-deploy}

      ]
      [INFO] Retrieving previous build number from kronos
      Uploading: scp://asdasd/srv/www/maven//dcc-domain/dcc-domain/0.0.1-SNAPSHOT/dcc-domain-0.0.1-20110706.165919-2.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error deploying artifact: Exit code: 0 - Welcome to my Server

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4 seconds
      [INFO] Finished at: Wed Jul 06 18:59:21 CEST 2011
      [INFO] Final Memory: 16M/170M
      [INFO] ------------------------------------------------------------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            fmms Felix
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: