I tried by running install first and then deploy still same problem
why ${proj.version}from .m2\settings.xml doesn't apply to all artifact
Again, its working only when do it from top level ie when i build all
artifacts then its working, but not when i want deploy single artifact
which has some other artifact as a dependecy, eventhough those are
available in repository
Please help
Thanks,
Raghu
[EMAIL PROTECTED]
03/21/2006 03:14 PM
Please respond to "Maven Users List"
To: "Maven Users List" <[email protected]>
cc: "Maven Users List" <[email protected]>
Subject: Re: weird problem in
But when i ran deploy in maven life cycle it dows the install first and
then continious to deploy right?
In that case why do i need to do install manually first?
Thanks,
Raghu
"Wayne Fay" <[EMAIL PROTECTED]>
03/21/2006 02:46 PM
Please respond to "Maven Users List"
To: "Maven Users List" <[email protected]>
cc:
Subject: Re: weird problem in
Perhaps try "mvn install" and perhaps "mvn deploy" in ModuleA itself
first.
Then try "mvn deploy" in ModuleB.
Wayne
On 3/21/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> No Space it just ModuleA
>
>
>
>
>
>
> Thanks,
> Raghu
>
>
>
>
>
> "Eric Redmond" <[EMAIL PROTECTED]>
> 03/21/2006 02:21 PM
> Please respond to "Maven Users List"
>
>
> To: "Maven Users List" <[email protected]>
> cc:
> Subject: Re: weird problem in
>
>
> 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
> >
> >
>
>
>
>