Re: Re: dependency version (Newbie)
Yes they are all in the same dir. If I put the complete name in the artifactId and leave the version blank it looks for jboss-jmx-.jar (trailing '-'). I just went a head and added a version 0 to each of the files and it now finds them. But that seems like a very ugly hack. Thanks Andrew ---Original Message--- From: Luke Taylor <[EMAIL PROTECTED]> Sent: 08/25/03 05:35 PM To: Maven Users List <[EMAIL PROTECTED]> Subject: Re: dependency version (Newbie) > > You would be better using the tag rather than (which is intended for version numbers). That aside, I would guess that you have something inconsistent between your repository structure and the dependencies you've listed. For example, are they really all under the group "jmx" as you have them here (as opposed to "jboss")? Luke. Andrew Boyd wrote: > Hi, > I have the following jars > jboss-common.jar > jboss-jmx-core.jar > jboss-jmx-services.jar > jboss-jmx.jar > > Since Maven requires a version I wrote my dependencies as such: > > jmx > jboss > common > > > jmx > jboss > jmx > > > jmx > jboss-jmx > core > > > jmx > jboss-jmx > services > > > Now when Maven retrieves from the maven.repo.remote > it only retrieves > Attempting to download jboss-common.jar. > ... > Attempting to download jboss-jmx-core.jar. > ... > > It then obviously does not compile. I checked the local repository and those are the only two in the jmx/jars dir. > > Any suggestions? > -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: dependency version (Newbie)
Yes I can see that it would be duplicate versions except for the fact that the version tag is different. If maven is going to require a version it should then be able to differentiate the diff between two versions. Anyway I just renamed the jars with a bogus 0 version and it works. Although it seems like an ugly hack. Thanks for responding, Andrew ---Original Message--- From: [EMAIL PROTECTED] Sent: 08/25/03 10:20 PM To: Maven Users List <[EMAIL PROTECTED]> Subject: Re: dependency version (Newbie) > > Andrew Boyd <[EMAIL PROTECTED]> wrote on 26/08/2003 05:59:01 AM: > Hi, > I have the following jars > jboss-common.jar > jboss-jmx-core.jar > jboss-jmx-services.jar > jboss-jmx.jar > > Since Maven requires a version I wrote my dependencies as such: > > jmx > jboss This is jmx/jars/jboss-.jar >common > > > jmx > jboss >jmx > This is ALSO jmx/jars/jboss-.jar, i.e. a duplicate dependency. > > jmx > jboss-jmx >core > > > jmx > jboss-jmx Ditto. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency version (Newbie)
On Monday 25 Aug 2003 20:59, Andrew Boyd wrote: > Hi, > I have the following jars > jboss-common.jar > jboss-jmx-core.jar > jboss-jmx-services.jar > jboss-jmx.jar > > Since Maven requires a version I wrote my dependencies as such: > > jmx > jboss > common > > > jmx > jboss > jmx > > > jmx > jboss-jmx > core > > > jmx > jboss-jmx > services > Try swapping round the group id and artifact id ... the groupId should be "jboss" and the artifact id things like jboss-jmx, jboss-common. The 'version' is not 'jmx' it is something like 3.2.1, 3.0.4 etc. Look at www.ibiblio.org/maven and see what is in the remote repository. -- Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency version (Newbie)
Andrew Boyd <[EMAIL PROTECTED]> wrote on 26/08/2003 05:59:01 AM: > Hi, > I have the following jars > jboss-common.jar > jboss-jmx-core.jar > jboss-jmx-services.jar > jboss-jmx.jar > > Since Maven requires a version I wrote my dependencies as such: > > jmx > jboss This is jmx/jars/jboss-.jar >common > > > jmx > jboss >jmx > This is ALSO jmx/jars/jboss-.jar, i.e. a duplicate dependency. > > jmx > jboss-jmx >core > > > jmx > jboss-jmx Ditto. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/
Re: dependency version (Newbie)
You would be better using the tag rather than (which is intended for version numbers). That aside, I would guess that you have something inconsistent between your repository structure and the dependencies you've listed. For example, are they really all under the group "jmx" as you have them here (as opposed to "jboss")? Luke. Andrew Boyd wrote: Hi, I have the following jars jboss-common.jar jboss-jmx-core.jar jboss-jmx-services.jar jboss-jmx.jar Since Maven requires a version I wrote my dependencies as such: jmx jboss common jmx jboss jmx jmx jboss-jmx core jmx jboss-jmx services Now when Maven retrieves from the maven.repo.remote it only retrieves Attempting to download jboss-common.jar. ... Attempting to download jboss-jmx-core.jar. ... It then obviously does not compile. I checked the local repository and those are the only two in the jmx/jars dir. Any suggestions? -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency version (Newbie)
Hi, I have the following jars jboss-common.jar jboss-jmx-core.jar jboss-jmx-services.jar jboss-jmx.jar Since Maven requires a version I wrote my dependencies as such: jmx jboss common jmx jboss jmx jmx jboss-jmx core jmx jboss-jmx services Now when Maven retrieves from the maven.repo.remote it only retrieves Attempting to download jboss-common.jar. ... Attempting to download jboss-jmx-core.jar. ... It then obviously does not compile. I checked the local repository and those are the only two in the jmx/jars dir. Any suggestions? Thanks Andrew Boyd Software Architect Sun Certified J2EE Architect B&B Technical Services Inc. 205.422.2557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]