You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Russell <ch...@oracle.com> on 2007/07/20 20:29:47 UTC
Running Maven commands with CRON
Hello,
I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh
/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site
This runs fine when I run it from the command line. But when CRON runs
it I get:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [site:site]
[INFO]
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot execute mojo: site. It requires a project with an existing
pom.xml, but the build is not using one.
It seems when running from CRON Maven can't find the pom file.
Is there a way to specify the location of the top level pom via that
command line?
Thanks in advance,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Maven repository metadata
Posted by Dmitry <dm...@hotmail.com>.
I've got a quick question about repository metadata. If you take a look at
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
it has all of the versioning information, which makes sense, but it also has
a version tag with a version that's neither the oldest nor the most recent.
How does this tag get populated and what is it used for? It seems like this
tag shouldn't even be there... Are there metadata files that are only
associated with a particular version?
thanks,
Dmitry
www.ejinz.com search biz
----- Original Message -----
From: "Chris Russell" <ch...@oracle.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Friday, July 20, 2007 1:29 PM
Subject: Running Maven commands with CRON
> Hello,
>
> I'm trying to run the following script with CRON:
> # set up some environment vars to make things more readable
> . /home/maven/metalink3/setupVars.sh
>
> /u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site
>
> This runs fine when I run it from the command line. But when CRON runs it
> I get:
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'site'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] task-segment: [site:site]
> [INFO] ----------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Cannot execute mojo: site. It requires a project with an existing
> pom.xml, but the build is not using one.
>
> It seems when running from CRON Maven can't find the pom file.
>
> Is there a way to specify the location of the top level pom via that
> command line?
>
> Thanks in advance,
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Maven repository metadata
Posted by Dmitry <dm...@hotmail.com>.
I've got a quick question about repository metadata. If you take a look at
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
it has all of the versioning information, which makes sense, but it also has
a version tag with a version that's neither the oldest nor the most recent.
How does this tag get populated and what is it used for? It seems like this
tag shouldn't even be there... Are there metadata files that are only
associated with a particular version?
thanks,
DT,
www.ejinz.com
Search engine news , tech
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Writing portable CVS configuration using Maven 2
Posted by Martin Hoeller <ma...@xss.co.at>.
Hi!
First, please stop hijacking somebody else's thread by replying to a mail
and changing the subject! If you want to start a new topic, write a new
email and DO NOT reply to another thread. Thanks!
Second, why do you repost somebody's questions answered months ago?
Jerome Thibaud posted exactly the same question on 2007-04-25 with almost
the same subject: "Writing a portable CVS configuration using maven2". This
question was perfectly answered by Emmanuel Venisse. (see
http://mail-archives.apache.org/mod_mbox/maven-users/200704.mbox/%3cf694a7cc0704241639i106c91d6u5b743e0cf72d8aa7@mail.gmail.com%3e)
regards,
- martin
--
Martin Höller | martin.hoeller@xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
Writing portable CVS configuration using Maven 2
Posted by Dmitry <dm...@hotmail.com>.
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:user@...:/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,
DT
www.ejinz.com
Search Engine News Economy Tech
www.ejinz.com/YourHome
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running Maven commands with CRON
Posted by Mike Ward <md...@comcast.net>.
Chris: I just had the same problem earlier today outside of CRON.
Try executing the command from within the directory that contains the POM.
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh
HERE=`pwd`
cd /Location/of/the/POM
${M2_HOME}/bin/mvn site:site
cd $HERE
#
/Shud werk.
Mike
/
Sommers, Elizabeth wrote:
> You might do better using a good CI tool like Vulcan. I am not saying you can't do this with cron, but there are tools around that do just this.
> http://code.google.com/p/vulcan/
>
> Liz Sommers
> sommerse@pragmatics.com
>
>
> -----Original Message-----
> From: Chris Russell [mailto:chris.russell@oracle.com]
> Sent: Friday, July 20, 2007 2:30 PM
> To: Maven Users List
> Subject: Running Maven commands with CRON
>
>
> Hello,
>
> I'm trying to run the following script with CRON:
> # set up some environment vars to make things more readable
> . /home/maven/metalink3/setupVars.sh
>
> /u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site
>
> This runs fine when I run it from the command line. But when CRON runs
> it I get:
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'site'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] task-segment: [site:site]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot execute mojo: site. It requires a project with an existing
> pom.xml, but the build is not using one.
>
> It seems when running from CRON Maven can't find the pom file.
>
> Is there a way to specify the location of the top level pom via that
> command line?
>
> Thanks in advance,
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: Running Maven commands with CRON
Posted by "Sommers, Elizabeth" <So...@Pragmatics.com>.
You might do better using a good CI tool like Vulcan. I am not saying you can't do this with cron, but there are tools around that do just this.
http://code.google.com/p/vulcan/
Liz Sommers
sommerse@pragmatics.com
-----Original Message-----
From: Chris Russell [mailto:chris.russell@oracle.com]
Sent: Friday, July 20, 2007 2:30 PM
To: Maven Users List
Subject: Running Maven commands with CRON
Hello,
I'm trying to run the following script with CRON:
# set up some environment vars to make things more readable
. /home/maven/metalink3/setupVars.sh
/u02/webapps/orihttp/apache/maven-2.0.4/bin/mvn site:site
This runs fine when I run it from the command line. But when CRON runs
it I get:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [site:site]
[INFO]
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot execute mojo: site. It requires a project with an existing
pom.xml, but the build is not using one.
It seems when running from CRON Maven can't find the pom file.
Is there a way to specify the location of the top level pom via that
command line?
Thanks in advance,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org