You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Roberts <Er...@borland.com> on 2007/08/28 23:50:45 UTC

SCM plugin and non-verbose mode

Is there any way to tell an SCM configuration to use 'quiet' or
'non-verbose' mode?  I have a scenario where I need to use the checkin
goal to checkin files but if there are files that need to be added (e.g.
add_test.txt) the maven build stops with the following error:
[WARNING] Unknown checkin ouput: add_test.txt : No files matching
"file_NOT_in_starteam.txt" were found in the StarTeam repository.

Here's the configuration for checkin goal
 
         <execution>
            <id>checkin-docbuild-destination</id>
            <goals>
              <goal>checkin</goal>
            </goals>
            <phase>install</phase>
            <configuration>
              <connectionType>connection</connectionType>
 
<connectionUrl>${dest.base.scm.url}/${webhelp.dir}</connectionUrl>
       <workingDirectory>${dest.checkout.directory}</workingDirectory>
       <includes>**/*</includes>
              <message>New DocServices Build Checkin</message>
            </configuration>
          </execution>

If I add an execution of the 'add' goal before the 'checkin' goal I get
the following error:
[WARNING] Unknown add ouput: borlandhelp.css : No files matching
"file_already_in_starteam.txt" were found on the local disk that were
not already in the repository.

Here's the configuration for the add goal: 

          <execution>
            <id>add-docbuild-destination</id>
            <goals>
              <goal>add</goal>
            </goals>
            <phase>install</phase>
            <configuration>
              <connectionType>connection</connectionType>
 
<connectionUrl>${dest.base.scm.url}/${webhelp.dir}</connectionUrl>
       <workingDirectory>${dest.checkout.directory}</workingDirectory>
       <includes>**/*</includes>
              <message>Adding Files From New DocServices Build</message>
            </configuration>
          </execution>

The only way I've found to get around this is by invoking the same
starteam add and checkin commands that maven is invoking but add a '-q'
argument.  This silently ignores the errors above.  However, I can't
figure out how to configure 'quite' mode in Maven.
 
Eric
 

Re: SCM plugin and non-verbose mode

Posted by Dan Tran <da...@gmail.com>.
dont think there is a solution for case, please file a request against
maven scm.

Best if you directly enhance maven-scm's starteam provider to get you going,
and then submit a patch

-D

On 8/28/07, Eric Roberts <Er...@borland.com> wrote:
> Is there any way to tell an SCM configuration to use 'quiet' or
> 'non-verbose' mode?  I have a scenario where I need to use the checkin
> goal to checkin files but if there are files that need to be added (e.g.
> add_test.txt) the maven build stops with the following error:
> [WARNING] Unknown checkin ouput: add_test.txt : No files matching
> "file_NOT_in_starteam.txt" were found in the StarTeam repository.
>
> Here's the configuration for checkin goal
>
>         <execution>
>            <id>checkin-docbuild-destination</id>
>            <goals>
>              <goal>checkin</goal>
>            </goals>
>            <phase>install</phase>
>            <configuration>
>              <connectionType>connection</connectionType>
>
> <connectionUrl>${dest.base.scm.url}/${webhelp.dir}</connectionUrl>
>       <workingDirectory>${dest.checkout.directory}</workingDirectory>
>       <includes>**/*</includes>
>              <message>New DocServices Build Checkin</message>
>            </configuration>
>          </execution>
>
> If I add an execution of the 'add' goal before the 'checkin' goal I get
> the following error:
> [WARNING] Unknown add ouput: borlandhelp.css : No files matching
> "file_already_in_starteam.txt" were found on the local disk that were
> not already in the repository.
>
> Here's the configuration for the add goal:
>
>          <execution>
>            <id>add-docbuild-destination</id>
>            <goals>
>              <goal>add</goal>
>            </goals>
>            <phase>install</phase>
>            <configuration>
>              <connectionType>connection</connectionType>
>
> <connectionUrl>${dest.base.scm.url}/${webhelp.dir}</connectionUrl>
>       <workingDirectory>${dest.checkout.directory}</workingDirectory>
>       <includes>**/*</includes>
>              <message>Adding Files From New DocServices Build</message>
>            </configuration>
>          </execution>
>
> The only way I've found to get around this is by invoking the same
> starteam add and checkin commands that maven is invoking but add a '-q'
> argument.  This silently ignores the errors above.  However, I can't
> figure out how to configure 'quite' mode in Maven.
>
> Eric
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org