Re: Code coverage with AspectJ?

2007-03-09 Thread Kaare Nilsen

On 09/03/07, Vincent Massol <[EMAIL PROTECTED]> wrote:


On Mar 9, 2007, at 2:16 PM, Steve Shucker wrote:

> I don't think AspectJ and Clover are compatible.

Hmmm they might be if you run them in the right order. Run Clover
first on sources and then AspectJ on either generated sources or on
the JAR. This should work I think, although I don't recall having
tried this.


Don't think it is possible even if you run aspectJ on the generated
source. All the references I am able to find on the net says it's not
possible, and this is also my own experience



-Vincent


> We use Cobertura instead.  The coverage report isn't as nice, but
> it is functional.  For maven1, there's also an emma plugin.
>
> -Steve
>
> Michael Waluk wrote:
>> Hi,
>>
>> I can't find much else regarding using AspectJ with Clover.  Were
>> you able
>> to get it working with an example AspectJ project?
>>
>> Has anyone been successful with this yet?  We have it to the point
>> where we
>> are getting 0% coverage for some reason, but I haven't spent much
>> time on
>> it.  I'd bother if there were some success stories out there.
>>
>> Thanks for any info,
>> Michael
>>
>>
>> On 7/26/06, Vincent Massol <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>> > -Original Message-
>>> > From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
>>> > Sent: mercredi 26 juillet 2006 19:53
>>> > To: Maven Users List
>>> > Subject: Re: Code coverage with AspectJ?
>>> >
>>> > On 26/07/06, Jason Chaffee <[EMAIL PROTECTED]> wrote:
>>> > > I use cobetura and load-time weaving during unit-tests to do
>>> this.  To
>>> > use load-time weaving you must fork at least once and provide the
>>> > javaagent as an 
>>> > >
>>> > > -Original Message-
>>> > > From: Vincent Massol [mailto:[EMAIL PROTECTED]
>>> > > Sent: Wednesday, July 26, 2006 8:42 AM
>>> > > To: 'Maven Users List'
>>> > > Subject: RE: Code coverage with AspectJ?
>>> > >
>>> > >
>>> > >
>>> > > > -Original Message-
>>> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>>> Behalf Of
>>> > Carlos
>>> > > > Sanchez
>>> > > > Sent: mercredi 26 juillet 2006 17:29
>>> > > > To: Maven Users List
>>> > > > Subject: Re: Code coverage with AspectJ?
>>> > > >
>>> > > > On 7/26/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>>> > > > > Does anyone know how to generate a code coverage report
>>> when using
>>> > > > > AspectJ in a project?
>>> > > > >
>>> > > > > The Clover plugin wants to rewrite and recompile the
>>> code, which
>>> > > > > probably won't play well with all things aspect.
>>> > > >
>>> > > > seems not possible:
>>> > > >
>>> > > > [quote]
>>> > > > Indeed running AspectJ AFTER Clover works. I'm using that
>>> for now,
>>> so
>>> > > > that I at least have SOME Clover data.
>>> > > > The thing I would like though, is to run AspectJ BEFORE
>>> Clover runs,
>>> > > > so I also have Clover data on the AspectJ-sources!
>>> > > > As I see it, there are 2 ways to do this:
>>> > > >
>>> > > > 1) AspectJ weaves his new files and writes them out as
>>> sources so
>>> > > > Clover can work on them. The problem here will be that
>>> > > > Clover can't show the reports on AspectJ-files, but rather
>>> on the
>>> > > > weaved files.
>>> > >
>>> > > Why not? If you point the Clover plugin to the generated
>>> sources it
>>> > should
>>> > > work fine, no? I guess I'd need to try it.
>>> > >
>>> > > > It's a solution, but what would be really great
>>> > > > is:
>>> > > > 2) Clover examines the AspectJ sources and adds his
>>> statements to
>>> > > > those files. Then AspectJ can do his normal thing and
>>> > > > Clover's reports should show the coverage in the correct
>>> files and
>>> > > > calculate the EXACT amount of times the statements have
>>> > > > been called.
>>> > >
>>> > > I don't understand this solution. Is clover running before
>>> aspectj in
>>> > this
>>> > > case? If so then we're back to the first solution above, no?
>>> > >
>>> > > > Unfortunately I already heard from Cenqua that atm Clover
>>> doesn't
>>> know
>>> > > > how to handle AspectJ sources... So I think that the
>>> > > > plugin will have the same problems...
>>> > >
>>> > > Ah maybe there's some issue. If someone could show me a very
>>> simple
>>> > aspectj
>>> > > project (one simple class, one aspect, one test and a POM
>>> using the
>>> > aspectj
>>> > > plugin) then I could add it to the clover plugin's test suite
>>> and try
>>> it
>>> > > out.
>>> >
>>> > You will find some here :
>>> > http://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-
>>> > plugin/src/test/projects/
>>> >
>>> > But as Carlos mentioned. Clover and aspectJ is not really
>>> compatible
>>>
>>> Thanks for the link. Could you elaborate just a little more about
>>> the
>>> incompatibility before I spend too much time looking into it? :-)
>>>
>>> Thanks
>>> -Vincent
>>>
>>> > > > > Is there a Maven2 plugin for emma or cobetura?
>>> > > >
>>> > > > cobertura, and it plays well with aspectj afaik, you have
>>> to make
>>> sure
>>> > > > the aspe

Re: Maven not able to find web.xml

2007-03-09 Thread Kalle Korhonen

Default for context source root is src/main/webapp.

Kalle

On 3/9/07, artofabhi <[EMAIL PROTECTED]> wrote:



Hi

My project structure is like :

-project-root
  |
  |
   - pom.xml

  |
  |
   -web-module

  |
  |
  - pom.xml
 |
 |
  - WEB-INF
|
|
- web.xml
  |
  |
   -Other-modules


When I run mvn install it gives me error like

Error assembling WAR:  Error assembling WAR 
\target\version1.0.0SNAPSHOT\WEB-INF\web.xml  does exit.

What should I do for this,

Any help is much appriciated.

-artofabhi
--
View this message in context:
http://www.nabble.com/Maven-not-able-to-find-web.xml-tf3378766s177.html#a9404195
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Maven not able to find web.xml

2007-03-09 Thread artofabhi

Hi 

 My project structure is like : 

-project-root
  |
  |
   - pom.xml

  |
  |
   -web-module

  |
  |
  - pom.xml
 |
 |
  - WEB-INF
|
|
- web.xml
  |
  |
   -Other-modules


When I run mvn install it gives me error like 

 Error assembling WAR:  Error assembling WAR 
\target\version1.0.0SNAPSHOT\WEB-INF\web.xml  does exit. 

What should I do for this, 

Any help is much appriciated. 

-artofabhi
-- 
View this message in context: 
http://www.nabble.com/Maven-not-able-to-find-web.xml-tf3378766s177.html#a9404195
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: Repositories in maven2

2007-03-09 Thread Wayne Fay

You could configure multiple local repositories (one in ~/.m2/repo1
and one in ~/.m2/repo2). But this would be pretty abnormal usage of
Maven.

Why would you possibly want to do this? So long as you don't include
the artifact as a  in your pom, you won't even know the
Jars are available in your repo. I'm genuinely curious about your use
case.

Wayne

On 3/9/07, Dumitru Taur <[EMAIL PROTECTED]> wrote:

Hi!

I have question regarding repositories in maven2.

Is there any way in maven to make some jars used as dependencies in one
project not visible in other projects?

For example, I have a couple of jars that I use in one project, but I
wouldn't like them to be available as dependencies in other projects.

Thanks.






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



Re: [m2] Tools.jar & Apple

2007-03-09 Thread Dan Tran

sorry folks, I forgot to deply a snapshot for the last change and there for
you all when thru hell
with his plugin.

I will deploy the snapshot now.

-D


On 3/9/07, jsolderitsch <[EMAIL PROTECTED]> wrote:



Yes! I built the plugin from source -- the POM no longer expresses a
dependency on tools.jar -- and using the plugin, I do NOT have to do
anything special for Max OS X support.

My project builds without any special considerations.

Thanks for the tutorial and advice.

Jim


dan tran wrote:
>
> checkout the source from
> http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jaxws-maven-plugin
>
> then run
>
>   mvn install
>
> your project will automatically pickup this plugin build, rather than
the
> old binary at codehaus snapshot
>
> -D
>
>>
>> dan tran wrote:
>> >
>> > did you try to build the plugin from source and test with your
project?
>> >
>> > -D
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9400099
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Repositories in maven2

2007-03-09 Thread Dumitru Taur
Hi!

I have question regarding repositories in maven2.

Is there any way in maven to make some jars used as dependencies in one
project not visible in other projects?

For example, I have a couple of jars that I use in one project, but I
wouldn't like them to be available as dependencies in other projects.

Thanks. 

 



Newbie looking for scm:perforce samples

2007-03-09 Thread Ramdas . Hegde

I am a newbie into the Maven world and am looking for pom.xml  samples to
get me started off. My code base is in Perforce and i am looking at a way
to  use Maven on the files in P4.


Thanks

Ramdas



Re: Any Archiva download soon?

2007-03-09 Thread Jake
What issues are you having? I've set it up from source just fine (after a few 
modifications of course)...


- Original Message 
From: "Marziou, Gael" <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Friday, March 9, 2007 12:11:45 PM
Subject: Any Archiva download soon?


Hello,

I have tried several times to build Archiva from sources but each time,
I am unable to resolve all dependencies so I have given up.

How far is the Archiva project from releasing a binary build?

Thanks,

Gael

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

Re: Code coverage with AspectJ?

2007-03-09 Thread Vincent Massol


On Mar 9, 2007, at 2:16 PM, Steve Shucker wrote:


I don't think AspectJ and Clover are compatible.


Hmmm they might be if you run them in the right order. Run Clover  
first on sources and then AspectJ on either generated sources or on  
the JAR. This should work I think, although I don't recall having  
tried this.


-Vincent


We use Cobertura instead.  The coverage report isn't as nice, but  
it is functional.  For maven1, there's also an emma plugin.


-Steve

Michael Waluk wrote:

Hi,

I can't find much else regarding using AspectJ with Clover.  Were  
you able

to get it working with an example AspectJ project?

Has anyone been successful with this yet?  We have it to the point  
where we
are getting 0% coverage for some reason, but I haven't spent much  
time on

it.  I'd bother if there were some success stories out there.

Thanks for any info,
Michael


On 7/26/06, Vincent Massol <[EMAIL PROTECTED]> wrote:




> -Original Message-
> From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
> Sent: mercredi 26 juillet 2006 19:53
> To: Maven Users List
> Subject: Re: Code coverage with AspectJ?
>
> On 26/07/06, Jason Chaffee <[EMAIL PROTECTED]> wrote:
> > I use cobetura and load-time weaving during unit-tests to do  
this.  To

> use load-time weaving you must fork at least once and provide the
> javaagent as an 
> >
> > -Original Message-
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 26, 2006 8:42 AM
> > To: 'Maven Users List'
> > Subject: RE: Code coverage with AspectJ?
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On  
Behalf Of

> Carlos
> > > Sanchez
> > > Sent: mercredi 26 juillet 2006 17:29
> > > To: Maven Users List
> > > Subject: Re: Code coverage with AspectJ?
> > >
> > > On 7/26/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > > > Does anyone know how to generate a code coverage report  
when using

> > > > AspectJ in a project?
> > > >
> > > > The Clover plugin wants to rewrite and recompile the  
code, which

> > > > probably won't play well with all things aspect.
> > >
> > > seems not possible:
> > >
> > > [quote]
> > > Indeed running AspectJ AFTER Clover works. I'm using that  
for now,

so
> > > that I at least have SOME Clover data.
> > > The thing I would like though, is to run AspectJ BEFORE  
Clover runs,

> > > so I also have Clover data on the AspectJ-sources!
> > > As I see it, there are 2 ways to do this:
> > >
> > > 1) AspectJ weaves his new files and writes them out as  
sources so

> > > Clover can work on them. The problem here will be that
> > > Clover can't show the reports on AspectJ-files, but rather  
on the

> > > weaved files.
> >
> > Why not? If you point the Clover plugin to the generated  
sources it

> should
> > work fine, no? I guess I'd need to try it.
> >
> > > It's a solution, but what would be really great
> > > is:
> > > 2) Clover examines the AspectJ sources and adds his  
statements to

> > > those files. Then AspectJ can do his normal thing and
> > > Clover's reports should show the coverage in the correct  
files and

> > > calculate the EXACT amount of times the statements have
> > > been called.
> >
> > I don't understand this solution. Is clover running before  
aspectj in

> this
> > case? If so then we're back to the first solution above, no?
> >
> > > Unfortunately I already heard from Cenqua that atm Clover  
doesn't

know
> > > how to handle AspectJ sources... So I think that the
> > > plugin will have the same problems...
> >
> > Ah maybe there's some issue. If someone could show me a very  
simple

> aspectj
> > project (one simple class, one aspect, one test and a POM  
using the

> aspectj
> > plugin) then I could add it to the clover plugin's test suite  
and try

it
> > out.
>
> You will find some here :
> http://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-
> plugin/src/test/projects/
>
> But as Carlos mentioned. Clover and aspectJ is not really  
compatible


Thanks for the link. Could you elaborate just a little more about  
the

incompatibility before I spend too much time looking into it? :-)

Thanks
-Vincent

> > > > Is there a Maven2 plugin for emma or cobetura?
> > >
> > > cobertura, and it plays well with aspectj afaik, you have  
to make

sure
> > > the aspectj plugin doesn't recompile from sources for what  
I read in

> > > the cobertura mailing list
> > >
> > > >
> > > > --
> > > > Howard M. Lewis Ship
> > > > TWD Consulting, Inc.
> > > > Independent J2EE / Open-Source Java Consultant
> > > > Creator and PMC Chair, Apache Tapestry
> > > > Creator, Apache HiveMind
> > > >
> > > > Professional Tapestry training, mentoring, support
> > > > and project work.  http://howardlewisship.com
> > > >
> > > >

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

[ANN] Maven Remote Resources Plugin 1.0-alpha-3 released

2007-03-09 Thread Daniel Kulp

The Maven team is pleased to announce the release of Maven Remote Resources 
Plugin version 1.0-alpha-3.

http://maven.apache.org/plugins/maven-remote-resources-plugin/

This release is to address a critical issue with 1.0-alpha-2 where the 
remote resources could become corrupted/truncated.


Release Notes - Maven 2.x Remote Resources Plugin - Version 1.0-alpha-3
** Bug
* [MRRESOURCES-13] - If remote resources is run twice (like in a forked 
lifecycle) the resources are all 0 length


- The Maven Team

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



[ANN] Maven GPG Plugin 1.0-alpha-3 released

2007-03-09 Thread Daniel Kulp

The Maven team is pleased to announce the release of Maven GPG Plugin
version 1.0-alpha-3.

http://maven.apache.org/plugins/maven-gpg-plugin/

Release Notes - Maven 2.x GPG Plugin - Version 1.0-alpha-3
** Improvement
* [MGPG-1] - Prompt for pass phrase if it is not supplied
* [MGPG-2] - Allow the selection of a particular signature

Important Note:  
The "command line" syntax has changed from the previous version.   To 
specify the passphrase on the command line, it is now -Dgpg.passphrase=foo 
instead of just -Dpassphrase=foo.   This is to allow other plugins in the 
future that may require passphrases to not conflict. That said, the 
use of the passphrase on the command line is now discouraged.   With 
MGPGP-1 fixed, it will prompt for it or use -Dgpg.useagent=true to allow 
your GPG agent to securely prompt for it.


- The Maven Team

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



Re: maven question

2007-03-09 Thread Christian Goetze
Trouble is that this will not compile the prerequisite projects. You 
would have to either accept the hit of a full reactor build or use your 
inside knowledge and "cd" into all prerequisite subdirs, "mvn install" 
those, then build your project.

--
cg

Thierry Lach wrote:


Change your directory to proj1/sub and run maven

On 3/9/07, Don Hill <[EMAIL PROTECTED]> wrote:



I am working on a project that has many subprojects, from the root is
there
a way to compile/install just a targeted subproject. I want to be 
able to

build/install proj1/sub

Thanks.

root/pom.xml

proj1/pom.xml
proj1/sub/pom.xml






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



Re: lifecycle phase is restarting over

2007-03-09 Thread Kai Uwe Bachmann

Hello,

could you post your assembly descriptor and the plugin configuration?
Or try one of the predefined assemblies (e.g. jar-with-dependencies).

Best Regards

Kai Uwe Bachmann
Am 08.03.2007 um 21:35 schrieb Dave Maung:

thanks for answering my question. I did "attached" goal, however, it  
seems

to failed to asseble

The error that I am getting is

[INFO]
--- 
-

[INFO] Error adding file 'C:\webapps\targe
t\classes' to archive: C:\webapps\target\c
lasses isn't a file.

If I used assembly goal, I was able to assemble without any problem  
except

"compile" phase executed twice.

Dave

On 3/8/07, Kai Uwe Bachmann <[EMAIL PROTECTED]> wrote:


Hello,

I think you use the assembly goal of the plugin. When you take a look
at the documentation you will
see that this goal calls the package phase by itself. If you use the
attach goal it wouldn't call an other
goal.

Best Regards

Kai Uwe Bachmann
Am 08.03.2007 um 20:56 schrieb Dave Maung:

> I have the following life cycle set up
> in compile phase, I have some ant task running, and in package  
phase, I

> have assembly plugin  set up.
>
> The problem is if I execute "mvn package", it is calling "compile"
> lifecycle
> phase twice. Is there way to stop occuring it? I am using Maven  
2.0.5?

>
> Dave


-
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: stop a build from GUI in version 1.1

2007-03-09 Thread L. J.

When do you plan to link to the GUI? I can't wait to try it out :)

Thanks

LJ

On 3/8/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote:


all the code is there but we need to link the gui to it.
This feature will be available only for *nix system

Emmanuel

L. J. a écrit :
> Sorry if this question has been asked, in 1.0.3, you can't stop a build
> from
> the GUI but will this be added as part of version 1.1 new features?
>




Re: [m2] Tools.jar & Apple

2007-03-09 Thread jsolderitsch

Yes! I built the plugin from source -- the POM no longer expresses a
dependency on tools.jar -- and using the plugin, I do NOT have to do
anything special for Max OS X support.

My project builds without any special considerations.

Thanks for the tutorial and advice.

Jim


dan tran wrote:
> 
> checkout the source from
> http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jaxws-maven-plugin
> 
> then run
> 
>   mvn install
> 
> your project will automatically pickup this plugin build, rather than the
> old binary at codehaus snapshot
> 
> -D
> 
>>
>> dan tran wrote:
>> >
>> > did you try to build the plugin from source and test with your project?
>> >
>> > -D
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9400099
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Deploying to Tomcat with Maven

2007-03-09 Thread sebbo
Hi there

I have installed Tomcat 5.5 and let maven 1.0.2 build by mywebapp.war
file.
But how can I automatically move it to the Tomcat/webapps directory with
a maven goal?

Is there something similar to this (with Weblogic server)?:


  


  
  
  
  
  
  
  
  
  
  
  
  
  

  

For this, I need a deployer class!?

And when I simply copy the war from the .maven/build/mywebapp directory,
then the tomcat server doesnt reload the webapp automatically? Why is
this?

Greets and thanks
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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



RE: Can Maven be used for release control?

2007-03-09 Thread Barrett Nuzum
Ramdas:
 
If you replace your ant build with builds with Maven, releasing versions of 
your application is a snap.
I don't know of any application to help you release with Ant.

While Maven can play with ant, Maven is heavily about convention over 
configuration -- the more you try to diverge from the Maven standard, the more 
pain you're in for.
 
Barrett
 
::   
Barrett Nuzum
Consultant, Skill Development
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.com    
making IT business friendly




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wed 3/7/2007 7:56 PM
To: [EMAIL PROTECTED]
Cc: users@maven.apache.org
Subject: Re: Can Maven be used for release control?



Nick,

Thanks for te info. I spent some time going thru the documents on the
"release" plugin, but could not locate any detailed examples on how to use
te "release" plugin for what i am trying to do.
Do you  know of any real world examples that i could use as a foundation to
understand how all the pieces fit together.
Like i said, i already am usng "Ant" scripts to build an EAR file based on
a project structure that is defined in Perforce source control system.  I
am trying to find examples which would show how Maven could leverage the
existing source tree and build scripts

Thanks

Ramdas


  
 Nick Stolwijk
 <[EMAIL PROTECTED]
 anet.nl>   To
 No Phone Info Maven Users List   
 Available
cc
  
 03/02/2007 12:32  Subject
 PMRe: Can Maven be used for release  
   control?   
  
 Please respond to
   "Maven Users   
   List"  
 <[EMAIL PROTECTED]
  he.org> 
  
  




Maven sure can help with release management, see the release plugin[1].

Hth,

Nick Stolwijk

[1]http://maven.apache.org/plugins/maven-release-plugin/

[EMAIL PROTECTED] wrote:
>
> I am using Perforce for source code control and "ant" build scripts for
> building a Webservices application being hosted on a Weblogic server.  I
am
> looking for a framework to help with build releases. Was wondering if
Maven
> was the right tool for this purpose?
>
> thanks
>
> -ramdas
>
>
> -
> 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: Any Archiva download soon?

2007-03-09 Thread LAMY Olivier
Strange I can't see link to this artifact in plexus-slf4j-logging

I see org.slf4j:slf4j-simple:1.2

Just try : mvn -P apache-snapshots -Dmaven.test.skip=true clean install -U

If doesn't work no more idea :-(

--
Olivier

[1] 
http://snapshots.repository.codehaus.org/org/codehaus/plexus/plexus-slf4j-logging/1.1-alpha-1-SNAPSHOT/plexus-slf4j-logging-1.1-alpha-1-20070220.213411-1.pom
 

-Message d'origine-
De : Marziou, Gael [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 9 mars 2007 18:55
À : Maven Users List
Objet : RE: Any Archiva download soon?

Thanks Olivier,

I tried but it failed also.

Gael

mvn -P apache-snapshots -Dmaven.test.skip=true install

.

GroupId: org.slf4j
ArtifactId: slf4j-parent
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.slf4j:slf4j-parent:pom:1.0-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  people.apache.org
(http://people.apache.org/repo/m2-snapshot-repository),
  apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),
  snapshots.codehaus.org (http://snapshots.repository.codehaus.org),
  snapshots.repository.codehaus.org
(http://snapshots.repository.codehaus.org/)

 

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


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



Re: maven question

2007-03-09 Thread Thierry Lach

Change your directory to proj1/sub and run maven

On 3/9/07, Don Hill <[EMAIL PROTECTED]> wrote:


I am working on a project that has many subprojects, from the root is
there
a way to compile/install just a targeted subproject. I want to be able to
build/install proj1/sub

Thanks.

root/pom.xml

proj1/pom.xml
proj1/sub/pom.xml



Re: Using the plexus-interactivity jars

2007-03-09 Thread Roland Asmann
That seems to have done the trick! Thanks!

Roland


On Friday 09 March 2007 18:24, LAMY Olivier wrote:
>  /**
>      * @component
> role="org.codehaus.plexus.components.interactivity.Prompter"
> role-hint="default" * @required
>      * @readonly
>      */
>     private Prompter prompter;

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



RE: Any Archiva download soon?

2007-03-09 Thread Marziou, Gael
Thanks Olivier,

I tried but it failed also.

Gael

mvn -P apache-snapshots -Dmaven.test.skip=true install

.

GroupId: org.slf4j
ArtifactId: slf4j-parent
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.slf4j:slf4j-parent:pom:1.0-SNAPSHOT

from the specified remote repositories:
  codehaus.org (http://repository.codehaus.org),
  central (http://repo1.maven.org/maven2),
  people.apache.org
(http://people.apache.org/repo/m2-snapshot-repository),
  apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),
  snapshots.codehaus.org (http://snapshots.repository.codehaus.org),
  snapshots.repository.codehaus.org
(http://snapshots.repository.codehaus.org/)

 

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



Re: Preventing transitive snapshot downloading

2007-03-09 Thread Wayne Fay

This has been added to JIRA (already fixed by Brett, thanks) and the
Mirror mini-guide has been updated:
http://maven.apache.org/guides/mini/guide-mirror-settings.html

Wayne

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

Yes, this mailing list is where I heard of it. Perhaps searching the
archives would yield more info.

-Greg Vaughn

"Wayne Fay" <[EMAIL PROTECTED]> wrote on 03/09/2007 10:08:42 AM:

> The * is a new feature that we've discussed here on M-U and
> M-D a bit the last few months. But it seems like it has not been
> documented anywhere (!).
>
> I'll post an issue in JIRA about this. Thanks for the note, Tamás.
>
> Wayne
>
> On 3/9/07, Tamás Cservenák <[EMAIL PROTECTED]> wrote:
> > What about some (possibly maven-aware) HTTP proxy? Something like DSMP
> > should be able to solve the problem, no?
> >
> > Greg, where did you find this about *?
> >
> > I did not find anything about it in release notes and Jira issues
> >
> > ~t~
> >
> > On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> > > "Mikis" <[EMAIL PROTECTED]> wrote on 03/09/2007 07:17:32 AM:
> > >
> > > >
> > > > I have being struggling with problems regarding dependencies on
> > > apparently
> > > > released artifacts (not snapshots), which contain snapshot or
faulty
> > > > dependencies (maybe transitive). If the artifacts also define
their own
> > > > remote repositories, I'm unable to fix the problem by patching the
> > > intranet
> > > > or proxy repository, as this are circumvented .
> > > >
> > > > Is it possible to prevent Maven from downloading artifacts from
Internet
> > > > repositories using the intranet/proxy repository as the only
remote
> > > > repository? One way of doing this would be to define some kind of
> > > repository
> > > > whitelist defining the intranet repositories allowed. The offline
line
> > > > option is not quite what I need as this would prevent usage of the
> > > intranet
> > > > repositories.
> > > >
> > > > I fell I'm currently unable to guarantee my intranet Maven users
that a
> > > > fully version controlled dependency definition in the poms will
ensure a
> > > > fixed dependency tree (broken configuration management :-( ).
> > >
> > > I have not verified this, but I recall 2.0.5 was to have a new
feature so
> > > that in settings.xml you could specify a repository as a
> > > * for just this sort of situation. Sorry I
can't give
> > > more specific advice, but that may head you down the right path.
> > >
> > > -Greg Vaughn
> > >
> > >
==
> > > Confidentiality Notice: The information contained in and
> transmitted with this communication is strictly confidential, is
> intended only for the use of the intended recipient, and is the
> property of Countrywide Financial Corporation or its affiliates and
> subsidiaries.  If you are not the intended recipient, you are hereby
> notified that any use of the information contained in or transmitted
> with the communication or dissemination, distribution, or copying of
> this communication is strictly prohibited by law.  If you have
> received this communication in error, please immediately return this
> communication to the sender and delete the original message and any
> copy of it in your possession.
> > >
==
> > >
> >
> > -
> > 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]
>
>

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==



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



Re: Preventing transitive snapshot downloading

2007-03-09 Thread Greg_Vaughn
Yes, this mailing list is where I heard of it. Perhaps searching the 
archives would yield more info.

-Greg Vaughn

"Wayne Fay" <[EMAIL PROTECTED]> wrote on 03/09/2007 10:08:42 AM:

> The * is a new feature that we've discussed here on M-U and
> M-D a bit the last few months. But it seems like it has not been
> documented anywhere (!).
> 
> I'll post an issue in JIRA about this. Thanks for the note, Tamás.
> 
> Wayne
> 
> On 3/9/07, Tamás Cservenák <[EMAIL PROTECTED]> wrote:
> > What about some (possibly maven-aware) HTTP proxy? Something like DSMP
> > should be able to solve the problem, no?
> >
> > Greg, where did you find this about *?
> >
> > I did not find anything about it in release notes and Jira issues
> >
> > ~t~
> >
> > On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
> > > "Mikis" <[EMAIL PROTECTED]> wrote on 03/09/2007 07:17:32 AM:
> > >
> > > >
> > > > I have being struggling with problems regarding dependencies on
> > > apparently
> > > > released artifacts (not snapshots), which contain snapshot or 
faulty
> > > > dependencies (maybe transitive). If the artifacts also define 
their own
> > > > remote repositories, I'm unable to fix the problem by patching the
> > > intranet
> > > > or proxy repository, as this are circumvented .
> > > >
> > > > Is it possible to prevent Maven from downloading artifacts from 
Internet
> > > > repositories using the intranet/proxy repository as the only 
remote
> > > > repository? One way of doing this would be to define some kind of
> > > repository
> > > > whitelist defining the intranet repositories allowed. The offline 
line
> > > > option is not quite what I need as this would prevent usage of the
> > > intranet
> > > > repositories.
> > > >
> > > > I fell I'm currently unable to guarantee my intranet Maven users 
that a
> > > > fully version controlled dependency definition in the poms will 
ensure a
> > > > fixed dependency tree (broken configuration management :-( ).
> > >
> > > I have not verified this, but I recall 2.0.5 was to have a new 
feature so
> > > that in settings.xml you could specify a repository as a
> > > * for just this sort of situation. Sorry I 
can't give
> > > more specific advice, but that may head you down the right path.
> > >
> > > -Greg Vaughn
> > >
> > > 
==
> > > Confidentiality Notice: The information contained in and 
> transmitted with this communication is strictly confidential, is 
> intended only for the use of the intended recipient, and is the 
> property of Countrywide Financial Corporation or its affiliates and 
> subsidiaries.  If you are not the intended recipient, you are hereby
> notified that any use of the information contained in or transmitted
> with the communication or dissemination, distribution, or copying of
> this communication is strictly prohibited by law.  If you have 
> received this communication in error, please immediately return this
> communication to the sender and delete the original message and any 
> copy of it in your possession.
> > > 
==
> > >
> >
> > -
> > 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]
> 
> 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


maven question

2007-03-09 Thread Don Hill

I am working on a project that has many subprojects, from the root is there
a way to compile/install just a targeted subproject. I want to be able to
build/install proj1/sub

Thanks.

root/pom.xml

proj1/pom.xml
proj1/sub/pom.xml


RE: Any Archiva download soon?

2007-03-09 Thread David Jackman
I had no problem getting the sources and building it myself a couple of
days ago.

I can zip up the results and email it to you if you still can't get it
to work.  Let me know.
 

-Original Message-
From: Marziou, Gael [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 09, 2007 10:12 AM
To: users@maven.apache.org
Subject: Any Archiva download soon?

Hello,

I have tried several times to build Archiva from sources but each time,
I am unable to resolve all dependencies so I have given up.

How far is the Archiva project from releasing a binary build?

Thanks,

Gael

-
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: Any Archiva download soon?

2007-03-09 Thread LAMY Olivier
You need to add repos.

You can add a profile in your settings :


  apache-snapshots
  

  people.apache.org
  http://people.apache.org/repo/m2-snapshot-repository


  snapshots.repository.codehaus.org
  http://snapshots.repository.codehaus.org/

  
  

  people.apache
  http://people.apache.org/repo/m2-snapshot-repository


  snapshots.repository.codehaus.org
  http://snapshots.repository.codehaus.org/

  
 

And build with -P apache-snapshots

--
Olivier

-Message d'origine-
De : Marziou, Gael [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 9 mars 2007 18:12
À : users@maven.apache.org
Objet : Any Archiva download soon?

Hello,

I have tried several times to build Archiva from sources but each time, I am 
unable to resolve all dependencies so I have given up.

How far is the Archiva project from releasing a binary build?

Thanks,

Gael

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


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



RE: Using the plexus-interactivity jars

2007-03-09 Thread LAMY Olivier
In your mojo try something like 

/**
 * @component
 * @required
 * @readonly
 */
private Prompter prompter;
Or longer one 

/**
 * @component role="org.codehaus.plexus.components.interactivity.Prompter" 
role-hint="default"
 * @required
 * @readonly
 */
private Prompter prompter;

--
Olivier

-Message d'origine-
De : Roland Asmann [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 9 mars 2007 17:54
À : users@maven.apache.org
Objet : Using the plexus-interactivity jars

Hi,

I'm working on a plugin that I want to make interactive. I've looked into the 
release-plugin for some samples, but I just can't figure out how the Prompter 
gets set! The method 'setPrompter' seems to be only used by the tests...

I tried just calling a 'new Prompter()', but then the internals are still 
empty...

Could somebody tell me how to best initialize the Prompter so that I can work 
with it?

Thanks,

--
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 
A-1010 Wien FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



Any Archiva download soon?

2007-03-09 Thread Marziou, Gael
Hello,

I have tried several times to build Archiva from sources but each time,
I am unable to resolve all dependencies so I have given up.

How far is the Archiva project from releasing a binary build?

Thanks,

Gael

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



Re: [m2] How to bypass unit testing durng multiproject build with Maven 2

2007-03-09 Thread mavenstart

Thanks a lot, Thorsten 

So I did mvn -Dmaven.test.skip=true package, it still compiled and ran the
JUNIT testing...

I also did mvn package compile, JUNIT is still running...

Maybe this is the purpose for a multiproject build to make sure that all the
projects get compiled and tested, but how about the deployment, what if I
want to skip the deployment part defined in the POM.xml? still puzzled.

Thanks,

ms
-- 
View this message in context: 
http://www.nabble.com/How-to-bypass-unit-testing-durng-multiproject-build-with-Maven-2-tf3374096s177.html#a9398426
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: I need Maven version 1.0.6 ?

2007-03-09 Thread Squatter Madras

OK - thanks all - I will edit the Wiki page and use 1.0.2

Cheers.

On 3/9/07, Roland Asmann <[EMAIL PROTECTED]> wrote:


Clicking on the link you supplied, it gives a link to Maven with the same
info
Daniel just gave you (1.0.2 is the latest).

However, a little further down in the text they use the line:
export MAVEN_HOME=/java/maven-1.0.2
I assume this means they want you to use 1.0.2 and the 1.0.6 above is
probably
a typo.

Roland


On Friday 09 March 2007 17:52, Siegmann Daniel, NY wrote:
> There is no such version of Maven. Latest released 1.x version is 1.0.2
> (1.1 is somewhere in beta). Latest version of Maven2 is 2.0.5.
>
> -Original Message-
> From: Squatter Madras [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 09, 2007 11:39 AM
> To: users@maven.apache.org
> Subject: I need Maven version 1.0.6 ?
>
> Hello all,
>
> Hopefully this will be my first and only query regarding Maven - I am
> trying to build a SourceForge product that tell me I need to use Apache
> Maven 1.0.6but I can't find a specific download for this version on the
> site - where
> can I get it ? (I'm pretty sure version 1.0.6 isn't just because it was
the
> latest version at the time the instructions were written because I
remember
> being specifically told not to use a later version - does that make
sense
> ?)
>
>
> The instructions for the project in question are at :-
> http://www.ashcast.org/wiki/index.php?title=Building_Ashcast_From_Source
>
> And the project in question is at :-
> http://sourceforge.net/projects/ashcast/
>
> Given that (although I am a software developer) I've never done anything
> with ANY of the mentioned programs - any help/advice would be greatly
> appreciated.
>
> Thanks in advance.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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




Re: I need Maven version 1.0.6 ?

2007-03-09 Thread Roland Asmann
Clicking on the link you supplied, it gives a link to Maven with the same info 
Daniel just gave you (1.0.2 is the latest).

However, a little further down in the text they use the line:
export MAVEN_HOME=/java/maven-1.0.2
I assume this means they want you to use 1.0.2 and the 1.0.6 above is probably 
a typo.

Roland


On Friday 09 March 2007 17:52, Siegmann Daniel, NY wrote:
> There is no such version of Maven. Latest released 1.x version is 1.0.2
> (1.1 is somewhere in beta). Latest version of Maven2 is 2.0.5.
>
> -Original Message-
> From: Squatter Madras [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 09, 2007 11:39 AM
> To: users@maven.apache.org
> Subject: I need Maven version 1.0.6 ?
>
> Hello all,
>
> Hopefully this will be my first and only query regarding Maven - I am
> trying to build a SourceForge product that tell me I need to use Apache
> Maven 1.0.6but I can't find a specific download for this version on the
> site - where
> can I get it ? (I'm pretty sure version 1.0.6 isn't just because it was the
> latest version at the time the instructions were written because I remember
> being specifically told not to use a later version - does that make sense
> ?)
>
>
> The instructions for the project in question are at :-
> http://www.ashcast.org/wiki/index.php?title=Building_Ashcast_From_Source
>
> And the project in question is at :-
> http://sourceforge.net/projects/ashcast/
>
> Given that (although I am a software developer) I've never done anything
> with ANY of the mentioned programs - any help/advice would be greatly
> appreciated.
>
> Thanks in advance.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



Re: I need Maven version 1.0.6 ?

2007-03-09 Thread Wayne Fay

The 1.0.6 seems to be a mistake on their page. As far as I know, there
has never been a 1.0.6 release of Maven.

Down below a little bit, they talk about 1.0.2:
export MAVEN_HOME=/java/maven-1.0.2

I would install Maven 1.0.2 and proceed with the rest of the instructions.

Wayne

On 3/9/07, Squatter Madras <[EMAIL PROTECTED]> wrote:

Hello all,

Hopefully this will be my first and only query regarding Maven - I am trying
to build a SourceForge product that tell me I need to use Apache Maven
1.0.6but I can't find a specific download for this version on the site
- where
can I get it ? (I'm pretty sure version 1.0.6 isn't just because it was the
latest version at the time the instructions were written because I remember
being specifically told not to use a later version - does that make sense ?)


The instructions for the project in question are at :-
http://www.ashcast.org/wiki/index.php?title=Building_Ashcast_From_Source

And the project in question is at :-
http://sourceforge.net/projects/ashcast/

Given that (although I am a software developer) I've never done anything
with ANY of the mentioned programs - any help/advice would be greatly
appreciated.

Thanks in advance.



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



Using the plexus-interactivity jars

2007-03-09 Thread Roland Asmann
Hi,

I'm working on a plugin that I want to make interactive. I've looked into the 
release-plugin for some samples, but I just can't figure out how the Prompter 
gets set! The method 'setPrompter' seems to be only used by the tests...

I tried just calling a 'new Prompter()', but then the internals are still 
empty...

Could somebody tell me how to best initialize the Prompter so that I can work 
with it?

Thanks,

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



RE: I need Maven version 1.0.6 ?

2007-03-09 Thread Siegmann Daniel, NY
There is no such version of Maven. Latest released 1.x version is 1.0.2 (1.1
is somewhere in beta). Latest version of Maven2 is 2.0.5.

-Original Message-
From: Squatter Madras [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 09, 2007 11:39 AM
To: users@maven.apache.org
Subject: I need Maven version 1.0.6 ?

Hello all,

Hopefully this will be my first and only query regarding Maven - I am trying
to build a SourceForge product that tell me I need to use Apache Maven
1.0.6but I can't find a specific download for this version on the site
- where
can I get it ? (I'm pretty sure version 1.0.6 isn't just because it was the
latest version at the time the instructions were written because I remember
being specifically told not to use a later version - does that make sense ?)


The instructions for the project in question are at :-
http://www.ashcast.org/wiki/index.php?title=Building_Ashcast_From_Source

And the project in question is at :-
http://sourceforge.net/projects/ashcast/

Given that (although I am a software developer) I've never done anything
with ANY of the mentioned programs - any help/advice would be greatly
appreciated.

Thanks in advance.

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



Re: How do I share test classes between projects?

2007-03-09 Thread Wayne Fay

You need to use type "test-jar":
http://maven.apache.org/guides/mini/guide-attached-tests.html

Wayne

On 3/9/07, Dave Rathnow <[EMAIL PROTECTED]> wrote:



I'm new to Maven and have been working with if for a few days.  I've
been reading

through the documentation but haven't found the answer to this question.



I have two projects A and B with testing classes in both.  The test
classes in B

Inherit from classes in A and they also use fixtures from A as well.  I
have setup

a dependency with project A in project B but since the test classes are
not installed

with project A in my local repository, B will not build.



Is there a way to do this with Maven or do I have to change the way I've
setup

my test framework?  That is, is there an easy way to share test classes
between

projects with Maven?



Thanks,
Dave.




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



I need Maven version 1.0.6 ?

2007-03-09 Thread Squatter Madras

Hello all,

Hopefully this will be my first and only query regarding Maven - I am trying
to build a SourceForge product that tell me I need to use Apache Maven
1.0.6but I can't find a specific download for this version on the site
- where
can I get it ? (I'm pretty sure version 1.0.6 isn't just because it was the
latest version at the time the instructions were written because I remember
being specifically told not to use a later version - does that make sense ?)


The instructions for the project in question are at :-
http://www.ashcast.org/wiki/index.php?title=Building_Ashcast_From_Source

And the project in question is at :-
http://sourceforge.net/projects/ashcast/

Given that (although I am a software developer) I've never done anything
with ANY of the mentioned programs - any help/advice would be greatly
appreciated.

Thanks in advance.


Re: How do I share test classes between projects?

2007-03-09 Thread Dan Tran

move your common test classes to another project but place them in main
source ( ie src/main/java)

other project can refencence it via dependency mechanism to run the test

-D


On 3/9/07, Dave Rathnow <[EMAIL PROTECTED]> wrote:




I'm new to Maven and have been working with if for a few days.  I've
been reading

through the documentation but haven't found the answer to this question.



I have two projects A and B with testing classes in both.  The test
classes in B

Inherit from classes in A and they also use fixtures from A as well.  I
have setup

a dependency with project A in project B but since the test classes are
not installed

with project A in my local repository, B will not build.



Is there a way to do this with Maven or do I have to change the way I've
setup

my test framework?  That is, is there an easy way to share test classes
between

projects with Maven?



Thanks,
Dave.




Re: Multimodule assembly plugin question

2007-03-09 Thread Armin Ehrenfels

Hi Paul,

for example, in your assembly.xml, you could refer to the target class 
directories of your modules  like this:



   example
   
   jar
   
   false
   
   
   module1/target/classes/top_module1
   top_module1
   
   
   module2/target/classes/top_module2
   top_module2
   
   
   module3/target/classes/top_module3
   top_module3
   
   
etc.
   
 


More on this can be found at 
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html.


HTH

Armin

Paul Gier wrote:


I have a project with multiple modules, and I would like to assemble the
classes of the modules into a single jar file.
If the names of the modules (and directories) match the artifact ID, the
assembly works fine.  But if the artifactId does not match the module
name, then the files are not picked up.  Is there a way to configure
this to work with the different names?  Or do I need to just rename my
modules or artifacts so that they match?

Thanks!


-
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: Preventing transitive snapshot downloading

2007-03-09 Thread Wayne Fay

The * is a new feature that we've discussed here on M-U and
M-D a bit the last few months. But it seems like it has not been
documented anywhere (!).

I'll post an issue in JIRA about this. Thanks for the note, Tamás.

Wayne

On 3/9/07, Tamás Cservenák <[EMAIL PROTECTED]> wrote:

What about some (possibly maven-aware) HTTP proxy? Something like DSMP
should be able to solve the problem, no?

Greg, where did you find this about *?

I did not find anything about it in release notes and Jira issues

~t~

On 3/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> "Mikis" <[EMAIL PROTECTED]> wrote on 03/09/2007 07:17:32 AM:
>
> >
> > I have being struggling with problems regarding dependencies on
> apparently
> > released artifacts (not snapshots), which contain snapshot or faulty
> > dependencies (maybe transitive). If the artifacts also define their own
> > remote repositories, I'm unable to fix the problem by patching the
> intranet
> > or proxy repository, as this are circumvented .
> >
> > Is it possible to prevent Maven from downloading artifacts from Internet
> > repositories using the intranet/proxy repository as the only remote
> > repository? One way of doing this would be to define some kind of
> repository
> > whitelist defining the intranet repositories allowed. The offline line
> > option is not quite what I need as this would prevent usage of the
> intranet
> > repositories.
> >
> > I fell I'm currently unable to guarantee my intranet Maven users that a
> > fully version controlled dependency definition in the poms will ensure a
> > fixed dependency tree (broken configuration management :-( ).
>
> I have not verified this, but I recall 2.0.5 was to have a new feature so
> that in settings.xml you could specify a repository as a
> * for just this sort of situation. Sorry I can't give
> more specific advice, but that may head you down the right path.
>
> -Greg Vaughn
>
> ==
> Confidentiality Notice: The information contained in and transmitted with 
this communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted with 
the communication or dissemination, distribution, or copying of this communication 
is strictly prohibited by law.  If you have received this communication in error, 
please immediately return this communication to the sender and delete the original 
message and any copy of it in your possession.
> ==
>

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



How do I share test classes between projects?

2007-03-09 Thread Dave Rathnow
 

I'm new to Maven and have been working with if for a few days.  I've
been reading

through the documentation but haven't found the answer to this question.

 

I have two projects A and B with testing classes in both.  The test
classes in B

Inherit from classes in A and they also use fixtures from A as well.  I
have setup

a dependency with project A in project B but since the test classes are
not installed

with project A in my local repository, B will not build.

 

Is there a way to do this with Maven or do I have to change the way I've
setup

my test framework?  That is, is there an easy way to share test classes
between

projects with Maven?

 

Thanks,
Dave.



Re: [m2] Tools.jar & Apple

2007-03-09 Thread Dan Tran

checkout the source from
http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jaxws-maven-plugin

then run

 mvn install

your project will automatically pickup this plugin build, rather than the
old binary at codehaus snapshot

-D




On 3/9/07, jsolderitsch <[EMAIL PROTECTED]> wrote:



Not yet -- I confess I am new to maven and trying to build and use a
plugin
is not something I know how to do, although it may be easy.

I presume I use svn to get the code from where?

And then I use mvn to build?

But then how do I arrange to use my own build to run the plugin from my
project location.

If there is a reference I can go to that covers this, I will be glad to
read
and follow it.

Thanks

Jim


dan tran wrote:
>
> did you try to build the plugin from source and test with your project?
>
> -D
>
>

--
View this message in context:
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
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: Preventing transitive snapshot downloading

2007-03-09 Thread Tamás Cservenák

What about some (possibly maven-aware) HTTP proxy? Something like DSMP
should be able to solve the problem, no?

Greg, where did you find this about *?

I did not find anything about it in release notes and Jira issues

~t~

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

"Mikis" <[EMAIL PROTECTED]> wrote on 03/09/2007 07:17:32 AM:

>
> I have being struggling with problems regarding dependencies on
apparently
> released artifacts (not snapshots), which contain snapshot or faulty
> dependencies (maybe transitive). If the artifacts also define their own
> remote repositories, I'm unable to fix the problem by patching the
intranet
> or proxy repository, as this are circumvented .
>
> Is it possible to prevent Maven from downloading artifacts from Internet
> repositories using the intranet/proxy repository as the only remote
> repository? One way of doing this would be to define some kind of
repository
> whitelist defining the intranet repositories allowed. The offline line
> option is not quite what I need as this would prevent usage of the
intranet
> repositories.
>
> I fell I'm currently unable to guarantee my intranet Maven users that a
> fully version controlled dependency definition in the poms will ensure a
> fixed dependency tree (broken configuration management :-( ).

I have not verified this, but I recall 2.0.5 was to have a new feature so
that in settings.xml you could specify a repository as a
* for just this sort of situation. Sorry I can't give
more specific advice, but that may head you down the right path.

-Greg Vaughn

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==



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



Re: [m2] Tools.jar & Apple

2007-03-09 Thread jsolderitsch

Not yet -- I confess I am new to maven and trying to build and use a plugin
is not something I know how to do, although it may be easy.

I presume I use svn to get the code from where?

And then I use mvn to build?

But then how do I arrange to use my own build to run the plugin from my
project location.

If there is a reference I can go to that covers this, I will be glad to read
and follow it.

Thanks

Jim


dan tran wrote:
> 
> did you try to build the plugin from source and test with your project?
> 
> -D
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
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: Maven PMD plugin configuration

2007-03-09 Thread Wayne Fay

Plugin nodes can take dependencies directly. Try this instead:

  
  
  
  org.apache.maven.plugins


  maven-pmd-plugin
  
  utf-8
  100
  1.5
  
  
src/main/pmd/projectrules.xml
  
  
 
 
 my.pmd

ownpmdrules
 0.0.1
 
 
  
  

Wayne

On 3/9/07, Leslie Bertels <[EMAIL PROTECTED]> wrote:

Hi,

I've been using Maven2 for a couple of weeks now and I'm trying to
integrate PMD with Maven2.
I've managed to change my pom.xml by adding the pmd plugin and run the mvn
pmd:pmd succesfully.

The following step is to use my own ruleset and classes it depends upon.
I created a jar file containing several classes and a configuration file
containing rulesets.
I installed the jar in my local maven repository and added it as a
dependency in my pom.xml file.

But when running mvn pmd:pmd a exception is thrown because the jar cannot
be found on the classpath.
Does anybody have any idea to refer to a dependency from within a plugin?


Thanks in advance,
Leslie Bertels.


Some extra info:

My pom:



4.0.0
my.group
my.artifact
1.0.0



maven-compiler-plugin

1.5
1.5



org.apache.maven.plugins
maven-pmd-plugin



check
cpd-check








my.pmd
ownpmdrules
0.0.1





org.apache.maven.plugins
maven-pmd-plugin

utf-8
100
1.5


src/main/pmd/projectrules.xml








The exception:

[INFO] [pmd:pmd]
[WARNING] Unable to locate Source XRef to link to - DISABLED
net.sourceforge.pmd.RuleSetNotFoundException: Can't find resource
rulesets/hondarules.xml. Make sure the resource is a valid file or URL or
is on the CLASSPATH
at
net.sourceforge.pmd.util.ResourceLoader.loadResourceAsStream(ResourceLoader.java:28)
at
net.sourceforge.pmd.RuleSetFactory.parseRuleNodeWithExclude(RuleSetFactory.java:410)
at
net.sourceforge.pmd.RuleSetFactory.parseExternallyDefinedRuleNode(RuleSetFactory.java:356)
at
net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:294)
at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:230)
at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:202)
at
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:176)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:

Re: [m2] Tools.jar & Apple

2007-03-09 Thread Dan Tran

did you try to build the plugin from source and test with your project?

-D


On 3/9/07, jsolderitsch <[EMAIL PROTECTED]> wrote:



Just want to say that I too fixed the issue by updating the same section
of
the plugin's pom.

I first tried making a dependency entry in my project pom for the plugin
using the exact same syntax and this did NOT work. I had to chance the
dependency in the plugin like Ryan describes.

Hopefully a newer build of the plugin will fix this behavior and allow me
to
override the tools.jar location at the project level.

Jim


dan tran wrote:
>
> From the source, jaxws-maven-plugin should should pickup your
classes.jar
> if
> you have it as your denpendecy.
>
> Also, and latest source and snapshot seems to be out of sync, could you
> fetch the source and build it and test it
> with your build.
>
> -D
>
>
> On 3/8/07, Ryan Cuprak <[EMAIL PROTECTED]> wrote:
>>
>>
>> The only change to a plugin (plugin itself) that I made was to
>> jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom and the sun.jdk section now
>> looks like:
>>
>> 
>>  sun.jdk
>>  tools
>>  1.5.0
>>  system
>>
>>
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar
>>
>>
>> Specifying this as the dependency for the plugin in my pom file didn't
>> work.
>>
>> Haven't figured out a non-hack approach yet.
>>
>> -Ryan
>>
>>
>> On Thursday, March 08, 2007, at 08:45PM, "Dan Tran" <[EMAIL PROTECTED]>
>> wrote:
>> >also, what did you change in the plugin's pom?  If it is valid, i will
>> fix
>> >the plugin
>> >
>> >-D
>> >
>> >
>> >On 3/8/07, Dan Tran <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Ryan, I should have said this out loud early so you dont have to go
>> thru
>> >> this
>> >>
>> >> any way, if maven folk willing to fix
>> >>
>> >> http://jira.codehaus.org/browse/MEV-498
>> >>
>> >> an all will be okie
>> >>
>> >> -Dan
>> >>
>> >>
>> >>  On 3/8/07, Ryan Cuprak <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > Hello,
>> >> >
>> >> > Got my jaxws stuff working!
>> >> >
>> >> > Added the repository:
>> >> > 
>> >> > java.net
>> >> >
>> https://maven-repository.dev.java.net/nonav/repository
>> >> > 
>> >> >legacy
>> >> >
>> >> > (deleted entries javax entries and .m2 and re-downloaded - only
had
>> to
>> >> > download the jsr 181 jar separately. - think I installed the wrong
>> jar
>> >> > previously)
>> >> >
>> >> > and the dependency (for webservice annotations):
>> >> >
>> >> >javax.jws
>> >> >jsr181-api
>> >> >1.0-MR1
>> >> >compile
>> >> >
>> >> >
>> >> > That seemed to do the trick.
>> >> >
>> >> > Also, kinda wondering if mvnrepository.com indexes the
>> java.netstuff.
>> >> >
>> >> > -Ryan
>> >> >
>> >> > On Thursday, March 08, 2007, at 12:17PM, "Ryan Cuprak" <
>> [EMAIL PROTECTED]>
>> >> > wrote:
>> >> > >
>> >> > >  Any chance you could send me your pom.xml file? I am a little
>> >> > >baffled why the JAXWS plugin is failing on what appears to be a
>> >> > >classpath issue with the annotations.
>> >> > >
>> >> > >  How did using a legacy repository affect things?
>> >> > >
>> >> > >  Thanks,
>> >> > >  -Ryan
>> >> > >
>> >> > >On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
>> >> > >
>> >> > >>
>> >> > >> Yes -- I found two plug-in poms in my .m2 -- this one and
>> >> > >> jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
>> >> > >>
>> >> > >> I changed the latter one first and that didn't help and then I
>> >> > >> changed the
>> >> > >> one you mentioned and I was past the tools.jar block.
>> >> > >>
>> >> > >> And I was able to build a deployable war file based on a pojo
>> with
>> >> > >> some
>> >> > >> JAX-WS annotations.
>> >> > >>
>> >> > >> I did need to use the legacy repository:
>> >> > >> https://maven-repository.dev.java.net/nonav/repository and this
>> >> > >> seemed to
>> >> > >> let me compile all the way. At one point I did also do a mvn
>> >> > >> install:file
>> >> > >> for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
>> >> > >> build. But
>> >> > >> this was before I switched to the legacy repo from
>> >> > >> https://maven2-repository.dev.java.net/nonav/repository which
is
>> >> > >> supposedly
>> >> > >> the preferred one.
>> >> > >>
>> >> > >> Good luck.
>> >> > >>
>> >> > >> Jim
>> >> > >>
>> >> > >>
>> >> > >> Ryan Cuprak wrote:
>> >> > >>>
>> >> > >>>
>> >> > >>> I edited:
>> >> > >>>
/Users//.m2/repository/org/codehaus/mojo/jaxws-maven-
>> >> > >>> plugin/
>> >> > >>> 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
>> >> > >>>
>> >> > >>>   However, I hit another roadblock once I got past that
problem.
>> The
>> >> > >>> plugin can't find the class file for the Webservice annotation
>> tag.
>> >> > >>> Plan to download the source and tinker with it later today.
>> >> > >>>
>> >> > >>>   -Ryan
>> >> > >>>
>> >> > >>> On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
>> >> > >>>
>> >> > 
>> >> >  Question -- Which

Multimodule assembly plugin question

2007-03-09 Thread Paul Gier
I have a project with multiple modules, and I would like to assemble the
classes of the modules into a single jar file.
If the names of the modules (and directories) match the artifact ID, the
assembly works fine.  But if the artifactId does not match the module
name, then the files are not picked up.  Is there a way to configure
this to work with the different names?  Or do I need to just rename my
modules or artifacts so that they match?

Thanks!


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



Re: Inter module dependencies with release plugin

2007-03-09 Thread Dan Tran

Yes.  take a look at maven-native's parent. but you must release the parent
first.


-D


On 3/9/07, Paul Gier <[EMAIL PROTECTED]> wrote:



Is there a way that the module version don't have to match the parent
version?  I would like to be able to release the individual modules
separately.  So for example, module1 is at version 2.0-SNAPSHOT and the
parent is at 1.1-SNAPSHOT?

On Thu, 2007-03-08 at 21:42 -0800, Dan Tran wrote:
> make the parent and all submodules using the same snapshot version
number.
>
> take a look at this project
>
> http://svn.codehaus.org/mojo/trunk/mojo/maven-native
>
> -D
>
>
> On 3/8/07, Paul Gier <[EMAIL PROTECTED]> wrote:
> >
> >
> > I have a multi-module project where some modules depend on others.
> > parent
> > |--module1
> > |--module2
> > `--module3
> > And module 2 depends on the current snapshot version of module 1.  I
> > would like to release them all at the same time, but the problem is
that
> > the release plugin tells me that module 2 is dependent on a snapshot
> > version of module 1 so it cannot run.
> >
> > How can I get around this issue?
> >
> >
> >
> > -
> > 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: Preventing transitive snapshot downloading

2007-03-09 Thread Greg_Vaughn
"Mikis" <[EMAIL PROTECTED]> wrote on 03/09/2007 07:17:32 AM:

> 
> I have being struggling with problems regarding dependencies on 
apparently
> released artifacts (not snapshots), which contain snapshot or faulty
> dependencies (maybe transitive). If the artifacts also define their own
> remote repositories, I'm unable to fix the problem by patching the 
intranet
> or proxy repository, as this are circumvented . 
> 
> Is it possible to prevent Maven from downloading artifacts from Internet
> repositories using the intranet/proxy repository as the only remote
> repository? One way of doing this would be to define some kind of 
repository
> whitelist defining the intranet repositories allowed. The offline line
> option is not quite what I need as this would prevent usage of the 
intranet
> repositories.
> 
> I fell I'm currently unable to guarantee my intranet Maven users that a
> fully version controlled dependency definition in the poms will ensure a
> fixed dependency tree (broken configuration management :-( ). 

I have not verified this, but I recall 2.0.5 was to have a new feature so 
that in settings.xml you could specify a repository as a 
* for just this sort of situation. Sorry I can't give 
more specific advice, but that may head you down the right path.

-Greg Vaughn

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Inter module dependencies with release plugin

2007-03-09 Thread Paul Gier

Is there a way that the module version don't have to match the parent
version?  I would like to be able to release the individual modules
separately.  So for example, module1 is at version 2.0-SNAPSHOT and the
parent is at 1.1-SNAPSHOT?

On Thu, 2007-03-08 at 21:42 -0800, Dan Tran wrote:
> make the parent and all submodules using the same snapshot version number.
> 
> take a look at this project
> 
> http://svn.codehaus.org/mojo/trunk/mojo/maven-native
> 
> -D
> 
> 
> On 3/8/07, Paul Gier <[EMAIL PROTECTED]> wrote:
> >
> >
> > I have a multi-module project where some modules depend on others.
> > parent
> > |--module1
> > |--module2
> > `--module3
> > And module 2 depends on the current snapshot version of module 1.  I
> > would like to release them all at the same time, but the problem is that
> > the release plugin tells me that module 2 is dependent on a snapshot
> > version of module 1 so it cannot run.
> >
> > How can I get around this issue?
> >
> >
> >
> > -
> > 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]



Error on site generation when using maven-war-plugin

2007-03-09 Thread Ramos, Victor Hugo Barbosa \(Victor Hugo\)
Hi All,
I need to package my application into a war file before the test
phase to do some web tests, so I included the following code in my
pom.xml:


org.apache.maven.plugins
maven-war-plugin


generate-test-resources

war



${project.build.directory}/testWar/





When I run the command mvn package evething works fine, but when I
generate the project site (mvn site) the following error occurs:

[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin.
Reason: ERR
OR: Cannot override read-only parameter: classesDirectory in goal:
war:war
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
configuring: org.a
pache.maven.plugins:maven-war-plugin. Reason: ERROR: Cannot override
read-only p
arameter: classesDirectory in goal: war:war
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:563)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:891)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:734)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:525)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.PluginConfigurationException: Error
configuri
ng: org.apache.maven.plugins:maven-war-plugin. Reason: ERROR: Cannot
override re
ad-only parameter: classesDirectory in goal: war:war
at
org.apache.maven.plugin.DefaultPluginManager.validatePomConfiguration
(DefaultPluginManager.java:848)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:558)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 20 more
[INFO]

[INFO] Total time: 14 seconds
[INFO] Finished at: Fri Mar 09 11:20:58 BRT 2007
[INFO] Final Memory: 30M/54M
[INFO]


As you see I did not change the classesDirectory, I already tried to
remove the outputDirectory configuration but the same error occurred.

Thanks in advance,

Victor Hugo B. Ramos
Avaya Brazil
CSI Software and Custom Application

Important : This e-mail is intended for the above named only and may be
confidential, proprietary and/or legally privileged. If this has come to
you in error, you must take no action based on it, nor must you copy or
show it to anyone. Please contact the sender and delete the material
from any computer. Thank you.



-
To unsubscri

Re: Project inheritance

2007-03-09 Thread Jake
By putting the plugins in a pluginManagement section in the parent and then 
just referencing the groupId:artifactId in the plugin section of the children


- Original Message 
From: Aidan O'Donnell <[EMAIL PROTECTED]>
To: users@maven.apache.org
Sent: Friday, March 9, 2007 8:52:25 AM
Subject: Project inheritance


Hi,

I have a POM which is both a parent and a multi-module. When I build from 
this POM I would like the plugins to be executed for the modules and not the 
parent POM i.e. how can I supress the execution for the current POM but 
still inherit the properties?

Aidan

_
Solve the Conspiracy and win fantastic prizes!  
http://www.theconspiracygame.co.uk/


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

Re: [m2] Tools.jar & Apple

2007-03-09 Thread jsolderitsch

Just want to say that I too fixed the issue by updating the same section of
the plugin's pom.

I first tried making a dependency entry in my project pom for the plugin
using the exact same syntax and this did NOT work. I had to chance the
dependency in the plugin like Ryan describes.

Hopefully a newer build of the plugin will fix this behavior and allow me to
override the tools.jar location at the project level.

Jim


dan tran wrote:
> 
> From the source, jaxws-maven-plugin should should pickup your classes.jar
> if
> you have it as your denpendecy.
> 
> Also, and latest source and snapshot seems to be out of sync, could you
> fetch the source and build it and test it
> with your build.
> 
> -D
> 
> 
> On 3/8/07, Ryan Cuprak <[EMAIL PROTECTED]> wrote:
>>
>>
>> The only change to a plugin (plugin itself) that I made was to
>> jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom and the sun.jdk section now
>> looks like:
>>
>> 
>>  sun.jdk
>>  tools
>>  1.5.0
>>  system
>>
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar
>>
>>
>> Specifying this as the dependency for the plugin in my pom file didn't
>> work.
>>
>> Haven't figured out a non-hack approach yet.
>>
>> -Ryan
>>
>>
>> On Thursday, March 08, 2007, at 08:45PM, "Dan Tran" <[EMAIL PROTECTED]>
>> wrote:
>> >also, what did you change in the plugin's pom?  If it is valid, i will
>> fix
>> >the plugin
>> >
>> >-D
>> >
>> >
>> >On 3/8/07, Dan Tran <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Ryan, I should have said this out loud early so you dont have to go
>> thru
>> >> this
>> >>
>> >> any way, if maven folk willing to fix
>> >>
>> >> http://jira.codehaus.org/browse/MEV-498
>> >>
>> >> an all will be okie
>> >>
>> >> -Dan
>> >>
>> >>
>> >>  On 3/8/07, Ryan Cuprak <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > Hello,
>> >> >
>> >> > Got my jaxws stuff working!
>> >> >
>> >> > Added the repository:
>> >> > 
>> >> > java.net
>> >> >
>> https://maven-repository.dev.java.net/nonav/repository
>> >> > 
>> >> >legacy
>> >> >
>> >> > (deleted entries javax entries and .m2 and re-downloaded - only had
>> to
>> >> > download the jsr 181 jar separately. - think I installed the wrong
>> jar
>> >> > previously)
>> >> >
>> >> > and the dependency (for webservice annotations):
>> >> >
>> >> >javax.jws
>> >> >jsr181-api
>> >> >1.0-MR1
>> >> >compile
>> >> >
>> >> >
>> >> > That seemed to do the trick.
>> >> >
>> >> > Also, kinda wondering if mvnrepository.com indexes the
>> java.netstuff.
>> >> >
>> >> > -Ryan
>> >> >
>> >> > On Thursday, March 08, 2007, at 12:17PM, "Ryan Cuprak" <
>> [EMAIL PROTECTED]>
>> >> > wrote:
>> >> > >
>> >> > >  Any chance you could send me your pom.xml file? I am a little
>> >> > >baffled why the JAXWS plugin is failing on what appears to be a
>> >> > >classpath issue with the annotations.
>> >> > >
>> >> > >  How did using a legacy repository affect things?
>> >> > >
>> >> > >  Thanks,
>> >> > >  -Ryan
>> >> > >
>> >> > >On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
>> >> > >
>> >> > >>
>> >> > >> Yes -- I found two plug-in poms in my .m2 -- this one and
>> >> > >> jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
>> >> > >>
>> >> > >> I changed the latter one first and that didn't help and then I
>> >> > >> changed the
>> >> > >> one you mentioned and I was past the tools.jar block.
>> >> > >>
>> >> > >> And I was able to build a deployable war file based on a pojo
>> with
>> >> > >> some
>> >> > >> JAX-WS annotations.
>> >> > >>
>> >> > >> I did need to use the legacy repository:
>> >> > >> https://maven-repository.dev.java.net/nonav/repository and this
>> >> > >> seemed to
>> >> > >> let me compile all the way. At one point I did also do a mvn
>> >> > >> install:file
>> >> > >> for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
>> >> > >> build. But
>> >> > >> this was before I switched to the legacy repo from
>> >> > >> https://maven2-repository.dev.java.net/nonav/repository which is
>> >> > >> supposedly
>> >> > >> the preferred one.
>> >> > >>
>> >> > >> Good luck.
>> >> > >>
>> >> > >> Jim
>> >> > >>
>> >> > >>
>> >> > >> Ryan Cuprak wrote:
>> >> > >>>
>> >> > >>>
>> >> > >>> I edited:
>> >> > >>> /Users//.m2/repository/org/codehaus/mojo/jaxws-maven-
>> >> > >>> plugin/
>> >> > >>> 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
>> >> > >>>
>> >> > >>>   However, I hit another roadblock once I got past that problem.
>> The
>> >> > >>> plugin can't find the class file for the Webservice annotation
>> tag.
>> >> > >>> Plan to download the source and tinker with it later today.
>> >> > >>>
>> >> > >>>   -Ryan
>> >> > >>>
>> >> > >>> On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
>> >> > >>>
>> >> > 
>> >> >  Question -- Which pom file under .m2?
>> >> > 
>> >> >  I find myself in exactly the same situation and error condition
>> >> >  try

Maven PMD plugin configuration

2007-03-09 Thread Leslie Bertels
Hi,

I've been using Maven2 for a couple of weeks now and I'm trying to
integrate PMD with Maven2.
I've managed to change my pom.xml by adding the pmd plugin and run the mvn
pmd:pmd succesfully.

The following step is to use my own ruleset and classes it depends upon.
I created a jar file containing several classes and a configuration file
containing rulesets.
I installed the jar in my local maven repository and added it as a
dependency in my pom.xml file.

But when running mvn pmd:pmd a exception is thrown because the jar cannot
be found on the classpath.
Does anybody have any idea to refer to a dependency from within a plugin?


Thanks in advance,
Leslie Bertels.


Some extra info:

My pom:



4.0.0
my.group
my.artifact
1.0.0



maven-compiler-plugin

1.5
1.5



org.apache.maven.plugins
maven-pmd-plugin



check
cpd-check








my.pmd
ownpmdrules
0.0.1





org.apache.maven.plugins
maven-pmd-plugin

utf-8
100
1.5


src/main/pmd/projectrules.xml








The exception:

[INFO] [pmd:pmd]
[WARNING] Unable to locate Source XRef to link to - DISABLED
net.sourceforge.pmd.RuleSetNotFoundException: Can't find resource
rulesets/hondarules.xml. Make sure the resource is a valid file or URL or
is on the CLASSPATH
at
net.sourceforge.pmd.util.ResourceLoader.loadResourceAsStream(ResourceLoader.java:28)
at
net.sourceforge.pmd.RuleSetFactory.parseRuleNodeWithExclude(RuleSetFactory.java:410)
at
net.sourceforge.pmd.RuleSetFactory.parseExternallyDefinedRuleNode(RuleSetFactory.java:356)
at
net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:294)
at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:230)
at
net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:202)
at
org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:176)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launc

Project inheritance

2007-03-09 Thread Aidan O'Donnell


Hi,

I have a POM which is both a parent and a multi-module. When I build from 
this POM I would like the plugins to be executed for the modules and not the 
parent POM i.e. how can I supress the execution for the current POM but 
still inherit the properties?


Aidan

_
Solve the Conspiracy and win fantastic prizes!  
http://www.theconspiracygame.co.uk/



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



Re: Not releasing an integration-tests module

2007-03-09 Thread Rémy Sanlaville


You can put the integration test's  in a profile, and not
activate that profile when you release.  You'll have to update the
version number for that module since the release plugin won't do it
for you.




Yes it's possible to use profiles but it would be better to have a 
configuration as discussed in [1].

Rémy

[1]
http://www.nabble.com/-Proposal--New-profile-activation-tf3240038s177.html#a9006410


Re: Does the maven cache get cleaned out on each build?

2007-03-09 Thread Emmanuel Venisse



David Leangen a écrit :

Guys,

Thanks for this.


But have a look at the maven dependancy purge-local-
repository plugin
[1], which can clear out all depdencies for the project.



Ok... but I don't necessary want to use that on my development
machine... only on the CI server.

In that case, should I have some kind of "ci" profile or something and
add that (somehow) to my build definition?


Before to clean your local repo, you need to be sure 
all your snapshots are in your remote repository. Without 
them, your builds will fail


Doesn't continuum do an svn up before the build?

Assuming it does, there should be no problem...


Yes, continuum does a svn up before to start the build but if your project use 
some snapshot dependencies that aren't in a remote repo and you clean your 
local repo, the build will fail.




Thanks for confirming this!


Cheers,
Dave





On Fri, 2007-03-09 at 09:19 +0100, Emmanuel Venisse wrote:

No, it isn't cleaned.
Before to clean your local repo, you need to be sure all your snapshots are in 
your remote repository. Without them, your builds will fail

Emmanuel

Johan Lindquist a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Do you mean the local repository?  If so, no, i pretty sure it doesn't.

But have a look at the maven dependancy purge-local-repository plugin
[1], which can clear out all depdencies for the project.

Cheers,

Johan

[1]
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

David Leangen wrote:

Hello!

Can somebody please tell me whether or not the local maven cache gets
cleaned out before each build?


I want to make sure that each of the builds are "fresh".


Thanks!





- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8RLf1Tv8wj7aQ34RAt4hAJsFz4fodF8ZoSv3zlBlVlCzlzldtACfUujK
M8QJUqqjsxwX0hICdkK6ziE=
=ojBD
-END PGP SIGNATURE-












Preventing transitive snapshot downloading

2007-03-09 Thread Mikis

I have being struggling with problems regarding dependencies on apparently
released artifacts (not snapshots), which contain snapshot or faulty
dependencies (maybe transitive). If the artifacts also define their own
remote repositories, I'm unable to fix the problem by patching the intranet
or proxy repository, as this are circumvented .  

Is it possible to prevent Maven from downloading artifacts from Internet
repositories using the intranet/proxy repository as the only remote
repository? One way of doing this would be to define some kind of repository
whitelist defining the intranet repositories allowed. The offline line
option is not quite what I need as this would prevent usage of the intranet
repositories.

I fell I'm currently unable to guarantee my intranet Maven users that a
fully version controlled dependency definition in the poms will ensure a
fixed dependency tree (broken configuration management :-( ). 
-- 
View this message in context: 
http://www.nabble.com/Preventing-transitive-snapshot-downloading-tf3375610s177.html#a9394154
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: Code coverage with AspectJ?

2007-03-09 Thread Steve Shucker
I don't think AspectJ and Clover are compatible.  We use Cobertura 
instead.  The coverage report isn't as nice, but it is functional.  For 
maven1, there's also an emma plugin.


-Steve

Michael Waluk wrote:

Hi,

I can't find much else regarding using AspectJ with Clover.  Were you 
able

to get it working with an example AspectJ project?

Has anyone been successful with this yet?  We have it to the point 
where we

are getting 0% coverage for some reason, but I haven't spent much time on
it.  I'd bother if there were some success stories out there.

Thanks for any info,
Michael


On 7/26/06, Vincent Massol <[EMAIL PROTECTED]> wrote:




> -Original Message-
> From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
> Sent: mercredi 26 juillet 2006 19:53
> To: Maven Users List
> Subject: Re: Code coverage with AspectJ?
>
> On 26/07/06, Jason Chaffee <[EMAIL PROTECTED]> wrote:
> > I use cobetura and load-time weaving during unit-tests to do 
this.  To

> use load-time weaving you must fork at least once and provide the
> javaagent as an 
> >
> > -Original Message-
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 26, 2006 8:42 AM
> > To: 'Maven Users List'
> > Subject: RE: Code coverage with AspectJ?
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Carlos
> > > Sanchez
> > > Sent: mercredi 26 juillet 2006 17:29
> > > To: Maven Users List
> > > Subject: Re: Code coverage with AspectJ?
> > >
> > > On 7/26/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > > > Does anyone know how to generate a code coverage report when 
using

> > > > AspectJ in a project?
> > > >
> > > > The Clover plugin wants to rewrite and recompile the code, which
> > > > probably won't play well with all things aspect.
> > >
> > > seems not possible:
> > >
> > > [quote]
> > > Indeed running AspectJ AFTER Clover works. I'm using that for now,
so
> > > that I at least have SOME Clover data.
> > > The thing I would like though, is to run AspectJ BEFORE Clover 
runs,

> > > so I also have Clover data on the AspectJ-sources!
> > > As I see it, there are 2 ways to do this:
> > >
> > > 1) AspectJ weaves his new files and writes them out as sources so
> > > Clover can work on them. The problem here will be that
> > > Clover can't show the reports on AspectJ-files, but rather on the
> > > weaved files.
> >
> > Why not? If you point the Clover plugin to the generated sources it
> should
> > work fine, no? I guess I'd need to try it.
> >
> > > It's a solution, but what would be really great
> > > is:
> > > 2) Clover examines the AspectJ sources and adds his statements to
> > > those files. Then AspectJ can do his normal thing and
> > > Clover's reports should show the coverage in the correct files and
> > > calculate the EXACT amount of times the statements have
> > > been called.
> >
> > I don't understand this solution. Is clover running before 
aspectj in

> this
> > case? If so then we're back to the first solution above, no?
> >
> > > Unfortunately I already heard from Cenqua that atm Clover doesn't
know
> > > how to handle AspectJ sources... So I think that the
> > > plugin will have the same problems...
> >
> > Ah maybe there's some issue. If someone could show me a very simple
> aspectj
> > project (one simple class, one aspect, one test and a POM using the
> aspectj
> > plugin) then I could add it to the clover plugin's test suite and 
try

it
> > out.
>
> You will find some here :
> http://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-
> plugin/src/test/projects/
>
> But as Carlos mentioned. Clover and aspectJ is not really compatible

Thanks for the link. Could you elaborate just a little more about the
incompatibility before I spend too much time looking into it? :-)

Thanks
-Vincent

> > > > Is there a Maven2 plugin for emma or cobetura?
> > >
> > > cobertura, and it plays well with aspectj afaik, you have to make
sure
> > > the aspectj plugin doesn't recompile from sources for what I 
read in

> > > the cobertura mailing list
> > >
> > > >
> > > > --
> > > > Howard M. Lewis Ship
> > > > TWD Consulting, Inc.
> > > > Independent J2EE / Open-Source Java Consultant
> > > > Creator and PMC Chair, Apache Tapestry
> > > > Creator, Apache HiveMind
> > > >
> > > > Professional Tapestry training, mentoring, support
> > > > and project work.  http://howardlewisship.com
> > > >
> > > >

> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > I could give you my word as a Spaniard.
> > > No good. I've known too many Spaniards.
> > >  -- The Princess Bride
> > >
> > >
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 

Re: Does the maven cache get cleaned out on each build?

2007-03-09 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi David,

About the CI profile question - yes, that would be a sensible option.

Add a profile which includes a build element that defines the plugin.
Enable the profile using a system property or the like and set the
continuum command line to be -Dproperty=true ..

I hope that makes sense.

Cheers,

Johan

David Leangen wrote:
> Guys,
> 
> Thanks for this.
> 
>>> But have a look at the maven dependancy purge-local-
>>> repository plugin
>>> [1], which can clear out all depdencies for the project.
> 
> 
> Ok... but I don't necessary want to use that on my development
> machine... only on the CI server.
> 
> In that case, should I have some kind of "ci" profile or something and
> add that (somehow) to my build definition?

>> Before to clean your local repo, you need to be sure 
>> all your snapshots are in your remote repository. Without 
>> them, your builds will fail
> 
> Doesn't continuum do an svn up before the build?
> 
> Assuming it does, there should be no problem...
> 
> 
> Thanks for confirming this!
> 
> 
> Cheers,
> Dave
> 
> 
> 
> 
> 
> On Fri, 2007-03-09 at 09:19 +0100, Emmanuel Venisse wrote:
>> No, it isn't cleaned.
>> Before to clean your local repo, you need to be sure all your snapshots are 
>> in your remote repository. Without them, your builds will fail
>>
>> Emmanuel
>>
>> Johan Lindquist a écrit :
> Do you mean the local repository?  If so, no, i pretty sure it doesn't.
> 
> But have a look at the maven dependancy purge-local-repository plugin
> [1], which can clear out all depdencies for the project.
> 
> Cheers,
> 
> Johan
> 
> [1]
> http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
> 
> David Leangen wrote:
> Hello!
>
> Can somebody please tell me whether or not the local maven cache gets
> cleaned out before each build?
>
>
> I want to make sure that each of the builds are "fresh".
>
>
> Thanks!
>
>
>
>
>>>
>>>
>>>

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8V0o1Tv8wj7aQ34RAsRZAJ4h6c2/QqGM3Ar7axWXvEjAGJPdLwCfbJid
NhxksjsglOufmVL9V5Xjjhw=
=xOQk
-END PGP SIGNATURE-


install additional file in my local repository

2007-03-09 Thread Francois Le Fevre

Dear all

I would like to install to my local repository a jar (mosek a 
optimisation toolbox) which requires additional files to work ( 
libguide.so libmosekjava4_0.so  libsvml.so  mosek.jar  mskexpopt

libimf.so   libmosek.so mampl   moseksimskscopt
libmosekglb.so.4.0  libmosek.so.4.0 mosek   mskdgopt : I have to 
set LD_LIBRARY_PATH)


because, we are working in a developper team, we have deployed a maven proxy
Is there a way to put these files and to reference them in the pom 
(dependies management) in order that by doing a "mvn install", they are 
getting back?


Thanks for your help.

Francois

--
Francois Le Fevre
Bioinformatics Engineer
Computational Systems Biology Group
Genoscope
Tél. : (+33) 1 60 87 45 83
Web : http://www.genoscope.cns.fr/bioinfo


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



Re: Does the maven cache get cleaned out on each build?

2007-03-09 Thread David Leangen

Guys,

Thanks for this.

> > But have a look at the maven dependancy purge-local-
> > repository plugin
> > [1], which can clear out all depdencies for the project.


Ok... but I don't necessary want to use that on my development
machine... only on the CI server.

In that case, should I have some kind of "ci" profile or something and
add that (somehow) to my build definition?


> Before to clean your local repo, you need to be sure 
> all your snapshots are in your remote repository. Without 
> them, your builds will fail

Doesn't continuum do an svn up before the build?

Assuming it does, there should be no problem...


Thanks for confirming this!


Cheers,
Dave





On Fri, 2007-03-09 at 09:19 +0100, Emmanuel Venisse wrote:
> No, it isn't cleaned.
> Before to clean your local repo, you need to be sure all your snapshots are 
> in your remote repository. Without them, your builds will fail
> 
> Emmanuel
> 
> Johan Lindquist a écrit :
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> > 
> > Do you mean the local repository?  If so, no, i pretty sure it doesn't.
> > 
> > But have a look at the maven dependancy purge-local-repository plugin
> > [1], which can clear out all depdencies for the project.
> > 
> > Cheers,
> > 
> > Johan
> > 
> > [1]
> > http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
> > 
> > David Leangen wrote:
> >> Hello!
> >>
> >> Can somebody please tell me whether or not the local maven cache gets
> >> cleaned out before each build?
> >>
> >>
> >> I want to make sure that each of the builds are "fresh".
> >>
> >>
> >> Thanks!
> >>
> >>
> >>
> >>
> > 
> > - --
> > you too?
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> > 
> > iD8DBQFF8RLf1Tv8wj7aQ34RAt4hAJsFz4fodF8ZoSv3zlBlVlCzlzldtACfUujK
> > M8QJUqqjsxwX0hICdkK6ziE=
> > =ojBD
> > -END PGP SIGNATURE-
> > 
> > 
> > 
> 



Re: How to bypass unit testing durng multiproject build with Maven 2

2007-03-09 Thread Thorsten Heit
Hi,

> I think I can use "mvn package" to do a multiproject build with Maven 2,
> my
> question is - how do I do a quick build with "mvn package" by bypassing
> the
> junit testing.

http://maven.apache.org/general.html#skip-test

Is that what you're looking for?


Cheers

Thorsten

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



Re: MAVEN 2.0 and SCM-SVN

2007-03-09 Thread Max Bowsher
Phill Moran wrote:
> This could be a dumb questions but why does maven SCM default to checkout to
> /target/checkout? I would expect it to go to a dir under src/java. It also 
> seems
> that the SCM plug-in does not allow this to be overridden. I have tried 
> setting
>  and the others to no avail. I am using the standard MAVEN 
> dir
> structure.
> Unless I am missing something fundamental this issue makes the plug-in a 
> little
> useless

The thing you're missing is that the SCM code is usually used to do a
checkout in order to create a *temporary* working copy in order to build
a release from an SCM tag.

It's not at all clear what you are using it for, that you would find it
helpful to have it checking out under src.

Max.

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



Building eclipse RCP application using maven

2007-03-09 Thread sharmi

please tell  me the steps for building an eclipse RCP application using
maven.
-- 
View this message in context: 
http://www.nabble.com/Building-eclipse-RCP-application-using-maven-tf3374419s177.html#a9390451
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: Does the maven cache get cleaned out on each build?

2007-03-09 Thread Emmanuel Venisse

No, it isn't cleaned.
Before to clean your local repo, you need to be sure all your snapshots are in 
your remote repository. Without them, your builds will fail

Emmanuel

Johan Lindquist a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Do you mean the local repository?  If so, no, i pretty sure it doesn't.

But have a look at the maven dependancy purge-local-repository plugin
[1], which can clear out all depdencies for the project.

Cheers,

Johan

[1]
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

David Leangen wrote:

Hello!

Can somebody please tell me whether or not the local maven cache gets
cleaned out before each build?


I want to make sure that each of the builds are "fresh".


Thanks!






- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8RLf1Tv8wj7aQ34RAt4hAJsFz4fodF8ZoSv3zlBlVlCzlzldtACfUujK
M8QJUqqjsxwX0hICdkK6ziE=
=ojBD
-END PGP SIGNATURE-