You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sachin Bansal <sb...@adobe.com> on 2004/10/28 19:56:42 UTC

changing to SNAPSHOT version does not work either

Hi Ryan,

 I did just what you suggested, i.e. changed the version to SNAPSHOT
version, but not it gives the error "fileNotFoundException:
com.abc.def.B-1.0-SNAPSHOT.jar not found".

        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.B</artifactId>
                <version>1.0-SNAPSHOT</version>
        </dependency>
 
        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.C</artifactId>
                <version>1.0-SNAPSHOT</version>
        </dependency>
 
        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.D</artifactId>
                <version>1.0-SNAPSHOT</version>
        </dependency>

 I wonder where I am wrong.

Sachin

-----Original Message-----
From: Ryan Sonnek [mailto:rsonnek@digitalriver.com] 
Sent: Thursday, October 28, 2004 8:48 AM
To: Maven Users List; sbansal@adobe.com
Subject: RE: I am surprised that no one replied to the question I posted
yesterday!!

change your dependency version to SNAPSHOT, and you'll be set.

-----Original Message-----
From: Sachin Bansal [mailto:sbansal@adobe.com]
Sent: Thursday, October 28, 2004 10:37 AM
To: 'Maven Users List'
Subject: I am surprised that no one replied to the question I posted
yesterday!!


Guys, 

 I posted this message yesterday and I have not heard from anyone. Does
that
mean Maven DOES NOT have any solution to my *simple* problem?

I have the following structure (my project is creating an eclipse plugin
for
xml editor) :
 
myProject
  com.abc.def.A
  com.abc.def.B
  com.abc.def.C
  com.abc.def.D
  com.abc.def.E
  com.abc.def.F
 
There are interdependencies among the projects.
They all produce jar files.
 
A depends on B, C and D
B depends on E
 
consequently I would to first build E, then B, C and D. Finally I would
like
Maven to build A
 
 
The depenedency as declared in the project file of project A is as
 
        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.B</artifactId>
                <version>1.0</version>
        </dependency>
 
        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.C</artifactId>
                <version>1.0</version>
        </dependency>
 
        <dependency>
            <groupId>myProject</groupId>
            <artifactId>com.abc.def.D</artifactId>
                <version>1.0</version>
        </dependency>
 
 
I DO NOT want maven to search for the com.abc.def.C-1.0.jar or
com.abc.def.B-1.0.jar in the maven repository in order to build
com.abc.def.A-1.0.jar.
 
I want maven to first build project E, then B and then build project C,
D
and finally A.
I want maven to figure this out dynamically, figuring it out from
dependency
File that it should first build project B and for that it will have to
first
build project E(just as Ant does, using depends target, or the sequence
of
execution)
 
Adam Fisk suggested that calling multiproject:install does it
automatically,
but it does not work. Everytime it looks for the *.B-1.0.jar or
*.C-1.0.jar
to be there in my repository and complains when it does not find those
jar
files. 
 
Please help.
 
Sachin
 
svbansal@yahoo.com


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



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


Re: changing to SNAPSHOT version does not work either

Posted by Bent André Solheim <be...@gmail.com>.
As for the last question you had Sachin, as far as I know, there is no
way maven can figure out the order your subprojects should be built
automatically (there is in fact no way for maven to distingusih
dependencies to your projects from for instance a jakarta-commons
dependency, since this is not specified/declared anywhere). I believe
you have to use the multiproject goal as Adam suggested... Configuring
the muliproject goal correctly will tell maven which dependencies are
infact your projects...

Hope this brings you along...


Bent


On Thu, 28 Oct 2004 14:09:43 -0400, Erik Husby <mh...@broad.mit.edu> wrote:
> Sachin Bansal wrote:
> 
> >Hi Craig,
> >
> > I tried that too! But now maven is unhappy about the word SNAPSHOT.
> >
> >it gives the error "fileNotFoundException: com.abc.def.B-SNAPSHOT.jar not
> >found".
> >
> >I wish I was close.
> >
> >Sachin
> >
> >
> >
> Have you produced the snapshot jars? I.E. do you run
> 
> > maven jar:install-snapshop
> 
> for each of your projects?
> 
> Have you read the documentation on the Maven website?
> 
> --
> Erik Husby
> Team Lead for Software Quality Automation
> Broad Institute of MIT and Harvard
> Rm. 2192  320 Charles St
> Cambridge, MA 02141-2023
> mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: changing to SNAPSHOT version does not work either

Posted by Erik Husby <mh...@broad.mit.edu>.
Sachin Bansal wrote:

>Hi Craig,
>
> I tried that too! But now maven is unhappy about the word SNAPSHOT. 
>
>it gives the error "fileNotFoundException: com.abc.def.B-SNAPSHOT.jar not
>found".
>
>I wish I was close.
>
>Sachin
>
>  
>
Have you produced the snapshot jars? I.E. do you run

 > maven jar:install-snapshop

for each of your projects?

Have you read the documentation on the Maven website?

-- 
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard 
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu


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


RE: changing to SNAPSHOT version does not work either

Posted by Sachin Bansal <sb...@adobe.com>.
Hi Craig,

 I tried that too! But now maven is unhappy about the word SNAPSHOT. 

it gives the error "fileNotFoundException: com.abc.def.B-SNAPSHOT.jar not
found".

I wish I was close.

Sachin

-----Original Message-----
From: Craig S. Cottingham [mailto:craig@cottingham.net] 
Sent: Thursday, October 28, 2004 10:58 AM
To: Maven Users List
Subject: Re: changing to SNAPSHOT version does not work either

On Oct 28, 2004, at 12:56, Sachin Bansal wrote:

>  I did just what you suggested, i.e. changed the version to SNAPSHOT
> version, but not it gives the error "fileNotFoundException:
> com.abc.def.B-1.0-SNAPSHOT.jar not found".
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.B</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.C</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.D</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>  I wonder where I am wrong.

Close. You should instead try "SNAPSHOT" instead of "1.0-SNAPSHOT" for 
the version:

         <dependency>
             <groupId>myProject</groupId>
             <artifactId>com.abc.def.B</artifactId>
             <version>SNAPSHOT</version>
         </dependency>

--
Craig S. Cottingham
craig@cottingham.net
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C


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


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


Re: changing to SNAPSHOT version does not work either

Posted by "Craig S. Cottingham" <cr...@cottingham.net>.
On Oct 28, 2004, at 12:56, Sachin Bansal wrote:

>  I did just what you suggested, i.e. changed the version to SNAPSHOT
> version, but not it gives the error "fileNotFoundException:
> com.abc.def.B-1.0-SNAPSHOT.jar not found".
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.B</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.C</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.D</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>  I wonder where I am wrong.

Close. You should instead try "SNAPSHOT" instead of "1.0-SNAPSHOT" for 
the version:

         <dependency>
             <groupId>myProject</groupId>
             <artifactId>com.abc.def.B</artifactId>
             <version>SNAPSHOT</version>
         </dependency>

--
Craig S. Cottingham
craig@cottingham.net
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7977F79C


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


Re: changing to SNAPSHOT version does not work either

Posted by Dion Gillard <di...@gmail.com>.
On Thu, 28 Oct 2004 10:56:42 -0700, Sachin Bansal <sb...@adobe.com> wrote:
> Hi Ryan,
> 
>  I did just what you suggested, i.e. changed the version to SNAPSHOT
> version, but not it gives the error "fileNotFoundException:
> com.abc.def.B-1.0-SNAPSHOT.jar not found".
> 
>         <dependency>
>             <groupId>myProject</groupId>
>             <artifactId>com.abc.def.B</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>         </dependency>

Your version needs to be:

<version>SNAPSHOT</version>

and run multiproject:install-snapshot 
-- 
http://www.multitask.com.au/people/dion/

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