%USERPROFILE% also points to the wrong location...
it seems that they use some windows / novel magic to keep everything in
a different area for remote login syncing crap.
Anyway, I confirmed that adding log4j works and expands the jar into
subdirs within the repository that I expected.
Now, I am trying to get a couple of jars that it is failing on (such as
comm-2.0.jar for javax.comm stuff), so I guess I need to do it
manually.
Trying mvn on the command line gives an error, as of course I never
installed maven (I only have it as a plugin within eclipse)
What do you suggest installing? Maven 2.0.4 ?
Cheers,
Andy
>>> [EMAIL PROTECTED] 22/01/2007 2:35 p.m. >>>
Andy Dingfelder wrote:
>>> Repository location is controlled by the standard Maven
>>> settings.xml which is located at <user home>/.m2/settings.xml
>>> (on Window this is C:\Documents and Settings\<user
>>> name>\.m2\settings.xml).
>>>
> Interestingly, the errors printed from maven duiring my build did
not
> point to <user home>/.m2/repository, they point to <company
name>/<user home>/.m2/repository
>
> I confirmed this with our IT staff and they say our machines use
this
> instead.
>
I should of said "usually". It is possible that your user home has
different location. You can probably check what USERPROFILE environment
variable is set to.
> Looking in that dir, I see
>
> <home>\.m2\repository\log4j-1.2.8.jar <-- I added this jar
> <home>\.m2\repository\classworlds\classworlds\1.1-alpha-2\... <--
not
> sure where this came from
> <home>\.m2\repository\junit\junit\3.8.1\... <-- not sure where this
> came from
> <home>\.m2\repository\org\apache\... <-- not sure where this came
from
> <home>\.m2\repository\org\codehaus\plexus\... <-- not sure where
this
> came from
>
> Where exactly is my jar supposed to be located?
> I assume it is in the root of <home>\.m2\repository\, where my log4j
> jar is found.
>
Well, usually you don't have to know. After first run while being
online (or after clean build on Maven-enabled project in Eclipse) all
required jars will be automatically downloaded for you. I wouldn't
recommend to put anything into the repository manually, unless you
really know what you are doing.
Also note, that when you run Maven it may need to download additional
dependencies that can be needed for some Maven goals/plugins, even if
those dependencies does not declared in your pom.xml
>>> So, I would suggest to try to run the same things from the command
line.
>>>
> This sounds good, except I'm not very familiar with what commands I
> should try from the command line.
>
Something mvn test or mvn install should be enough.
regards,
Eugene
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WARNING: This email and any attachments may be confidential and/or
privileged. They are intended for the addressee only and are not to be read,
used, copied or disseminated by anyone receiving them in error. If you are
not the intended recipient, please notify the sender by return email and
delete this message and any attachments.
The views expressed in this email are those of the sender and do not
necessarily reflect the official views of Landcare Research.
SirTrack
http://www.sirtrack.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email