Hi,
I've been trying to tamper a bit with Maven, as I thought it might be
helpfull in our own development cycle. But I can't seem to get it to work.
Installation - ok.
Integration - ok
Use ... (maven site) not a chance. CVS just doesn't work. I'm presented with
the following information:
maven-changelog-plugin:report:
[echo] Generating the changelog report
Didn't find password for CVSROOT
':pserver:[EMAIL PROTECTED]:/var/javacvs'.
org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong
Password.
ChangeLog found: 0 entries
where [username] is my username and [hostname] is the cvs-server hostname -
funny part is the password in that file works for: Ant, commandline cvs, and
WinCvs.
Another puzzle: My %HOME% environment variable point to drive H: where my
.cvspass file resides. If I don't have a .cvspass file in C:\documents and
settings\[username] maven will say, that there's no .cvspass.
If I run "maven scm:checkout-project" I get the following:
scm:parse-connection:
[echo] Using connection:
scm:cvs:pserver:[EMAIL PROTECTED]:[repository path]:[project]
Using SCM method: cvs
Using CVSROOT: :pserver:[EMAIL PROTECTED]:[repository path]
Using module: [project]
scm:validate:
scm:checkout-project:
scm:cvs-checkout-project:
[echo] Checking out Debug; from CVSROOT:
:pserver:[EMAIL PROTECTED]:[repository path]
[mkdir] Created dir: C:\code\maventest\target\checkouts\[project]
[cvs] Using cvs passfile: C:\Documents and Settings\[username]\.cvspass
<<<< only if it exists otherwise it silently uses %HOME%\.cvspass
Now .. if I delete " C:\Documents and Settings\[username]\.cvspass " and run
"maven maven-changelog-plugin:report" I get:
maven-changelog-plugin:report:
[echo] Generating the changelog report
Could not read password for ':pserver:[EMAIL PROTECTED]:[repository
path]' from 'C:\Documents a
nd Settings\[username]\.cvspass'
java.io.FileNotFoundException: C:\Documents and Settings\[username]\.cvspass
(The system cannot find the
file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:91)
at java.io.FileReader.<init>(FileReader.java:45)
at
org.apache.maven.cvslib.CvsConnection.lookupPassword(CvsConnection.java:229)
at
org.apache.maven.cvslib.CvsConnection.processCommand(CvsConnection.java:358)
at
org.apache.maven.cvslib.CvsChangeLogGenerator.getEntries(CvsChangeLogGenerat
or.java:100)
at
org.apache.maven.changelog.ChangeLog.generateEntries(ChangeLog.java:235)
at
org.apache.maven.changelog.ChangeLog.doExecute(ChangeLog.java:214)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:92)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:
79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:610)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
at org.apache.maven.cli.App.doMain(App.java:485)
at org.apache.maven.cli.App.main(App.java:1214)
at java.lang.reflect.Method.invoke(Native Method)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong
Password.
ChangeLog found: 0 entries
Which - to me - looks like different implementations of the same feature:
Getting the cvs-password from the .cvspass file Maybe someone should have a
look or run Simian.
Then I thought, maybe I'll try to use a Turbine project and "maven jar"
that. I've tried
Fulcrum, Torque, Commons, Turbine-2
None of these will complete the "maven jar" build goal.
I've just tried jakarta-turbine-3 - which doesn't jar as it cannot:
Attempting to download fulcrum-20040130.235430.jar.
WARNING: Failed to download fulcrum-20040130.235430.jar.
Attempting to download activation-1.0.2.jar.
WARNING: Failed to download activation-1.0.2.jar.
The build cannot continue because of the following unsatisfied
dependencies:
fulcrum-20040130.235430.jar
activation-1.0.2.jar
Why is there no single simple test project you can tamper with?
Why is there less documentation than for Ant - and by less I mean a lot
less, not the *nix "less is more" ?
Are the main developers - once again - writing a "HOWTO"-book that they may
earn the money they don't earn on the OSS project? Is there a deadline for
such a book?
Which parameter should you provide when trying to get a CVS-changelog? - I
mean, changelog between which versions/tags - something ought to be stated?!
I hope that someone will provide an ounce of information - otherwise I'll
have to discard the idea of using Maven, at least for a while.
kind regards,
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]