eclipse - Maven error: 'dependencies.dependency.version' for ... must be a valid version but is -


i created maven project using eclipse juno , edited pom file. when ran pom file using command prompt "mvn clean install", got error.

[error] build not read 1 project -> [help 1] [error] [error]   project se.cambio.platform.sdk:sdk-documentation-samples-laki:1      (f:\newworkspace\sdk-documentation-samples-laki\pom.xml) has 2 errors [error]     'dependencies.dependency.version' se.cambio.platform.sdk:sdk-client:jar    must valid version '${version.sdk.client}'. @ line 38, column 16 [error]     'dependencies.dependency.version' se.cambio.platform.sdk:sdk-common:jar   must valid version '${version.sdk.common}'. @ line 44, column 16 [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/projectbuildingexception 

my pom file is,

<?xml version="1.0" encoding="utf-8"?> <project 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/maven-  4.0.0.xsd"> <modelversion>4.0.0</modelversion> <parent> <groupid>se.cambio.platform.sdk</groupid> <artifactid>sdk-documentation-samples</artifactid> <version>0.8.2</version> </parent> <artifactid>sdk-documentation-samples-laki</artifactid> <version>1</version> <description>this sample project</description> <build> <plugins>   <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-jar-plugin</artifactid>     <configuration>       <archive>         <manifestentries>           <moduleclass>se.cambio.laki.client.module</moduleclass>           <buildversion>${pom.version}</buildversion>         </manifestentries>       </archive>     </configuration>   </plugin>  </plugins> </build> <dependencies> <dependency>   <groupid>${project.groupid}</groupid>   <artifactid>sdk-client</artifactid>   <version>${version.sdk.client}</version>   <scope>compile</scope> </dependency> <dependency>   <groupid>${project.groupid}</groupid>   <artifactid>sdk-common</artifactid>   <version>${version.sdk.common}</version>   <scope>compile</scope> </dependency> <dependency>   <groupid>se.cambio.legacy</groupid>   <artifactid>cdk</artifactid>   <version>${version.cde}</version>   <classifier>cdk-internal</classifier>   <scope>runtime</scope> </dependency> <dependency>   <groupid>commons-dbcp</groupid>   <artifactid>commons-dbcp</artifactid>   <version>1.4</version>   <scope>runtime</scope> </dependency>         <dependency>         <groupid>org.testng</groupid>         <artifactid>testng</artifactid>         <version>${version.testng}</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>org.mockito</groupid>         <artifactid>mockito-all</artifactid>         <version>1.8.5</version>         <scope>test</scope>     </dependency> <dependency>   <groupid>net.sourceforge.jtds</groupid>   <artifactid>jtds</artifactid>   <version>1.2.5</version>   <scope>runtime</scope>   </dependency> <dependency>         <groupid>cglib</groupid>         <artifactid>cglib</artifactid>         <version>2.2</version>         <scope>test</scope>     </dependency>  </dependencies>   </project> 

how can resolve error?

the properties ${version.sdk.client} , ${version.sdk.common} aren't defined in project.

adding solve problem. (be sure adapt version of course; 1.0.0.release not need.)

<properties>     <version.sdk.client>1.0.0.release</version.sdk.client>     <version.sdk.common>1.0.0.release</version.sdk.common> </properties> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -