Hi,

Yes indeed. If your Nexus instance is correctly configured and you are
pointing Maven at it correctly then the artifacts corresponding to the
dependencies listed in your pom should be downloaded and put in your local
repository.

1) Can you confirm whether you have added a dependency to your pom which
includes the commons codec classes that you are using?
2)  Can you please attach a copy of your settings.xml file
3) With regards to these artifacts that you have installed, are they
publicly available jars which can be found on the central repo or jars that
you have created yourself?
4) If you run 'mvn -U compile' it forces a check for updates on your
dependencies. What output do you get when you do this? Is it able to
succesfully connect to your Nexus instance?


On Mon, Apr 20, 2009 at 9:43 AM, MS21 <[email protected]> wrote:

>
> This i have tried and its working. What i am trying to do is i have created
> a
> repository in NEXUS
>
> http://localhost:8080/nexus-webapp-1.3.2/content/repositories/IBRepos/
>
> I have added couple of aritifacts in this (jar files). and using the
> classes
> from this artifact
>
> I modified the POM and settings.xml in my sample to point to this..When i
> build, its giving compilation error since its not in build path (this one i
> will fix)..Also i think it shud download the artificats to local repository
> under M2 folder.. but this is not happening..
>
> Pls confirm
>
> -----------------------------------------------
> [INFO] Compilation failure
> C:\sample-echo\FileManager\src\main\java\org\xh\studies\App.java:[3,32]
> package
> org.apache.commons.codec does not exist
>
>
>
>
>
>
> Ian Petzer wrote:
> >
> > There is a very quick tutorial on the Maven site which should get you up
> > and
> > running with a very basic pom file and standardised directory structure.
> >
> > You can find it here:
> >
> http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
> >
> > You don't actually need a settings.xml file to run Maven so I would
> > suggest
> > that you delete/move the one you have created and go through the
> tutorial.
> > Once you have finished that you will have a Maven project which will
> > retrieve your dependencies from the main Maven site. It will then be easy
> > to
> > create a settings.xml file to use your Nexus repository.
> >
> > If you have problems, you will need to post the details of the error
> > message
> > that you receive.
> >
> >
> > On Mon, Apr 20, 2009 at 6:54 AM, MS21 <[email protected]>
> wrote:
> >
> >>
> >> Hi Ian,n'
> >>  We have a Nexus software installed, created a local repostiory and
> added
> >> some basic artificats
> >> . I am new to Maven so trying to configure a simple project and point it
> >> to
> >> this repository.
> >>
> >> Could you pls let me know the steps or give URL which contains these
> >> details.
> >>
> >>
> >>
> >>
> >>
> >> Ian Petzer wrote:
> >> >
> >> > Hi,
> >> >
> >> > Could you please post the details of the error message that was
> >> displayed.
> >> >
> >> > Also, please attach your settings.xml file.
> >> >
> >> > Ian
> >> >
> >> > On Fri, Apr 17, 2009 at 3:03 PM, MS21 <[email protected]>
> >> wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >>  We are new to Maven and trying to build a project , it shows Not
> able
> >> to
> >> >> download from the URL.
> >> >>
> >> >> I am not really sure if its a proxy issue, though the network we were
> >> >> using
> >> >> does not have any proxy & user ids for that.
> >> >>
> >> >> We actually tried changing the settings.xml and pointed it to maven2
> >> >> repos
> >> >> (http://repo1.maven.org/maven2/). Later we changed it to our local
> >> >> repository URL. But when we run it it was saying cannot download from
> >> the
> >> >> URL.- http://repo1.maven.org/maven2/
> >> >>
> >> >> We are not sure if its still pointing to the old URL or internally it
> >> >> uses
> >> >> Maven url.
> >> >>
> >> >> Could you pls guide us..
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23098266.html
> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [email protected]
> >> >> For additional commands, e-mail: [email protected]
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23130747.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-while-building-using-Maven-tp23098266p23132545.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to