Re: out put from POM

2008-04-06 Thread Aleksander Valtyshev
Some debug information(like whether particular phases are executed or  
not), I've noticed one of the plugins uses , but I just  
need something like .

I'm having slight problems learning maven...
On 7 Apr 2008, at 07:52, Wayne Fay wrote:

I suppose you could do something with Antrun or a custom plugin, but  
I really have to ask, what "arbitrary text" exactly are you looking  
to output to CLI, and for what reason?


Wayne

On 4/6/08, Aleksander Valtyshev <[EMAIL PROTECTED]> wrote:

Hello,
How do I output arbitrary text to CLI from POM, like [INFO] and  
stuff?


Regards,
Alex

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




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




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



Re: [2.0.9 RC8] Release Candidate testing

2008-04-06 Thread Erez Nahir
Just additinal confirmation - 2.0.9-RC7 works fine for our team.

Erez.

On Fri, Apr 4, 2008 at 1:46 AM, Kaizer H. Sogiawala <[EMAIL PROTECTED]>
wrote:

> +1
>
> I can confirm that the issue
> (http://jira.codehaus.org/browse/MNG-3498) is resolved in RC8. My
> projects are building fine. Thanks!
>
> On Thu, Apr 3, 2008 at 12:51 PM, Brian E. Fox <[EMAIL PROTECTED]>
> wrote:
> > RC8 posted to solve this regression.
> >
> > http://people.apache.org/~brianf/staging-repository/org/apache/maven/apa
> >  che-maven/
> >
> >
> > -Original Message-
> >  From: Kaizer H. Sogiawala [mailto:[EMAIL PROTECTED]
> >
> >
> > Sent: Thursday, April 03, 2008 2:51 PM
> >  To: Maven Users List
> >  Subject: Re: [2.0.9 RC7] Release Candidate testing
> >
> >  I debugged through the source and can confirm
> >  "${basedir}" is the issue.
> >
> >  On Thu, Apr 3, 2008 at 8:42 AM, John Casey <[EMAIL PROTECTED]>
> >  wrote:
> >  > FWIW, using:
> >  >
> >  >  
> >  >   ${basedir}
> >  >  
> >  >
> >  >  will express this error. See
> http://jira.codehaus.org/browse/MNG-3498
> >  >
> >  >  I have the fix, just need to get it cleaned up and committed.
> >  >
> >  >  -john
> >  >
> >  >
> >  >
> >  >  On Apr 3, 2008, at 11:23 AM, Brett Porter wrote:
> >  >
> >  >
> >  > > -1 could be empty string, and there were some hacks in the project
> >  > > builder that set expressions to that. I know that the path
> >  translator
> >  > > was effected by interpolation changes, even though indirectly,
> >  because
> >  > > the values got interpolated after instead of before.
> >  > >
> >  > > I'd look at those changes - though a POM that reproduces it is
> >  > > probably necessary to do so.
> >  > >
> >  > > - Brett
> >  > >
> >  > > On 04/04/2008, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> >  > >
> >  > > > Do you have a way to reproduce this? The DefaultPathTranslator
> >  class
> >  > > >  hasn't changed since 2.0.6 so it must be a higher level change
> >  we're
> >  > > >  looking for.
> >  > > >
> >  > > >
> >  > > >  -Original Message-
> >  > > >  From: Kaizer H. Sogiawala [mailto:[EMAIL PROTECTED]
> >  > > >  Sent: Thursday, April 03, 2008 12:49 AM
> >  > > >  To: Maven Users List
> >  > > >
> >  > > > Subject: Re: [2.0.9 RC7] Release Candidate testing
> >  > > >
> >  > > >  I am getting a strange behavior with apache-maven-2.0.9-RC* (all
> >  RC)
> >  > > >  builds. Here is what I see-
> >  > > >
> >  > > >  --- SNIP ---
> >  > > >  + Error stacktraces are turned on.
> >  > > >  Maven version: 2.0.9-RC7
> >  > > >  Java version: 1.5.0_12
> >  > > >  OS name: "windows xp" version: "5.1" arch: "x86" Family:
> >  "windows"
> >  > > >  [DEBUG] Building Maven user-level plugin registry from:
> >  'C:\Documents
> >  > > >  and Settings\blip\.m2\plugin-registry.xml'
> >  > > >  [DEBUG] Building Maven global-level plugin registry from:
> >  'C:\Program
> >  > > >  Files\maven\bin\..\conf\plugin-registry.xml'
> >  > > >  [INFO] Scanning for projects...
> >  > > >  :
> >  > > >  : *blip blip*
> >  > > >  :
> >  > > >  [INFO]
> >  > > >
> >  >
> >
>  
> >  > > >  [ERROR] FATAL ERROR
> >  > > >  [INFO]
> >  > > >
> >  >
> >
>  
> >  > > >  [INFO] String index out of range: -1
> >  > > >  [INFO]
> >  > > >
> >  >
> >
>  
> >  > > >  [DEBUG] Trace
> >  > > >  java.lang.StringIndexOutOfBoundsException: String index out of
> >  range:
> >  > -1
> >  > > >at java.lang.String.substring(String.java:1768)
> >  > > >at java.lang.String.substring(String.java:1735)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.path.DefaultPathTranslator.stripBasedirToken(De
> >  > > >  faultPathTranslator.java:101)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.path.DefaultPathTranslator.alignToBaseDirectory
> >  > > >  (DefaultPathTranslator.java:82)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(
> >  > > >  DefaultMavenProjectBuilder.java:992)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Defaul
> >  > > >  tMavenProjectBuilder.java:867)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI
> >  > > >  nternal(DefaultMavenProjectBuilder.java:495)
> >  > > >at
> >  > > >
> >  >
> >
>  org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr
> >  > > >  ojectBuilder.java:198)
> >  > > >at
> >  > > >  org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
> >  > > >at
> >  > > >
> >  org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
> >  > > >at
> >  > > >  org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365

Re: A simple maven plugin for glassfish

2008-04-06 Thread Wayne Fay
I haven't given it a try yet, but I'm sure I will soon.

You should also "advertise" your new plugin on the Glassfish Users
list. I'm sure you'd find some new users there too. And in the future,
you should probably put [ANN] in the subject for emails like this (to
any list).

Wayne

On 4/5/08, Paul Merlin <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I just released the 0.1 of asadmin-maven-plugin. It's a simple plugin that
> wrap the glassfish asadmin command.
>
> There's startup instruction and documentation there :
> http://code.google.com/p/asadmin-maven-plugin/
>
> I'm using it daily on *nixes, never tried it on windows but it should work.
>
> Tell me what you think.
>
> Paul
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Calling an M2 execution as a goal

2008-04-06 Thread Wayne Fay
Put the plugin declaration in a profile and specify it with -P at the
command line.

Wayne

On 4/5/08, thuss2 <[EMAIL PROTECTED]> wrote:
>
> I have the sql-maven-plugin configured and working but one of the executions
> in there should not run unless explicitly called, namely the one that drops
> and recreates the databases. My question is, how do I call that execution
> from the command line, or even better, how do I assign a goal name to it
> such as "mvn db-create"?
>
> 
> 
> org.codehaus.mojo
> sql-maven-plugin
> 
> 
> db-create
> 
> execute
> 
> 
> 
> database/createdb.sql
> 
> 
> 
>
>
> --
> View this message in context:
> http://www.nabble.com/Calling-an-M2-execution-as-a-goal-tp16518534s177p16518534.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Multiple Executions with Hibernate3 Plugin

2008-04-06 Thread Wayne Fay
The best way to handle this is with multiple profiles. Then you activate one 
with -Pprofilename eg -Pdbupdate. You could either include the full plugin 
config in the plugin or just a property value, whatever makes the most sense.

Wayne

On 4/4/08, Alan Gutierrez <[EMAIL PROTECTED]> wrote:
> I have the maven plugin working with the following code.
> 
> 
> org.codehaus.mojo
> hibernate3-maven-plugin
> 2.0-alpha-2
> 
>  
> mysql
> mysql-connector-java
> 5.1.3
>  
> 
> 
> 
> 
> process-resources
> 
> hbm2ddl
> 
> 
> 
> 
> false
> 
> true
> true
> true
> schema.sql
> 
> 
> 
> 
> The executions section I've just added, but I'm not sure how to get
> to where I want to go.
> 
> What I want is the ability to run this plugin with the update
> feature on, so that I can update the databases easily, when I'm in
> development mode.
> 
> What XML do I add to create a new separate goal? I supposed I could
> toggle update using a commandline parameter, but I'm wondering, what
> are the ways to create a different configuration for a plugin? For
> the antrun plugin to be useful, it seems like you should be able to
> specify many different task configurations.
> 
> Alan Gutierrez
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: out put from POM

2008-04-06 Thread Wayne Fay
I suppose you could do something with Antrun or a custom plugin, but I really 
have to ask, what "arbitrary text" exactly are you looking to output to CLI, 
and for what reason?

Wayne

On 4/6/08, Aleksander Valtyshev <[EMAIL PROTECTED]> wrote:
> Hello,
> How do I output arbitrary text to CLI from POM, like [INFO] and stuff?
> 
> Regards,
> Alex
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Goals, Profile and Phases

2008-04-06 Thread Aleksander Valtyshev

Hi!
Suppose I have this in POM file


tomcat


integration-test


maven-antrun-plugin


integration-test






arg2="${webapps.dir}">



dir="target/${project.build.finalName}">



name="reload" classname="org.apache.catalina.ant.ReloadTask">
password="${tomcat.manager.password}">






run





com.imcode.ant.tasks
imcode-ant-tasksartifactId>

1.3


ant-contrib
ant-contrib
20020829


tomcat
catalina-ant
5.5.12








How do I run it?
"mvn integration-test -P tomcat" ?

Regards,
Alex



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



out put from POM

2008-04-06 Thread Aleksander Valtyshev

Hello,
How do I output arbitrary text to CLI from POM, like [INFO] and stuff?

Regards,
Alex

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



wrong status for removed file in cvs with scm

2008-04-06 Thread Benoit Decherf

scm status doesn't detect removed files in cvs :
It only says : "[INFO] Unknown file status: 'R'."

I can see that for the status the problem comes from CvsStatusConsumer :
   else if ( statusString.equals( "D" ) )
   {  
   status = ScmFileStatus.DELETED;


For removed files, the status is 'R', not 'D'.


scm checkin also doesn't commit removed files. This is probably a bug in 
cvslib because it works using cvs_native


Benoit


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



Mojo FitNesse Plugin 1.0 Released

2008-04-06 Thread Philippe Kernevez
The FitNesse plugin team is pleased to announce the first release (1.0) of
its plugin.

 

This plugin is used to call FitNesse from your maven build and aggregates
FitNesse results to your project site.

 

HYPERLINK
"http://mojo.codehaus.org/fitnesse-maven-plugin/"http://mojo.codehaus.org/fi
tnesse-maven-plugin/ 

 

You can run mvn -up to get the latest version of the plugin, or specify the
version in your project's plugin configuration:


org.codehaus.mojo
fitnesse-maven-plugin
1.0


 

Enjoy,

The FitNesse and Mojo teams


Ce message Envoi est certifié sans virus connu (AVG Pro).
Analyse effectuée par AVG.
Version: 7.5.519 / Base de données virus: 269.22.7/1361 - Date: 05/04/2008
07:53
 


pom descriptor in target directory??

2008-04-06 Thread oliver.maven
hi,all friends

i am studying maven2 recentlly,i found that there are many directories in 
appfuse's target directories,like appfuse-data,appfuse-service,each directory 
contains one pom descriptor,i want know
what do these poms used for??i think they are used for combine some other 
modules when doing pacakaging,am i right?any help is appreciate!




oliver.lee
2008-04-06