surefire plugin: multihtreaded test execution

2007-07-13 Thread Jerome Thibaud

Hi All,

I've setup my surefire (JUnit) plugin to fork "per test".
Now I wish to parallelize the tests executions.
I see the "parallel" option but I read it's only for TestNG.
Is there a way to have the surefire (JUnit) plugin spawn
the jvms in parallel instead of sequentially?

thanks in advance for your advices

Jerome Thibaud


Re: Source XREF generation puzzle !

2007-07-11 Thread Jerome Thibaud

oh! oh! oh! I think I've seen a typo...
As usual, it's after you click the send button that it hits you!

the second
  
jxr
  

should have been
  
test-jxr
  

I guess that's this part which makes the link between a configuration and a
goal.

Thus said it still doesn't work!

Exclusion/Inclusion works fine when applied to the plugin level.
But no effect when applied in the reportSet...

[DEBUG]   (f) excludes = []
[DEBUG]   (f) includes = []



Help greatly appreciated!


Jerome


Re: Source XREF generation puzzle !

2007-07-11 Thread Jerome Thibaud

Hi Vincent,

First, I'd like to thank you for your time.
Based on what you wrote, I tried the config below.
I typed mvn jxr:jxr and I ended up with every package.
I guess something is missing.
How is maven suppose to know what reportSet to use with what goal ?

 
   
 
  org.apache.maven.plugins
  maven-jxr-plugin
  

  com
  
   
 com/**/*.java
   
   
 com/company/test/**/*.java
   
  
  
jxr
  


  test
  
   
 test/**/*.java
 com/company/test/**/*.java
   
  
  
jxr
  

  
 
   
 

thanks again


Jerome

On 7/11/07, Vincent Siveton <[EMAIL PROTECTED]> wrote:


Hi Jerome,

Unsupported feature outofbox.

An easy workaround is to use reportset, something like this following:

  

  
org.apache.maven.plugins
maven-jxr-plugin

  
com

  ...


  jxr

  
  
test

  ...


  jxr

  

  

  

Cheers,

Vincent

2007/7/10, Jerome Thibaud <[EMAIL PROTECTED]>:
> Hi,
>
> I got a legacy project where tests and application sources are under the
> same directory
>
> /src/com/...
>   /test/...
>
>
> Enters maven-jxr-plugin. Which is called twice during site generation,
once
> for the (app) sources and once for the tests.
>
> And I want to filter out src/test during the (app) sources Xref
generation
> and to filter out src/com during the tests Xref generation.
>
> So I see a filter configuration
>
> 
>   ...
>   
> **/include/*.java
>   
>   ...
> 
>
>  Makes me feel like I'm almost there, but, considering the absence of
more
> settings,
> I suppose this applies to both jxr:jxr and jxr:test-jxr.
>
> Hence my question, how do I specify 2 configurations, one for the
execution
> of jxr:jxr and the other for jxr-test-jxr?
>
> Thanks in advance
>
> Jerome Thibaud
>

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




Source XREF generation puzzle !

2007-07-10 Thread Jerome Thibaud

Hi,

I got a legacy project where tests and application sources are under the
same directory

/src/com/...
 /test/...


Enters maven-jxr-plugin. Which is called twice during site generation, once
for the (app) sources and once for the tests.

And I want to filter out src/test during the (app) sources Xref generation
and to filter out src/com during the tests Xref generation.

So I see a filter configuration

   
 ...
 
   **/include/*.java
 
 ...
   

Makes me feel like I'm almost there, but, considering the absence of more
settings,
I suppose this applies to both jxr:jxr and jxr:test-jxr.

Hence my question, how do I specify 2 configurations, one for the execution
of jxr:jxr and the other for jxr-test-jxr?

Thanks in advance

Jerome Thibaud


scm:update failed with java.io.IOException: Illegal seek

2007-07-05 Thread Jerome Thibaud

Hi All,

Suddenly, this morning I got:

[INFO] [scm:update]
[INFO] Executing: cvs -z3 -q update -d
[INFO] Working directory: /home/infra/workspace/project
java.io.IOException: Illegal seek
   at java.io.FileInputStream.skip(Native Method)
   at java.io.BufferedInputStream.skip(BufferedInputStream.java:344)
   at java.io.BufferedInputStream.skip(BufferedInputStream.java:344)
   at java.io.FilterInputStream.skip(FilterInputStream.java:129)
   at org.netbeans.lib.cvsclient.util.LoggedDataInputStream.skip(
LoggedDataInputStream.java:163)
   at org.netbeans.lib.cvsclient.response.UpdatedResponse.skip(
UpdatedResponse.java:183)
   at org.netbeans.lib.cvsclient.response.UpdatedResponse.process(
UpdatedResponse.java:112)
   at org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:570)
   at org.netbeans.lib.cvsclient.Client.processRequests(Client.java
:520)
   at org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute(
UpdateCommand.java:286)
   at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:629)
   at
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.executeCommand
(CvsConnection.java:94)
   at
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand
(CvsConnection.java:463)
   at
org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand.executeCvsCommand
(CvsJavaUpdateCommand.java:52)
   at
org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsUpdateCommand.executeUpdateCommand
(AbstractCvsUpdateCommand.java:60)
   at
org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(
AbstractUpdateCommand.java:62)
   at org.apache.maven.scm.command.AbstractCommand.execute(
AbstractCommand.java:58)
   at
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(
AbstractCvsScmProvider.java:521)
   at
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.update(
AbstractCvsScmProvider.java:659)
   at org.apache.maven.scm.provider.AbstractScmProvider.update(
AbstractScmProvider.java:868)
   at org.apache.maven.scm.provider.AbstractScmProvider.update(
AbstractScmProvider.java:814)
   at org.apache.maven.scm.manager.AbstractScmManager.update(
AbstractScmManager.java:565)
   at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java
:87)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:224)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Command failed.The cvs command failed.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 minute 13 seconds
[INFO] Finished at: Thu Jul 05 13:03:41 PDT 2007
[INFO] Final Memory: 4M/34M
[INFO]



Looking up the error I found:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6222822

Has anyone bumped into such an issue ? Found any fix or workaround ?

regards

Jerome Thibaud


Snapshot download frequency "always" is too much

2007-06-25 Thread Jerome Thibaud

Hi all,

In maven 2.0.4, using the "always" snapshot update policy resulted in
checking always and downloading if more recent.
In maven 2.0.5 and later it results in the jars (and poms) always being
downloaded.

Am I missing something or is there a regression here ?

I got big jars amongst my dependencies and downloading them each time I do a
build is not an option.
The "check every X minute" is no good because the update frequency is
sub-day and really random.
I might want to benefit from the modification made 5 minutes ago, but there
might also be hours or days
between two modifications of a snapshot and I don't want to keep downloading
the same jars.

The 2.0.4 behavior was ideal, Is there any workaround, a new option?

Thanks in advance for your help

Jerome Thibaud


Re: tools.jar dependency and MacOSX

2007-06-11 Thread Jerome Thibaud

The symbolic link sounds like a nice trick, I'll try that.
In the meantime, I was expecting something more mainstream.
Also you guys realize that If i remove the dependency to tools.jar, my build
will work on Mac but will stop working on Windows and Linux.

rgds

JT

On 6/11/07, Nathan Maves <[EMAIL PROTECTED]> wrote:


I agree with Gregory,

I would remove the dependency all-together.

Everything should just work.

On 6/11/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
>
> The deal is that tools.jar is in classes.jar (i think) and is always
> on the classpath.  If you just exclude the dependency it should work.
>
> On 6/11/07, Nathan Maves <[EMAIL PROTECTED]> wrote:
> > What causes your project to have a dependency on tools.jar?
> >
> > I have been using maven on a mac for a while now and have never had to
> deal
> > with the tools.jar.
> >
> > Nathan
> >
> > On 6/11/07, Jerome Thibaud <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi All,
> > >
> > > Discovering the joy of coding Java in a Mac environment I learned
that
> > > there
> > > is no tools.jar in the Mac version of the JDK.
> > > Consequence is, my projects having dependencies on tools.jar fail to
> > > build.
> > >
> > > So for the project with a direct dependency, I used Profile
> successfully.
> > > I created one profile triggered by the OS family and everything went
> > > smooth.
> > >
> > > Now I got 2 problems:
> > >- it seems that, when inherited through transitive dependency,
the
> > > profile trigger is not taken into account
> > > and tools.jar is added to the dependencies list anyway.
> > >- I got an ant plugin setup in the build section with tools.jarin
> the
> > > dependencies section of the plugin.
> > > What do I use to make the dependency conditional there?
> > >
> > >
> > > thanks in advance
> > >
> > > Jerome
> > >
> >
>
>
> --
> Gregory Kick
> http://kickstyle.net/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: tools.jar dependency and MacOSX

2007-06-11 Thread Jerome Thibaud

Are you saying that I can add an exclusion clause in a Profile triggered by
the OS type?
Would it act on the dependencies declared in the build/plugins/plugin
section ?

rgds

JT

On 6/11/07, Gregory Kick <[EMAIL PROTECTED]> wrote:


The deal is that tools.jar is in classes.jar (i think) and is always
on the classpath.  If you just exclude the dependency it should work.

On 6/11/07, Nathan Maves <[EMAIL PROTECTED]> wrote:
> What causes your project to have a dependency on tools.jar?
>
> I have been using maven on a mac for a while now and have never had to
deal
> with the tools.jar.
>
> Nathan
>
> On 6/11/07, Jerome Thibaud <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > Discovering the joy of coding Java in a Mac environment I learned that
> > there
> > is no tools.jar in the Mac version of the JDK.
> > Consequence is, my projects having dependencies on tools.jar fail to
> > build.
> >
> > So for the project with a direct dependency, I used Profile
successfully.
> > I created one profile triggered by the OS family and everything went
> > smooth.
> >
> > Now I got 2 problems:
> >- it seems that, when inherited through transitive dependency, the
> > profile trigger is not taken into account
> > and tools.jar is added to the dependencies list anyway.
> >- I got an ant plugin setup in the build section with tools.jar in
the
> > dependencies section of the plugin.
> > What do I use to make the dependency conditional there?
> >
> >
> > thanks in advance
> >
> > Jerome
> >
>


--
Gregory Kick
http://kickstyle.net/

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




Re: tools.jar dependency and MacOSX

2007-06-11 Thread Jerome Thibaud

The project is not Mac specific, the developers use Windows, Linux etc.
Someone introduced a dependency using the com.sun.tools.javac classes.

rgds

JT

On 6/11/07, Nathan Maves <[EMAIL PROTECTED]> wrote:


What causes your project to have a dependency on tools.jar?

I have been using maven on a mac for a while now and have never had to
deal
with the tools.jar.

Nathan

On 6/11/07, Jerome Thibaud <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Discovering the joy of coding Java in a Mac environment I learned that
> there
> is no tools.jar in the Mac version of the JDK.
> Consequence is, my projects having dependencies on tools.jar fail to
> build.
>
> So for the project with a direct dependency, I used Profile
successfully.
> I created one profile triggered by the OS family and everything went
> smooth.
>
> Now I got 2 problems:
>- it seems that, when inherited through transitive dependency, the
> profile trigger is not taken into account
> and tools.jar is added to the dependencies list anyway.
>- I got an ant plugin setup in the build section with tools.jar in
the
> dependencies section of the plugin.
> What do I use to make the dependency conditional there?
>
>
> thanks in advance
>
> Jerome
>



tools.jar dependency and MacOSX

2007-06-11 Thread Jerome Thibaud

Hi All,

Discovering the joy of coding Java in a Mac environment I learned that there
is no tools.jar in the Mac version of the JDK.
Consequence is, my projects having dependencies on tools.jar fail to build.

So for the project with a direct dependency, I used Profile successfully.
I created one profile triggered by the OS family and everything went smooth.

Now I got 2 problems:
  - it seems that, when inherited through transitive dependency, the
profile trigger is not taken into account
and tools.jar is added to the dependencies list anyway.
  - I got an ant plugin setup in the build section with tools.jar in the
dependencies section of the plugin.
What do I use to make the dependency conditional there?


thanks in advance

Jerome


Re: Is there a plugin to generate launch scripts (.bat, .sh, etc.)

2007-06-08 Thread Jerome Thibaud

Thanks for the pointers, I'll be trying it out.

regards

J.T.

On 6/8/07, Mick Knutson <[EMAIL PROTECTED]> wrote:


oops. Sorry bout that

On 6/8/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Mick, he said "generate" not "execute". ;-)
>
> Wayne
>
> On 6/8/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > Im doing that now. genInterface.bat is in the root DIR:
> >
> >
> > 
> > org.codehaus.mojo
> > exec-maven-plugin
> > 
> > 
> > generate-sources
> > 
> > exec
> > 
> > 
> > 
> > 
> > genInterface.bat
> >     
> > 
> >
> >
> >
> >
> >
> > On 6/8/07, Kaare Nilsen <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Jun 8, 2007, at 9:43 PM, Jerome Thibaud wrote:
> > >
> > > > Hi All,
> > > > Is there a plugin to generate launch scripts (.bat, .sh, etc.)
> > >
> > > Check
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
> > >
> > > But just be aware that the latest snapshot is very different from
the
> > > released alpha, and there will be (in the somewhat near) future new
> > > documentation and release available
> > >
> > >
> > >
> > >
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---



Is there a plugin to generate launch scripts (.bat, .sh, etc.)

2007-06-08 Thread Jerome Thibaud

Hi All,
Is there a plugin to generate launch scripts (.bat, .sh, etc.)

regards

Jerome T.


Re: Overriding Plugin settings in a child POM

2007-06-05 Thread Jerome Thibaud

Thanks for the pointer Steve.

rgds

Jerome

On 6/4/07, Steven Rowe <[EMAIL PROTECTED]> wrote:


Hi Jerome,

This JIRA issue looks like it's related (suggestion of adding a
 section to the POM):

   http://jira.codehaus.org/browse/MNG-1931

Steve

Jerome Thibaud wrote:
> Hi All,
>
> using: Maven 2.0.4
>
> I defined the checkstyle reporting plugin in my parent pom, and for a
> specific child project I want to skip the generation of this report.
> I tried this:
>
> parent pom:
>
> 
>  
>...
>  
>org.apache.maven.plugins
>maven-checkstyle-plugin
>  
> ...
>  
> 
>
> and in the child pom
>
> 
>  
>
>org.apache.maven.plugins
>maven-checkstyle-plugin
>
>  true
>
>
>  
> 
>
>
> hoping that this would override the parent settings but it persists to
> generate the report.
>
> Any idea ?
>
> regards
>
> Jerome T.
>


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




Overriding Plugin settings in a child POM

2007-06-02 Thread Jerome Thibaud

Hi All,

using: Maven 2.0.4

I defined the checkstyle reporting plugin in my parent pom, and for a
specific child project I want to skip the generation of this report.
I tried this:

parent pom:


 
   ...
 
   org.apache.maven.plugins
   maven-checkstyle-plugin
 
...
 


and in the child pom


 
   
   org.apache.maven.plugins
   maven-checkstyle-plugin
   
 true
   
   
 



hoping that this would override the parent settings but it persists to
generate the report.

Any idea ?

regards

Jerome T.


Dependencies downloading for snapshot in Maven 2.0.5 and up

2007-05-24 Thread Jerome Thibaud

Hi All,

Why are snapshots systematically downloaded in maven 2.0.5 and above?
In maven 2.0.4 it seems to me they were downloaded only when the file had
changed remotely ?
known issue? Am I missing something ?

regards

Jerome T.


Re: PMD goes OutOfMemory

2007-05-23 Thread Jerome Thibaud

I see.

Thank you for your answer

regards

J.T

On 5/23/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:


I don't think you can turn this up for each PMD goal.
I suggest you just boost up the whole maven process by setting MAVEN_OPTS.

- Deng

Jerome Thibaud wrote:
> Hi All,
>
> Any option to individually turn up the amount of memory for the PMD goal
> during the site generation ?
> Or should I just boost the whole maven process to use an indecent
> amount of
> memory?
>
> Thanks
>
> regards
>
> Jerome Thibaud
>


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




PMD goes OutOfMemory

2007-05-22 Thread Jerome Thibaud

Hi All,

Any option to individually turn up the amount of memory for the PMD goal
during the site generation ?
Or should I just boost the whole maven process to use an indecent amount of
memory?

Thanks

regards

Jerome Thibaud


Re: Writing a portable CVS configuration using maven2

2007-04-26 Thread Jerome Thibaud

Hi,

I should mention that I am using CVS

So I've explored the .cvsrc thingy.
I made a mistake and the "-f" option is not the one I thought (I mistook it
for the update option).

I don't think I'm a fan of using ".cvsrc".
While using cvs directly I observed differences in behavior that tells me
it's using it.
But I find it very sneaky.
Even when I use cvs -t it doesn't explicitely mention the fact that cvs is
(or isn't) loading the cvsrc. (Am I missing something?)
I can foresee configuration hell.

~/.cvsrc content:
cvs -z6
update -CdPR

In order to spot the difference in behavior I modified the pom.xml file.

1. Using CVS directly
 cvs -f update

=> M pom.xml

 cvs update

=> U pom.xml



2. When used through maven though, It doesn't seem to take the .cvsrc into
account, the behavior is the same

A.
~/.scm/cvs-settings.xml


 false


mvn -X scm:update

log display:
[INFO] [scm:update]
[INFO] Executing: cvs -z3 -f -q update -d
[INFO] Working directory:
/home/infra/workspace/release/modules/unittesttools
[DEBUG] Executing CVS command: update -d
[DEBUG]
[DEBUG]
[DEBUG]
[DEBUG] M pom.xml


B.
~/.scm/cvs-settings.xml


 true


mvn -X scm:update

log display:
[INFO] [scm:update]
[INFO] Executing: cvs -z3 -q update -d
[INFO] Working directory:
/home/infra/workspace/release/modules/unittesttools
[DEBUG] Executing CVS command: update -d
[DEBUG]
[DEBUG]
[DEBUG]
[DEBUG] M pom.xml

So you see that it actually modify the displayed command (the -f is missing
in the second example) but the result is the same (a merge) eventhough the
option -C in the .cvsrc file.
Also note that the debug information is misleading (assuming it's working).
It displays " Executing CVS command: update -d" when it's actually supposed
to be doing "update - CdPR"
Note also that even though I added "cvs -z6" the debug line still displays
"cvs -z3"


- Am I screwing something up?

- Can I pass command line arguments to the scm (cvs) through the pom ?

regards






Re: Writing a portable CVS configuration using maven2

2007-04-25 Thread Jerome Thibaud

Hi,
Thank you for these advices, I will try them out.

regards

J.T.


On 4/25/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:




Jerome Thibaud a écrit :
> Hi All,
>
> 1.
> Assuming several users connecting to a CVS server using "ext" method and
> "ssh".
> As far as I understand, the pom.xml, checked out from CVS  is the same
for
> everyone.
> Only the settings.xml and maybe cvs-settings.xml might have specific
> content
> for each user, right ?

yes.

>
> In the scm plugin documentation they expect the scm URL to be written in
> the
> pom as follow:
>  scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name
>
> how can I organize everything so that the user name, password or private
> key
> are provided outside of the pom,
> in some user specific resource?
> What are the recommended practices?

you can use a scm url like that:
scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

where cvs.username property is defined on the command line or in your
settings.xml
You can remove ${cvs.username} from your scm connection url too and
specify the username as a parameter of the plugin you use.

What is the plugin you use?

>
>
> 2.
> How do I control the command line options? I see by default
> scm:update => cvs -z3 -f -q update -d
>
> I don't want the "-f" cvs option

It's explain in http://maven.apache.org/scm/cvs.html
You can remove it by adding true in your
cvs-settings.xml

> I'd like a "-P" update option

You can add it in your .cvsrc file

>
>
> 3. Can somebody clarify the difference between connection and developper
> connection? When is each one used?

connection is generally for anonymous access and developer connection for
authenticated access

Emmanuel


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




Writing a portable CVS configuration using maven2

2007-04-24 Thread Jerome Thibaud

#Sorry if I double-posted I doesn't seem to have gone through

Hi All,

1.
Assuming several users connecting to a CVS server using "ext" method and
"ssh".
As far as I understand, the pom.xml, checked out from CVS  is the same for
everyone.
Only the settings.xml and maybe cvs-settings.xml might have specific content
for each user, right ?

In the scm plugin documentation they expect the scm URL to be written in the
pom as follow:
 scm:cvs:ext:[EMAIL PROTECTED] :/usr/local/cvs:module_name

how can I organize everything so that the user name, password or private key
are provided outside of the pom,
in some user specific resource?
What are the recommended practices?


2.
How do I control the command line options? I see by default
scm:update => cvs -z3 -f -q update -d

I don't want the "-f" cvs option
I'd like a "-P" update option


3. Can somebody clarify the difference between connection and developper
connection? When is each one used?



thanks in advance


Jerome Thibaud


Writing a portable CVS configuration using maven2

2007-04-24 Thread Jerome Thibaud

Hi All,

1.
Assuming several users connecting to a CVS server using "ext" method and
"ssh".
As far as I understand, the pom.xml, checked out from CVS  is the same for
everyone.
Only the settings.xml and maybe cvs-settings.xml might have specific content
for each user, right ?

In the scm plugin documentation they expect the scm URL to be written in the
pom as follow:
 scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

how can I organize everything so that the user name, password or private key
are provided outside of the pom,
in some user specific resource?
What are the recommended practices?


2.
How do I control the command line options? I see by default
scm:update => cvs -z3 -f -q update -d

I don't want the "-f" cvs option
I'd like a "-P" update option


3. Can somebody clarify the difference between connection and developper
connection? When is each one used?



thanks in advance


Jerome Thibaud


Re: Accessing repository through ssh tunneling

2007-04-19 Thread Jerome Thibaud

I'll try this out.

thx

Jerome

On 4/19/07, John Casey <[EMAIL PROTECTED]> wrote:


on the external client machine, you can issue the following:

ssh -L 80:repository-host.domain:80 [EMAIL PROTECTED]

I think there's a corresponding command you can issue from the facade
machine, but alas, I'm not enough of an SSH wizard to know what it is...
:-(

-john

On 4/19/07, Jerome Thibaud <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have
> - a client connecting from the outside (internet)
> - a machine exposed to the internet (on  which  I cannot  install my
> repository unfortunately)
> - a machine on the internal network behind my facade machine on which I
> have my repository
>
> how can I set the thing up so that  a client  on the internet can access
> my
> internal repository through the facade machine ?
>
> all suggestions  appreciated.
>
> regards
>
> Jerome Thibaud
>



--
John Casey
---
Maven Developer (http://maven.apache.org)
---
Blog: http://www.ejlife.net/blogs/buildchimp



Accessing repository through ssh tunneling

2007-04-19 Thread Jerome Thibaud

Hi All,

I have
- a client connecting from the outside (internet)
- a machine exposed to the internet (on  which  I cannot  install my
repository unfortunately)
- a machine on the internal network behind my facade machine on which I
have my repository

how can I set the thing up so that  a client  on the internet can access my
internal repository through the facade machine ?

all suggestions  appreciated.

regards

Jerome Thibaud