You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Ersoy <ol...@yahoo.com> on 2006/05/17 04:33:47 UTC

Maven Not Resolving Dependencies

Hi,

I'm running Maven 2.0.3 and I'm having problems
compiling.

I first run the eclipse plugin and eclipse is able to
load the dependencies.

I then attempt to install, and the maven compiler
gives me messages like this:

/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
package javax.faces.component does not exist

/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
cannot find symbol
symbol: class UIComponentBase


So eclipse sees the dependencies in the repository,
but maven does not.

Any ideas?

Thanks in advance!

Cheers,
- Ole

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Ole Ersoy <ol...@yahoo.com>.
Thanks Wayne - I'll do that as well.

I just figured out what the problem was.  

I upgraded java, but I was root.  So apparantly maven
could not run the classloader.  I installed again
as me, and now everything works fine.

Cheers,
- Ole

--- Wayne Fay <wa...@gmail.com> wrote:

> Upgrade to Maven 2.0.4. I doubt it will solve your
> problem, but 2.0.3
> had regression bugs, so no one should use it.
> 
> Wayne
> 
> On 5/17/06, Ole Ersoy <ol...@yahoo.com> wrote:
> > Hi Bruno,
> >
> > It's actually a class from the Apache myfaces
> project
> > and it is downloaded from ibiblio by maven using
> > the standard dependency mechanism.
> >
> > So eclipse is loading the dependency
> > from the local maven repository.
> >
> > For some reason Maven is not seeing the dependency
> in
> > the repository.
> >
> > Thanks for the try though,
> > - Ole
> >
> > --- Bruno Patini Furtado <bp...@gmail.com>
> wrote:
> >
> > > is UIComponentBase a class of yours? or for some
> JAR
> > > of which you depend?
> > >
> > > Because if it is a class of your project you may
> > > have put it outside the
> > > standard maven directory for source code, and
> maven
> > > is not compiling it.
> > > Eclipse source folders and where maven expects
> to
> > > find the sources are
> > > places not related. Maven's compile plugin does
> not
> > > read the Eclipse project
> > > to gather information.
> > >
> > >
> > > On 5/16/06, Ole Ersoy <ol...@yahoo.com>
> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I'm running Maven 2.0.3 and I'm having
> problems
> > > > compiling.
> > > >
> > > > I first run the eclipse plugin and eclipse is
> able
> > > to
> > > > load the dependencies.
> > > >
> > > > I then attempt to install, and the maven
> compiler
> > > > gives me messages like this:
> > > >
> > > >
> > > >
> > >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > > package javax.faces.component does not exist
> > > >
> > > >
> > > >
> > >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
> > > > cannot find symbol
> > > > symbol: class UIComponentBase
> > > >
> > > >
> > > > So eclipse sees the dependencies in the
> > > repository,
> > > > but maven does not.
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks in advance!
> > > >
> > > > Cheers,
> > > > - Ole
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail:
> > > users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > "Minds are like parachutes, they work best when
> > > open."
> > >
> > > Bruno Patini Furtado
> > > Software Developer
> > > webpage: http://bpfurtado.net
> > > software development blog:
> > > http://bpfurtado.livejournal.com
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Wayne Fay <wa...@gmail.com>.
Upgrade to Maven 2.0.4. I doubt it will solve your problem, but 2.0.3
had regression bugs, so no one should use it.

Wayne

On 5/17/06, Ole Ersoy <ol...@yahoo.com> wrote:
> Hi Bruno,
>
> It's actually a class from the Apache myfaces project
> and it is downloaded from ibiblio by maven using
> the standard dependency mechanism.
>
> So eclipse is loading the dependency
> from the local maven repository.
>
> For some reason Maven is not seeing the dependency in
> the repository.
>
> Thanks for the try though,
> - Ole
>
> --- Bruno Patini Furtado <bp...@gmail.com> wrote:
>
> > is UIComponentBase a class of yours? or for some JAR
> > of which you depend?
> >
> > Because if it is a class of your project you may
> > have put it outside the
> > standard maven directory for source code, and maven
> > is not compiling it.
> > Eclipse source folders and where maven expects to
> > find the sources are
> > places not related. Maven's compile plugin does not
> > read the Eclipse project
> > to gather information.
> >
> >
> > On 5/16/06, Ole Ersoy <ol...@yahoo.com> wrote:
> > >
> > > Hi,
> > >
> > > I'm running Maven 2.0.3 and I'm having problems
> > > compiling.
> > >
> > > I first run the eclipse plugin and eclipse is able
> > to
> > > load the dependencies.
> > >
> > > I then attempt to install, and the maven compiler
> > > gives me messages like this:
> > >
> > >
> > >
> >
> /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > package javax.faces.component does not exist
> > >
> > >
> > >
> >
> /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
> > > cannot find symbol
> > > symbol: class UIComponentBase
> > >
> > >
> > > So eclipse sees the dependencies in the
> > repository,
> > > but maven does not.
> > >
> > > Any ideas?
> > >
> > > Thanks in advance!
> > >
> > > Cheers,
> > > - Ole
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail:
> > users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > "Minds are like parachutes, they work best when
> > open."
> >
> > Bruno Patini Furtado
> > Software Developer
> > webpage: http://bpfurtado.net
> > software development blog:
> > http://bpfurtado.livejournal.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.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: Maven Not Resolving Dependencies

Posted by Alexandre Poitras <al...@gmail.com>.
The problem has been solved on the dev list, Ole was specifying a
runtime scope instead of relying on the default one (compiling)

On 5/18/06, Wayne Fay <wa...@gmail.com> wrote:
> Perhaps try mvn -o for offline mode? Since problem just started
> recently, maybe it is related to the various repos being down etc?
>
> Wayne
>
> On 5/17/06, Ole Ersoy <ol...@yahoo.com> wrote:
> > Stefan,
> >
> > Thanks for the tips.  It's not just myfaces that are
> > not resolving, but any dependency.  I've tried it with
> > other dependencies and maven says it can't find the
> > packages.
> >
> > The strange thing is that it was working fine before,
> > and this only started happening a yesterday.
> >
> > Thanks for trying though.
> >
> > Cheers,
> > - Ole
> >
> > --- Stefan Hübner <st...@googlemail.com> wrote:
> >
> > > make sure to check this out:
> > >
> > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
> > >
> > > cheers,
> > > Stefan
> > >
> > > 2006/5/18, Stefan Hübner <st...@googlemail.com>:
> > > > Bruno,
> > > >
> > > > > > I first run the eclipse plugin and eclipse is
> > > able to
> > > > > > load the dependencies.
> > > > > >
> > > > > > I then attempt to install, and the maven
> > > compiler
> > > > > > gives me messages like this:
> > > > > >
> > > > > >
> > > > > >
> > >
> > /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > > > > package javax.faces.component does not exist
> > > > > >
> > > >
> > > > so, does this mean, that your project depends upon
> > > JSF? if so, the
> > > > artifact "javax.faces:jsf-api" - as found in
> > > maven's central
> > > > repository - can't actually be downloaded. Reason
> > > is, there's just a
> > > > placeholder POM in the repo because of license
> > > considerations.
> > > >
> > > > this thought, the jsf-library shouldn't be
> > > referenced by eclipse
> > > > either. If it does, does eclipse reference to a
> > > jar in your local
> > > > maven repo or somewhere else?
> > > >
> > > > > >
> > > > > >
> > > > > > So eclipse sees the dependencies in the
> > > repository,
> > > > > > but maven does not.
> > > > > >
> > > >
> > > > the eclipse-plugin might have told you, to
> > > download the jsf-api.jar
> > > > manually, because  that JAR can't be found in the
> > > global repository.
> > > > you might have a second look on the
> > > eclipse-plugin's output.
> > > >
> > > >
> > > > just my 2c - may be, I'm misleaded
> > > >
> > > > Stefan
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.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
>
>

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


Re: Maven Not Resolving Dependencies

Posted by Ole Ersoy <ol...@yahoo.com>.
Thanks Wayne - That's a great tip for future use. 
Fortunately it ended up being the dependency scope set
to runtime, like Alexandre said, that was the issue.

Thanks again,
- Ole

--- Wayne Fay <wa...@gmail.com> wrote:

> Perhaps try mvn -o for offline mode? Since problem
> just started
> recently, maybe it is related to the various repos
> being down etc?
> 
> Wayne
> 
> On 5/17/06, Ole Ersoy <ol...@yahoo.com> wrote:
> > Stefan,
> >
> > Thanks for the tips.  It's not just myfaces that
> are
> > not resolving, but any dependency.  I've tried it
> with
> > other dependencies and maven says it can't find
> the
> > packages.
> >
> > The strange thing is that it was working fine
> before,
> > and this only started happening a yesterday.
> >
> > Thanks for trying though.
> >
> > Cheers,
> > - Ole
> >
> > --- Stefan Hübner <st...@googlemail.com>
> wrote:
> >
> > > make sure to check this out:
> > >
> >
>
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
> > >
> > > cheers,
> > > Stefan
> > >
> > > 2006/5/18, Stefan Hübner
> <st...@googlemail.com>:
> > > > Bruno,
> > > >
> > > > > > I first run the eclipse plugin and eclipse
> is
> > > able to
> > > > > > load the dependencies.
> > > > > >
> > > > > > I then attempt to install, and the maven
> > > compiler
> > > > > > gives me messages like this:
> > > > > >
> > > > > >
> > > > > >
> > >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > > > > package javax.faces.component does not
> exist
> > > > > >
> > > >
> > > > so, does this mean, that your project depends
> upon
> > > JSF? if so, the
> > > > artifact "javax.faces:jsf-api" - as found in
> > > maven's central
> > > > repository - can't actually be downloaded.
> Reason
> > > is, there's just a
> > > > placeholder POM in the repo because of license
> > > considerations.
> > > >
> > > > this thought, the jsf-library shouldn't be
> > > referenced by eclipse
> > > > either. If it does, does eclipse reference to
> a
> > > jar in your local
> > > > maven repo or somewhere else?
> > > >
> > > > > >
> > > > > >
> > > > > > So eclipse sees the dependencies in the
> > > repository,
> > > > > > but maven does not.
> > > > > >
> > > >
> > > > the eclipse-plugin might have told you, to
> > > download the jsf-api.jar
> > > > manually, because  that JAR can't be found in
> the
> > > global repository.
> > > > you might have a second look on the
> > > eclipse-plugin's output.
> > > >
> > > >
> > > > just my 2c - may be, I'm misleaded
> > > >
> > > > Stefan
> > > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.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
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Wayne Fay <wa...@gmail.com>.
Perhaps try mvn -o for offline mode? Since problem just started
recently, maybe it is related to the various repos being down etc?

Wayne

On 5/17/06, Ole Ersoy <ol...@yahoo.com> wrote:
> Stefan,
>
> Thanks for the tips.  It's not just myfaces that are
> not resolving, but any dependency.  I've tried it with
> other dependencies and maven says it can't find the
> packages.
>
> The strange thing is that it was working fine before,
> and this only started happening a yesterday.
>
> Thanks for trying though.
>
> Cheers,
> - Ole
>
> --- Stefan Hübner <st...@googlemail.com> wrote:
>
> > make sure to check this out:
> >
> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
> >
> > cheers,
> > Stefan
> >
> > 2006/5/18, Stefan Hübner <st...@googlemail.com>:
> > > Bruno,
> > >
> > > > > I first run the eclipse plugin and eclipse is
> > able to
> > > > > load the dependencies.
> > > > >
> > > > > I then attempt to install, and the maven
> > compiler
> > > > > gives me messages like this:
> > > > >
> > > > >
> > > > >
> >
> /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > > > package javax.faces.component does not exist
> > > > >
> > >
> > > so, does this mean, that your project depends upon
> > JSF? if so, the
> > > artifact "javax.faces:jsf-api" - as found in
> > maven's central
> > > repository - can't actually be downloaded. Reason
> > is, there's just a
> > > placeholder POM in the repo because of license
> > considerations.
> > >
> > > this thought, the jsf-library shouldn't be
> > referenced by eclipse
> > > either. If it does, does eclipse reference to a
> > jar in your local
> > > maven repo or somewhere else?
> > >
> > > > >
> > > > >
> > > > > So eclipse sees the dependencies in the
> > repository,
> > > > > but maven does not.
> > > > >
> > >
> > > the eclipse-plugin might have told you, to
> > download the jsf-api.jar
> > > manually, because  that JAR can't be found in the
> > global repository.
> > > you might have a second look on the
> > eclipse-plugin's output.
> > >
> > >
> > > just my 2c - may be, I'm misleaded
> > >
> > > Stefan
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.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: Maven Not Resolving Dependencies

Posted by Ole Ersoy <ol...@yahoo.com>.
Stefan,

Thanks for the tips.  It's not just myfaces that are
not resolving, but any dependency.  I've tried it with
other dependencies and maven says it can't find the
packages.

The strange thing is that it was working fine before,
and this only started happening a yesterday.

Thanks for trying though.

Cheers,
- Ole

--- Stefan Hübner <st...@googlemail.com> wrote:

> make sure to check this out:
>
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
> 
> cheers,
> Stefan
> 
> 2006/5/18, Stefan Hübner <st...@googlemail.com>:
> > Bruno,
> >
> > > > I first run the eclipse plugin and eclipse is
> able to
> > > > load the dependencies.
> > > >
> > > > I then attempt to install, and the maven
> compiler
> > > > gives me messages like this:
> > > >
> > > >
> > > >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > > package javax.faces.component does not exist
> > > >
> >
> > so, does this mean, that your project depends upon
> JSF? if so, the
> > artifact "javax.faces:jsf-api" - as found in
> maven's central
> > repository - can't actually be downloaded. Reason
> is, there's just a
> > placeholder POM in the repo because of license
> considerations.
> >
> > this thought, the jsf-library shouldn't be
> referenced by eclipse
> > either. If it does, does eclipse reference to a
> jar in your local
> > maven repo or somewhere else?
> >
> > > >
> > > >
> > > > So eclipse sees the dependencies in the
> repository,
> > > > but maven does not.
> > > >
> >
> > the eclipse-plugin might have told you, to
> download the jsf-api.jar
> > manually, because  that JAR can't be found in the
> global repository.
> > you might have a second look on the
> eclipse-plugin's output.
> >
> >
> > just my 2c - may be, I'm misleaded
> >
> > Stefan
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Stefan Hübner <st...@googlemail.com>.
make sure to check this out:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

cheers,
Stefan

2006/5/18, Stefan Hübner <st...@googlemail.com>:
> Bruno,
>
> > > I first run the eclipse plugin and eclipse is able to
> > > load the dependencies.
> > >
> > > I then attempt to install, and the maven compiler
> > > gives me messages like this:
> > >
> > >
> > > /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > package javax.faces.component does not exist
> > >
>
> so, does this mean, that your project depends upon JSF? if so, the
> artifact "javax.faces:jsf-api" - as found in maven's central
> repository - can't actually be downloaded. Reason is, there's just a
> placeholder POM in the repo because of license considerations.
>
> this thought, the jsf-library shouldn't be referenced by eclipse
> either. If it does, does eclipse reference to a jar in your local
> maven repo or somewhere else?
>
> > >
> > >
> > > So eclipse sees the dependencies in the repository,
> > > but maven does not.
> > >
>
> the eclipse-plugin might have told you, to download the jsf-api.jar
> manually, because  that JAR can't be found in the global repository.
> you might have a second look on the eclipse-plugin's output.
>
>
> just my 2c - may be, I'm misleaded
>
> Stefan
>

Re: Maven Not Resolving Dependencies

Posted by Stefan Hübner <st...@googlemail.com>.
Bruno,

> > I first run the eclipse plugin and eclipse is able to
> > load the dependencies.
> >
> > I then attempt to install, and the maven compiler
> > gives me messages like this:
> >
> >
> > /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > package javax.faces.component does not exist
> >

so, does this mean, that your project depends upon JSF? if so, the
artifact "javax.faces:jsf-api" - as found in maven's central
repository - can't actually be downloaded. Reason is, there's just a
placeholder POM in the repo because of license considerations.

this thought, the jsf-library shouldn't be referenced by eclipse
either. If it does, does eclipse reference to a jar in your local
maven repo or somewhere else?

> >
> >
> > So eclipse sees the dependencies in the repository,
> > but maven does not.
> >

the eclipse-plugin might have told you, to download the jsf-api.jar
manually, because  that JAR can't be found in the global repository.
you might have a second look on the eclipse-plugin's output.


just my 2c - may be, I'm misleaded

Stefan

Maven Not Resolving Dependencies

Posted by Ole Ersoy <ol...@yahoo.com>.
Hey Everbody,

Earlier I thought maven was not resolving dependencies
from ibiblio because java was installed as root.

So I reinstalled java, but maven is still not
resolving dependencies.

Maven downloads them fine.  I can see them in eclipse
after run mvn eclipse:eclipse and looking at libraries
it resolves via it's classpath settings.

But maven does see the library in the repository.

Any ideas?

Thanks,
- Ole

--- Ole Ersoy <ol...@yahoo.com> wrote:

> Hi Bruno,
> 
> It's actually a class from the Apache myfaces
> project
> and it is downloaded from ibiblio by maven using
> the standard dependency mechanism.
> 
> So eclipse is loading the dependency 
> from the local maven repository.
> 
> For some reason Maven is not seeing the dependency
> in
> the repository.
> 
> Thanks for the try though,
> - Ole
> 
> --- Bruno Patini Furtado <bp...@gmail.com>
> wrote:
> 
> > is UIComponentBase a class of yours? or for some
> JAR
> > of which you depend?
> > 
> > Because if it is a class of your project you may
> > have put it outside the
> > standard maven directory for source code, and
> maven
> > is not compiling it.
> > Eclipse source folders and where maven expects to
> > find the sources are
> > places not related. Maven's compile plugin does
> not
> > read the Eclipse project
> > to gather information.
> > 
> > 
> > On 5/16/06, Ole Ersoy <ol...@yahoo.com> wrote:
> > >
> > > Hi,
> > >
> > > I'm running Maven 2.0.3 and I'm having problems
> > > compiling.
> > >
> > > I first run the eclipse plugin and eclipse is
> able
> > to
> > > load the dependencies.
> > >
> > > I then attempt to install, and the maven
> compiler
> > > gives me messages like this:
> > >
> > >
> > >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > > package javax.faces.component does not exist
> > >
> > >
> > >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
> > > cannot find symbol
> > > symbol: class UIComponentBase
> > >
> > >
> > > So eclipse sees the dependencies in the
> > repository,
> > > but maven does not.
> > >
> > > Any ideas?
> > >
> > > Thanks in advance!
> > >
> > > Cheers,
> > > - Ole
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail:
> > users-help@maven.apache.org
> > >
> > >
> > 
> > 
> > -- 
> > "Minds are like parachutes, they work best when
> > open."
> > 
> > Bruno Patini Furtado
> > Software Developer
> > webpage: http://bpfurtado.net
> > software development blog:
> > http://bpfurtado.livejournal.com
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Ole Ersoy <ol...@yahoo.com>.
Hi Bruno,

It's actually a class from the Apache myfaces project
and it is downloaded from ibiblio by maven using
the standard dependency mechanism.

So eclipse is loading the dependency 
from the local maven repository.

For some reason Maven is not seeing the dependency in
the repository.

Thanks for the try though,
- Ole

--- Bruno Patini Furtado <bp...@gmail.com> wrote:

> is UIComponentBase a class of yours? or for some JAR
> of which you depend?
> 
> Because if it is a class of your project you may
> have put it outside the
> standard maven directory for source code, and maven
> is not compiling it.
> Eclipse source folders and where maven expects to
> find the sources are
> places not related. Maven's compile plugin does not
> read the Eclipse project
> to gather information.
> 
> 
> On 5/16/06, Ole Ersoy <ol...@yahoo.com> wrote:
> >
> > Hi,
> >
> > I'm running Maven 2.0.3 and I'm having problems
> > compiling.
> >
> > I first run the eclipse plugin and eclipse is able
> to
> > load the dependencies.
> >
> > I then attempt to install, and the maven compiler
> > gives me messages like this:
> >
> >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> > package javax.faces.component does not exist
> >
> >
> >
>
/home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
> > cannot find symbol
> > symbol: class UIComponentBase
> >
> >
> > So eclipse sees the dependencies in the
> repository,
> > but maven does not.
> >
> > Any ideas?
> >
> > Thanks in advance!
> >
> > Cheers,
> > - Ole
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> >
> >
> 
> 
> -- 
> "Minds are like parachutes, they work best when
> open."
> 
> Bruno Patini Furtado
> Software Developer
> webpage: http://bpfurtado.net
> software development blog:
> http://bpfurtado.livejournal.com
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Maven Not Resolving Dependencies

Posted by Bruno Patini Furtado <bp...@gmail.com>.
is UIComponentBase a class of yours? or for some JAR of which you depend?

Because if it is a class of your project you may have put it outside the
standard maven directory for source code, and maven is not compiling it.
Eclipse source folders and where maven expects to find the sources are
places not related. Maven's compile plugin does not read the Eclipse project
to gather information.


On 5/16/06, Ole Ersoy <ol...@yahoo.com> wrote:
>
> Hi,
>
> I'm running Maven 2.0.3 and I'm having problems
> compiling.
>
> I first run the eclipse plugin and eclipse is able to
> load the dependencies.
>
> I then attempt to install, and the maven compiler
> gives me messages like this:
>
>
> /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[1,29]
> package javax.faces.component does not exist
>
>
> /home/ole/workspaces/current/UIShowOneComponent/src/main/java/TestComponent.java:[3,35]
> cannot find symbol
> symbol: class UIComponentBase
>
>
> So eclipse sees the dependencies in the repository,
> but maven does not.
>
> Any ideas?
>
> Thanks in advance!
>
> Cheers,
> - Ole
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: http://bpfurtado.net
software development blog: http://bpfurtado.livejournal.com