Re: activity plugins

2003-07-29 Thread Andy Jefferson
On Wed, 2003-07-30 at 01:03, Askren, Jay wrote:
> I'm trying to get the following reports to work in Maven:
> 
> maven-developer-activity-plugin
> maven-file-activity-plugin
> 
> 
> I'm assuming they use information from the repository section of the
> project.xml file to log into CVS.  Where do I put the CVS password so
> that Maven can log into CVS and get the activity information?  I'm using
> Maven 1.0 beta 9.  Thank you.

Yes, it does use the repository section. I think in general people set
up an anonymous login for their repository. Either way, it wouldn't be
secure to put a password (in clear text) in your project.xml file. What
you need to do is put your login name etc in the repository name and
then do a "cvs login" manually using this login, so that way CVS doesn't
prompt you for the password - and so Maven can access it no problem.

-- 
Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help Needed .. InvalidJarIndexException

2003-07-29 Thread Shelly_Singh
Hi,

I am very new to maven. 
I installed maven and called genapp. I get the InvalidJarIndexException. 
I also tried running maven for an existing application by creating a project.xml. I 
still get the same exception.

Please help.

Regards,
Shelly

sun.misc.InvalidJarIndexException: Invalid index!
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
at java.net.URLClassLoader$2.run(URLClassLoader.java:349)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:346)
at java.lang.ClassLoader.getResource(ClassLoader.java:734)
at java.lang.Class.getResource(Class.java:1249)
at org.apache.commons.betwixt.XMLIntrospector.findByXMLDescriptor(XMLInt
rospector.java:531)
at org.apache.commons.betwixt.XMLIntrospector.introspect(XMLIntrospector
.java:256)
at org.apache.commons.betwixt.io.BeanReader.registerBeanClass(BeanReader
.java:143)
at org.apache.maven.MavenUtils.createBeanReader(MavenUtils.java:560)
at org.apache.maven.MavenUtils.getProjectBeanReader(MavenUtils.java:324)

at org.apache.maven.MavenUtils.getProject(MavenUtils.java:198)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:324)
at org.apache.maven.MavenSession.initialize(MavenSession.java:234)
at org.apache.maven.cli.App.doMain(App.java:514)
at org.apache.maven.cli.App.main(App.java:1088)
at java.lang.reflect.Method.invoke(Native Method)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
Total time:  2 seconds




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



activity plugins

2003-07-29 Thread Askren, Jay
I'm trying to get the following reports to work in Maven:

maven-developer-activity-plugin
maven-file-activity-plugin


I'm assuming they use information from the repository section of the
project.xml file to log into CVS.  Where do I put the CVS password so
that Maven can log into CVS and get the activity information?  I'm using
Maven 1.0 beta 9.  Thank you.


Jay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: couple of questions

2003-07-29 Thread Brett Porter
This is because Java uses it - system property ${user.home}.

I think Maven's current handling is correct as you can override the local
home, plugin dir and repo dir. The only difference should be that
build.properties should also be loaded from MAVEN_HOME_LOCAL - and there is
an issue in JIRA to provide it whenever myself, one of the developers, or
you get the chance to make a patch :)

Cygwin is great for doing a lot of stuff - but java with absolute paths
isn't one of them. The only possibility I see here is to designate all
absolute paths must be specified in ~/build.properties or
$MAVEN_HOME_LOCAL/build.properties, and have the maven shell script running
under cygwin pull it apart, cygpath and absolute paths and pass them on the
command line via -D, but I'm not sure that kind of separation is a good
idea. For now we'll just have to make our absolute paths windows paths :(

Cheers,
Brett

> -Original Message-
> From: Joshua Spiewak [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 30 July 2003 6:26 AM
> To: Maven Users List
> Subject: Re: couple of questions
> 
> 
> Thanks Siegfried,
> 
> 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
> 


b-10 and clover

2003-07-29 Thread Howard M. Lewis Ship
Just noticed that the Clover HTML report outputs classes in a seemingly random order.  
Didn't see
this with beta-9.  Has this been noticed before?

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: couple of questions

2003-07-29 Thread Joshua Spiewak
Thanks Siegfried,

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]


Re: couple of questions

2003-07-29 Thread Siegfried Göschl
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]



Re: couple of questions

2003-07-29 Thread James CE Johnson
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. 


You can use 'maven -f' to "find" the project.xml much like ant finds 
build.xml



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]


couple of questions

2003-07-29 Thread Joshua Spiewak
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]