You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Kervin L. Pierre" <ke...@adevsoft.com> on 2005/12/01 18:27:02 UTC
Newbie repository question
Hello,
I am new to Maven. So far I have
created a simple Maven project using
the 'Getting Started' guide on the
website. The project builds fine
but...
(i) I Need to add Apache Derby as a
dependency. I have added...
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.1.2.1</version>
</dependency>
to the POM.XML file. But Maven complains
about not finding the file in its
default repository. How do I configure
POM.XML to point to the Apache website?
Does anyone have an example of the URL
I need to use to find the correct file?
(ii) Where is Maven putting the JAR files
for the dependencies it has downloaded?
How can I get Eclipse to automatically
find Maven downloaded JAR files?
Any help would be appreciated.
Thanks,
Kervin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
M2_REPO not resolving in eclipse - Re: Newbie repository question
Posted by "Kervin L. Pierre" <ke...@adevsoft.com>.
Christoph Schönfeld wrote:
> Just set up a variable in eclipse, M2_REPO, and point it to the location
> of your local repository (which is where maven stores the downloaded
> files). The value for the variable needs to be: $USER/.m2/repository.
>
> The variable can be created in Window>Preferences>Run/Debug/String
> Substitution.
>
I have done this, but at startup eclipse complains
about...
Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar'
in project
The M2_REPO variable as been defined in the
'String Substitution' preference sheet as
'$USER/.m2/repository'
Any idea why eclipse can not resolve the
M2_REPO variable?
The classpathentry tag in the .classpath file
looks like...
<classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
Any help would be great.
Regards,
Kervin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: M2_REPO not resolving in eclipse - Re: Newbie repository question
Posted by stefano <s....@gmail.com>.
In data Sun, 04 Dec 2005 20:52:48 +0100, Kervin L. Pierre
<ke...@adevsoft.com> ha scritto:
do not use "String substitution" panel, M2_REPO must be set in "Classpath
Variables"
under Java->Build Path
> Christoph Schönfeld wrote:
>> Just set up a variable in eclipse, M2_REPO, and point it to the location
>> of your local repository (which is where maven stores the downloaded
>> files). The value for the variable needs to be: $USER/.m2/repository.
>> The variable can be created in Window>Preferences>Run/Debug/String
>> Substitution.
>>
>
> I have done this, but at startup eclipse complains
> about...
>
> Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar'
> in project
>
> The M2_REPO variable as been defined in the
> 'String Substitution' preference sheet as
> '$USER/.m2/repository'
>
> Any idea why eclipse can not resolve the
> M2_REPO variable?
>
> The classpathentry tag in the .classpath file
> looks like...
> <classpathentry kind="var"
> path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
>
> Any help would be great.
>
> Regards,
> Kervin
>
> ---------------------------------------------------------------------
> 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
M2_REPO not resolving in eclipse - Re: Newbie repository question
Posted by "Kervin L. Pierre" <ke...@adevsoft.com>.
Christoph Schönfeld wrote:
> Just set up a variable in eclipse, M2_REPO, and point it to the location
> of your local repository (which is where maven stores the downloaded
> files). The value for the variable needs to be: $USER/.m2/repository.
>
> The variable can be created in Window>Preferences>Run/Debug/String
> Substitution.
>
I have done this, but at startup eclipse complains
about...
Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar'
in project
The M2_REPO variable as been defined in the
'String Substitution' preference sheet as
'$USER/.m2/repository'
Any idea why eclipse can not resolve the
M2_REPO variable?
The classpathentry tag in the .classpath file
looks like...
<classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
Any help would be great.
Regards,
Kervin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Newbie repository question
Posted by "Kervin L. Pierre" <ke...@adevsoft.com>.
Thanks, that helps a lot.
Regards,
Kervin
Christoph Schönfeld wrote:
> Just set up a variable in eclipse, M2_REPO, and point it to the location
> of your local repository (which is where maven stores the downloaded
> files). The value for the variable needs to be: $USER/.m2/repository.
>
> The variable can be created in Window>Preferences>Run/Debug/String
> Substitution.
>
> Then, you call mvn eclipse:eclipse to have maven create the eclipse
> project files. After that you can import the project into your
> workspace.
>
> The project files created by the eclipse:eclipse goal contain references
> to all the JARs of dependencies located in your local repository and are
> relative to this M2_REPO variable.
>
> Hope this helped.
> For more information see the Eclipse Guide on the Maven Documentation
> page.
>
> Christoph
>
>
> ---------------------------------------------------------------------
> 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: Newbie repository question
Posted by Christoph Schönfeld <cs...@sylphen.com>.
Just set up a variable in eclipse, M2_REPO, and point it to the location
of your local repository (which is where maven stores the downloaded
files). The value for the variable needs to be: $USER/.m2/repository.
The variable can be created in Window>Preferences>Run/Debug/String
Substitution.
Then, you call mvn eclipse:eclipse to have maven create the eclipse
project files. After that you can import the project into your
workspace.
The project files created by the eclipse:eclipse goal contain references
to all the JARs of dependencies located in your local repository and are
relative to this M2_REPO variable.
Hope this helped.
For more information see the Eclipse Guide on the Maven Documentation
page.
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org