Hi All, As i'm not getting much reponse on my earlier post, here i'm posting again the same question
i already tried 1. Passing proj.version thru system property as -Dproj.version 2. First did mvn install on Module-A then tried I have some weird problem in may be pom inheritance This is what my dirctory structure Project Module A SubModule-A |-pom.xml |-pom.xml Module B SubModule-B |- pom.xml |-pom.xml |-pom.xml lets say i have SubModule-A has a dependency in my SubModule-B in my SubModule-B pom.xml i have <dependency> <groupId>Project.ModuleA</groupId> <artifactId>SubModule-A</artifactId> <version>${proj.version}</version> <type>jar</type> <scope>provided</scope> </dependency> here ${proj.version} comes from my .m2>settings.xml When i run mvn deploy from top level (ie) c:\project everything works fine but when i just want to deploy lets say Module B then when i ran mvn deploy from c:\project\ModuleB its giving me error Downloading: http://Mycompany.repository.com/Project/Module A/${proj.version}/Module-A-${proj.version}.pom [WARNING] Unable to get resource from repository Dev-Repo (http://Mycompany.repository.com) Downloading: http://repo1.maven.org/maven2/Project/Module A/${proj.version}/Module-A-${proj.version}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------------- [INFO] Failed to resolve artifact. GroupId: Project ArtifactId: Module-A Version: ${proj.version} Reason: Unable to download the artifact from any repository Project.Module A:pom:${proj.version} from the specified remote repositories: central (http://repo1.maven.org/maven2), Dev-Repo (http://Mycompany.repository.com) Any suggestion?? Thanks, Raghu