You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Luciano Resende <lr...@apache.org> on 2007/04/10 02:39:50 UTC

Missing dependencies if building from parent directory (maven 2.0.5)

Hi maven gurus

   We are having a strange dependency issue in our build at Apache Tuscany
project. Starting from a clean m2 repo, if one tries the top-level build
(/java), he will face some dependencies issues like the one attached below,
but the issue actually goes away if you actually build from actual child
project (java/das). Simmilar missing dependencies issues are being reported
on the sca child project while trying to build from root (/java), and then
it goes away if you actually build from the child directory (java/sca). Our
svn code is available at [1] for reference. Any thoughts ?

[1] https://svn.apache.org/repos/asf/incubator/tuscany/java/

Missing:
----------
1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file
-DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
          -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Path to dependency:
        1)
org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
        2) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT

----------
1 required artifact is missing.

for artifact:

org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT

from the specified remote repositories:
  central ( http://repo1.maven.org/maven2),
  apache.incubator (http://people.apache.org/repo/m2-incubating-repository/
),
  apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)


-- 
Luciano Resende
http://people.apache.org/~lresende

Re: Missing dependencies if building from parent directory (maven 2.0.5)

Posted by Raymond Feng <en...@gmail.com>.
I think it's a "feature" for the reactor build which tries to use the same 
version of an artifact if the referenced artifact itself is part of the 
source tree in the same build.

Thanks,
Raymond

----- Original Message ----- 
From: "Luciano Resende" <lr...@apache.org>
To: "Wayne Fay" <wa...@gmail.com>
Cc: "Maven Users List" <us...@maven.apache.org>; <lr...@apache.org>
Sent: Tuesday, April 17, 2007 11:38 AM
Subject: Re: Missing dependencies if building from parent directory (maven 
2.0.5)


>I have found the solution for this issue, looks like there were some
> artifacts using different <version> element, and this was causing the
> problem. Having all artifacts with same <version> solved the build issues.
>
> Is this a BUG ?
>
> On 4/11/07, Luciano Resende <lr...@apache.org> wrote:
>>
>> Even if I explicitly add the version node for 
>> <artifactId>tuscany-das-rdb</artifactId>,
>> I get the same problem. Any ideas on how I could debug and try to find
>> what's causing the problem ?
>>
>>
>> On 4/10/07, Wayne Fay <wa...@gmail.com> wrote:
>> >
>> > I haven't pulled the code and built etc yet, but I noticed the pom.xml
>> > for <artifactId>tuscany-das-rdb</artifactId> is missing a <version/>
>> > node. This may be related to your issues...
>> >
>> > Wayne
>> >
>> > On 4/9/07, Luciano Resende <lr...@apache.org> wrote:
>> > > Hi maven gurus
>> > >
>> > >    We are having a strange dependency issue in our build at Apache
>> > Tuscany
>> > > project. Starting from a clean m2 repo, if one tries the top-level
>> > build
>> > > (/java), he will face some dependencies issues like the one attached
>> > below,
>> > > but the issue actually goes away if you actually build from actual
>> > child
>> > > project (java/das). Simmilar missing dependencies issues are being
>> > reported
>> > > on the sca child project while trying to build from root (/java), and
>> > then
>> > > it goes away if you actually build from the child directory
>> > (java/sca). Our
>> > > svn code is available at [1] for reference. Any thoughts ?
>> > >
>> > > [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/
>> > >
>> > > Missing:
>> > > ----------
>> > > 1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
>> > >
>> > >   Try downloading the file manually from the project website.
>> > >
>> > >   Then, install it using the command:
>> > >       mvn install:install-file
>> > > -DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
>> > >           -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
>> > > -Dfile=/path/to/file
>> > >
>> > >   Path to dependency:
>> > >         1)
>> > >
>> > org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
>> > >         2)
>> > org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
>> > >
>> > > ----------
>> > > 1 required artifact is missing.
>> > >
>> > > for artifact:
>> > >
>> > >
>> > org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
>> > >
>> > > from the specified remote repositories:
>> > >   central ( http://repo1.maven.org/maven2),
>> > >   apache.incubator (
>> > http://people.apache.org/repo/m2-incubating-repository/
>> > > ),
>> > >   apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
>> > >   apache.snapshots 
>> > > (http://people.apache.org/repo/m2-snapshot-repository
>> > )
>> > >
>> > >
>> > > --
>> > > Luciano Resende
>> > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende>
>> > >
>> >
>>
>>
>>
>> --
>> Luciano Resende
>> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
>>
>
>
>
> -- 
> Luciano Resende
> http://people.apache.org/~lresende
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Missing dependencies if building from parent directory (maven 2.0.5)

Posted by Luciano Resende <lr...@apache.org>.
I have found the solution for this issue, looks like there were some
artifacts using different <version> element, and this was causing the
problem. Having all artifacts with same <version> solved the build issues.

Is this a BUG ?

On 4/11/07, Luciano Resende <lr...@apache.org> wrote:
>
> Even if I explicitly add the version node for <artifactId>tuscany-das-rdb</artifactId>,
> I get the same problem. Any ideas on how I could debug and try to find
> what's causing the problem ?
>
>
> On 4/10/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > I haven't pulled the code and built etc yet, but I noticed the pom.xml
> > for <artifactId>tuscany-das-rdb</artifactId> is missing a <version/>
> > node. This may be related to your issues...
> >
> > Wayne
> >
> > On 4/9/07, Luciano Resende <lr...@apache.org> wrote:
> > > Hi maven gurus
> > >
> > >    We are having a strange dependency issue in our build at Apache
> > Tuscany
> > > project. Starting from a clean m2 repo, if one tries the top-level
> > build
> > > (/java), he will face some dependencies issues like the one attached
> > below,
> > > but the issue actually goes away if you actually build from actual
> > child
> > > project (java/das). Simmilar missing dependencies issues are being
> > reported
> > > on the sca child project while trying to build from root (/java), and
> > then
> > > it goes away if you actually build from the child directory
> > (java/sca). Our
> > > svn code is available at [1] for reference. Any thoughts ?
> > >
> > > [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/
> > >
> > > Missing:
> > > ----------
> > > 1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> > >
> > >   Try downloading the file manually from the project website.
> > >
> > >   Then, install it using the command:
> > >       mvn install:install-file
> > > -DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
> > >           -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
> > > -Dfile=/path/to/file
> > >
> > >   Path to dependency:
> > >         1)
> > >
> > org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> > >         2)
> > org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> > >
> > > ----------
> > > 1 required artifact is missing.
> > >
> > > for artifact:
> > >
> > >
> > org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> > >
> > > from the specified remote repositories:
> > >   central ( http://repo1.maven.org/maven2),
> > >   apache.incubator (
> > http://people.apache.org/repo/m2-incubating-repository/
> > > ),
> > >   apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
> > >   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository
> > )
> > >
> > >
> > > --
> > > Luciano Resende
> > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende>
> > >
> >
>
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
>



-- 
Luciano Resende
http://people.apache.org/~lresende

Re: Missing dependencies if building from parent directory (maven 2.0.5)

Posted by Luciano Resende <lr...@apache.org>.
Even if I explicitly add the version node for
<artifactId>tuscany-das-rdb</artifactId>,
I get the same problem. Any ideas on how I could debug and try to find
what's causing the problem ?


On 4/10/07, Wayne Fay <wa...@gmail.com> wrote:
>
> I haven't pulled the code and built etc yet, but I noticed the pom.xml
> for <artifactId>tuscany-das-rdb</artifactId> is missing a <version/>
> node. This may be related to your issues...
>
> Wayne
>
> On 4/9/07, Luciano Resende <lr...@apache.org> wrote:
> > Hi maven gurus
> >
> >    We are having a strange dependency issue in our build at Apache
> Tuscany
> > project. Starting from a clean m2 repo, if one tries the top-level build
> > (/java), he will face some dependencies issues like the one attached
> below,
> > but the issue actually goes away if you actually build from actual child
> > project (java/das). Simmilar missing dependencies issues are being
> reported
> > on the sca child project while trying to build from root (/java), and
> then
> > it goes away if you actually build from the child directory (java/sca).
> Our
> > svn code is available at [1] for reference. Any thoughts ?
> >
> > [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/
> >
> > Missing:
> > ----------
> > 1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> >
> >   Try downloading the file manually from the project website.
> >
> >   Then, install it using the command:
> >       mvn install:install-file
> > -DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
> >           -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
> > -Dfile=/path/to/file
> >
> >   Path to dependency:
> >         1)
> >
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> >         2)
> org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> >
> > ----------
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> >
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central ( http://repo1.maven.org/maven2),
> >   apache.incubator (
> http://people.apache.org/repo/m2-incubating-repository/
> > ),
> >   apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
> >   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository
> )
> >
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende
> >
>



-- 
Luciano Resende
http://people.apache.org/~lresende

Re: Missing dependencies if building from parent directory (maven 2.0.5)

Posted by Wayne Fay <wa...@gmail.com>.
I haven't pulled the code and built etc yet, but I noticed the pom.xml
for <artifactId>tuscany-das-rdb</artifactId> is missing a <version/>
node. This may be related to your issues...

Wayne

On 4/9/07, Luciano Resende <lr...@apache.org> wrote:
> Hi maven gurus
>
>    We are having a strange dependency issue in our build at Apache Tuscany
> project. Starting from a clean m2 repo, if one tries the top-level build
> (/java), he will face some dependencies issues like the one attached below,
> but the issue actually goes away if you actually build from actual child
> project (java/das). Simmilar missing dependencies issues are being reported
> on the sca child project while trying to build from root (/java), and then
> it goes away if you actually build from the child directory (java/sca). Our
> svn code is available at [1] for reference. Any thoughts ?
>
> [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/
>
> Missing:
> ----------
> 1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file
> -DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
>           -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>   Path to dependency:
>         1)
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
>         2) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
>
> from the specified remote repositories:
>   central ( http://repo1.maven.org/maven2),
>   apache.incubator (http://people.apache.org/repo/m2-incubating-repository/
> ),
>   apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org