Do you really have a space in your artifact ID? Is it really named "Module
A"?

On 3/21/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> 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)
>
>
>
> What is going wrong here??
>
>
> Thanks,
> Raghu
>
>

Reply via email to