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