Re: Force custom mojo to always skip modules

2013-11-22 Thread Oscar Picasso
Thanks. It works.




On Thu, Nov 21, 2013 at 4:12 PM, Robert Scholte rfscho...@apache.orgwrote:

 Hi Oscar,

 yes, we call it aggregator:
 http://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/
 apache/maven/plugins/annotations/Mojo.html#aggregator()

 Robert

 Op Thu, 21 Nov 2013 21:50:26 +0100 schreef Oscar Picasso 
 oscarpica...@gmail.com:


  Hi,

 I have written a custom plugin.
 Is it possible to have it always to skip the modules in multimodule
 projects.

 I have made several trials like overriding MavenProject.getModules() to
 return an empty but with not luck.

 Oscar


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
blog: http://fp.opicasso.com
twitter: @oscarpica
google+: https://plus.google.com/u/0/
facebook: http://www.facebook.com/


Force custom mojo to always skip modules

2013-11-21 Thread Oscar Picasso
Hi,

I have written a custom plugin.
Is it possible to have it always to skip the modules in multimodule
projects.

I have made several trials like overriding MavenProject.getModules() to
return an empty but with not luck.

Oscar


Pushing changes after release with scm provider

2013-06-18 Thread Oscar Picasso
Hi,

We are using Jazz RTC as our source control system.
The RTC remote repository workspace is configured with a flow target stream.

However when doing a maven release the changeset are not delivered to the
target stream and the snapshot is not promoted to the target stream.

Here is our configuration:
   plugin
  artifactIdmaven-release-plugin/artifactId
  version2.4.1/version
  dependencies
dependency
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-scm-plugin/artifactId
  version1.8.1/version
/dependency
  /dependencies
  inheritedfalse/inherited
  configuration
preparationGoalsclean install/preparationGoals
pushChangestrue/pushChanges
goalsdeploy site-deploy/goals
  /configuration
/plugin

Any idea?


Release too many test runs

2008-05-09 Thread Oscar Picasso
There are way too many test runs when doing a release.

Here are my findings :

- With minimal reports:
release:prepare - 1 test run
release:perform - 2 test runs

- With a bunch of reports (including clover...)
release:prepare - 1 test run
release:perform - 3 test runs

How to reduce the number of test runs when releasing ?

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



Clover and multimodules jbi projects

2008-04-07 Thread Oscar Picasso
Hi,

I have a multimodule jbi project where some of the submodules do not
have java sources. This generate and error with clover :

  *** ERROR: No source files specified
  USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...]


Is there a way to prevent the clover plugin to generate an error when
a project / module does not have java sources ?

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



release : Unable to check for local modifications

2008-03-31 Thread Oscar Picasso
Hi,

When I do a release:prepare I get an Unable to check for local
modifications (see below).

From the logs it seems the problem come when maven tries to execute svn
--non-interactive status.

However if I execute svn --non-interactive status, it works fine. Any idea ?

Thanks

=
[INFO] [release:prepare]
[INFO] Resuming release from phase 'scm-check-modifications'
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: C:\mycomp\workspace\my-app
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to check for local modifications
Provider message:
The svn command failed.
Command output:

[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Unable to check for local
modifications
Provider message:
The svn command failed.
Command output:

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:560)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:224)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.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)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for
loc
al modifications
Provider message:
The svn command failed.
Command output:

at org.apache.maven.plugins.release.PrepareReleaseMojo.execute
(PrepareRe
leaseMojo.java:144)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:539)
... 16 more
[INFO]

[INFO] Total time: 23 seconds
[INFO] Finished at: Mon Mar 31 13:31:51 EDT 2008
[INFO] Final Memory: 31M/57M
[INFO] -


Re: Performance issues with multiple continuum instances on single server

2007-08-27 Thread Oscar Picasso
I have the same problem but when trying to delete the build directly in the
database, as explained in another mail in this list, continuum becomes then
unusable.

Could explain me exactly wich sql do you send to clean a build in the
database ?

Thanks

On 8/16/07, Eric Roberts [EMAIL PROTECTED] wrote:


 Another issue that has been occurring on the second server is that
 builds often run indefinitely.  It's almost as if the build process has
 died somehow but continuum never noticed so the clock just keeps
 ticking.  I am able to clean these builds up directly in the database
 but I can't figure out why it keeps happening.




[Help] Where to change a template?

2007-08-15 Thread Oscar Picasso
Hi,

I badly need to solve the problem below in order to use continuum.

Any idea ?

Oscar

-- Forwarded message --
From: Oscar Picasso [EMAIL PROTECTED]
Date: Aug 13, 2007 2:53 PM
Subject: Where to change a template?
To: [EMAIL PROTECTED]

Hi,

I am trying to change the View.vm template to hide the arguments if the user
has no editProject rights.

It works fine if I change
path-to-continuum\apps\continuum\webapp\templates\screens\View.vm.

However when I restart continuum the modified template is replaced with the
original one.

I have also tried to change path-to-continuum\apps\continuum-
plexus-application-1.0.3.jar  continuum-web-1.0.3.jar  View.vm but this
doesn't prevent the modified template to be replaced with the new one.

Where to I need to change the template to make the changes permanent?

Thanks

Oscar


Where to change a template?

2007-08-13 Thread Oscar Picasso
Hi,

I am trying to change the View.vm template to hide the arguments if the user
has no editProject rights.

It works fine if I change
path-to-continuum\apps\continuum\webapp\templates\screens\View.vm.

However when I restart continuum the modified template is replaced with the
original one.

I have also tried to change path-to-continuum\apps\continuum-
plexus-application-1.0.3.jar  continuum-web-1.0.3.jar  View.vm but this
doesn't prevent the modified template to be replaced with the new one.

Where to I need to change the template to make the changes permanent?

Thanks

Oscar


Hiding arguments

2007-08-09 Thread Oscar Picasso
Hi,

I use continuum 1.0.3 to build some ant projects. The project scripts
require a password as an argument but I don't this password to be seen by
guest users.

Is there a mean to hide parts or all of the arguments to the guest user?

If currently it's not possible I could write some code to do that. But could
someone give me some pointer where to start?

Thanks.


Re: Hiding arguments

2007-08-09 Thread Oscar Picasso
Solved.

Actually that was very easy. I just changed the View template.

On 8/9/07, Oscar Picasso [EMAIL PROTECTED] wrote:

 Hi,

 I use continuum 1.0.3 to build some ant projects. The project scripts
 require a password as an argument but I don't this password to be seen by
 guest users.

 Is there a mean to hide parts or all of the arguments to the guest user?

 If currently it's not possible I could write some code to do that. But
 could someone give me some pointer where to start?

 Thanks.



Re: M2 POM Url protected

2007-08-07 Thread Oscar Picasso
Thanks. It works fine.

Though actually you have to write:
http://username:[EMAIL PROTECTED]:port/path/pom.xml

On 8/6/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 you can use an url like that: http:username:[EMAIL PROTECTED]
 :port/path/pom.xml

 Oscar Picasso a écrit :
  Hi,
 
  On continuum 1.0.3, I want to add a project using M2 POM Url. The urls
 point
  to a svn http server which is protected (using basic authenfication I
  think).
 
  When I try to add the M2 POM Url I get [ The URL you provided doesn't
 exist
  ]
  and the logs show:
  jvm 2| 2007-08-06 14:07:33,204 [SocketListener0-1] INFO
  Validator:url-source   - An error is occurred.
  jvm 2| java.io.IOException: Server returned HTTP response code: 401
 for
  URL: http://vcs/svn/sandbox/One/trunk/pom.xml
  [...]
 
  How to tell continuum to send the username and the password in order to
  avoid the 401 error ?
 
  Thanks.
 




M2 POM Url protected

2007-08-06 Thread Oscar Picasso
Hi,

On continuum 1.0.3, I want to add a project using M2 POM Url. The urls point
to a svn http server which is protected (using basic authenfication I
think).

When I try to add the M2 POM Url I get [ The URL you provided doesn't exist
]
and the logs show:
jvm 2| 2007-08-06 14:07:33,204 [SocketListener0-1] INFO
Validator:url-source   - An error is occurred.
jvm 2| java.io.IOException: Server returned HTTP response code: 401 for
URL: http://vcs/svn/sandbox/One/trunk/pom.xml
[...]

How to tell continuum to send the username and the password in order to
avoid the 401 error ?

Thanks.


1.0.3 or 1.1-beta-1 ?

2007-08-02 Thread Oscar Picasso
Hi,

I am in the process to migration quite a lot of projects from cruise
control.

Do you advise to stick with 1.0.3 or can now use 1.1-beta-1 for production?

Thanks

Oscar


Email notification 1.1-beta-1

2007-08-02 Thread Oscar Picasso
Hi,

I have forced to build a project. It succeeded.

The project continuum group has an email notifier with events =
Error/Failure/Success/Warning.

I don't receive any email notification and noticed in the logs:
1603973 [pool-1-thread-1] INFO
org.codehaus.plexus.notification.notifier.Notifier:mail  - Same state, not
sending message.

In the application.xml file I have used the same
org.codehaus.plexus.notification.notifier.Notifier and
org.codehaus.plexus.mailsender.MailSender configuation that worked with
continuum 1.0.3.

What am I supposed to do to make the notifier work?

Thanks.

Oscar


Re: Parent POM, properties and scm problem

2007-08-02 Thread Oscar Picasso
That's exactly what I am doing.

And it works fine except for the problem that I mention in this thread of
the project artifactId being added to some urls like the scmConnection.

On 8/1/07, Bryan Loofbourrow [EMAIL PROTECTED] wrote:

 I'm wondering if the following would work:

 - Make your organizational pom project. Don't define any module entries
 in
 it.
 - Have all of your projects depend on it as a parent
 - Build and install your organizational pom to a central repository
 accessible to all of your projects.

 I'm thinking that you can then independently build and deploy your
 organizational pom by itself, and have your projects use it, from the
 repository, as a parent for definition purposes, though not build
 purposes.

 I'd be interested to know whether this works. It seems useful.

 -- Bryan

 -Original Message-
 From: Oscar Picasso [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 01, 2007 10:31 AM
 To: Maven Users List
 Subject: Re: Parent POM, properties and scm problem

 The current Maven behaviour is fine for multimodule projects.

 However I am trying to write a organizational POM that all my projets
 would
 inherited and wanted to avoid duplication of the scm section.

 So in case of independent projects it does not make sense to put all them
 inside the same trunk.

 I guess currently I cannot avoid this duplication.

 On 7/31/07, Eric Redmond [EMAIL PROTECTED] wrote:
 
  Maven does this so that child module's scm can be defined once in the
  parent.
 
  scm
connectionscm:svn:https://url/project/trunk
  /scm
 
  modules
moduleChild
 
  Then the Child module's scm url is automatically set as:
 
  scm
connectionscm:svn:https://url/project/trunk/Child
  /scm
 
  Which is the convention for a multi-module project.
 
  If your Child project has to be seperate, with it's own trunk, etc. I
  would suggest (if svn) using svn:externals to access the child under the
  parent project. Since it ownly appends the name on a multi-module
 project,
  I'm trying to figure out how you locally check out your project...
 perhaps
  create a trunks-style setup in your version control would be best?
 
  Eric
 
  On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote:
  
   I have also noticed the same behavior with the project url, the sit
 url
   and
   the scm url even if in the effective the corresponding properties are
   correct (without the artifactId appended).
  
   On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote:
   
Hi,
   
In the parent POM I have the following:
[...]
  properties
scmConnection
   http://localhost/repos/repo/${groupId}/${artifactId}/trunk
http://localhost/repos/repo/$%7BgroupId%7D/$%7BartifactId%7D/trunk
/scmConnection
  /properties
   
   
  scm
connection${scmConnection}/connection
developerConnection${scmConnection}/developerConnection
  /scm
[...]
   
The child POM has nothing expect mandatory elements and the
 reference
  to
the parent POM. Both the child and the parent are snapshots. The
  parent
   POM
has been deployed to the remote repository.
   
When I run mvn help:effective-pom on the child project, I get:
[...]
  scm
connection
   http://localhost/repos/repo/com.opicasso/Child/trunk/Child
/connection
developerConnection
http://localhost/repos/repo/com.opicasso/Child/trunk/Child
/developerConnection
  /scm
[..]
   
I would have expected:
[...]
  scm
connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk
/connection
developerConnection
http://localhost/repos/repo/com.opicasso/Child/trunk
   /developerConnection
  /scm
[..]
   
Why does maven happen the child artifactId to the connections? Does
   maven
merge the parent scm connections with the children ones ? But in the
   current
case the child has no scm connections defined in its pom.
   
How to get rid of this extra artifactId?
   
Thanks
   
Oscar
   
   
   
  
 
 
 
  --
  Eric Redmond
  http://blog.propellors.net
 


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




Weird properties subsitution in windows

2007-08-02 Thread Oscar Picasso
Hi,

---
Here is my setting.xml:

settings
  profiles
profile
  iddefault/id
  activation
activeByDefault/
  /activation
  properties
myusernamemy username/myusername
   mypasswordsecret/mypassword
  /properties
/profile
  /profiles
/settings

---
In my pom I have the following:

plugin
  artifactIdmaven-scm-plugin/artifactId
  version1.0/version
  configuration
username${myusername}/username
 password${mypassword}/password
   /configuration
/plugin

---
When doing help:effective-settings I get:

profile
  activation /
  properties
myusernamemy username/myusername
mypasswordsecret/mypassword
   /properties
 iddefault/id
/profile

---
But on help:effective-pom the properties are not substituted:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-scm-plugin/artifactId
  version1.0/version
  configuration
username${myusername}/username
password${mypassword}/password
  /configuration
/plugin


I have also tried to use ${settings.myusername} without success.

The weird thing is that the property substitution works properly on linux
but not on windows.

Any idea ?

Thanks


Setting home in continuum windows service

2007-08-02 Thread Oscar Picasso
Hi,

I want the builds launched by continuum to use jdk1.5 while the default in
my windows machine is jdk1.4.

When doing a manual start with run.bat it can be done by setting the
JAVA_HOME in run.bat like that:

[...]
rem At runtime, the current directory will be that of Wrapper.exe
rem
:startup
set JAVA_HOME=D:\Programs\jdk1.5.0_07
%_APP_HOME%wrapper.exe -c %_WRAPPER_CONF%
if not errorlevel 1 goto end
pause
[...]


However I am not able to do that when installing continuum as a service.

I have tried to change the InstallService.bat with:
[...]
:startup
set JAVA_HOME=D:\Programs\jdk1.5.0_07
Wrapper.exe -i %_WRAPPER_CONF%
if not errorlevel 1 goto end
pause

:end
[...]

but the builds in that case still use jkd1.4.


Any idea ?

Thanks

Oscar


Jetty port in 1.1-beta-1

2007-08-02 Thread Oscar Picasso
Hi,

I am trying to install continuum 1.1-beta-1. In
apps/continuum/conf/application.xml I see a reference to jetty.port.

Where are supposed to set this property?

Thanks

Oscar


Re: Parent POM, properties and scm problem

2007-08-01 Thread Oscar Picasso
The current Maven behaviour is fine for multimodule projects.

However I am trying to write a organizational POM that all my projets would
inherited and wanted to avoid duplication of the scm section.

So in case of independent projects it does not make sense to put all them
inside the same trunk.

I guess currently I cannot avoid this duplication.

On 7/31/07, Eric Redmond [EMAIL PROTECTED] wrote:

 Maven does this so that child module's scm can be defined once in the
 parent.

 scm
   connectionscm:svn:https://url/project/trunk
 /scm

 modules
   moduleChild

 Then the Child module's scm url is automatically set as:

 scm
   connectionscm:svn:https://url/project/trunk/Child
 /scm

 Which is the convention for a multi-module project.

 If your Child project has to be seperate, with it's own trunk, etc. I
 would suggest (if svn) using svn:externals to access the child under the
 parent project. Since it ownly appends the name on a multi-module project,
 I'm trying to figure out how you locally check out your project... perhaps
 create a trunks-style setup in your version control would be best?

 Eric

 On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote:
 
  I have also noticed the same behavior with the project url, the sit url
  and
  the scm url even if in the effective the corresponding properties are
  correct (without the artifactId appended).
 
  On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote:
  
   Hi,
  
   In the parent POM I have the following:
   [...]
 properties
   scmConnection
  http://localhost/repos/repo/${groupId}/${artifactId}/trunk
   http://localhost/repos/repo/$%7BgroupId%7D/$%7BartifactId%7D/trunk
   /scmConnection
 /properties
  
  
 scm
   connection${scmConnection}/connection
   developerConnection${scmConnection}/developerConnection
 /scm
   [...]
  
   The child POM has nothing expect mandatory elements and the reference
 to
   the parent POM. Both the child and the parent are snapshots. The
 parent
  POM
   has been deployed to the remote repository.
  
   When I run mvn help:effective-pom on the child project, I get:
   [...]
 scm
   connection
  http://localhost/repos/repo/com.opicasso/Child/trunk/Child
   /connection
   developerConnection
   http://localhost/repos/repo/com.opicasso/Child/trunk/Child
   /developerConnection
 /scm
   [..]
  
   I would have expected:
   [...]
 scm
   connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk
   /connection
   developerConnection
   http://localhost/repos/repo/com.opicasso/Child/trunk
  /developerConnection
 /scm
   [..]
  
   Why does maven happen the child artifactId to the connections? Does
  maven
   merge the parent scm connections with the children ones ? But in the
  current
   case the child has no scm connections defined in its pom.
  
   How to get rid of this extra artifactId?
  
   Thanks
  
   Oscar
  
  
  
 



 --
 Eric Redmond
 http://blog.propellors.net



Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
Hi,

In the parent POM I have the following:
[...]
  properties
scmConnection
http://localhost/repos/repo/${groupId}/${artifactId}/trunk/scmConnection
  /properties


  scm
connection${scmConnection}/connection
developerConnection${scmConnection}/developerConnection
  /scm
[...]

The child POM has nothing expect mandatory elements and the reference to the
parent POM. Both the child and the parent are snapshots. The parent POM has
been deployed to the remote repository.

When I run mvn help:effective-pom on the child project, I get:
[...]
  scm
connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk/Child
/connection
developerConnection
http://localhost/repos/repo/com.opicasso/Child/trunk/Child
/developerConnection
  /scm
[..]

I would have expected:
[...]
  scm
connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk
/connection
developerConnection
http://localhost/repos/repo/com.opicasso/Child/trunk/developerConnection
  /scm
[..]

Why does maven happen the child artifactId to the connections? Does maven
merge the parent scm connections with the children ones ? But in the current
case the child has no scm connections defined in its pom.

How to get rid of this extra artifactId?

Thanks

Oscar


Re: Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
I have also noticed the same behavior with the project url, the sit url and
the scm url even if in the effective the corresponding properties are
correct (without the artifactId appended).

On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote:

 Hi,

 In the parent POM I have the following:
 [...]
   properties
 scmConnectionhttp://localhost/repos/repo/${groupId}/${artifactId}/trunk
 http://localhost/repos/repo/$%7BgroupId%7D/$%7BartifactId%7D/trunk
 /scmConnection
   /properties


   scm
 connection${scmConnection}/connection
 developerConnection${scmConnection}/developerConnection
   /scm
 [...]

 The child POM has nothing expect mandatory elements and the reference to
 the parent POM. Both the child and the parent are snapshots. The parent POM
 has been deployed to the remote repository.

 When I run mvn help:effective-pom on the child project, I get:
 [...]
   scm
 connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk/Child
 /connection
 developerConnection
 http://localhost/repos/repo/com.opicasso/Child/trunk/Child
 /developerConnection
   /scm
 [..]

 I would have expected:
 [...]
   scm
 connectionhttp://localhost/repos/repo/com.opicasso/Child/trunk
 /connection
 developerConnection
 http://localhost/repos/repo/com.opicasso/Child/trunk/developerConnection
   /scm
 [..]

 Why does maven happen the child artifactId to the connections? Does maven
 merge the parent scm connections with the children ones ? But in the current
 case the child has no scm connections defined in its pom.

 How to get rid of this extra artifactId?

 Thanks

 Oscar





Report url

2007-04-05 Thread Oscar Picasso

Hi,

I use continuum to build some ant based projects. For these projects I have
set an email notification in the web interface. But this notification report
url points to a wrong host and a wrong port.


I get:

Online report :
http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/31/buildId/62

where I want:
http://reports.intra:8081/continuum/servlet/continuum/target/ProjectBuild.vm/view/ProjectBuild/id/31/buildId/62

Where do I set the base url that will be sent in the email notifications? I
have seen something like reportUrl while googling but I am don't see where
to set it.

Oscar


[m2] Properties files

2005-11-24 Thread Oscar Picasso
Hi,
 
 In m1 we could use user specific properties in the pom and these properties 
could be read from some properties files.
 
 What is the similar functionality in m2?
 
 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to set 
arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom 
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom 
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific properties 
files. I would however prefer a simpler properties file instead of an xml (pom) 
file.
 
 I am under the impression that I miss something.
 
 What is the right to do it?
 
 
 Thanks
 
 
 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

RE: [m2] Properties files

2005-11-24 Thread Oscar Picasso
Thanks for the suggestion.
 
 I still think that there is a lack of properties files specific to a project. 
Or at least I don't know the equivalent in m2.
 
 Using profiles in settings.xml works fine but in my opinion settings.xml 
should be used for settings that could be potentially shared accross projects.
 
 The 'solution' I  have found is to  make my  pom.xml  reference  a  parent  
pom. Something like:
 
 parent
   groupIdorg.jop/groupId
artifactIduser/artifactId
version1.0/version
relativePath../user-pom.xml/relativePath
 /parent
 
 Where user-pom.xml contains user/project specific properties and each 
individual developer is expected to adapt it to his own environment.
 
 I must say that I don't find my solution very nice but it works too.

mvdp [EMAIL PROTECTED] wrote: 
Hi Oscar,

I faced the same problem. I solved it by using a profile wich has
properties with valus to be configured by the
developer in settings.xml.

See
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

The profile is enabled using

  aProfileName


because  is not working yet.

Martin

-Oorspronkelijk bericht-
Van: Oscar Picasso [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 24 november 2005 17:44
Aan: users@maven.apache.org
Onderwerp: [m2] Properties files


Hi,

 In m1 we could use user specific properties in the pom and these properties
could be read from some properties files.

 What is the similar functionality in m2?

 Here is what I have found that is somewhat related
 - you can user -Dsome.property=some.value = It doesn't use a file.
 - setting.xml for user specification configuration = you cannot use it to
set arbitrary properties for a specific pom.
 - filtering = it allows to set properties to resources but not to poms.
 - using the pom's properties element = the properties are set in the pom
itself, which is what I want to avoid.
 - same as above, but move all the user specific properties in a parent pom
that could be customized by each user
 The later approach seems to me the closest to the m1 user specific
properties files. I would however prefer a simpler properties file instead
of an xml (pom) file.

 I am under the impression that I miss something.

 What is the right to do it?


 Thanks


 Oscar

-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


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





-
 Yahoo! Personals
 Single? There's someone we'd like you to meet.
Lot's of someone's, actually. Yahoo! Personals

Re: Configuring Continuum to start automatically on Fedora Core 4

2005-11-21 Thread Oscar Picasso
Yes, I did look at the guide, but  I needed to adapte it to Fedora Core 4 
because FC4 does not have update-rc.d and also because the rc file need to have 
special comments.
 
Emmanuel Venisse [EMAIL PROTECTED] wrote: Do you have look at 
http://maven.apache.org/continuum/guides/mini/guide-linux-boot.html?

Emmanuel

Oscar Picasso a écrit :
 Hi,
  
  I am trying to configure contiuum to start automatically on Fedora Core 4.
  
 I have adapted from the documentation because on FC4 we need special comments 
 on the script and FC4 does not have update-rc.d.
  
  Here is what I have done:
  - added the following comments to run.sh
  # chkconfig: 45 98 2
  # description: Starts and stops continuum. 
  
  
  - added some echo to debug the script on the run.sh start function
  start() {
  echo Starting $APP_LONG_NAME...
  getpid
  if [ X$pid = X ]
  then
  if [ X$IGNORE_SIGNALS = X ]
  then
  if [ X$RUN_AS_USER = X ]
  then
  echo X$pid
  echo X$IGNORE_SIGNALS
  echo X$RUN_AS_USER
  CMD=$CMDNICE $WRAPPER_CMD $WRAPPER_CONF 
 wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE
  echo $CMD
  exec $CMD
  [...]
  
  
  - symlinked to run.sh
  cd /etc/init.d
  ln -s /usr/local/continuum/bin/linux/run.sh continuum
  
  - run chkconfig
  chkconfig --add continuum
  
  - checked /etc/rc.d/rc4.d and /etc/rc.d/rc5.d
  Both have the following symbolic link:
  S98continuum - ../init.d/continuum
  
  - tested the service with 
  1- service continuum start
  and 
  2- by restarting the computer 
  
  in both cases I get following messages:
  
  Starting continuum...
  X
  X
  X
  ./wrapper wrapper.conf wrapper.pidfile=./continuum.pid wrapper.daemonize=TRUE
  
  So the run.sh script is executed. However it does not work.
  - the ps command does not show any process running continuum
  - netstat does not show any expected 'listened contiuum port'
  - if I do service continuum status I get: 
  continuum is not running.
  
  On the other hand. If I do:
  /usr/local/continuum/bin/linux/run.sh start
  
  continuum is started.
  
  
  Any idea?
  
  
  Thanks
  
  Oscar
   
 -
  Yahoo! FareChase - Search multiple travel sites in one click.  





-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Configuring Continuum to start automatically on Fedora Core 4

2005-11-20 Thread Oscar Picasso
Hi,
 
 I am trying to configure contiuum to start automatically on Fedora Core 4.
 
 I have adapted from the documentation because on FC4 we need special comments 
on the script and FC4 does not have update-rc.d.
 
 Here is what I have done:
 - added the following comments to run.sh
 # chkconfig: 45 98 2
 # description: Starts and stops continuum. 
 
 
 - added some echo to debug the script on the run.sh start function
 start() {
 echo Starting $APP_LONG_NAME...
 getpid
 if [ X$pid = X ]
 then
 if [ X$IGNORE_SIGNALS = X ]
 then
 if [ X$RUN_AS_USER = X ]
 then
 echo X$pid
 echo X$IGNORE_SIGNALS
 echo X$RUN_AS_USER
 CMD=$CMDNICE $WRAPPER_CMD $WRAPPER_CONF 
wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE
 echo $CMD
 exec $CMD
 [...]
 
 
 - symlinked to run.sh
 cd /etc/init.d
 ln -s /usr/local/continuum/bin/linux/run.sh continuum
 
 - run chkconfig
 chkconfig --add continuum
 
 - checked /etc/rc.d/rc4.d and /etc/rc.d/rc5.d
 Both have the following symbolic link:
 S98continuum - ../init.d/continuum
 
 - tested the service with 
 1- service continuum start
 and 
 2- by restarting the computer 
 
 in both cases I get following messages:
 
 Starting continuum...
 X
 X
 X
 ./wrapper wrapper.conf wrapper.pidfile=./continuum.pid wrapper.daemonize=TRUE
 
 So the run.sh script is executed. However it does not work.
 - the ps command does not show any process running continuum
 - netstat does not show any expected 'listened contiuum port'
 - if I do service continuum status I get: 
 continuum is not running.
 
 On the other hand. If I do:
 /usr/local/continuum/bin/linux/run.sh start
 
 continuum is started.
 
 
 Any idea?
 
 
 Thanks
 
 Oscar

-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Problem with consecutive builds

2005-11-17 Thread Oscar Picasso
I have just installed 1.0.1 and have the same problem.
 
 The sent message as changed a little though:
 
 

Build Error:

Provider message: The svn command failed.
Command output: 
---
svn: Working copy 'target' is missing or not locked
---
 and there are no more Exceptions in the logs.
 
 I didn't do anything related to svn between the consecutive builds.
 

Emmanuel Venisse [EMAIL PROTECTED] wrote: This pb is fixed in 1.0.1 that will 
be release in few days.

Emmanuel

Oscar Picasso a écrit :
 Hi,
 
 I have tried continuum with a very simple project.
 
 The first build works fine. But every subsequent build for the same project
 fails, whether it is forced or part of a scheduled build.
 
 The sent message doesn't tell much
 
 Build statistics:
   State: Error
   Previous State: Ok
   ...
 
 Changes
   No files changed
   
 
 Build Error:
 
 
 
 But I have several warnings in the continuum.log file. 
 
 Any idea how to solve this problem?
 
 Thanks
 
 Oscar
 
 -115026 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  - Error
 while updating the code for project: 'Maven Quick Start Archetype', id: '16' 
 to
 '/usr/local/continuum-1.0/bin/linux/../../apps/continuum/working-directory/16'.
 -115027 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  - 
 Command
 output: svn: Working copy 'target' is missing or not locked
 -
 -115027 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  -
 Provider message: The svn command failed.
 -115418 [Thread-1] WARN 
 org.apache.maven.continuum.configuration.ConfigurationService  - Error reading
 build output for build '32'.
 -java.io.FileNotFoundException:
 /usr/local/continuum-1.0/bin/linux/../../apps/continuum/build-output-directory/16/32.log.txt
 (No such file or directory)
 - at java.io.FileInputStream.open(Native Method)
 - at java.io.FileInputStream.(FileInputStream.java:106)
 - at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269)
 - at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261)
 - at
 org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput(DefaultConfigurationService.java:167)
 - at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:129)
 - at
 org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
 - at
 org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:261)
 - at
 org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
 - at
 org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
 - at java.lang.Thread.run(Thread.java:595)
 
 
 
 
   
 __ 
 Yahoo! FareChase: Search multiple travel sites in one click.
 http://farechase.yahoo.com
 
 
 





-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Problem with consecutive builds

2005-11-13 Thread Oscar Picasso
Hi,

I have tried continuum with a very simple project.

The first build works fine. But every subsequent build for the same project
fails, whether it is forced or part of a scheduled build.

The sent message doesn't tell much

Build statistics:
  State: Error
  Previous State: Ok
  ...

Changes
  No files changed
  

Build Error:



But I have several warnings in the continuum.log file. 

Any idea how to solve this problem?

Thanks

Oscar

-115026 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  - Error
while updating the code for project: 'Maven Quick Start Archetype', id: '16' to
'/usr/local/continuum-1.0/bin/linux/../../apps/continuum/working-directory/16'.
-115027 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  - Command
output: svn: Working copy 'target' is missing or not locked
-
-115027 [Thread-1] WARN  org.apache.maven.continuum.scm.ContinuumScm  -
Provider message: The svn command failed.
-115418 [Thread-1] WARN 
org.apache.maven.continuum.configuration.ConfigurationService  - Error reading
build output for build '32'.
-java.io.FileNotFoundException:
/usr/local/continuum-1.0/bin/linux/../../apps/continuum/build-output-directory/16/32.log.txt
(No such file or directory)
-   at java.io.FileInputStream.open(Native Method)
-   at java.io.FileInputStream.init(FileInputStream.java:106)
-   at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:269)
-   at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:261)
-   at
org.apache.maven.continuum.configuration.DefaultConfigurationService.getBuildOutput(DefaultConfigurationService.java:167)
-   at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:129)
-   at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
-   at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:261)
-   at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
-   at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
-   at java.lang.Thread.run(Thread.java:595)





__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


Re: [m2] maven-jdepend-plugin:FATAL error, NullPointerException

2005-11-13 Thread Oscar Picasso
--- Brett Porter [EMAIL PROTECTED] wrote:
 Not sure who put that statement up, but that's not entirely true. It's
 possible the jdepend plugin hasn't been released as I don't think it
 has received full testing yet. You can still build it from SVN. Most
 of the other plugins there have had releases.

I did it. It works fine when I build and install it.

However, I would like to deploy it to a remote secondary repository so that
developers that use my pom don't need to manually install the plugin. 
I get the following :
[INFO] [plugin:updateRegistry]
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from snapshots
The authenticity of host 'repo1.maven.org' can't be established.
RSA key fingerprint is ..
Are you sure you want to continue connecting? (yes/no): 

Whether I answer yes or no, it ends up with a build error.

Any idea of what I need to do to achieve what I want?



As a side note, I have tried all the listed mojo plugins and here is what I
have found.

++ The following plugins work fine.

changelog-maven-plugin
changes-maven-plugin
jxr-maven-plugin
maven-site-plugin
surefire-report-maven-plugin
taglist-maven-plugin
xdoclet-maven-plugin
xmlbeans-maven-plugin


++ The following plugins give the error: The plugin
'org.codehaus.mojo:plugin-name-maven-plugin' does not exist or no valid
version could be found

castor-maven-plugin
jalopy-maven-plugin

javacc-maven-plugin 
(broken link: point to maven-javacc-plugin which is not found while there is a
javacc-maven-plugin)

jboss-maven-plugin
jdepend-maven-plugin
jetty-maven-plugin
jspc-maven-plugin

sablecc-maven-plugin
(bad link: just show a directory)

wsdl2java-maven-plugin

I have noticed that the plugins that work are in
http://www.ibiblio.org/maven2/org/codehaus/mojo.

Can we assume that any mojo plugin released is necessarily in ibiblio, so there
is no need to look in another repository?

Thanks

Oscar




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Root pom - very basic question

2005-11-13 Thread Oscar Picasso
You may want to look at:
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20build%20more%20than%20one%20project%20at%20once?

--- Jerarckill - ANS [EMAIL PROTECTED] wrote:

 Hello everybody.
 
 I have read quite few times people speaking about a root pom, extended  
 (extendable) by other poms.  Where is this root pom located?  How does  
 this extendability thing between pom works?
 
 Sorry, this must be a quite stupid question,
 
 JADOULLE Jérôme
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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



Re: Third party jar deployment

2005-11-13 Thread Oscar Picasso
I have read it. But it install it on the local repository.

I want to deploy it on a remote repository so any other developer working on
the project could use this jar without manually install it in its local
repository. 

--- Alexandre Poitras [EMAIL PROTECTED] wrote:

 You should take a look at this guide. Quite simple but does the job :
 http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
 
 On 11/11/05, Oscar Picasso [EMAIL PROTECTED] wrote:
 
  I solved this by extracting the third party into a target/classes folder.
 
  It works but there is surely somehing more elegant.
 
  --- Oscar Picasso [EMAIL PROTECTED] wrote:
 
   Hi,
  
   How do I deploy a third party jar to a remote repostory.
  
   I have read that the best way is to user mvn deploy. But obviously
  that's not
   enough.
  
   But where do I put the jar to be deployed?
  
  
  
   __
   Do You Yahoo!?
   Tired of spam? Yahoo! Mail has the best spam protection around
   http://mail.yahoo.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 
 
  __
  Yahoo! Mail - PC Magazine Editors' Choice 2005
  http://mail.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 Alexandre Poitras
 Québec, Canada
 




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: [m2] maven-jdepend-plugin:FATAL error, NullPointerException

2005-11-12 Thread Oscar Picasso
--- Brett Porter [EMAIL PROTECTED] wrote:

 That's the Maven 1.x plugin. The error reporting is a known bug.
 
 groupIdorg.codehuas.mojo/groupId
 artifactIdjdepend-maven-plugin/artifactId

I have tried this one (I guess that the groupId is actually org.codehaus.mojo.

I get  
The plugin 'org.codehaus.mojo:jdepend-maven-plugin' does not exist or no valid
version could be found

What plugin repository do we have to configure in your poms to get this one?

On the other hand on http://mojo.codehaus.org/ we read, The Mojo Project is
not currently publishing releases of the plugins contains herein.

Does it means that we currently have to install ourselves this plugin in our
own repositories?

Thanks



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



[m2] deploy and ssh_agent

2005-11-11 Thread Oscar Picasso
Hi,

If my settings.xml contains the username, and passphrase I can deploy to the
distribution repository.

If I remove the username and passphrase from the settings.xml, maven prompts me
several times for a password on deployement.

I can use ssh_agent directly from the shell, but how to 'tell' maven to use
ssh_agent too ?

In the mailing list I have read somewhere that we need to use the scpexe
protocol. However if I do that, I get the following:

[INFO] Error deploying artifact: Unsupported Protocol: 'scpexe': Cannot find
wagon which supports the requested protocol: scpexe

It is not clear for me if scpexe is a Windows specific protocol.

I use Linux.

1- Is there a protocol that I can use in Linux so that maven uses ssh_agent on
deployement.
2- If so, how to enable it?

Thanks.

Oscar




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Third party jar deployment

2005-11-11 Thread Oscar Picasso
Hi,

How do I deploy a third party jar to a remote repostory.

I have read that the best way is to user mvn deploy. But obviously that's not
enough.

But where do I put the jar to be deployed?



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Third party jar deployment

2005-11-11 Thread Oscar Picasso
I solved this by extracting the third party into a target/classes folder. 

It works but there is surely somehing more elegant.

--- Oscar Picasso [EMAIL PROTECTED] wrote:

 Hi,
 
 How do I deploy a third party jar to a remote repostory.
 
 I have read that the best way is to user mvn deploy. But obviously that's not
 enough.
 
 But where do I put the jar to be deployed?
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



[m2] Exclude some modules

2005-11-11 Thread Oscar Picasso
Is it possible to exclude some a set of modules to be use during a phase run.

for example, with something like this:

mvn deploy -Dexclude=my-excluded-set




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Site and multi-modules projects

2005-11-10 Thread Oscar Picasso
Hi,

With maven 2.0 there is a problem when build a site for a multi-modules
project.

The individual modules sites are properly build but not the links between the
root project and its modules (see
http://www.mail-archive.com/users@maven.apache.org/msg21517.html).

Today I have installed 2.0.1-SNAPSHOT but the problem doesn't seem to have been
solved.

Is it the case or am I doing something wrong?

Oscar




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Site and multi-modules projects

2005-11-10 Thread Oscar Picasso
Hi,

With maven 2.0 there is a problem when build a site for a multi-modules
project.

The individual modules sites are properly build but not the links between the
root project and its modules (see
http://www.mail-archive.com/users@maven.apache.org/msg21517.html).

Today I have installed 2.0.1-SNAPSHOT but the problem doesn't seem to have been
solved.

Is it the case or is there something special to do?

Oscar






__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Strange M2 behavior

2005-11-05 Thread Oscar Picasso
Hi,

I have happily used maven 1.0 and trying to switch to M2 mainly because I want
to work with modules. But I have some difficulties to understand how it is
supposed to work.

I have tried the following:

mvn archetype:create -DgroupId=org.trial -DartifactId=test 
cd test
mvn jar:jar

and I get
...
[WARNING] JAR will be empty - no content was marked for inclusion!
...
and the jar effectively does not contain the class files.


But if I do:
mvn compiler:compile jar:jar

The jar contains the expected class files.

Isn't supposed the jar:jar execute the precious phases (that is compile) before
making the jar?


Furthermore in any case the resulting jar contains the following:
META-INF/
META-INF/MANIFEST.MF
...
META-INF/maven/
META-INF/maven/org.trial/
META-INF/maven/org.trial/test/
META-INF/maven/org.trial/test/pom.xml
META-INF/maven/org.trial/test/pom.properties

What is the purpose of these pom.xml and pom.properties in the resulting jar?
They contain information about my working directory which is of no use for a
released jar and I even don't see where they come from. They seem to be
magically generated by maven.

Another mystery:
If I do

mvn deploy:deploy

I get:
...
[ERROR] BUILD ERROR
[INFO]

[INFO] The packaging for this project did not assign a file to the build
artifact
...

but it if I do:
mvn compiler:compile jar:jar deploy:deploy

It works fine (excepted for the added META-INF mentioned above).

Also:
m2 deploy
works fine too. However I get the message: THE m2 COMMMAND IS DEPRECATED -
PLEASE RUN mvn INSTEAD

but if I use 
m2 jar:jar
I get the same result than with `mvn jar:jar` (compile phase is skipped).

Did I miss something? 

If I remember, maven 1.0 was more consistent and worked fine out of the box.


Thanks.


Oscar



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: Strange M2 behavior

2005-11-05 Thread Oscar Picasso
Hi,

Thanks for your input. It helped a lot.

I overlooked the Getting started guide... maybe after reading This guide is
intended as a reference for those working with Maven for the first time... I
jumped directly to the Documentation section.

Too many docs to read these days, and not enough hours in a day. So I missed
the obvious.

Oscar

--- Kenney Westerhof [EMAIL PROTECTED] wrote:

 On Sat, 5 Nov 2005, Oscar Picasso wrote:
 
  Hi,
 
  I have happily used maven 1.0 and trying to switch to M2 mainly because I
 want
  to work with modules. But I have some difficulties to understand how it is
  supposed to work.
 
  I have tried the following:
 
  mvn archetype:create -DgroupId=org.trial -DartifactId=test
  cd test
  mvn jar:jar
 
  and I get
  ...
  [WARNING] JAR will be empty - no content was marked for inclusion!
  ...
  and the jar effectively does not contain the class files.
 
 
  But if I do:
  mvn compiler:compile jar:jar
 
  The jar contains the expected class files.
 
  Isn't supposed the jar:jar execute the precious phases (that is compile)
 before
  making the jar?
 
 
 No - goals like X:Y are just single plugin goals.
 
 maven2 has the notion of a 'lifecyle'. You want to call 'mvn install',
 which will call ALL plugin goals to compile, test and package that
 project.
 
  Furthermore in any case the resulting jar contains the following:
  META-INF/
  META-INF/MANIFEST.MF
  ...
  META-INF/maven/
  META-INF/maven/org.trial/
  META-INF/maven/org.trial/test/
  META-INF/maven/org.trial/test/pom.xml
  META-INF/maven/org.trial/test/pom.properties
 
  What is the purpose of these pom.xml and pom.properties in the resulting
 jar?
  They contain information about my working directory which is of no use for
 a
  released jar and I even don't see where they come from. They seem to be
  magically generated by maven.
 
 Correct. They are used to track where a pom came from. The pom.xml is the
 original pom, so you could extract it if you just found a single jar
 somewhere, and see what it is. The pom.properties contains information
 like the time the project was built.
 
 
  Another mystery:
  If I do
 
  mvn deploy:deploy
 
  I get:
  ...
  [ERROR] BUILD ERROR
  [INFO]
 
 
  [INFO] The packaging for this project did not assign a file to the build
  artifact
  ...
 
  but it if I do:
  mvn compiler:compile jar:jar deploy:deploy
 
  It works fine (excepted for the added META-INF mentioned above).
 
 Deploy:deploy should be called from within a lifecycle, like you do below:
 
  Also:
  m2 deploy
  works fine too. However I get the message: THE m2 COMMMAND IS DEPRECATED -
  PLEASE RUN mvn INSTEAD
 
 Yup.
 
  but if I use
  m2 jar:jar
  I get the same result than with `mvn jar:jar` (compile phase is skipped).
 
 m2 is an old shell script/batchfile that calls mvn underwater.
 
  Did I miss something?
 
 Yes, you missed reading http://maven.apache.org/maven2/ ;) Maven2 is
 totally different from maven1. I suggest you read up on the new
 stuff there.
 
  If I remember, maven 1.0 was more consistent and worked fine out of the
 box.
 
 
 Maven2 is more consistent than maven1, but you're applying maven1
 practises (jar:jar etc) to maven2, which doesn't work as you expect it to
 work - because maven2 is not maven1! :)
 
 Anyway, thanks for making the switch. Once you're a bit more familiar with
 how to work with maven2, I'm sure you'll see it's easier to use than
 maven1!
 
 
 -- Kenney
 
  Thanks.
 
 
  Oscar
 
 
 
  __
  Yahoo! FareChase: Search multiple travel sites in one click.
  http://farechase.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 --
 Kenney Westerhof
 http://www.neonics.com
 GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: Strange M2 behavior

2005-11-05 Thread Oscar Picasso
-- Kenney Westerhof [EMAIL PROTECTED] wrote:

 On Sat, 5 Nov 2005, Oscar Picasso wrote:
...
  Furthermore in any case the resulting jar contains the following:
  META-INF/
  META-INF/MANIFEST.MF
  ...
  META-INF/maven/
  META-INF/maven/org.trial/
  META-INF/maven/org.trial/test/
  META-INF/maven/org.trial/test/pom.xml
  META-INF/maven/org.trial/test/pom.properties
 
  What is the purpose of these pom.xml and pom.properties in the resulting
 jar?
  They contain information about my working directory which is of no use for
 a
  released jar and I even don't see where they come from. They seem to be
  magically generated by maven.
 
 Correct. They are used to track where a pom came from. The pom.xml is the
 original pom, so you could extract it if you just found a single jar
 somewhere, and see what it is. The pom.properties contains information
 like the time the project was built.

Just curious. I have looked at some jar in the maven2 ibiblio repository and
did n't find these pom.xml and pom.properties. Does it mean that the jars where
filtered or that the jars where generated with maven2 ?

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Rsync staged site deploy hangs

2005-02-28 Thread Oscar Picasso
Hi,

Not sure this is a maven specific question.

When I do:
$ maven site:publish

I get:
...
[echo] Executing rsync on stage server to publish to live server
[echo] executable: ssh
and it hangs.

I can do direct deployments without problem to both the stage and publish
sites. 

I tried the -X option and get:
[exec] [DEBUG] Execute:Java13CommandLauncher: Executing 'ssh' with
arguments:
'stage-username@stage-host'
'rsync  -avz stage-directory/*
deploy-username@deploy-host:deploy-directory

I have verified the syntax and parameters of the command and all seems OK.

I have also tried to execute the command directly from the shell and it hangs
too.

Any idea?



__ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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



Xdoc : menu order, arbitrary lists

2005-02-26 Thread Oscar Picasso
Hi,

I have wo questions regarding xdoc.

1- If I use a navigation.xml I always get the following order in my navigation
menu:
- my custom navigation
- the google search form (when search/ is used).
- the auto generated docs for the project.

Is there a way to specify the relative order of these 3 groups of menus?
example:
- my custom navigation.
- auto generated docs.
- google search.

2- In some plugin docs like
http://maven.apache.org/reference/plugins/jxr/changes-report.html I see Legend
entries at the end of the navigation menu, but without links.

How to do this kind of entries and how to put them in an arbitrary position in
the menu?

Thanks.


Oscar



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



RE: Ant build.xml and multiple maven.repo.remote

2005-02-26 Thread Oscar Picasso
--- Arnaud HERITIER [EMAIL PROTECTED] wrote:
[...]
 If you're able to provide a patch it will help us ;-)

I could give it a try.

But could you give some advise in that respect. When working on a plugin, say
ant, if I need to test it against some arbitrary project.

I do something like: 
$ maven plugin:install

And it replace my working ant plugin version with 
maven-ant-plugin-version-SNAPSHOT.jar.

When I switch to other projects I am working on, I currently uninstall the
plugins and resinstall the stable ant plugin.

It's annoying when you go back and forth from plugin development to other
projects that need a stable plgin version.

There must be an easier way.

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Ant build.xml and multiple maven.repo.remote

2005-02-26 Thread Oscar Picasso
--- Arnaud HERITIER [EMAIL PROTECTED] wrote:
[...]
 Finally I'm working on your issue (and some others) ;-)
 Can you open it on Jira please ?
[...]

Done: MPANT-24.

Oscar


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Ant build.xml and multiple maven.repo.remote

2005-02-25 Thread Oscar Picasso
Hi,

I there a mean to create a working build.xml with the ant plugin when our
project uses more than one remote repository?

From what I see, the ant plugin only takes ibiblio into account.

Thanks

Oscar



__ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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



Re: Log4J and JUnit in Maven

2005-02-24 Thread Oscar Picasso
Hi Tood,

Here is what I have done.

I have put log4j.properties in basedir/src/conf/

On project.xml:
...
build
  ...
  sourceDirectorysrc/java/sourceDirectory
  unitTestSourceDirectorysrc/test/unitTestSourceDirectory
  unitTest
  includes
  include**/AllTests.java/include
  /includes
  resources
  ...
  resource
  directorysrc/conf/directory
  includes
  includelog4j.properties/include
  /includes
  /resource
  /resources
  /unitTest
/build
...


That way when running the test, maven copies the log4.properties in the
test-classes directory and you don't have to do anything special with the
classpath.

It works for me.

It does look very different from what you are already doing (with the
difference that you copy your log4j.properties in classes instead of
test-classes, so I don't know why it doesn't work for you?

Oscar

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [FEEDBACK] Cruisecontrol plugin not running

2005-02-23 Thread Oscar Picasso
--- Vincent Massol [EMAIL PROTECTED] wrote:
 I recommend using the CC version from SVN Trunk which I've fixed and that's
 working with CC 2.2.1. Actually I'd love feedback from a CVS user as I've
 tested It only with SVN.

I tried codehaus.org/~vmassol/maven-cruisecontrol-plugin-1.7-SNAPSHOT.jar and
here is some feedback.

Firstly, I don't get the error mentioned in my initial post. Cruise control
happily starts its loop on a cruisecontrol:run.

I had some problems with my particular multi-project setup. It seems that
cruise control is lost with my directory hierarchy.

I will elaborate on this sometimes later.

However to provide you with some feedback on how the plugin works with CVS on a
simpler project setup, I made a very simple project with maven genapp. I
created a couple of dummy classes and test cases, set some properties and POM
elements to useful values and started scm:checkout-project,
cruisecontrol:configure, cruisecontrol:run.

Here is what I found might be of interest:

1 - in log  
[java] [cc]Feb-23 08:20:53 Project   - Project app:  reading settings
from config file [/tmp/app/target/cruisecontrol/config.xml]
[java] [cc]Feb-23 08:20:53 Project   - Project app:  bootstrapping
[java] [cc]Feb-23 08:20:53 Project   - Project app:  checking for
modifications
[java] Cannot access /usr/local/cvs/app/CVSROOT
[java] No such file or directory
[java] [cc]Feb-23 08:20:53 CVS   - problem getting CVSROOT/users;
using empty email map
[java] Cannot access /usr/local/cvs/app/CVSROOT
[java] No such file or directory


comments
 - I have no /usr/local/cvs/app/CVSROOT directory in my cvs installation.
 - The only CVSROOT directory I have is at /usr/local/cvs/CVSROOT.
 - I don't see what CVSROOT/users is supposed to be and how it is supposed to
have been created.
/comments

2 - in log  
[java] [cc]Feb-23 08:21:44 Project   - Project app:  merging
accumulated log files
[java] [cc]Feb-23 08:21:45 Project   - Project app:  build successful
[java] [cc]Feb-23 08:21:45 Project   - Project app:  publishing build
results
[java] [cc]Feb-23 08:21:46 EmailPublisher- error transforming with xslFile
header.xsl
[java] javax.xml.transform.TransformerException:
java.io.FileNotFoundException: file:/tmp/mail1066.html (No such file or
directory)
[java]  at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1043)
[java]  at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:934)
[more...]

comments
 - The above exception is repeated 8 times, each time the appended file number
increased by 1.
 - The files do exist contrary to what the exception suggests. They are however
empty.
/comments


3 - in log  
[java] [cc]Feb-23 08:21:47 EmailPublisher- Sending mail notifications.

comments
I received an email:
 Title: [BUILD] app build.1 Build Successful
 Body: View results here -
http://localhost/cruisecontrol/buildresults/app?log=log20050223082053Lbuild.1

There is nothing at the address above.
I though it had to do with the plugin scp publisher settings and tried to set
some properties but didn't get better results.
It's not clear to me how to use these scp properties.
So I did step 4 below.
/comments

4 
I added to project.properties:
maven.cruisecontrol.scppublisher = true
maven.cruisecontrol.scp.targethost = freedom
maven.cruisecontrol.scp.targetuser = oscar
maven.cruisecontrol.scp.targetlogdir = /var/www/xenata/logs
maven.cruisecontrol.scp.targetstatusfiledir = /var/www/xenata/logs

In the log I got:
[java] [cc]Feb-23 09:35:55 EmailPublisher- Sending mail notifications.
[java] [cc]Feb-23 09:35:56 SCPPublisher  - executing command: scp -S ssh
/tmp/app/target/cruisecontrol/logs/app/og20050223093501Lbuild.1.xml
[EMAIL PROTECTED]:/var/www/xenata/logs/og20050223093501Lbuild.1.xml
[java] [cc]Feb-23 09:35:56 SCPPublisher  - executing command: scp -S ssh
/tmp/app/target/cruisecontrol/logs/app/status.txt
[EMAIL PROTECTED]:/var/www/xenata/logs/status.txt

comment
- the first character of the log file 'l' is omitted i the ssh command so the
file is not copied.
...logs/app/og20050223093501Lbuild.1.xml
^ we should probably have an 'l' here.

- status.txt was successfully copied.

- I received the email:
View results here -
http://localhost/cruisecontrol/buildresults/app?log=log20050223093501Lbuild.1
As before there was nothing at this location.
It is not clear for me, how the log20050223093501Lbuild.1.xml is supposed to be
transformed into a browsable
http://localhost/cruisecontrol/buildresults/app?log=log20050223093501Lbuild.1
location.
Do I need to configure something in cruisecontrol or 

Cruisecontrol plugin not running

2005-02-22 Thread Oscar Picasso
Hi,

I am trying to run the cruisecontrol-1.6 plugin.

I leave all properties to their default values except:
maven.cruisecontrol.checkout.dir = target/checkouts
maven.cruisecontrol.home = /usr/local/cruisecontrol

I cannot make it work.

I do:
maven scm:checkout-project== BUILD SUCCESSFUL
maven cruisecontrol:configure == BUILD SUCCESSFUL


maven cruisecontrol:run ==
build:start:

scm:parse-connection:
[echo] Using connection: scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:db
Using SCM method: cvs
Using CVSROOT: :ext:[EMAIL PROTECTED]:/usr/local/cvs
Using module: db

scm:validate:

cruisecontrol:validate:

cruisecontrol:run:
[...]
[java] [ERROR] Java Result: 1
BUILD SUCCESSFUL


And nothing runs.

Looking at cruisecontrol.log I found two lines of interest:

2005-02-22 07:48:37,020 [main ] WARN  CruiseControlController - No
previously serialized project found: /home/oscar/workspace/db/db
and
2005-02-22 07:48:37,442 [main ] FATAL Main -
HTMLEmailPublisher.xslDir does not exist :
/usr/local/cruisecontrol/reporting/jsp/xsl

I was under the impression that to run a new cruisecontrol installation you
just had to do:
- maven scm:checkout-project
- maven cruisecontrol:configure
- maven cruisecontrol:run

Or are there other things that need to be done either on the cruisecontrol side
or the maven side?

maven-cruisecontrol version: 1.6
cruisecontrol installation versions 2.2.1

Oscar

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



JXR and Javadocs

2005-02-17 Thread Oscar Picasso
Hi,

For my site I generate javadocs for all classes and members in protected scope
and above.

I also use the jxr plugin to generate cross reference of sources for all
classes in package private scope and above. 

The problem is that there are no javadocs for the package private classes but
jxr still creates a link to these javadocs.

How to avoid the creation of links to nonexistent package private javadocs but
still allow the generation of the cross referenced sources themselves.

Thanks

Oscar 



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: Project configuration with 3rd party package dependencies

2005-02-17 Thread Oscar Picasso
I have a related question.

Is it possible to upload a resource to ibiblio even if we are not related to
its development?

For example I use 'some-userful.jar' in an open source project.

The resource 'some-userful.jar' itself is open source but I am not its author.

I would find more convenient to have this jar in a central repository, like
ibiblio.

Oscar



--- Randolph Kahle [EMAIL PROTECTED] wrote:

 I am converting a project to Maven. This project has dependencies on 
 many external libraries (JAR files).
 
 Which is the preferred way to handle these:
 
  * Create a /src/lib area for run-time dependencies
 
  * Move the JAR files into the local repository
 
 Examples of dependencies include Spring, aspectjrt.jar, imap.jar, etc.
 
 I do not that some (most?) of these JAR files does not follow the 
 naming convention that allows for automatic version management.
 
 Regards,
 
 Randy
 
 -- 
 Randolph S. Kahle, 6161 N Canon del Pajaro, Tucson, AZ 85750
 Phone: +1 520 577 7680
 [EMAIL PROTECTED]http://www.variantia.net   Variantia
 

 ATTACHMENT part 2 application/pkcs7-signature name=smime.p7s



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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