Hi,

 

I am using maven2 for the new project. When I deploy a SNAPSHOT version
to the repository, it was successful. But when I change the version to
an non-SNAPSHOT version, like I changed the build.version=1.0.0.77, I
got the error as following. All the settings are same. I attach my
settings (for windows ) and pom.xml here:

 

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error deploying artifact: Error executing command for transfer

 

Exit code 1 - 'ssh' is not recognized as an internal or external
command, operable program or batch file.

 

The second question:

On windows, I have to use scpexe:// for deploy, but on unix I have to
change to scp://. Any one knows how to combine them to one? I don't want
to have 2 version of code.

 

Any help would be much appreciated.

 

Baoli zhang

[EMAIL PROTECTED]



The information contained in this e-mail message and any
attachments may be privileged and confidential. If the reader of
this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that any review, dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the sender
immediately by replying to this e-mail and delete the message and
any attachments from your computer.

<settings xmlns="http://maven.apache.org/POM/4.0.0";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd";>
	
	<localRepository>c:/Docume~1/bzhang/.m2/repository</localRepository>
	<interactiveMode/>
	<usePluginRegistry/>
	<offline/>
	<pluginGroups/>
	
    <servers>
		<server>
			<id>mavenOneRemoteRepository</id>
			<username>maven</username>
			<password>maven12</password>
			<filePermissions>664</filePermissions>
			<directoryPermissions>775</directoryPermissions>
			<configuration>
				<sshExecutable>plink</sshExecutable>
				<scpExecutable>pscp</scpExecutable>
			</configuration>
		</server>
		<server>
			<id>M2-INHOUSE-REPO</id>
			<username>maven</username>
			<password>maven12</password>
			<filePermissions>664</filePermissions>
			<directoryPermissions>775</directoryPermissions>
			<configuration>
				<sshExecutable>plink</sshExecutable>
				<scpExecutable>pscp</scpExecutable>
			</configuration>
		</server>
		<server>
			<id>M2-INHOUSE-SNAPSHOT-REPO</id>
			<username>maven</username>
			<password>maven12</password>
			<filePermissions>664</filePermissions>
			<directoryPermissions>775</directoryPermissions>
			<configuration>
				<sshExecutable>plink</sshExecutable>
				<scpExecutable>pscp</scpExecutable>
			</configuration>
		</server>
		<server>
			<id>M2-THIRDPARTY-REPO</id>
			<username>maven</username>
			<password>maven12</password>
			<filePermissions>664</filePermissions>
			<directoryPermissions>775</directoryPermissions>
			<configuration>
				<sshExecutable>plink</sshExecutable>
				<scpExecutable>pscp</scpExecutable>
			</configuration>
		</server>

		<server>
			<id>loyalty-site-repository</id>
			<username>maven</username>
			<password>maven12</password>
			<filePermissions>664</filePermissions>
			<directoryPermissions>775</directoryPermissions>
			<configuration>
				<sshExecutable>plink</sshExecutable>
				<scpExecutable>pscp</scpExecutable>
			</configuration>
		</server>
	</servers>

	<profiles/>
	<mirrors/>
	<proxies/>
	<activeProfiles />

</settings>

<project>
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.loyalty.arrow</groupId>
	<artifactId>arrow-services</artifactId>
	<version>${buildVersion}</version>
	<packaging>pom</packaging>
	<name>Arrow Services Project</name>
	<description>Arrow Services Project</description>
	
	<dependencyManagement>
	</dependencyManagement>
	
	<dependencies>
		<dependency>
			<groupId>weblogic</groupId>
			<artifactId>weblogic</artifactId>
			<version>8.1.5</version>
			<scope>provided</scope>
		</dependency>
		
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.8</version>
		</dependency>
		
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
		
		<dependency>
			<groupId>com.loyalty.arrow</groupId>
			<artifactId>arrow-model</artifactId>
			<version>${arrow.model.version}</version>
		</dependency>
<dependency>
    <groupId>org.apache.maven.wagon</groupId>
    <artifactId>wagon-ssh-external</artifactId>
    <version>1.0-beta-2</version>
</dependency> 
				
	</dependencies>
	
	<modules>
		<module>utils</module>
<!--		<module>ammis/account-facade</module>
		<module>ammis/collector-facade</module>  -->
		<module>card-facade</module>
		<module>dummy-facade</module>
		<module>epin-facade</module>
		<module>ghost-facade</module>
		<module>order-facade</module>
		<module>profanity-filter-facade</module>
		<module>segment-facade</module>
		<module>sponsor-facade</module>
		<module>survey-facade</module>
		<module>travel-facade</module>
	</modules>
	
	<!--
	lets this project use maven1 repository
	-->
	<repositories>
<!--      <repository>
         <id>mavenOneRemoteRepository</id>
         <name>repository maven 1</name>
         <url>http://tdc-maven-01.mgmt.tdc.loyalty.com/maven</url>
         <layout>legacy</layout>
      </repository> 
-->	
      <repository>
         <id>M2-INHOUSE-REPO</id>
         <name>maven 2 inhouse repository </name>
         <url>http://tdc-maven-01.mgmt.tdc.loyalty.com/m2/inhouse-repo</url>
		 <releases><enabled>true</enabled></releases> 
		 <snapshots><enabled>true</enabled></snapshots>
      </repository>
      
      <repository>
         <id>M2-INHOUSE-SNAPSHOT-REPO</id>
         <name>maven 2 inhouse-snapshot repository </name>
         <url>http://tdc-maven-01.mgmt.tdc.loyalty.com/m2/inhouse-snapshot-repo</url>
		 <releases><enabled>true</enabled></releases> 
		 <snapshots><enabled>true</enabled></snapshots>
      </repository>
      
      <repository>
         <id>M2-THIRDPARTY-REPO</id>
         <name>maven 2 thirdparty repository </name>
         <url>http://tdc-maven-01.mgmt.tdc.loyalty.com/m2/thirdParty-repo</url>
		 <releases><enabled>true</enabled></releases> 
		 <snapshots><enabled>true</enabled></snapshots>
      </repository>
	</repositories>
	
	<distributionManagement>
      <repository>
         <id>M1-REPO</id>
         <name>repository maven 1</name>
         <url>
            scpexe://tdc-maven-01.mgmt.tdc.loyalty.com/data/maven/maven</url>
      </repository>	 	
<!--		
      <repository>
         <id>M2-INHOUSE-REPO</id>
         <name>Loyalty Inhouse Repository</name>
         <url>
            scp://tdc-maven-01.mgmt.tdc.loyalty.com/data/maven/m2/inhouse-repo</url>
      </repository>
 	-->	     
      <snapshotRepository>
         <id>M2-INHOUSE-SNAPSHOT-REPO</id>
         <name>Loyalty Inhouse-Snapshot Repository</name>
         <url>
            scpexe://tdc-maven-01.mgmt.tdc.loyalty.com/data/maven/m2/inhouse-snapshot-repo</url>
         <uniqueVersion>false</uniqueVersion>
      </snapshotRepository>
     
      <site>
         <id>loyalty-site-repository</id>
         <name>Transaction Products Colloctor Service</name>
         <url>
            scpexe://tdc-maven-01.mgmt.tdc.loyalty.com/data/maven/projects/services</url>
      </site>
				
	</distributionManagement>
	
	<profiles>
		<profile>
			<id>local</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<environment>local</environment>
			</properties>
		</profile>
		<profile>
			<id>dev</id>
			<properties>
				<environment>dev</environment>
			</properties>
		</profile>
		<profile>
			<id>test</id>
			<properties>
				<environment>test</environment>
			</properties>
		</profile>
		<profile>
			<id>prod</id>
			<properties>
				<environment>prod</environment>
			</properties>
		</profile>
		<profile>
			<id>prodpreview</id>
			<properties>
				<environment>prodpreview</environment>
			</properties>
		</profile>
		<profile>
			<id>devpreview</id>
			<properties>
				<environment>devpreview</environment>
			</properties>
		</profile>		
	</profiles>
	
	<build>
		<finalName>${pom.artifactId}-${environment.type}-${pom.version}</finalName> 
		
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-one-plugin</artifactId>
				<executions>
					<execution>
						<id>install</id>
						<phase>install</phase>
						<goals>
							<goal>install-maven-one-repository</goal>
						</goals>
					</execution>
					<execution>
						<id>deploy</id>
						<phase>deploy</phase>
						<configuration>
							<remoteRepositoryId>
								mavenOneRemoteRepository</remoteRepositoryId>
							<remoteRepositoryUrl>
								scpexe://tdc-maven-01.mgmt.tdc.loyalty.com/data/maven/maven
								</remoteRepositoryUrl>
							<legacyLayout>true</legacyLayout>
						</configuration>
						
						<goals>
							<goal>deploy-maven-one-repository</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skip>${maven.test.skip}</skip>
				</configuration>
			</plugin>
		</plugins>
		
		<!-- for using external scp command: scp -->
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh-external</artifactId>
				<version>1.0-beta-2</version>
			</extension>
		</extensions> 
		
	</build>
<!--	<properties>
		<weblogic.home>${weblogic.home}</weblogic.home>
		<travel.service.client.version>${travel.service.client.version}</travel.service.client.version>
	</properties>
-->
		
<!-- for local build properties -->	
	<properties>
	    <buildVersion>1.0.0.77</buildVersion>
		<arrow.model.version>1.0-SNAPSHOT</arrow.model.version>
		<weblogic.home>c:\bea\weblogic81</weblogic.home>
		<travel.service.client.version>1.0.0.40</travel.service.client.version>
		<environment.type>test</environment.type>
	</properties>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to