Re: convincing Workplace to use Maven

2007-09-30 Thread Tony Ambrozie
This is not a comparison to other options, but from my perspective I would
say standardization of code artifacts and structure, advanced dependency
management, descriptive vs. programmatic builds, enforcement of enterprise
conventions through super pom's, rich plugin ecosystem, project site that
allows open visibility into build and build-related operations (testing
results, code coverage, code quality, etc), integration into enterprise
build and deployment tools.

Tony


On 9/30/07, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> hello all,
>   i am a big fan of maven (i have been using it since approx 3 years..)..
> and i'd like to use it @ my work,
> where we are still using ant and coding most of the tasks manually..
> but i'd need good arguments, as now many IDEs( especially IntelliJ) offer
> lot of capabilities such
> as code coverage, identifying code smells etc
> so, i'd need good arguments for pushing for Maven2 @work
>
> can anyone help me out?
>
> thanks and regards
>


Re: Pass params from command line to Junit test

2007-03-18 Thread Tony Ambrozie

You may want to have a look at maven-surefire-plugin:
http://maven.apache.org/plugins/maven-surefire-plugin/index.html

You can also pass the desired string as a system property in the cmd line,
and your test class can retrieve it in setUp.


On 3/16/07, lanchez <[EMAIL PROTECTED]> wrote:



How would I run maven to execute all tests (JUnit) in a specific class and
pass params to it on the command line?  I just need to pass a string on
the
command line like:

mvn (options to run class) (string)
--
View this message in context:
http://www.nabble.com/Pass-params-from-command-line-to-Junit-test-tf3416833s177.html#a9522483
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: [ANN] jaxws-maven-plugin relocation

2007-03-18 Thread Tony Ambrozie

+1

On 3/18/07, Dan Tran <[EMAIL PROTECTED]> wrote:


Per agreement between org.codehaus.mojo and jax*-ws-commons.dev.java.net*
jaxws-maven-plugin has been transferred to
https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/

and version 1.0 is officially released.

-Dan



Re: Plugin does not exist or no valid version could be found

2007-03-02 Thread Tony Ambrozie

If the proxy requires authentication, you will need to add:

   your_username
   your_password

to your proxy settings.

Thanks'

On 3/2/07, Thorsten Elfert <[EMAIL PROTECTED]> wrote:



Hi,

it's the first time I'd like to use Maven. However, I am already
struggling just by using it...

I need to use maven for installation of a framework called AppFuse.
As described by the AppFuse Installation Guideline (
http://www.appfuse.org/display/APF/AppFuse+QuickStart) I tried to setup
the framework by using maven in the following way:

*mvn archetype:create 
-DarchetypeGroupId=org.appfuse-DarchetypeArtifactId=appfuse-modular-spring 
-DremoteRepositories=
**http://static.appfuse.org/repository*
* -DarchetypeVersion=2.0-m4-SNAPSHOT 
-DgroupId=com.mycompany-DartifactId=myproject
*

After execution I received the following error-message:



[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found
[INFO]




Since I am behind a proxy I added the proxy in setting.xml like this:

   
  true
  http
  myproxy.com
  1234



However, I am still getting the same error.
The version of Maven I use is 2.0.5.

Thanks in advance for any help on that!


Thorsten




--

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



Re: [ANN] First release of Patchwork coverage maven plugin

2007-02-24 Thread Tony Ambrozie

Arnaud, thanks for sharing this.  To better support the community and its
feedback, I would recommend that you provide a project mailing list/forum
and a bug reporting facility.

As an note, I tried the mvn plugin and I got a "
java.lang.ClassNotFoundException: oqube.jhighlight.scala.ScalaXhtmlRenderer"
and multiple "Unknown attirbute oqube.bytes.attributes.SyntheticAttribute".


Thank you,


On 2/23/07, Arnaud Bailly <[EMAIL PROTECTED]> wrote:


Hi to all,
Following some discussions on the agile-testing mailing list, I
revived an old project of mine named Patchwork, that aims to provide a
general purpose and extensible code coverage framework. In the spirit
of "release early, release often", I just released first public
version of this tool, numbered 1 (no dots). It is currently available
at:

http://www.oqube.com/projects/patchwork/index.html

This first version has the following features:
- compute all-nodes, all-edges or both coverage metrics from the
control flow graph of Java bytecode, with percentage and source
colorizing to show executed lines,
- provide CLI and maven 2 plugin interfaces,
- provide a small GUI utility for visualizing control flow graph and
data-flow graphs of bytecode.

Known limitations are:
- reports are ugly,
- Due to http://jira.codehaus.org/browse/SUREFIRE-141, the maven plugin
   still needs to execute twice the tests,
- does not yet work on itself,
- alpha development stage,
- probably tons of subtle bugs.

It is different from other tools in the way it computes coverage and
provide somewhat finer grained measures than at least cobertura.

I would welcome feedback, advices, kind comments and of course any
help.
--
OQube < software engineering \ génie logiciel >
Arnaud Bailly, Dr.
\web> http://www.oqube.com


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




Re: Mojos in languages other than Java

2007-02-24 Thread Tony Ambrozie

On 2/24/07, Martin Gilday <[EMAIL PROTECTED]> wrote:


Thanks for the pointers.  There doesn't seem to be any instructions with
the groovy-maven-plugin as there are with the jruby one.



Any chances you may formalize your findings in a similar fashion with the
ruby doc :-)  I, for one, would find it useful...

Looking in the

source of it there does not appear to be an equivalent of RubyMojo.  I
might take this to the mojo mailing list.

Thanks again,
Martin.


- Original message -
From: "Jason van Zyl" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Sat, 24 Feb 2007 12:44:53 -0500
Subject: Re: Mojos in languages other than Java


On 24 Feb 07, at 12:16 PM 24 Feb 07, Eric Redmond wrote:

> Follow the same guildlines, just with the Groovy projects instead:
>

I'm not sure anyone has actually used the Groovy Component Factory in
Plexus. I think Jeff Genender made another infrastructure for writing
Groovy plugins. I know Plexus components can be written in Groovy,
not sure if anyone has tried the native plexus way for actually
writing Mojos.

jason.

> http://mojo.codehaus.org/jruby-maven-plugin/howto.html
>
> Eric
>
> On 2/24/07, Martin Gilday <[EMAIL PROTECTED]> wrote:
>>
>> Managed to get it working.  Had to change packaging from maven-plugin
>> back to jar, so I can now write my own plugin.xml.
>> Still not ideal as lose the benefit of it being generated from
>> annotations.  So if any one has a way of doing that it would be
>> apprecitated.
>>
>> Thanks,
>> Martin.
>>
>>
>> - Original message -
>> From: "Martin Gilday" <[EMAIL PROTECTED]>
>> To: users@maven.apache.org
>> Date: Sat, 24 Feb 2007 15:35:30 +
>> Subject: Mojos in languages other than Java
>>
>> Hi,
>>
>> I am trying to write a mojo in Groovy.  According to the mojo api
>> docs
>> [1] this should be possible (it only meantions BeanShell explicitly).
>> However when I package my mojo the resulting plugin.xml is incorrect
>> showing now mojos.  Consequently when I try and run the plugin a
>> NullPointer is thrown.  I have tried writing my own plugin.xml and
>> manually placing it in src/main/resources/META-INF/maven/ but when
>> package is run it os overridden by the Maven generated one.  I am
>> assuming Maven reads the annotations from *.java source files and
>> ignoring my *.groovy files (which I am compiling down to *.class
>> before
>> packaging).
>>
>> Has anyone written a mojo in a language other than Java, or is
>> there any
>> documentation on doing so?
>>
>> Thanks,
>> Martin.
>>
>> [1]http://maven.apache.org/developers/mojo-api-specification.html
>>
>> -
>> 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]
>>
>>
>
>
> --
> Eric Redmond
> http://codehaus.org/~eredmond


-
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: unused dependencies

2007-02-21 Thread Tony Ambrozie

I believe the correct locations are:

https://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-dependency-analyzer-plugin/

and

https://svn.apache.org/repos/asf/maven/sandbox/trunk/shared/maven-dependency-analyzer/

Thanks'


On 2/21/07, Mark Hobson <[EMAIL PROTECTED]> wrote:


On 21/02/07, Rodrigo Gonçalves <[EMAIL PROTECTED]> wrote:
> hi !
>
> i'm migrating a big project from ant to maven2, i'm using maven 2.0.5.
> i wrote the pom.xml with the dependencies that we had on our lib
> directory, but i know that some of the dependencies are no longer being
> used,  would like to know if there is a way to check automatically what
> are the unused dependencies.

There's dependency-analyzer:analyze in the sandbox:


https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-dependency-analyzer-plugin/

which can provide this information.  It requires:


https://svn.apache.org/repos/asf/maven/sandbox/shared/maven-dependency-analyzer/



  You'll have to build from source, but it's pretty easy to do.



Mark

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




Re: maven 2 and ear creation problem

2007-02-18 Thread Tony Ambrozie

Can you post the relevant section of the mvn output?  You may want to enable
stacktraces (mvn ...-X...)

Thanks

On 2/18/07, xyz <[EMAIL PROTECTED]> wrote:



Hi all,

We are using maven 2.0.4 and when we build the ear file with the pom.xml,
we
get a null pointer exception. Can some one please tell us possible causes
for this or possible areas where we need to look for solving this issue.
We
are using maven ear plugin to build the ear.

Thanks
--
View this message in context:
http://www.nabble.com/maven-2-and-ear-creation-problem-tf3250557s177.html#a9036137
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: Built-On date for my manifest

2007-02-18 Thread Tony Ambrozie

You could try to use the buildnumber plugin:
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

Thanks'


On 2/18/07, Brandon Goodin <[EMAIL PROTECTED]> wrote:


I want to get the current date/time to add to my manifest file. Is there a
simple property i can use to retrieve the current date/time. I'm sorry if
this is a dumb question. But, i searched the list archives and googled. I
came up empty.


...
  
... need date here... 
  
...


Thanks
Brandon



Re: Can I get a timestamp?

2007-02-06 Thread Tony Ambrozie

I am using the buildnumber plugin successfully to tag my assembly releases
with a timestamp (for example, for assembly,  ${
project.artifactId}-${project.version}-r${buildNumber}), just as
Greg suggested.  Need to make sure to invoke the plugin create goal, for
example mvn buildnumber:create assembly:assembly.

Thanks'

On 2/6/07, Greg Jones <[EMAIL PROTECTED]> wrote:


Kim,

You can use the maven-buildnumber-plugin to get a timestamp, as follows:

  
org.codehaus.mojo
maven-buildnumber-plugin
0.9.4

  {0,date,-MM-dd HH:mm:ss}
  
timestamp
  
  false
  false


  
validate

  create

  

  

The timestamp is put into the ${buildNumber} property. You can also adjust
the format of the timestamp to suit your requirements. Take a look at
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.htmlfor
information on how it works.

Regards,

Greg J.

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 February 2007 11:03 AM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

The plug-in will allow you to use timestamp tagging to tag your builds. I
am
sorry but I don't think you can access the timestamp property directly in
the pom itself. Why do you need to do that anyway?

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp} after
adding that snippet to my pom, but it was empty.  What am I missing?

Thanks,
Jim

-Original Message-
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:


org.apache.maven.plugins
maven-scm-plugin

true
build
MMddHHmm



-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

-
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]


-
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: Plugin to create source distribution?

2007-01-30 Thread Tony Ambrozie

Have you tried the assembly plugin (maven-assembly-plugin, version 2.2 or
2.2-SNAPSHOT if you want whole project functionality)?

On 1/30/07, Phillip Rhodes <[EMAIL PROTECTED]> wrote:



I would like to create a distribution of my project.  I would like the
distribution to include sources, maven files, etc...  Extra credit for
zip and gz support!

Can someone point me to a plugin that would come close to this
functionality?

Thanks!
Phillip


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




Re: Can't find artifact when building offline

2007-01-29 Thread Tony Ambrozie

What version of surefire are you specifying in your pom?  Do you specify
one?  Not sure what the issue is as I cannot replicate it, I can only
suspect that some dependency/plugin looks for the latest release and finds a
pom with this name somewhere, but no associated jar. You may want to specify
version 2.2 it works for me...

On 1/29/07, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) <
[EMAIL PROTECTED]> wrote:


Hi, all.

I'm trying to do an offline build.  I've done a successful build and
have
a local repository.  Now, when I run the same build again with the
-o (for offline) option, using that same local repository, I get the
message
that an artifact could not be resolved.

The message is for
GroupId: org.apache.maven.surefire
ArtifactId: surefile
Version: 2.3-20070114.205105-2

I have searched every pom file in the local repository and can find no
reference to any -2 version of a build done on 20070114.  There are
lots of 20070114.205105-1 files and references existing, but no
references
and no files with -2.  I think the -2 is a typo in some Maven file
somewhere,
but where?  Has anyone any suggestion where else to look?

BTW I've also tried -o -npu for options, with the same result.

thanks,

--Marilyn Sander

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




Re: M2 dashboard plug-in found

2007-01-29 Thread Tony Ambrozie

I have been using dashboard for mvn 2 for a couple of weeks to aggregate
Cobertura/Surefire/Checkstyle/PMD/CPD Reports without having to build and
install it manually (limits the distributability of pom), here is my pom
entry (very last report plugin in the pom):

[]
 
   org.codehaus.mojo
   dashboard-maven-plugin
   1.0-SNAPSHOT
 
  
 


You will need to include the codehaus snapshots repository in your specific
section in the pom:
   []
   
 codehaus.snapshots
 Codehaus Maven Snapshot Repository
 http://snapshots.repository.codehaus.org/
 
   true
 
   
   [...]

Hope this helps.


On 1/29/07, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>
wrote:


I just need to check out all the code from this URL and run mvn install?

-Original Message-
From: Srilakshmanan, Lakshman [mailto:
[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 7:29 PM
To: Morgovsky, Alexander (US - Glen Mills)
Cc: users@maven.apache.org
Subject: RE: M2 dashboard plug-in found

Hi Alexander,

This plugin has not been released yet, so you cannot put it in your POM
and expect it be downloaded :(

You need to checkout the plugin and build it. It is quite easy to build.
It builds just like any other plugins. I downloaded it from

https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/dashboard-maven-plugin/

Once you have built it, you may install it in your repository.

The snippet from my POM is as follows

  
  org.codehaus.mojo
  dashboard-maven-plugin
  1.0-SNAPSHOT
  

Thanks
Lakshman

From: Morgovsky, Alexander (US - Glen Mills) [mailto:
[EMAIL PROTECTED]
Sent: Tuesday, 30 January 2007 10:00 AM
To: Srilakshmanan, Lakshman
Cc: users@maven.apache.org
Subject: RE: M2 dashboard plug-in found

I put the plug-in into my master POM, but the plug-in could not be
downloaded. I tried manually installing to our repository, but no success.
Could you please post a basic POM which fully shows how to properly declare
the Codehaus repository and use this plugin? Thanks.

This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and is protected by law. If
you are not the intended recipient, you should delete this message.
Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]


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




Re: clover report not generated

2007-01-17 Thread Tony Ambrozie

David, this seems to be working for me:

 
.
 
   org.apache.maven.plugins
   maven-clover-plugin
   2.3
   
 50%
   
   
 
   verify
   verify
   
 instrument
 check
   
 
 
   pre-site
   pre-site
   
 instrument
   
 
   
 
   

 

Tony

On 1/17/07, c_inconnu2 <[EMAIL PROTECTED]> wrote:


Hi,

I saw this question many times in the forum, but couldn't found an
answer. I followed the tutorial and got in my parent project pom :



...

org.apache.maven.plugins
maven-clover-plugin

...





...

org.apache.maven.plugins
maven-clover-plugin

1.5

**/*AllTests.java
**/*Main.java
**/*Test.java




pre-site

instrument




...



I always have :
[INFO] [site:site]
[WARNING] No Clover database found, skipping report generation

but if i use "clover:instrument clover:clover" that works...

is this plugin broken or what ? it's driving me crazy !!! Thanks

David


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