I think what I found unintuitive was that Maven used %USERPROFILE% (which is set to c:\Documents and Settings\Joshua) instead of %HOME% (which is set to c:\jss). Granted, on Windows %USERPROFILE% is set by the system, and %HOME% is set by me. If it is going to use %USERPROFILE%, shouldn't the Application Data sub directory be used too? Could Maven check if %HOME% is set and use that directory first? Setting %MAVEN_LOCAL_HOME% takes care of the repository and plugin directories (assuming I want them in the same place), but does it also cause Maven to look for project.properties and build.properties in that directory, or am I stuck putting them in %USERPROFILE% (which, in case you haven't already figured out, I would prefer not to do)?
-- Josh
On Tue, 29 Jul 2003 22:08:46 +0200, Siegfried G�schl <[EMAIL PROTECTED]> wrote:
Hi Joshua,
You can overwrite the directories used by MAVEN using
Snippet >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# location of repositpory maven.repo.local = c:/apps/java/maven/repository # location of plugins maven.plugin.dir = c:/apps/java/maven/plugins maven.plugin.unpacked.dir = c:/apps/java/maven/plugins
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
within a build.properties file located at %USER_HOME%, i.e. in your case :
C:\Documents and Settings\Joshua
This is especially helpful if you are using XALAN for XML Transformation wihtin a MAVEN plugin ... :-)
And the build.properties is also the place to store your custom settings such as background color, checkstyle format ....
Hope this helps ....
Siegfried Goeschl
On 29 Jul 2003 at 15:23, Joshua Spiewak wrote:
Hi there,
I just started using Maven and had a couple of questions. I am using version 1.0-beta-10 on Windows XP with Cygwin tools and Emacs (with JDEE).
The first question is why are the plugins and local repository created in C:\Documents and Settings\Joshua\.maven when %HOME% is set to c:\jss? I get around this by setting %MAVEN_HOME_LOCAL%, but it doesn't seem like that should be necessary.
The second question is a bit more complex. I am used to building from
Emacs, using JDEE, so I figured I would extend JDEE to be able to run
Maven in a similar fashion to how it runs Ant. Initially this went
pretty easily, but I am now stuck wrestling with the --dir and --pom
command line options of Maven. If I am one directory down from the
top level of my project, I can successfully run maven with --pom
../project.xml. However, I cannot seem to specify an absolute path
(with either tcsh or cmd), and trying to use --dir doesn't seem to
help. Any ideas what I am doing wrong? I have tried "d:/work/project" and "/cygdrive/d/work/project" and
"d:\work\project", all unsuccessfully.
Thanks in advance, and keep up the work on what looks like a very promising project!
-- Josh
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
