RE: Problem when adding a m2 project into continuum

2006-05-23 Thread Simon Kitching
Hi Dario,
 
I had this problem too. The solution is to declare the scm url in every pom,
not just in the parent one.
 
Maven provides a java method for a project which returns its scm url. If
there is no explicit scm url declared in the project, it uses the one from
the parent and appends the project's artifactid. There isn't much else that
maven could do. Possibly Continuum could override the scm url returned by a
child module, as it knows the parent url, and the relative path from parent
to child as declared in the parent's module declaration; that seems a
little tricky to me though. And as noted above, declaring the scm path in
every pom solves the issue. 
 
Regards,
 
Simon


  _  

From: Dário Oliveros [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 3:33 AM
To: continuum-users@maven.apache.org
Subject: Problem when adding a m2 project into continuum



I am having trouble importing a multiproject pom.xml that has its modules
located in a different directory structure. Please see below:

main/
trunk/
pom.xml (multiproject)
components/
comp_1/
trunk/
pom.xml
...
comp_n/
trunk/
pom.xml

multiproject pom.xml:
...

components/comp_1
...
components/comp_n


So If I import /main/trunk/pom.xml, continuum tries to find the modules as
subdirectories under main/trunk.
I brought up this scenario since I use svn:externals in the main/trunk and
had no problem when checking out the entire project from svn. However, I got
stuck with continnum now :-(
I think it would be great to have a feature where you could decide whether
to import the entire multiproject (with all modules) or just the
multiproject itself.

Any comments or suggestions would be appreciated.
Dário
--
View this message in context:
http://www.nabble.com/Problem+when+adding+a+m2+project+into+continuum-t16696
51.html#a4525221
Sent from the Continuum - Users forum at Nabble.com.




Re: [m2] Getting SNAPSHOT information into a webapp

2006-05-23 Thread Kenney Westerhof
On Tue, 23 May 2006, Mark Chaimungkalanont wrote:

Maven writes a property file in the jar or war at
/META-INF/maven/groupId/artifactId/pom.properties.

For jars you can use a classloader to find that resource, but in the case
of a WAR the META-INF is not part of the classpath so you'd have to use
the servlet api to get the path to that file.

Code snippet:

public static String getVersion( String groupId, String artifactId )
throws IOException
{
ClassLoader cl = Thread.currentThread().getContextClassLoader();
Properties props = new Properties();

String propFileName = META-INF/maven/ + groupId.replace( '.',
'/' ) + / + artifactId + /pom.properties;
InputStream a = cl.getResourceAsStream( propFileName );
if ( a == null )
throw new IOException( Cannot find ' + propFileName + ' );
props.load( a );
return props.getProperty( version );
}


-- Kenney


 Guys,

 We're using Maven2 and wanted to know the best way to get version information 
 (including
 the SNAPSHOT timestamp, e.g. 1-0-SNAPSHOT-20050622 or sth) into a webapp that 
 was built
 with the mvn package?

 My guess is that there is a property ${maven.snapshot.version} or something 
 that we can
 use to generate a properties file so that the app can read this information. 
 Perhaps a
 filter copy plugin against one of the goals?

 Does anything know any references around this area? Have anyone got examples 
 they can share?

 Thanks,

 Mark C

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


--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Maven Archetypes

2006-05-23 Thread hermod.opstvedt
Hi

I am working on an archetype that is going to set up a special development 
environment, and I have the following question: Is it possible to specify an 
execution entry for archetypes. What I mean is that I want an Ant script or 
maybe a Mojo to execute during the archetype execution lifecycle. The reason 
beeing that I amongst other stuff want to get the latest version of a project 
from Subversion as an example.


Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: How to notify developers that test(s) fail?

2006-05-23 Thread Kenney Westerhof
On Mon, 22 May 2006, Dave Hoffer wrote:

You might want to take a look at continuus integration systems, like
Continuum (or CruiseControl or).

I'm sure you wouldn't want to send a mail from the pom itself, because
then somebody will be spammed on each build by anyone.. ;)

-- Kenney

 What is the best practice in m2 of notifying developers that a test(s)
 failed?



 I am working on generating the surefire test reports and I have found
 that a recent file check-in has broke 1 test.  How can I continue with
 the build process and notify the developer that he broke the build?
 Ideally, this hate mail could go to just the offending developer but in
 any case I need an HTML report that shows what test failed and why.



 What is the best way to do this?



 -dh



--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



RE: [m2.0.4] Javadoc aggregate problems with multiple modules projects

2006-05-23 Thread Roald Bankras
Adding the following snipped to your reporting section did the job for me. You 
might need to give maven more heap, you can do that by settings MAVEN_OPTS 
environment variable to '-Xmx1024m'

plugin
artifactIdmaven-javadoc-plugin/artifactId
configuration
aggregatetrue/aggregate
/configuration
/plugin


Roald Bankras
Software Engineer
JTeam b.v.


-Original Message-
From: Daun DeFrance [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 22, 2006 5:51 PM
To: Maven Users List
Subject: RE: [m2.0.4] Javadoc aggregate problems with multiple modules projects

Stefan,
I am having the same problem which I posted last Friday.  Removing the
aggregate=true flag allows the javadoc to run successfully.  I am at a
loss and haven't seen any responses indicating what the problem is.

Sorry I couldn't be more help, but if you find a solution, please post
it to the group.

Thanks,
Daun

-Original Message-
From: Stefan Kanev [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 22, 2006 9:31 AM
To: users@maven.apache.org
Subject: [m2.0.4] Javadoc aggregate problems with multiple modules
projects

Hi all.

Setting aggregate to true for the javadoc plugin doesn't seem to work
for
me, in a multiple-module build. I won't paste error message, because
they
are just too large, but it tells me that it can't find some classes
(from
external dependencies) that it succesfully finds when I'm building the
project. After that, I get a lot of java.lang.ClassCastException:
com.sun.tools.javadoc.ClassDocImpl exceptions and duh. The problem
disappears when I move those dependencies from the
dependencyManagement to
the dependencies tag in the code. It leads me to think, that the
javadoc
plugin ignores the dependencies in dependencyManagement.

I read somewhere (I don't remember where) that this is currently fixed
in
the CVS for maven-javadoc-plugin, but a fresh checkout produces the same
error.

Ideas, anyone?

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




-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 5/19/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 5/19/2006
 

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



Re: Maven vs Ivy

2006-05-23 Thread Wim Deblauwe

Interesting weblog Carlos, thank you for that. You should add that info to
the maven docs if it is not already there.

regards,

Wim

2006/5/22, Carlos Sanchez [EMAIL PROTECTED]:


It's possible right now, although not a good idea
See http://jroller.com/page/carlossg?entry=optional_dependencies_in_maven

On 5/22/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 At the moment, it's not doable out of the box but there have been
 countless discussions about some sort of features like this on this
 list. So expect some improvements in this area to make it in Maven
 2.1. On the other hand, you can always use some profiles or a super
 pom to manage more cleanly big dependencies (with a lot of optionnal
 transitives dependencies). This is how I do for Spring and Hibernate.

 On 5/22/06, Wim Deblauwe [EMAIL PROTECTED] wrote:
  I know it does, but it does not support configurations of
dependencies
  like I believe Ivy does. If you have a project X that can either
depend on Y
  or Z depending on what you like, you would need to declare both
dependencies
  optional in Maven altough it will not work if you omit both. You need
to
  choose between Y or Z. This cannot be easily expressed with Maven2.
 
  regards,
 
  Wim
 
  2006/5/22, Geoffrey De Smet [EMAIL PROTECTED]:
  
   Maven 2 supports optional dependencies.
  
   You can even exclude non-optional transitive dependencies.
  
   Wim Deblauwe wrote:
Interesting, thanks for the link.
   
The only thing that is really helpful in Ivy when looking at this
page
   is
the fact that you can choose between optional dependencies. I
think
   Maven
could use such a concept too.
   
regards,
   
Wim
   
2006/5/22, Jeff Mutonho [EMAIL PROTECTED]:
   
On 5/22/06, Wim Deblauwe [EMAIL PROTECTED] wrote:
 Hi,

 I really love Maven, but people in my organisation seem to have
   noticed
Ivy.
 I have not used Ivy, but I really like those nice screenshots.
Are
there
any
 things Ivy does that Maven2 currently can't do? One thing I see
is
   the
nice
 depencency graph (but hopefully someone will code that during
the
Google
 Summer of Code:)).

 Any more thoughts on this?

 regards,

 Wim


   
Could http://jayasoft.org/ivy/doc/m2comparison  be of any help ?
   
--
   
   
Jeff  Mutonho
   
GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   --
   With kind regards,
   Geoffrey De Smet
  
  
  
-
   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]




--
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: logging

2006-05-23 Thread Edwin Punzalan


I use redirection to a file, like so:

   mvn clean test  output.log


zdv wrote:

Hello, users.

I read all available documentation on site and googled a while,
I even looked through conf files and binary distribution, But
didn't find a simple way to log maven output.

(something which can be easily achieved in ant by -l switch)

This really confused me.

Can you give me a help?


  


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



Re: how can I make a profile active when a property is NOT set?

2006-05-23 Thread John Casey

FWIW, I hope you have a *really* compelling reason to skip your unit tests
by default. As long as we're writing things down for posterity, in
99.999%of cases this is a very, very bad idea. It means you have to go
out of your
way to test your code, which means the jars you're producing most likely
won't be tested.

Out of curiosity, what reason did you have for this?

-john

On 5/22/06, Max Cooper [EMAIL PROTECTED] wrote:


John,

That worked! Thanks. I am pretty sure I read something about that
before, so now I feel a bit silly to have asked. :-)

Anyway, I was asking so that I could have maven.test.skip set to true by
default, but still be able to override it on the command line. It seems
like this should work without any trickery, but there is a bug in
maven's handling of system properties that prevents it from working.
With help from Kenney Westerhof and you, I've got a solution now. I am
describing it here for anyone else that might need to do this, in hopes
that they will find it in the mailing list archives.

Put this in your settings.xml file to skip tests by default, while
retaining the ability to run them by putting -Dmaven.test.skip=false on
the command line:

 !-- skip tests by default, but allow override on command line --
 profile
   activation
 property
   name!maven.test.skip/name
 /property
   /activation
   properties
 maven.test.skiptrue/maven.test.skip
   /properties
 /profile

-Max

John Casey wrote:
 Try:

 activationpropertyname!X/name/property/activation

 ...activated when the system property is undefined.


activationpropertynameX/namevalue!Y/value/property/activation


 ...activated when the system property's value is != Y.

 HTH,

 John

 On 5/22/06, Max Cooper [EMAIL PROTECTED] wrote:


 I guess I should have been more clear. I want a profile to be active
 ONLY when the property X is NOT set.

 Here's my XML psuedo-code for what I want:

 activation
not
  property
nameX/name
  /property
/not
 /activation

 I have been playing with activeByDefault and using 'mvn
 help:active-profiles' to see what profiles are active, but I have not
 found a solution yet.

 -Max

 Allan Ramirez wrote:
  Yes, set the profile in the settings.xml  via activeProfiles
section.
 

http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
  Max Cooper wrote:
 
  I know that I can make a profile active when a property is set...
  activationpropertynameX/name/property/activation
 
  Or when a property is set to a certain value...
 

activationpropertynameX/namevalueY/value/property/activation

 
 
 
  Is there a way to make a profile active when a certain property is
NOT
  set?
 
  Thanks,
  -Max
 
 
-
  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: logging

2006-05-23 Thread John Casey

if you're on *nix, and you want to ensure that you see any severe errors in
your logfile, you should also add '21' to that command line. Usually, I'm
casually watching my builds, but want to have the option to go back and sift
through it, so I use this:

mvn clean test 21 | tee output.log

Cheers,

john

On 5/23/06, Edwin Punzalan [EMAIL PROTECTED] wrote:



I use redirection to a file, like so:

mvn clean test  output.log


zdv wrote:
 Hello, users.

 I read all available documentation on site and googled a while,
 I even looked through conf files and binary distribution, But
 didn't find a simple way to log maven output.

 (something which can be easily achieved in ant by -l switch)

 This really confused me.

 Can you give me a help?




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




Does maven really use %userprofile% ?

2006-05-23 Thread Ronald Iwema

Hi,

I'm fairly new to Maven(2), and I'm also working on a machine which isn't
mine. I have to set up a proxy to use Maven, and I know how to, I did it on
a machine of my own, by making a settings.xml and put it in
%userprofile%\.m2\
On this machine I did the same, but it did not work. It would only work when
I put the settings.xml in the %maven_home%\conf folder. It seemed to work
then, so the only explanation for me is that the settings.xml in my profile
folder was ignored. To make sure that was the case I did the following:

C:\development\sandboxecho %userprofile%
C:\Documents and Settings\NLIWER

Well, it seems that environment var is set as it should. Then I did the
following:

C:\development\sandboxmvn -X archetype:create
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from:
'c:\winnt\.m2\plugin- registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\development\ext\maven-2.0.4\bin\..\conf\plugin-registry.xml'

I cur the rest. I know the command is not properly used this way, but it
reveals something I did not expect:It is using c:\winnt\.m2\
Why would maven do that?

Kind Regards,
Ronald Iwema


Re: creating a mirror of central?

2006-05-23 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 I have also tried to use maven-proxy, and itself is fine UNTIL I start
 or use an older project that requires a jar from [central] and
 maven-proxy does not have it so tries to connect to ibiblio and it
 blacklists

Have you checked whether you need a HTTP proxy to allow your maven-proxy
to connect to ibiblio.org? If yes, do you have the correct settings in
your maven-proxy properties file?


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFEcsEuQvObkgCcDe0RAk3rAJ9I7uhrdQ4iqb4pSZOySYGhs48nkwCgzEGv
MSf3cdBv06+nSHarsZhSQHg=
=wSRg
-END PGP SIGNATURE-

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



Re: Does maven really use %userprofile% ?

2006-05-23 Thread Emmanuel Venisse

maven doesn't use %userprofile% but the java system property user.home

I don't know if this property is mapped to %USERPROFILE% or %HOMEPATH%

Emmanuel

Ronald Iwema a écrit :

Hi,

I'm fairly new to Maven(2), and I'm also working on a machine which isn't
mine. I have to set up a proxy to use Maven, and I know how to, I did it on
a machine of my own, by making a settings.xml and put it in
%userprofile%\.m2\
On this machine I did the same, but it did not work. It would only work 
when

I put the settings.xml in the %maven_home%\conf folder. It seemed to work
then, so the only explanation for me is that the settings.xml in my profile
folder was ignored. To make sure that was the case I did the following:

C:\development\sandboxecho %userprofile%
C:\Documents and Settings\NLIWER

Well, it seems that environment var is set as it should. Then I did the
following:

C:\development\sandboxmvn -X archetype:create
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from:
'c:\winnt\.m2\plugin- registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\development\ext\maven-2.0.4\bin\..\conf\plugin-registry.xml'

I cur the rest. I know the command is not properly used this way, but it
reveals something I did not expect:It is using c:\winnt\.m2\
Why would maven do that?

Kind Regards,
Ronald Iwema




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



Re: Does maven really use %userprofile% ?

2006-05-23 Thread Ronald Iwema

That actually explains the problem I guess..
I googled and found this:

http://www.jadetower.org/muses/archives/000189.html

Quote: There's a really annoying
bughttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4787931in the
Java virtual machine on Windows: the Java
*user.home* system property is based on the location of the Windows Desktop
folder not the Windows USERPROFILE variable.

So I tried
set MAVEN_OPTS -Duser.home=%USERPROFILE%

But that does not seem to work yet. Note, I tried it both with and without
the 
It is still pointing to c:\WinNT\.m2


On 5/23/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:


maven doesn't use %userprofile% but the java system property user.home

I don't know if this property is mapped to %USERPROFILE% or %HOMEPATH%

Emmanuel

Ronald Iwema a écrit :
 Hi,

 I'm fairly new to Maven(2), and I'm also working on a machine which
isn't
 mine. I have to set up a proxy to use Maven, and I know how to, I did it
on
 a machine of my own, by making a settings.xml and put it in
 %userprofile%\.m2\
 On this machine I did the same, but it did not work. It would only work
 when
 I put the settings.xml in the %maven_home%\conf folder. It seemed to
work
 then, so the only explanation for me is that the settings.xml in my
profile
 folder was ignored. To make sure that was the case I did the following:

 C:\development\sandboxecho %userprofile%
 C:\Documents and Settings\NLIWER

 Well, it seems that environment var is set as it should. Then I did the
 following:

 C:\development\sandboxmvn -X archetype:create
 + Error stacktraces are turned on.
 Maven version: 2.0.4
 [DEBUG] Building Maven user-level plugin registry from:
 'c:\winnt\.m2\plugin- registry.xml'
 [DEBUG] Building Maven global-level plugin registry from:
 'C:\development\ext\maven-2.0.4\bin\..\conf\plugin-registry.xml'

 I cur the rest. I know the command is not properly used this way, but it
 reveals something I did not expect:It is using c:\winnt\.m2\
 Why would maven do that?

 Kind Regards,
 Ronald Iwema



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




Re[2]: logging

2006-05-23 Thread zdv
Hello Edvin.

Yes, on unix it's more or less easy, windows don't have tee utility
by default and I don't want asking my customers installing something
like cygwin for this.

After all, i think it's not so bad idea for robust build tool having
configurable logging, after all, what's the benefit of having few
abstract logging classes in maven core over than just printing to
System.err if it can't help configuring logging?

What's the reason log4j logging used
in maven 1.x was removed from m2 ?

You wrote Tuesday, May 23, 2006, 10:24:40 AM:

 if you're on *nix, and you want to ensure that you see any severe errors in
 your logfile, you should also add '21' to that command line. Usually, I'm
 casually watching my builds, but want to have the option to go back and sift
 through it, so I use this:

mvn clean test 21 | tee output.log

-- 
Best regards,
 zdv  mailto:[EMAIL PROTECTED]


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



JavaCC plug-in 2

2006-05-23 Thread Stefano Fornari

Hi All,
I found out how to invoke the compiler (using the javacc:javacc goal).
I am sure it is a stupid question, please forgive me, but how can I
automatically compile the classes generated under target? Is adding a
src directory to the javac plug-in the only option?

Thanks in advance.

Stefano

--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215

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



Re: Does maven really use %userprofile% ?

2006-05-23 Thread Ronald Iwema

Well, it works now, but not like I wanted.
First wat did not work:
Setting a win environment variable MAVEN_OPTS to:
-Duser.home=%USERPROFILE%
or
-Duser.home=%USERPROFILE%

What did work was setting it to:
-Duser.home=C:\documents and settings\NLIWER

It will be just a part of setting up the workspace I guess...


On 5/23/06, Ronald Iwema [EMAIL PROTECTED] wrote:


That actually explains the problem I guess..
I googled and found this:

http://www.jadetower.org/muses/archives/000189.html

Quote: There's a really annoying 
bughttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4787931in the Java virtual 
machine on Windows: the Java
*user.home* system property is based on the location of the Windows
Desktop folder not the Windows USERPROFILE variable.

So I tried
set MAVEN_OPTS -Duser.home=%USERPROFILE%

But that does not seem to work yet. Note, I tried it both with and without
the 
It is still pointing to c:\WinNT\.m2



On 5/23/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

 maven doesn't use %userprofile% but the java system property user.home

 I don't know if this property is mapped to %USERPROFILE% or %HOMEPATH%

 Emmanuel

 Ronald Iwema a écrit :
  Hi,
 
  I'm fairly new to Maven(2), and I'm also working on a machine which
 isn't
  mine. I have to set up a proxy to use Maven, and I know how to, I did
 it on
  a machine of my own, by making a settings.xml and put it in
  %userprofile%\.m2\
  On this machine I did the same, but it did not work. It would only
 work
  when
  I put the settings.xml in the %maven_home%\conf folder. It seemed to
 work
  then, so the only explanation for me is that the settings.xml in my
 profile
  folder was ignored. To make sure that was the case I did the
 following:
 
  C:\development\sandboxecho %userprofile%
  C:\Documents and Settings\NLIWER
 
  Well, it seems that environment var is set as it should. Then I did
 the
  following:
 
  C:\development\sandboxmvn -X archetype:create
  + Error stacktraces are turned on.
  Maven version: 2.0.4
  [DEBUG] Building Maven user-level plugin registry from:
  'c:\winnt\.m2\plugin- registry.xml'
  [DEBUG] Building Maven global-level plugin registry from:
  'C:\development\ext\maven-2.0.4\bin\..\conf\plugin-registry.xml'
 
  I cur the rest. I know the command is not properly used this way, but
 it
  reveals something I did not expect:It is using c:\winnt\.m2\
  Why would maven do that?
 
  Kind Regards,
  Ronald Iwema
 


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





maven-surefire-plugin classpath

2006-05-23 Thread Nebojša Ćosić
Hi,
I am trying to execute tests, using surefire plugin, not having dependencies 
all dependencies from compilation class
path.
So, I have dependency A having provided scope, and dependency B having test 
scope.
As I understand documentation, only dependency B should be visible when 
executing tests.
Right?
Wrong.
All dependencies from the project are always (no matter scope) on the classpath 
when executing mvn test.

Is it a bug or feature?

Problem is that I am writing J2ME software, and for compilation I am using 
-bootclasspath javac parameter. Those stuff
should not appear when testing, where I am using simulated environment.

I am using maven 2.0.4
-- 
Regards,
Nebojša

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



Re: [m2] Getting SNAPSHOT information into a webapp

2006-05-23 Thread Mark Chaimungkalanont
Thanks Kenney. I think what I want is similar to how the pom.properties would normally be 
generated by Maven. As in, I want some code / cofiguration that can generate a properties 
file with the version in it.


For example, I want something to work like

eg.
myApp.properties.template (with contents)
version.from.maven=${maven.pom.version}-${maven.package.build.date}

to produce:

myApp.properties (with contents)

version.from.maven=1.0-SNAPSHOT-2006-05-22

And so I can place in the myApp.properties in the class path and easily read it?
-
ATLASSIAN - http://www.atlassian.com
Australia's Fastest Growing Software Company 2002-05 [BRW Magazine]

Kenney Westerhof wrote:

On Tue, 23 May 2006, Mark Chaimungkalanont wrote:

Maven writes a property file in the jar or war at
/META-INF/maven/groupId/artifactId/pom.properties.

For jars you can use a classloader to find that resource, but in the case
of a WAR the META-INF is not part of the classpath so you'd have to use
the servlet api to get the path to that file.

Code snippet:

public static String getVersion( String groupId, String artifactId )
throws IOException
{
ClassLoader cl = Thread.currentThread().getContextClassLoader();
Properties props = new Properties();

String propFileName = META-INF/maven/ + groupId.replace( '.',
'/' ) + / + artifactId + /pom.properties;
InputStream a = cl.getResourceAsStream( propFileName );
if ( a == null )
throw new IOException( Cannot find ' + propFileName + ' );
props.load( a );
return props.getProperty( version );
}


-- Kenney



Guys,

We're using Maven2 and wanted to know the best way to get version information 
(including
the SNAPSHOT timestamp, e.g. 1-0-SNAPSHOT-20050622 or sth) into a webapp that 
was built
with the mvn package?

My guess is that there is a property ${maven.snapshot.version} or something 
that we can
use to generate a properties file so that the app can read this information. 
Perhaps a
filter copy plugin against one of the goals?

Does anything know any references around this area? Have anyone got examples 
they can share?

Thanks,

Mark C

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



--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



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



Additional Repository

2006-05-23 Thread Chris Eidhof

Hi,

I'm trying to create an internal repository. It should only contain  
some libraries that are specific to our project, and not part of  
IBiblio. What I've done, is this (probably not right, so correct me  
where I'm wrong):


0. Add those libraries (3d-party jars) with mvn install:install-file
1. Add them as dependencies to my pom.xml
2. mvn install does a build successful.

I don't think every developer should do this, so what I want to do is  
share all those 3d-party libraries in an internal repository. I  
backed up my .m2 directory (and removed it), and this is what I did  
next.


1. Create a directory custom-repos on my webserver.
2. Recursively copied the directories from my local repository to my  
webserver (every custom library inside ~/.m2/repository)

3. Added the following line to my pom.xml:
  repositories
  repository
  idcustom.repository/id
  nameMy Custom Repository/name
  urlhttp://www.example.com/custom-repos//url
  /repository
  /repositories
4. mvn install

Well, maven doesn't find or doesn't know how to interact with my  
custom repository. Can anyone give me a hint on what I'm doing wrong?


Also, is there a naming convention for repository id's? I was  
thinking to use the package name of this project, something like  
com.example.project.


Thanks in advance,
Chris Eidhof



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



Re: Additional Repository

2006-05-23 Thread ben short

Hi,

Search the list for Structure of an Internal Repository.

and this is what i did...

I have added the following to my settings.xml

profile
idinternal/id
repositories
  repository
idinternal-release/id
nameInternal Release/name
urlhttp://192.168.100.20/maven2/release/url
  /repository
/repositories
  /profile

activeProfiles
   activeProfileinternal/activeProfile
 /activeProfiles

Also I added

text/xml   pom
test/plain md5 sha1

to /etc/mime.types



On 5/23/06, Chris Eidhof [EMAIL PROTECTED] wrote:

Hi,

I'm trying to create an internal repository. It should only contain
some libraries that are specific to our project, and not part of
IBiblio. What I've done, is this (probably not right, so correct me
where I'm wrong):

0. Add those libraries (3d-party jars) with mvn install:install-file
1. Add them as dependencies to my pom.xml
2. mvn install does a build successful.

I don't think every developer should do this, so what I want to do is
share all those 3d-party libraries in an internal repository. I
backed up my .m2 directory (and removed it), and this is what I did
next.

1. Create a directory custom-repos on my webserver.
2. Recursively copied the directories from my local repository to my
webserver (every custom library inside ~/.m2/repository)
3. Added the following line to my pom.xml:
   repositories
   repository
   idcustom.repository/id
   nameMy Custom Repository/name
   urlhttp://www.example.com/custom-repos//url
   /repository
   /repositories
4. mvn install

Well, maven doesn't find or doesn't know how to interact with my
custom repository. Can anyone give me a hint on what I'm doing wrong?

Also, is there a naming convention for repository id's? I was
thinking to use the package name of this project, something like
com.example.project.

Thanks in advance,
Chris Eidhof



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



Cobertura ?

2006-05-23 Thread SlinnHawkins, Jon (ELS)
Hi All, 
 
Started looking at Maven 2.0 a few weeks back, and have just revisited my
investigation work, what has happened to the cobertura plugin ?
 
Any ideas
 
Thanks

Jon


NPE using JavaCC

2006-05-23 Thread Stefano Fornari

Hi All,
still struggling with JavaCC and Maven. I have the following pom:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   artifactIdfunambol-framework/artifactId
   groupIdcom.funambol/groupId
   version3.0-SNAPSHOT/version
   nameFunambol Framework/name
   dependencies
   !--
   External dependencies
   --
   dependency
   artifactIdcommons-lang/artifactId
   groupIdcommons-lang/groupId
   version2.0/version
   /dependency

   dependency
   artifactIdservlet-api/artifactId
   groupIdjavax.servlet/groupId
   version2.4/version
   /dependency

   dependency
   artifactIdp6spy/artifactId
   groupIdp6spy/groupId
   version1.3/version
   /dependency
   /dependencies
   build
   plugins
   plugin
   groupIdnet.java.dev.javacc/groupId
   artifactIdjavacc/artifactId
   version4.0/version
   configuration
   /configuration
   /plugin
   /plugins
   /build

/project

And when I run mvn compile, I get a Null Pointer Exception:

[INFO] Scanning for projects...
[INFO] 

[INFO] Building Funambol Framework
[INFO]task-segment: [compile]
[INFO] 

Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.pom
897b downloaded
Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.jar
267K downloaded
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] null
[INFO] 
[INFO] Trace
java.lang.NullPointerException
   at 
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
[...]

Has anyone a clue?

Thanks in advance.

Stefano


--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215

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



Re: JavaCC plug-in 2

2006-05-23 Thread Arnaud Bailly
Stefano Fornari [EMAIL PROTECTED] writes:

 Hi All,
 I found out how to invoke the compiler (using the javacc:javacc goal).
 I am sure it is a stupid question, please forgive me, but how can I
 automatically compile the classes generated under target? Is adding a
 src directory to the javac plug-in the only option?

Hello,
AFAIK, the javacc plugin generate sources in target/generated-sources whcich are
automatically added to the files compiled. Could you send fragment of the
pom ?

regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.


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



How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread dariusz.p

It's possible to overwrite the same version of an artefact (when you forget
to increment version in pom.xml after you changed something in source code).
How to prevent from it? I use ftp server as internal repository (I can
switch to sth else if it's necessary). I would prefer to fix it on the
server side instead of pachting deploy-plugin (there is always a chance that
someone will have a wrong version of it). We have a big team of developers
and I'm affraid we might have some problems with maven (uncontrolled
overwriting).

Thank You a lot in advance,
Dariusz
--
View this message in context: 
http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
Sent from the Maven - Users forum at Nabble.com.


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



Re: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread Wim Deblauwe

Use the release plugin, this will automatically change the version to the
next SNAPSHOT version.

2006/5/23, dariusz.p [EMAIL PROTECTED]:



It's possible to overwrite the same version of an artefact (when you
forget
to increment version in pom.xml after you changed something in source
code).
How to prevent from it? I use ftp server as internal repository (I can
switch to sth else if it's necessary). I would prefer to fix it on the
server side instead of pachting deploy-plugin (there is always a chance
that
someone will have a wrong version of it). We have a big team of developers
and I'm affraid we might have some problems with maven (uncontrolled
overwriting).

Thank You a lot in advance,
Dariusz
--
View this message in context:
http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
Sent from the Maven - Users forum at Nabble.com.


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




Re: JavaCC plug-in 2

2006-05-23 Thread Stefano Fornari

Hi Arnaud, thanks for your reply.

Originally, it was:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   artifactIdfunambol-framework/artifactId
   groupIdcom.funambol/groupId
   version3.0-SNAPSHOT/version
   nameFunambol Framework/name
   dependencies
   !--
   External dependencies
   --
   [...]
   /dependencies
/projects

and I invoked the plugin goal directly with javacc:javacc and then
compile, but the generated code did not compile.

Now I am trying adding the plugin in the build section of the pom ,
but I am getting a strange NPE... (see the other message).

I am attaching the pom I testing now.

Thanks again.

Ste
On 5/23/06, Arnaud Bailly [EMAIL PROTECTED] wrote:

Stefano Fornari [EMAIL PROTECTED] writes:

 Hi All,
 I found out how to invoke the compiler (using the javacc:javacc goal).
 I am sure it is a stupid question, please forgive me, but how can I
 automatically compile the classes generated under target? Is adding a
 src directory to the javac plug-in the only option?

Hello,
AFAIK, the javacc plugin generate sources in target/generated-sources whcich are
automatically added to the files compiled. Could you send fragment of the
pom ?

regards,
--
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.


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





--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
artifactIdfunambol-framework/artifactId
groupIdcom.funambol/groupId
version3.0-SNAPSHOT/version
nameFunambol Framework/name
dependencies
!--
External dependencies
--
dependency
artifactIdcommons-lang/artifactId
groupIdcommons-lang/groupId
version2.0/version
/dependency

dependency
artifactIdservlet-api/artifactId
groupIdjavax.servlet/groupId
version2.4/version
/dependency

dependency
artifactIdp6spy/artifactId
groupIdp6spy/groupId
version1.3/version
/dependency
!--
Internal dependencies
--
dependency
artifactIdjibx-run/artifactId
groupIdjibx/groupId
version3.0/version
scopeprovided/scope
/dependency
dependency
artifactIdfunambol-ext/artifactId
groupIdcom.funambol/groupId
version3.0-SNAPSHOT/version
/dependency
/dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0/version
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdnet.java.dev.javacc/groupId
artifactIdjavacc/artifactId
version4.0/version
/plugin
/plugins
/build

/project

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

Re: logging

2006-05-23 Thread Trygve Laugstøl

zdv wrote:

Hello Edvin.

Yes, on unix it's more or less easy, windows don't have tee utility
by default and I don't want asking my customers installing something
like cygwin for this.

After all, i think it's not so bad idea for robust build tool having
configurable logging, after all, what's the benefit of having few
abstract logging classes in maven core over than just printing to
System.err if it can't help configuring logging?

What's the reason log4j logging used
in maven 1.x was removed from m2 ?


Because it would be an unnecessary dependency. It should be pretty easy 
to get Plexus's logger to write the output to a file, or even just use 
the existing log4j adapter that Plexus already has.


It's just a matter of effort, feel free to volunteer ;)

--
Trygve

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



RE: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread Plygawko Dariusz \(Centrala PZUSA\)
Is it possible to workaround this problem if I don't want to use snapshots? :)


-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:14 PM
To: Maven Users List
Subject: Re: How to prevent from deploying the same version of artefact twice?


Use the release plugin, this will automatically change the version to the
next SNAPSHOT version.

2006/5/23, dariusz.p [EMAIL PROTECTED]:


 It's possible to overwrite the same version of an artefact (when you
 forget
 to increment version in pom.xml after you changed something in source
 code).
 How to prevent from it? I use ftp server as internal repository (I can
 switch to sth else if it's necessary). I would prefer to fix it on the
 server side instead of pachting deploy-plugin (there is always a chance
 that
 someone will have a wrong version of it). We have a big team of developers
 and I'm affraid we might have some problems with maven (uncontrolled
 overwriting).

 Thank You a lot in advance,
 Dariusz
 --
 View this message in context:
 http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
 Sent from the Maven - Users forum at Nabble.com.


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



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



Re: Cobertura ?

2006-05-23 Thread Patrick Kimber

The plugin works well for me:

Add the following build configuration into the pom.xml file:

 build
   plugins
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   executions
 execution
   goals
 goalclean/goal
   /goals
 /execution
   /executions
 /plugin
   ...

Add the following plugin configuration into the pom.xml file:

 reporting
   plugins
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
 /plugin

Need to upgrade to Maven 2.0.3.

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:

Hi All,

Started looking at Maven 2.0 a few weeks back, and have just revisited my
investigation work, what has happened to the cobertura plugin ?

Any ideas

Thanks

Jon




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



Re: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread ben short

Kind of going against the whole idea of maven then.

On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:

Is it possible to workaround this problem if I don't want to use snapshots? :)


-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:14 PM
To: Maven Users List
Subject: Re: How to prevent from deploying the same version of artefact twice?


Use the release plugin, this will automatically change the version to the
next SNAPSHOT version.

2006/5/23, dariusz.p [EMAIL PROTECTED]:


 It's possible to overwrite the same version of an artefact (when you
 forget
 to increment version in pom.xml after you changed something in source
 code).
 How to prevent from it? I use ftp server as internal repository (I can
 switch to sth else if it's necessary). I would prefer to fix it on the
 server side instead of pachting deploy-plugin (there is always a chance
 that
 someone will have a wrong version of it). We have a big team of developers
 and I'm affraid we might have some problems with maven (uncontrolled
 overwriting).

 Thank You a lot in advance,
 Dariusz
 --
 View this message in context:
 
http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
 Sent from the Maven - Users forum at Nabble.com.


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



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




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



Re: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread ben short

In the Better Builds with Maven book, Section 7, it describes Team
Collaboration with Maven.

It describes that when you use the deploy goal to deploy to a remote
repostitry, the file names are postfixed with a time stamp. Such as
proficio-api-1.0-20060211.131114-1.jar


From the book..


In Maven, this is achieved by regularly deploying snapshots to a
shared repository, such as the internal repository set up in section
7.3. Considering that example, you'll see that the repository was
defined in proficio/pom.xml:
Better Builds With Maven 214
Team Collaboration with Maven
...
distributionManagement
repository
idinternal/id
urlfile://localhost/c:/mvnbook/repository/internal/url
/repository
...
/distributionManagement
Now, deploy proficio-api to the repository with the following command:
C:\mvnbook\proficio\proficio-api mvn deploy
You'll see that it is treated differently than when it was installed
in the local repository. The filename that is used is similar to
proficio-api-1.0-20060211.131114-1.jar. In this case, the version used
is the time that it was deployed (in the UTC timezone) and the build
number. If you were to deploy again, the time stamp would change and
the build number would increment to 2.
This technique allows you to continue using the latest version by
declaring a dependency on 1.0-SNAPSHOT, or to lock down a stable
version by declaring the dependency version to be the specific
equivalent such as 1.0-20060211.131114-1. While this is not usually
the case, locking the version in this way may be important if there
are recent changes to the repository that need to be ignored
temporarily.


On 5/23/06, ben short [EMAIL PROTECTED] wrote:

Kind of going against the whole idea of maven then.

On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:
 Is it possible to workaround this problem if I don't want to use snapshots? :)


 -Original Message-
 From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 12:14 PM
 To: Maven Users List
 Subject: Re: How to prevent from deploying the same version of artefact twice?


 Use the release plugin, this will automatically change the version to the
 next SNAPSHOT version.

 2006/5/23, dariusz.p [EMAIL PROTECTED]:
 
 
  It's possible to overwrite the same version of an artefact (when you
  forget
  to increment version in pom.xml after you changed something in source
  code).
  How to prevent from it? I use ftp server as internal repository (I can
  switch to sth else if it's necessary). I would prefer to fix it on the
  server side instead of pachting deploy-plugin (there is always a chance
  that
  someone will have a wrong version of it). We have a big team of developers
  and I'm affraid we might have some problems with maven (uncontrolled
  overwriting).
 
  Thank You a lot in advance,
  Dariusz
  --
  View this message in context:
  
http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
  Sent from the Maven - Users forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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





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



RE: Cobertura ?

2006-05-23 Thread SlinnHawkins, Jon (ELS)
Thanks, 

This is what I have.  

The cobertura-maven-plugin does not exist in in the ibiblio repository any
more, and links to the plugin don't work ???

http://mojo.codehaus.org/cobertura-maven-plugin/

Cheers

-Original Message-
From: Patrick Kimber [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 11:43
To: Maven Users List
Subject: Re: Cobertura ?

The plugin works well for me:

Add the following build configuration into the pom.xml file:

  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
  execution
goals
  goalclean/goal
/goals
  /execution
/executions
  /plugin
...

Add the following plugin configuration into the pom.xml file:

  reporting
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  /plugin

Need to upgrade to Maven 2.0.3.

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
 Hi All,

 Started looking at Maven 2.0 a few weeks back, and have just revisited 
 my investigation work, what has happened to the cobertura plugin ?

 Any ideas

 Thanks

 Jon



-
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: Cobertura ?

2006-05-23 Thread Patrick Kimber

Do you have this in your pom.xml?

repositories
   repository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
   enabledtrue/enabled
 /snapshots
 releases
   enabledfalse/enabled
 /releases
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
   enabledtrue/enabled
 /snapshots
 releases
   enabledfalse/enabled
 /releases
   /pluginRepository
 /pluginRepositories

There have been problems with the Codehaus web site.  See
http://www.codehaus.org/

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:

Thanks,

This is what I have.

The cobertura-maven-plugin does not exist in in the ibiblio repository any
more, and links to the plugin don't work ???

http://mojo.codehaus.org/cobertura-maven-plugin/

Cheers

-Original Message-
From: Patrick Kimber [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 11:43
To: Maven Users List
Subject: Re: Cobertura ?

The plugin works well for me:

Add the following build configuration into the pom.xml file:

  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
  execution
goals
  goalclean/goal
/goals
  /execution
/executions
  /plugin
...

Add the following plugin configuration into the pom.xml file:

  reporting
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  /plugin

Need to upgrade to Maven 2.0.3.

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
 Hi All,

 Started looking at Maven 2.0 a few weeks back, and have just revisited
 my investigation work, what has happened to the cobertura plugin ?

 Any ideas

 Thanks

 Jon



-
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: Cobertura ?

2006-05-23 Thread SlinnHawkins, Jon (ELS)
Still no joy.

It doesn't seem to exist in http://snapshots.maven.codehaus.org/maven2/
either

I presume if they are having problems at codehaus, it my just reappear
later. 

As long as no one knows of any reason fro it being dropped

Cheers

Jon
 

-Original Message-
From: Patrick Kimber [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 12:05
To: Maven Users List
Subject: Re: Cobertura ?

Do you have this in your pom.xml?

repositories
repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories

There have been problems with the Codehaus web site.  See
http://www.codehaus.org/

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
 Thanks,

 This is what I have.

 The cobertura-maven-plugin does not exist in in the ibiblio repository 
 any more, and links to the plugin don't work ???

 http://mojo.codehaus.org/cobertura-maven-plugin/

 Cheers

 -Original Message-
 From: Patrick Kimber [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 11:43
 To: Maven Users List
 Subject: Re: Cobertura ?

 The plugin works well for me:

 Add the following build configuration into the pom.xml file:

   build
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
 executions
   execution
 goals
   goalclean/goal
 /goals
   /execution
 /executions
   /plugin
 ...

 Add the following plugin configuration into the pom.xml file:

   reporting
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
   /plugin

 Need to upgrade to Maven 2.0.3.

 On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
  Hi All,
 
  Started looking at Maven 2.0 a few weeks back, and have just 
  revisited my investigation work, what has happened to the cobertura
plugin ?
 
  Any ideas
 
  Thanks
 
  Jon
 
 

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



cargo-maven-plugin

2006-05-23 Thread Roald Bankras
Hey

 

Does anyone know where to find extensive documentation on how to configure the 
cargo-maven-plugin?

I’m especially interrested in pointing to existing configuration files.

Roald Bankras
Software Engineer
JTeam b.v.



 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
 


Re: NPE using JavaCC

2006-05-23 Thread Tim Kettler

Stefano Fornari schrieb:

Hi All,
still struggling with JavaCC and Maven. I have the following pom:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   artifactIdfunambol-framework/artifactId
   groupIdcom.funambol/groupId
   version3.0-SNAPSHOT/version
   nameFunambol Framework/name
   dependencies


[...]


   build
   plugins
   plugin
   groupIdnet.java.dev.javacc/groupId
   artifactIdjavacc/artifactId
   version4.0/version
   configuration
   /configuration
   /plugin
   /plugins
   /build

/project


Are your sure the plugin with the artifact id 'javacc' with the groupid 'net.java.dev' 
exists? I only know the javacc plugin from the mojo project over at codehaus.org.


The mojo homepage is currently down due to the codehaus outage but you can have a look at 
the apt sources of the javacc-plugin site here: 
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/src/site/apt/index.apt. It's 
quite readable.


Or you can checkout the plugin sources via svn from here: 
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/. and build the site locally 
with 'mvn site:site'.





[...]

Has anyone a clue?

Thanks in advance.

Stefano




Hope this help
-Tim

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



RE: cargo-maven-plugin

2006-05-23 Thread Vincent Massol
Hi Roald,

 -Original Message-
 From: Roald Bankras [mailto:[EMAIL PROTECTED]
 Sent: mardi 23 mai 2006 13:57
 To: Maven Users List
 Subject: cargo-maven-plugin
 
 Hey
 
 
 
 Does anyone know where to find extensive documentation on how to configure
 the cargo-maven-plugin?
 
 I'm especially interrested in pointing to existing configuration files.
 
Extensive doc is available on http://cargo.codehaus.org.

WARNING: Codehaus has had a total outage for more than a week and we're just
recovering. The project web sites still have several issues. This is true
for cargo. You should still be able to find what you need there.

Please ask all cargo-related questions on the cargo mailing lists.

Thanks
-Vincent






___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

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



Re: NPE using JavaCC

2006-05-23 Thread Stefano Fornari

Hi Tim,
I am sure it exists, otherwise I get an error that the plugin cannot
be found. The weird thing is that the NPE is in the maven code, not
int the plug-in code but I am pretty sure it is a configuration
problem (actually, the fact I get a NPE is probably a maven bug, but
due to a not correct pom).

Thanks for your reply.

Stefano

On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:

Stefano Fornari schrieb:
 Hi All,
 still struggling with JavaCC and Maven. I have the following pom:

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
artifactIdfunambol-framework/artifactId
groupIdcom.funambol/groupId
version3.0-SNAPSHOT/version
nameFunambol Framework/name
dependencies

[...]

build
plugins
plugin
groupIdnet.java.dev.javacc/groupId
artifactIdjavacc/artifactId
version4.0/version
configuration
/configuration
/plugin
/plugins
/build

 /project

Are your sure the plugin with the artifact id 'javacc' with the groupid 
'net.java.dev'
exists? I only know the javacc plugin from the mojo project over at 
codehaus.org.

The mojo homepage is currently down due to the codehaus outage but you can have 
a look at
the apt sources of the javacc-plugin site here:
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/src/site/apt/index.apt.
 It's
quite readable.

Or you can checkout the plugin sources via svn from here:
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/. and build the 
site locally
with 'mvn site:site'.



 [...]

 Has anyone a clue?

 Thanks in advance.

 Stefano



Hope this help
-Tim

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





--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215

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



Re: NPE using JavaCC

2006-05-23 Thread Tim Kettler


The pom of the artifact you are referencing in your plugin definition 
(http://repo.mergere.com/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.pom) has a 
packaging of type 'jar' and not 'maven-plugin' as it should if it really is a plugin. I 
think this is just javacc itself.


Or does your javacc-plugin come from an other repository?

-Tim

Stefano Fornari schrieb:

Hi Tim,
I am sure it exists, otherwise I get an error that the plugin cannot
be found. The weird thing is that the NPE is in the maven code, not
int the plug-in code but I am pretty sure it is a configuration
problem (actually, the fact I get a NPE is probably a maven bug, but
due to a not correct pom).

Thanks for your reply.

Stefano

On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:

Stefano Fornari schrieb:
 Hi All,
 still struggling with JavaCC and Maven. I have the following pom:

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
artifactIdfunambol-framework/artifactId
groupIdcom.funambol/groupId
version3.0-SNAPSHOT/version
nameFunambol Framework/name
dependencies

[...]

build
plugins
plugin
groupIdnet.java.dev.javacc/groupId
artifactIdjavacc/artifactId
version4.0/version
configuration
/configuration
/plugin
/plugins
/build

 /project

Are your sure the plugin with the artifact id 'javacc' with the 
groupid 'net.java.dev'
exists? I only know the javacc plugin from the mojo project over at 
codehaus.org.


The mojo homepage is currently down due to the codehaus outage but you 
can have a look at

the apt sources of the javacc-plugin site here:
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/src/site/apt/index.apt. 
It's

quite readable.

Or you can checkout the plugin sources via svn from here:
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/. and 
build the site locally

with 'mvn site:site'.



 [...]

 Has anyone a clue?

 Thanks in advance.

 Stefano



Hope this help
-Tim

-
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: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread Plygawko Dariusz \(Centrala PZUSA\)
Yes, developing should be done using SNAPHOTs. But still from time to time 
someone will have to deploy stable version (without -SNAPSHOT) and I after 
it would like to make this file completly safe and read-only(automatically). 
But I don't know how to...

-Original Message-
From: ben short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:48 PM
To: Maven Users List
Subject: Re: How to prevent from deploying the same version of artefact twice?


Kind of going against the whole idea of maven then.

On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:
 Is it possible to workaround this problem if I don't want to use snapshots? :)


 -Original Message-
 From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 12:14 PM
 To: Maven Users List
 Subject: Re: How to prevent from deploying the same version of artefact twice?


 Use the release plugin, this will automatically change the version to the
 next SNAPSHOT version.

 2006/5/23, dariusz.p [EMAIL PROTECTED]:
 
 
  It's possible to overwrite the same version of an artefact (when you
  forget
  to increment version in pom.xml after you changed something in source
  code).
  How to prevent from it? I use ftp server as internal repository (I can
  switch to sth else if it's necessary). I would prefer to fix it on the
  server side instead of pachting deploy-plugin (there is always a chance
  that
  someone will have a wrong version of it). We have a big team of developers
  and I'm affraid we might have some problems with maven (uncontrolled
  overwriting).
 
  Thank You a lot in advance,
  Dariusz
  --
  View this message in context:
  http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
  Sent from the Maven - Users forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



[M2] Setting goals for release:perform? (REPOST)

2006-05-23 Thread Paul Spencer

The default goals for release:perform are deploy and site:deploy.
How do I change them in the pom?

From the command line:
   mvn release:perform -Dgoal=deploy

Paul Spencer


-
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: creating a mirror of central?

2006-05-23 Thread Darren Hartford
It's not proxy issues - maven-proxy can't help if ibiblio is down when
trying to download a new jar ;-)

 -Original Message-
 From: Thorsten Heit [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 23, 2006 4:01 AM
 To: Maven Users List
 Subject: Re: creating a mirror of central?
 
 Hi,
 
  I have also tried to use maven-proxy, and itself is fine 
 UNTIL I start 
  or use an older project that requires a jar from [central] and 
  maven-proxy does not have it so tries to connect to ibiblio and it 
  blacklists
 
 Have you checked whether you need a HTTP proxy to allow your 
 maven-proxy to connect to ibiblio.org? If yes, do you have 
 the correct settings in your maven-proxy properties file?
 
 
 Thorsten

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



Re: creating a mirror of central?

2006-05-23 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 It's not proxy issues - maven-proxy can't help if ibiblio is down when
 trying to download a new jar ;-)

Indeed :-)
But you can configure maven-proxy to access a different central
repository; it's not mandatory to use ibiblio...

See also
http://www.nabble.com/Announce%3A+New+european+(Amsterdam,+NL)+Maven+2.0+mirror-t1642475.html


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFEcwV9QvObkgCcDe0RAv+VAJ0Q4I+E55cyeDNFzfnWNtkMW+VjvwCfemVp
iB1RKrdtoOU/CSN743k0c7s=
=UUhv
-END PGP SIGNATURE-

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



Maven 2 jar plugin

2006-05-23 Thread rebels_mascot

How do I include other files in a jar besides the class files? When I use mvn
install it will create jars for all my sub projects with the class files but
doesn't include the xml files I have in the packages.

I checked out maven-jar-plugin but couldn't see anything to change so I can
included xml files.

Thanks,
Brian
--
View this message in context: 
http://www.nabble.com/Maven+2+jar+plugin-t1668728.html#a4522325
Sent from the Maven - Users forum at Nabble.com.


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



Re: How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread ben short

Ah i see what you are saying.

Assuming that your developers are using svn ( or other source control
) in a correct manner, the release plugin should sort you out.

http://maven.apache.org/plugins/maven-release-plugin/introduction.html

But i guess if you want to make doubley sure you could have a release
site and a prerelease site. the developers release to the prerelease
site and then someone vets the release and if ok moves it to the
release site.


On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:

Yes, developing should be done using SNAPHOTs. But still from time to time someone will have to deploy 
stable version (without -SNAPSHOT) and I after it would like to make this file 
completly safe and read-only(automatically). But I don't know how to...

-Original Message-
From: ben short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:48 PM
To: Maven Users List
Subject: Re: How to prevent from deploying the same version of artefact twice?


Kind of going against the whole idea of maven then.

On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:
 Is it possible to workaround this problem if I don't want to use snapshots? :)


 -Original Message-
 From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 12:14 PM
 To: Maven Users List
 Subject: Re: How to prevent from deploying the same version of artefact twice?


 Use the release plugin, this will automatically change the version to the
 next SNAPSHOT version.

 2006/5/23, dariusz.p [EMAIL PROTECTED]:
 
 
  It's possible to overwrite the same version of an artefact (when you
  forget
  to increment version in pom.xml after you changed something in source
  code).
  How to prevent from it? I use ftp server as internal repository (I can
  switch to sth else if it's necessary). I would prefer to fix it on the
  server side instead of pachting deploy-plugin (there is always a chance
  that
  someone will have a wrong version of it). We have a big team of developers
  and I'm affraid we might have some problems with maven (uncontrolled
  overwriting).
 
  Thank You a lot in advance,
  Dariusz
  --
  View this message in context:
  
http://www.nabble.com/How+to+prevent+from+deploying+the+same+version+of+artefact+twice--t1668061.html#a4520449
  Sent from the Maven - Users forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



-
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: Maven 2 jar plugin

2006-05-23 Thread ben short

I think you need to put the xml files in src/main/resorces in the same
package structure. then maven will pull them in for you.

Ben

On 5/23/06, rebels_mascot [EMAIL PROTECTED] wrote:


How do I include other files in a jar besides the class files? When I use mvn
install it will create jars for all my sub projects with the class files but
doesn't include the xml files I have in the packages.

I checked out maven-jar-plugin but couldn't see anything to change so I can
included xml files.

Thanks,
Brian
--
View this message in context: 
http://www.nabble.com/Maven+2+jar+plugin-t1668728.html#a4522325
Sent from the Maven - Users forum at Nabble.com.


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




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



Re: NPE using JavaCC

2006-05-23 Thread Stefano Fornari

That's a great catch!
I actually assumed I could use it as plugin, because when I ran mvn
javacc:javacc, I get:

INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'javacc'.
[INFO] 

[INFO] Building Funambol Framework
[INFO]task-segment: [javacc:javacc]
[INFO] 

Downloading: http://repo1.maven.org/maven2/javacc/javacc/3.2/javacc-3.2.pom
281b downloaded
[WARNING] While downloading javacc:javacc:3.2
 This artifact has been relocated to net.java.dev.javacc:javacc:3.2.


Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/3.2/javacc-3.2.pom
162b downloaded
Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/3.2/javacc-3.2.jar
369K downloaded

so I assumed it downloaded the plug-in as well. It looks like it was a
wrong assumption.

Now I would like that maven would invoke the javacc source generation
without calling javacc:javacc. I guess I have to specify some plug in
or something, because now it does not work. Sorry to bother you, but
the codehous site is down and I could not find any information
googleling

Stefano

On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:


The pom of the artifact you are referencing in your plugin definition
(http://repo.mergere.com/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.pom) 
has a
packaging of type 'jar' and not 'maven-plugin' as it should if it really is a 
plugin. I
think this is just javacc itself.

Or does your javacc-plugin come from an other repository?

-Tim

Stefano Fornari schrieb:
 Hi Tim,
 I am sure it exists, otherwise I get an error that the plugin cannot
 be found. The weird thing is that the NPE is in the maven code, not
 int the plug-in code but I am pretty sure it is a configuration
 problem (actually, the fact I get a NPE is probably a maven bug, but
 due to a not correct pom).

 Thanks for your reply.

 Stefano

 On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:
 Stefano Fornari schrieb:
  Hi All,
  still struggling with JavaCC and Maven. I have the following pom:
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 artifactIdfunambol-framework/artifactId
 groupIdcom.funambol/groupId
 version3.0-SNAPSHOT/version
 nameFunambol Framework/name
 dependencies

 [...]

 build
 plugins
 plugin
 groupIdnet.java.dev.javacc/groupId
 artifactIdjavacc/artifactId
 version4.0/version
 configuration
 /configuration
 /plugin
 /plugins
 /build
 
  /project

 Are your sure the plugin with the artifact id 'javacc' with the
 groupid 'net.java.dev'
 exists? I only know the javacc plugin from the mojo project over at
 codehaus.org.

 The mojo homepage is currently down due to the codehaus outage but you
 can have a look at
 the apt sources of the javacc-plugin site here:
 
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/src/site/apt/index.apt.
 It's
 quite readable.

 Or you can checkout the plugin sources via svn from here:
 http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/. and
 build the site locally
 with 'mvn site:site'.

 
 
  [...]
 
  Has anyone a clue?
 
  Thanks in advance.
 
  Stefano
 
 

 Hope this help
 -Tim

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





--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215

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



RE : How to prevent from deploying the same version of artefact twice?

2006-05-23 Thread Olivier Lamy
With scp deployement some file permissions are setted. (look at
filepermissions in your settings).
Have look on the deployed artifacts.
On a solaris machine :
ls -l says :
rwxr-xr-x   1 olamy
(olamy is my user)
I think it's enough protected ;-).

For a snapshot repo filepermissions must be different (because other
users can override maven metadata).
Note : there is an issue concerning this
http://jira.codehaus.org/browse/WAGONSSH-44
A workaround for this is to running a script which correctly set file
permissions when you deploy something new (groupId, artifactId or
version ):
On my corporate env we do (users add this in their crontab) :
find /local/maven/maven2/snapshots ! -perm 775 -type d -user $1 -exec
chmod 775 {} \;
find /local/maven/maven2/snapshots ! -perm 664 -iname
maven-metadata.xml* -user $1 -exec chmod 664 {} \;

/local/maven/maven2/snapshots is the snapshots repository where are
deployed the snapshots artifacts.

HTH,

- Olivier


-Message d'origine-
De : Plygawko Dariusz (Centrala PZUSA) [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 23 mai 2006 14:48
À : Maven Users List
Objet : RE: How to prevent from deploying the same version of artefact
twice?


Yes, developing should be done using SNAPHOTs. But still from time to
time someone will have to deploy stable version (without -SNAPSHOT)
and I after it would like to make this file completly safe and
read-only(automatically). But I don't know how to...

-Original Message-
From: ben short [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 12:48 PM
To: Maven Users List
Subject: Re: How to prevent from deploying the same version of artefact
twice?


Kind of going against the whole idea of maven then.

On 5/23/06, Plygawko Dariusz (Centrala PZUSA) [EMAIL PROTECTED] wrote:
 Is it possible to workaround this problem if I don't want to use 
 snapshots? :)


 -Original Message-
 From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 12:14 PM
 To: Maven Users List
 Subject: Re: How to prevent from deploying the same version of 
 artefact twice?


 Use the release plugin, this will automatically change the version to 
 the next SNAPSHOT version.

 2006/5/23, dariusz.p [EMAIL PROTECTED]:
 
 
  It's possible to overwrite the same version of an artefact (when you

  forget to increment version in pom.xml after you changed something 
  in source code).
  How to prevent from it? I use ftp server as internal repository (I
can
  switch to sth else if it's necessary). I would prefer to fix it on
the
  server side instead of pachting deploy-plugin (there is always a
chance
  that
  someone will have a wrong version of it). We have a big team of
developers
  and I'm affraid we might have some problems with maven (uncontrolled
  overwriting).
 
  Thank You a lot in advance,
  Dariusz
  --
  View this message in context: 
  http://www.nabble.com/How+to+prevent+from+deploying+the+same+version
  +of+artefact+twice--t1668061.html#a4520449
  Sent from the Maven - Users forum at Nabble.com.
 
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



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: cargo-maven-plugin

2006-05-23 Thread Roald Bankras
Hey Vincent

Thanks for the info, but I already found that what I want is on your wishlist. 
CARGO-214 describes exactly what I want. Maybe I'll even start develop it.

Roald Bankras
Software Engineer
JTeam b.v.

-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 2:06 PM
To: 'Maven Users List'
Subject: RE: cargo-maven-plugin

Hi Roald,

 -Original Message-
 From: Roald Bankras [mailto:[EMAIL PROTECTED]
 Sent: mardi 23 mai 2006 13:57
 To: Maven Users List
 Subject: cargo-maven-plugin
 
 Hey
 
 
 
 Does anyone know where to find extensive documentation on how to configure
 the cargo-maven-plugin?
 
 I'm especially interrested in pointing to existing configuration files.
 
Extensive doc is available on http://cargo.codehaus.org.

WARNING: Codehaus has had a total outage for more than a week and we're just
recovering. The project web sites still have several issues. This is true
for cargo. You should still be able to find what you need there.

Please ask all cargo-related questions on the cargo mailing lists.

Thanks
-Vincent






___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

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



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
 

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



[m2]Surefire: classesDirectory not added to test classpath in forking

2006-05-23 Thread Andreas Rudolf

Hi,

since surefire 2.2 classesDirectory  in forking lifecycle isn't used. 
It appears not in the Test classpath.
Is it a bug, or do I miss something?

Best regards

Andreas

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.2:test' --
[DEBUG]   (f) basedir = c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin
[DEBUG]   (f) childDelegation = true
[DEBUG]   (f) classesDirectory =
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\emma\data
[DEBUG]   (f) classpathElements =
[c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\classes,
c:\dev\webdev\karo\trunk\tools\proviso-m2-plugin\target\test-classes,
c:\dev\.m2\repository\org\codehaus\plexus\plexus-utils\1.0.4\plexus-utils-1.0.4.jar,
c:\dev\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar,
c:\dev\.m2\repository\org\apache\maven\maven-model\2.0\maven-model-2.0.jar,
c:\dev\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar,
c:\dev\.m2\repository\org\apache\maven\maven-profile\2.0\maven-profile-2.0.jar,
c:\dev\.m2\repository\oro\oro\2.0.7\oro-2.0.7.jar,
c:\dev\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar,
c:\dev\.m2\repository\doxia\doxia-core\1.0-alpha-4\doxia-core-1.0-alpha-4.jar,
c:\dev\.m2\repository\qdox\qdox\1.5\qdox-1.5.jar,
c:\dev\.m2\repository\org\apache\maven\maven-repository-metadata\2.0\maven-repository-metadata-2.0.jar,
c:\dev\.m2\repository\org\testng\testng\4.7\testng-4.7-jdk15.jar,
c:\dev\.m2\repository\commons-validator\commons-validator\1.1.4\commons-validator-1.1.4.jar,
c:\dev\.m2\repository\org\apache\maven\maven-artifact-manager\2.0\maven-artifact-manager-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-alpha-5\wagon-provider-api-1.0-alpha-5.jar,
c:\dev\.m2\repository\org\apache\maven\maven-project\2.0\maven-project-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-api\2.0\maven-reporting-api-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\maven-plugin-api\2.0\maven-plugin-api-2.0.jar,
c:\dev\.m2\repository\org\apache\maven\maven-artifact\2.0\maven-artifact-2.0.jar,
c:\dev\.m2\repository\doxia\doxia-sink-api\1.0-alpha-4\doxia-sink-api-1.0-alpha-4.jar,
c:\dev\.m2\repository\org\apache\maven\reporting\maven-reporting-impl\2.0\maven-reporting-impl-2.0.jar,
c:\dev\.m2\repository\bsh\bsh\2.0b1\bsh-2.0b1.jar]
[DEBUG]   (f) disableXmlReport = false
[DEBUG]   (f) forkMode = always
[DEBUG]   (f) jvm = java
[DEBUG]   (f) localRepository = [local] - file://c:/dev/.m2/repository
[DEBUG]   (f) parallel = false
[DEBUG]   (f) pluginArtifactMap =
{org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.0:runtime,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.0:runtime}
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) projectArtifactMap =
{org.apache.maven:maven-profile=org.apache.maven:maven-profile:jar:2.0:compile,
org.apache.maven:maven-model=org.apache.maven:maven-model:jar:2.0:compile,
org.codehaus.plexus:plexus-container-default=org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile,
classworlds:classworlds=classworlds:classworlds:jar:1.1-alpha-2:compile,
org.apache.maven:maven-artifact-manager=org.apache.maven:maven-artifact-manager:jar:2.0:compile,
doxia:doxia-sink-api=doxia:doxia-sink-api:jar:1.0-alpha-4:compile,
org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:2.0:compile,
oro:oro=oro:oro:jar:2.0.7:compile,
org.apache.maven:maven-repository-metadata=org.apache.maven:maven-repository-metadata:jar:2.0:compile,
org.apache.maven.wagon:wagon-provider-api=org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:compile,
qdox:qdox=qdox:qdox:jar:1.5:test,
org.apache.maven.reporting:maven-reporting-impl=org.apache.maven.reporting:maven-reporting-impl:jar:2.0:compile,
org.apache.maven:maven-project=org.apache.maven:maven-project:jar:2.0:compile,
org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.0.4:compile,
commons-validator:commons-validator=commons-validator:commons-validator:jar:1.1.4:compile,
junit:junit=junit:junit:jar:3.8.1:compile,
org.testng:testng=org.testng:testng:jar:jdk15:4.7:test,
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:compile,
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:compile,
bsh:bsh=bsh:bsh:jar:2.0b1:test,
doxia:doxia-core=doxia:doxia-core:jar:1.0-alpha-4:compile}
[DEBUG]   (f) remoteRepositories = [[Maven Snapshots] -
http://snapshots.maven.codehaus.org/maven2/, [Carifin plugins] -
http://fftlrd3401:8080/maven2/, [central] - http://repo1.maven.org/maven2]
[DEBUG]   (f) reportFormat = brief

Surefire Stacktrace

2006-05-23 Thread Cybernd

Hi,

Is it possible to see the whole stacktrace?
Whenever a test fails, surefire prints only irrelevant information to
stdout. 

Example:
org.apache.maven.BuildFailureException: There are test failures.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
...
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:403)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more

Im interested into the last 16 lines. I really hope that they will show me
the true assertion message ;o) But how to tell maven to display the
information?

thx,
Bernhard
--
View this message in context: 
http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4522736
Sent from the Maven - Users forum at Nabble.com.


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



RE : Surefire Stacktrace

2006-05-23 Thread Olivier Lamy
Try with -Dsurefire.useFile=false.

--
Olivier

-Message d'origine-
De : Cybernd [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 23 mai 2006 15:12
À : users@maven.apache.org
Objet : Surefire Stacktrace



Hi,

Is it possible to see the whole stacktrace?
Whenever a test fails, surefire prints only irrelevant information to
stdout. 

Example:
org.apache.maven.BuildFailureException: There are test failures.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)
...
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.
at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.j
ava:403)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 16 more

Im interested into the last 16 lines. I really hope that they will show
me the true assertion message ;o) But how to tell maven to display the
information?

thx,
Bernhard
--
View this message in context:
http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4522736
Sent from the Maven - Users forum at Nabble.com.


-
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 2 jar plugin

2006-05-23 Thread rebels_mascot

Thanks for the reply Ben,

that seems to of done the job :-)

Thanks again,
Brian.
--
View this message in context: 
http://www.nabble.com/Maven+2+jar+plugin-t1668728.html#a4523225
Sent from the Maven - Users forum at Nabble.com.


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



Surefire and UnsupportedClassVersionError

2006-05-23 Thread Adam Hardy
I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and I
am running 'mvn test' on a small pilot project with java 1.5 code. I
have source and target = 1.5 in my POM (see below).
 
mvn falls over on surefire with a UnsupportedClassVersionError 
 
[INFO] Surefire report directory:
C:\Projects\cortex\back-end\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
version 49.0); nested except
 is java.lang.UnsupportedClassVersionError:
com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
version 49.0)
 
 
After searching the list archives and googling on this, I still cannot
find a solution. 
 
There was an announcement on the list 2006-05-14 that surefire 2.2 has
been released but specifying version 2.2 in my POM doesn't help and I
cannot find it on the repositories. It seems there is only 2.0. Perhaps
2.2 will help but I can't see how to get it. 
 
I saw another message on the list 
 
http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
 
where the exact same problem occurred but the original poster signed off
saying they would wipe the surefire directory and see if that helps.
However they did not report back. More significantly, I wiped my
surefire jars and cleaned the whole project and have source and target
specified as 1.5 but to no avail. 
 
What could the problem be? 
 
Thanks
Adam
 
project xmlns=http://maven.apache.org/POM/4.0.0;

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;

modelVersion4.0.0/modelVersion

groupIdcom.foo.bar/groupId

artifactIdfoo/artifactId

packagingpom/packaging

version1.0-SNAPSHOT/version

nameThe whole of foo/name

organization

named/name

urlhttp://www.foo.com/url

/organization

 

repositories

repository

idMaven snapshots/id

urlhttp://snapshots.maven.codehaus.org/maven2/url

snapshots

enabledtrue/enabled

/snapshots

releases

enabledfalse/enabled

/releases

/repository

repository

releases

enabledtrue/enabled

/releases

snapshots

enabledfalse/enabled

/snapshots

idcentral/id

nameMaven Repository Switchboard/name

layoutdefault/layout

urlhttp://repo1.maven.org/maven2/url

/repository

/repositories

pluginRepositories

pluginRepository

idMaven Snapshots/id

urlhttp://snapshots.maven.codehaus.org/maven2//url

snapshots

enabledtrue/enabled

/snapshots

releases

enabledfalse/enabled

/releases

/pluginRepository

pluginRepository

releases

enabledtrue/enabled

/releases

snapshots

enabledfalse/enabled

/snapshots

idcentral/id

nameMaven Repository Switchboard/name

layoutdefault/layout

urlhttp://repo1.maven.org/maven2/url

/pluginRepository

/pluginRepositories

 

modules

moduleback-end/module

modulegui/module

modulestandalone/module

/modules

 

build

plugins

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId

configuration

source1.5/source

target1.5/target

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-surefire-plugin/artifactId

version2.2/version

/plugin

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

executions

execution

goals

goalclean/goal

goalcheck/goal

/goals

/execution

/executions

/plugin

/plugins

/build

reporting

plugins

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdtaglist-maven-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-javadoc-plugin/artifactId

/plugin

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdjxr-maven-plugin/artifactId

/plugin

plugin

!-- Code rules verification report --

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-pmd-plugin/artifactId

configuration

targetjdk1.4/targetjdk

!--

rulesets

ruleset/rulesets/basic.xml/ruleset

ruleset/rulesets/controversial.xml/ruleset

/rulesets

formatxml/format

--

linkXreftrue/linkXref

sourceEncodingutf-8/sourceEncoding

minimumTokens100/minimumTokens

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactId

maven-project-info-reports-plugin

/artifactId

/plugin

plugin

!-- if uses issue then requires scm setup --

groupIdorg.codehaus.mojo/groupId

artifactIdchanges-maven-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-checkstyle-plugin/artifactId

/plugin

plugin

!-- created from the sandbox --

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

/plugin

plugin

!-- Similarity analysis report based upon the Simian tool --

groupIdorg.codehaus.mojo/groupId

artifactIdsimian-report-maven-plugin/artifactId

version1.0-SNAPSHOT/version

/plugin

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdjdepend-maven-plugin/artifactId

version2.0-beta-1-SNAPSHOT/version

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId


Re: RE : Surefire Stacktrace

2006-05-23 Thread Cybernd

thx :o)
--
View this message in context: 
http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4523315
Sent from the Maven - Users forum at Nabble.com.


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



Re: RE : Surefire Stacktrace

2006-05-23 Thread Wim Deblauwe

This can be found in the Surefire documentation (
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html)
however, it is quite buried deep in the site: You need to click Project
Reports  Plugin documentation  surefire:test. It would be better to
have a direct link from the overview page. This question has been asked
twice in the last couple of days. That should always be a trigger to improve
the documentation.

regards,

Wim

2006/5/23, Cybernd [EMAIL PROTECTED]:



thx :o)
--
View this message in context:
http://www.nabble.com/Surefire+Stacktrace-t1668865.html#a4523315
Sent from the Maven - Users forum at Nabble.com.


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




Re: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

hi  Adam,
could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
me..

hth
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:


I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and I
am running 'mvn test' on a small pilot project with java 1.5 code. I
have source and target = 1.5 in my POM (see below).

mvn falls over on surefire with a UnsupportedClassVersionError

[INFO] Surefire report directory:
C:\Projects\cortex\back-end\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
version 49.0); nested except
is java.lang.UnsupportedClassVersionError:
com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
version 49.0)


After searching the list archives and googling on this, I still cannot
find a solution.

There was an announcement on the list 2006-05-14 that surefire 2.2 has
been released but specifying version 2.2 in my POM doesn't help and I
cannot find it on the repositories. It seems there is only 2.0. Perhaps
2.2 will help but I can't see how to get it.

I saw another message on the list

http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2

where the exact same problem occurred but the original poster signed off
saying they would wipe the surefire directory and see if that helps.
However they did not report back. More significantly, I wiped my
surefire jars and cleaned the whole project and have source and target
specified as 1.5 but to no avail.

What could the problem be?

Thanks
Adam

project xmlns=http://maven.apache.org/POM/4.0.0;

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;

modelVersion4.0.0/modelVersion

groupIdcom.foo.bar/groupId

artifactIdfoo/artifactId

packagingpom/packaging

version1.0-SNAPSHOT/version

nameThe whole of foo/name

organization

named/name

urlhttp://www.foo.com/url

/organization



repositories

repository

idMaven snapshots/id

urlhttp://snapshots.maven.codehaus.org/maven2/url

snapshots

enabledtrue/enabled

/snapshots

releases

enabledfalse/enabled

/releases

/repository

repository

releases

enabledtrue/enabled

/releases

snapshots

enabledfalse/enabled

/snapshots

idcentral/id

nameMaven Repository Switchboard/name

layoutdefault/layout

urlhttp://repo1.maven.org/maven2/url

/repository

/repositories

pluginRepositories

pluginRepository

idMaven Snapshots/id

urlhttp://snapshots.maven.codehaus.org/maven2//url

snapshots

enabledtrue/enabled

/snapshots

releases

enabledfalse/enabled

/releases

/pluginRepository

pluginRepository

releases

enabledtrue/enabled

/releases

snapshots

enabledfalse/enabled

/snapshots

idcentral/id

nameMaven Repository Switchboard/name

layoutdefault/layout

urlhttp://repo1.maven.org/maven2/url

/pluginRepository

/pluginRepositories



modules

moduleback-end/module

modulegui/module

modulestandalone/module

/modules



build

plugins

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId

configuration

source1.5/source

target1.5/target

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-surefire-plugin/artifactId

version2.2/version

/plugin

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

executions

execution

goals

goalclean/goal

goalcheck/goal

/goals

/execution

/executions

/plugin

/plugins

/build

reporting

plugins

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdtaglist-maven-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-javadoc-plugin/artifactId

/plugin

plugin

groupIdorg.codehaus.mojo/groupId

artifactIdjxr-maven-plugin/artifactId

/plugin

plugin

!-- Code rules verification report --

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-pmd-plugin/artifactId

configuration

targetjdk1.4/targetjdk

!--

rulesets

ruleset/rulesets/basic.xml/ruleset

ruleset/rulesets/controversial.xml/ruleset

/rulesets

formatxml/format

--

linkXreftrue/linkXref

sourceEncodingutf-8/sourceEncoding

minimumTokens100/minimumTokens

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactId

maven-project-info-reports-plugin

/artifactId

/plugin

plugin

!-- if uses issue then requires scm setup --

groupIdorg.codehaus.mojo/groupId

artifactIdchanges-maven-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-checkstyle-plugin/artifactId

/plugin

plugin

!-- created from the sandbox --

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

/plugin

plugin

!-- Similarity analysis report based upon the Simian tool --

groupIdorg.codehaus.mojo/groupId

artifactIdsimian-report-maven-plugin/artifactId

version1.0-SNAPSHOT/version

Re: NPE using JavaCC

2006-05-23 Thread Tim Kettler
(Almost) all plugins have a groupId of either 'org.apache.maven.plugins' or 
'org.codehaus.mojo' so everything else looks suspicious until proved otherwise :-)


Have you tried the links from my first mail? I have checked them before posting and they 
did work for me.


Just to be sure: In case the links don't work for you I paste this sample configuration 
snippet from the first link:


plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjavacc-maven-plugin/artifactId
  executions
execution
  goals
goaljavacc/goal
  /goals
/execution
  /executions
/plugin

-Tim


Stefano Fornari schrieb:

That's a great catch!
I actually assumed I could use it as plugin, because when I ran mvn
javacc:javacc, I get:

INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'javacc'.
[INFO] 
 


[INFO] Building Funambol Framework
[INFO]task-segment: [javacc:javacc]
[INFO] 
 


Downloading: http://repo1.maven.org/maven2/javacc/javacc/3.2/javacc-3.2.pom
281b downloaded
[WARNING] While downloading javacc:javacc:3.2
 This artifact has been relocated to net.java.dev.javacc:javacc:3.2.


Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/3.2/javacc-3.2.pom

162b downloaded
Downloading: 
http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/3.2/javacc-3.2.jar

369K downloaded

so I assumed it downloaded the plug-in as well. It looks like it was a
wrong assumption.

Now I would like that maven would invoke the javacc source generation
without calling javacc:javacc. I guess I have to specify some plug in
or something, because now it does not work. Sorry to bother you, but
the codehous site is down and I could not find any information
googleling

Stefano

On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:


The pom of the artifact you are referencing in your plugin definition
(http://repo.mergere.com/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.pom) 
has a
packaging of type 'jar' and not 'maven-plugin' as it should if it 
really is a plugin. I

think this is just javacc itself.

Or does your javacc-plugin come from an other repository?

-Tim

Stefano Fornari schrieb:
 Hi Tim,
 I am sure it exists, otherwise I get an error that the plugin cannot
 be found. The weird thing is that the NPE is in the maven code, not
 int the plug-in code but I am pretty sure it is a configuration
 problem (actually, the fact I get a NPE is probably a maven bug, but
 due to a not correct pom).

 Thanks for your reply.

 Stefano

 On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:
 Stefano Fornari schrieb:
  Hi All,
  still struggling with JavaCC and Maven. I have the following pom:
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 artifactIdfunambol-framework/artifactId
 groupIdcom.funambol/groupId
 version3.0-SNAPSHOT/version
 nameFunambol Framework/name
 dependencies

 [...]

 build
 plugins
 plugin
 groupIdnet.java.dev.javacc/groupId
 artifactIdjavacc/artifactId
 version4.0/version
 configuration
 /configuration
 /plugin
 /plugins
 /build
 
  /project

 Are your sure the plugin with the artifact id 'javacc' with the
 groupid 'net.java.dev'
 exists? I only know the javacc plugin from the mojo project over at
 codehaus.org.

 The mojo homepage is currently down due to the codehaus outage but you
 can have a look at
 the apt sources of the javacc-plugin site here:
 
http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/src/site/apt/index.apt. 


 It's
 quite readable.

 Or you can checkout the plugin sources via svn from here:
 http://svn.codehaus.org/mojo/trunk/mojo/javacc-maven-plugin/. and
 build the site locally
 with 'mvn site:site'.

 
 
  [...]
 
  Has anyone a clue?
 
  Thanks in advance.
 
  Stefano
 
 

 Hope this help
 -Tim

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



[M2-book] build J2EE Applications

2006-05-23 Thread Rémy Sanlaville

Hi,

I'm ready the M2 book and I try to build J2EE Applications.
On page 99 of the book, you can execute mvn jetty6:run-exploded goal to
deploy
the unpacked Web application located in target/.

But when I execute mvn -Pjetty-hack jetty6:run-exploded, it fails stating
[INFO] Jetty server exiting.
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] org/apache/geronimo/samples/daytrader/util/Log
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError:
org/apache/geronimo/samples/daytrader/util/Log
   at
org.apache.geronimo.samples.daytrader.web.TradeWebContextListener.contextInitialized
(TradeWebContextListener.java:32)
   at org.mortbay.jetty.handler.ContextHandler.startContext(
ContextHandler.java:368)
   ...

The pom.xml contains a dependency to daytrader-ejb that include
org/apache/geronimo/samples/daytrader/util/Log class.
So I don't understand why it is not working... Any idea ??

If I execute mvn -Pjetty-hack jetty6:run it works well.

Rémy


Re: logging

2006-05-23 Thread Wim Deblauwe

You can do the same on windows:

mvn clean test  output.log 21

regards,

Wim

2006/5/23, John Casey [EMAIL PROTECTED]:


if you're on *nix, and you want to ensure that you see any severe errors
in
your logfile, you should also add '21' to that command line. Usually,
I'm
casually watching my builds, but want to have the option to go back and
sift
through it, so I use this:

mvn clean test 21 | tee output.log

Cheers,

john

On 5/23/06, Edwin Punzalan [EMAIL PROTECTED] wrote:


 I use redirection to a file, like so:

 mvn clean test  output.log


 zdv wrote:
  Hello, users.
 
  I read all available documentation on site and googled a while,
  I even looked through conf files and binary distribution, But
  didn't find a simple way to log maven output.
 
  (something which can be easily achieved in ant by -l switch)
 
  This really confused me.
 
  Can you give me a help?
 
 
 

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






Plugin Versions and the Eclipse Plugin

2006-05-23 Thread Ben Gidley

Does anyone know how to force maven 2 to upgrade the eclipse plugin.

I have an install of maven 2.0.4 and it isn't using the version documented
on http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html. It
keeps reporting when I try and set wtp that wtp 1.0 is not supported.

I have tried mvn -cpu -U to force a refresh. I have added the snapshot
repo's for plugins to my settings.xml. Any other ideas?

Ben


Re: NPE using JavaCC

2006-05-23 Thread Stefano Fornari

Hey Tim!
you are great! Thanks a lot for your help, it worked. I hope I'll have
the opportunity to pay the bill in some way ;)

Ste

On 5/23/06, Tim Kettler [EMAIL PROTECTED] wrote:

(Almost) all plugins have a groupId of either 'org.apache.maven.plugins' or
'org.codehaus.mojo' so everything else looks suspicious until proved otherwise 
:-)

Have you tried the links from my first mail? I have checked them before posting 
and they
did work for me.

Just to be sure: In case the links don't work for you I paste this sample 
configuration
snippet from the first link:

plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdjavacc-maven-plugin/artifactId
   executions
 execution
   goals
 goaljavacc/goal
   /goals
 /execution
   /executions
/plugin

-Tim





--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215

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



RE: Cobertura ?

2006-05-23 Thread SlinnHawkins, Jon (ELS)
Patrick, 

Solved this, had to explicitly add the version2.0-SNAPSHOT/version to
the POM

Thanks for your help
   

-Original Message-
From: Patrick Kimber [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 12:05
To: Maven Users List
Subject: Re: Cobertura ?

Do you have this in your pom.xml?

repositories
repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories

There have been problems with the Codehaus web site.  See
http://www.codehaus.org/

On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
 Thanks,

 This is what I have.

 The cobertura-maven-plugin does not exist in in the ibiblio repository 
 any more, and links to the plugin don't work ???

 http://mojo.codehaus.org/cobertura-maven-plugin/

 Cheers

 -Original Message-
 From: Patrick Kimber [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 11:43
 To: Maven Users List
 Subject: Re: Cobertura ?

 The plugin works well for me:

 Add the following build configuration into the pom.xml file:

   build
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
 executions
   execution
 goals
   goalclean/goal
 /goals
   /execution
 /executions
   /plugin
 ...

 Add the following plugin configuration into the pom.xml file:

   reporting
 plugins
   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdcobertura-maven-plugin/artifactId
   /plugin

 Need to upgrade to Maven 2.0.3.

 On 23/05/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:
  Hi All,
 
  Started looking at Maven 2.0 a few weeks back, and have just 
  revisited my investigation work, what has happened to the cobertura
plugin ?
 
  Any ideas
 
  Thanks
 
  Jon
 
 

 -
 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: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Adam Hardy
Sorry, but could you help me sort this out first? I obviously have
something wrong with my repository declarations. I cannot get mvn to
download 2.2-SNAPSHOT. It prefers 2.0. 

Where is 2.2-SNAPSHOT meant to be online? Or should I download it and
install it myself?

I tried it with this repository config as well as with none:

  repositories
repository
  idMaven snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
repository
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Repository Switchboard/name
  layoutdefault/layout
  urlhttp://repo1.maven.org/maven2/url
/repository
  /repositories

The pluginRepositories node looks the same.



-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 15:22
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
me..

hth
 marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and
I
 am running 'mvn test' on a small pilot project with java 1.5 code. I
 have source and target = 1.5 in my POM (see below).

 mvn falls over on surefire with a UnsupportedClassVersionError

 [INFO] Surefire report directory:
 C:\Projects\cortex\back-end\target\surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0); nested except
 is java.lang.UnsupportedClassVersionError:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0)


 After searching the list archives and googling on this, I still cannot
 find a solution.

 There was an announcement on the list 2006-05-14 that surefire 2.2 has
 been released but specifying version 2.2 in my POM doesn't help and I
 cannot find it on the repositories. It seems there is only 2.0.
Perhaps
 2.2 will help but I can't see how to get it.

 I saw another message on the list


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2

 where the exact same problem occurred but the original poster signed
off
 saying they would wipe the surefire directory and see if that helps.
 However they did not report back. More significantly, I wiped my
 surefire jars and cleaned the whole project and have source and target
 specified as 1.5 but to no avail.

 What could the problem be?

 Thanks
 Adam

 project xmlns=http://maven.apache.org/POM/4.0.0;

 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion

 groupIdcom.foo.bar/groupId

 artifactIdfoo/artifactId

 packagingpom/packaging

 version1.0-SNAPSHOT/version

 nameThe whole of foo/name

 organization

 named/name

 urlhttp://www.foo.com/url

 /organization



 repositories

 repository

 idMaven snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2/url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /repository

 repository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /repository

 /repositories

 pluginRepositories

 pluginRepository

 idMaven Snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2//url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /pluginRepository

 pluginRepository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /pluginRepository

 /pluginRepositories



 modules

 moduleback-end/module

 modulegui/module

 modulestandalone/module

 /modules



 build

 plugins

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-compiler-plugin/artifactId

 configuration

 source1.5/source

 target1.5/target

 /configuration

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-surefire-plugin/artifactId

 version2.2/version

 /plugin

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdcobertura-maven-plugin/artifactId

 executions

 execution

 goals

 goalclean/goal

 goalcheck/goal

 /goals

 /execution

 /executions

 /plugin

 /plugins

 /build

 reporting

 plugins

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdtaglist-maven-plugin/artifactId

 /plugin

 plugin

 

Re: logging

2006-05-23 Thread John Casey

FWIW, I'm working on a logging component that would allow us to flexibly
split out the maven output into one or more logs. Adding it into an existing
Maven installation might also be a possibility eventually. It's almost
tested now.

-john

On 5/23/06, Wim Deblauwe [EMAIL PROTECTED] wrote:


You can do the same on windows:

mvn clean test  output.log 21

regards,

Wim

2006/5/23, John Casey [EMAIL PROTECTED]:

 if you're on *nix, and you want to ensure that you see any severe errors
 in
 your logfile, you should also add '21' to that command line. Usually,
 I'm
 casually watching my builds, but want to have the option to go back and
 sift
 through it, so I use this:

 mvn clean test 21 | tee output.log

 Cheers,

 john

 On 5/23/06, Edwin Punzalan [EMAIL PROTECTED] wrote:
 
 
  I use redirection to a file, like so:
 
  mvn clean test  output.log
 
 
  zdv wrote:
   Hello, users.
  
   I read all available documentation on site and googled a while,
   I even looked through conf files and binary distribution, But
   didn't find a simple way to log maven output.
  
   (something which can be easily achieved in ant by -l switch)
  
   This really confused me.
  
   Can you give me a help?
  
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 






Re: [m2] Getting SNAPSHOT information into a webapp

2006-05-23 Thread Wayne Fay

You might need to just write your own plug-in to get this kind of
properties file output.

Wayne

On 5/23/06, Mark Chaimungkalanont [EMAIL PROTECTED] wrote:

Thanks Kenney. I think what I want is similar to how the pom.properties would 
normally be
generated by Maven. As in, I want some code / cofiguration that can generate a 
properties
file with the version in it.

For example, I want something to work like

eg.
myApp.properties.template (with contents)
version.from.maven=${maven.pom.version}-${maven.package.build.date}

to produce:

myApp.properties (with contents)

version.from.maven=1.0-SNAPSHOT-2006-05-22

And so I can place in the myApp.properties in the class path and easily read it?
-
ATLASSIAN - http://www.atlassian.com
Australia's Fastest Growing Software Company 2002-05 [BRW Magazine]

Kenney Westerhof wrote:
 On Tue, 23 May 2006, Mark Chaimungkalanont wrote:

 Maven writes a property file in the jar or war at
 /META-INF/maven/groupId/artifactId/pom.properties.

 For jars you can use a classloader to find that resource, but in the case
 of a WAR the META-INF is not part of the classpath so you'd have to use
 the servlet api to get the path to that file.

 Code snippet:

 public static String getVersion( String groupId, String artifactId )
 throws IOException
 {
 ClassLoader cl = Thread.currentThread().getContextClassLoader();
 Properties props = new Properties();

 String propFileName = META-INF/maven/ + groupId.replace( '.',
 '/' ) + / + artifactId + /pom.properties;
 InputStream a = cl.getResourceAsStream( propFileName );
 if ( a == null )
 throw new IOException( Cannot find ' + propFileName + ' );
 props.load( a );
 return props.getProperty( version );
 }


 -- Kenney


 Guys,

 We're using Maven2 and wanted to know the best way to get version 
information (including
 the SNAPSHOT timestamp, e.g. 1-0-SNAPSHOT-20050622 or sth) into a webapp 
that was built
 with the mvn package?

 My guess is that there is a property ${maven.snapshot.version} or something 
that we can
 use to generate a properties file so that the app can read this information. 
Perhaps a
 filter copy plugin against one of the goals?

 Does anything know any references around this area? Have anyone got examples 
they can share?

 Thanks,

 Mark C

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


 --
 Kenney Westerhof
 http://www.neonics.com
 GPG public key: http://www.gods.nl/~forge/kenneyw.key

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


-
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: Additional Repository

2006-05-23 Thread Mike Markovich
I've been grappling with getting an internal repository set up for a
couple of days.  (Ben, you responded to my initial post over the
weekend, thanks again.)

I'm still wrestling with some issues, but I've had some success too.
The repository is just a directory with a specific structure.  The key
is making sure items are placed in the repository correctly.  Here is
the command I used to place items in an internal repository called
repository.

mvn deploy:deploy-file -DgroupId=apache -DartifactId=xercesImpl
-Dversion=2.5.0 -Dpackaging=jar -Dfile=./xercesImpl.jar
-DrepositoryId=repository
-Durl=file:///home/mmarkovich/public_html/repository

Executing the above command created the following
directories /apache/xercesImpl/2.5.0 in the repository and placed
xercesImpl-2.5.0.jar in the 2.5.0 directory.  There were also some other
files created.

Study the command and you should be able to get it to work for your own
needs.  I executed the command in the same directory that contained the
jar file (xercesImpl.jar)  I wanted in the repository.

In order to use the jar file I added the following lines to my pom.xml
file.

  repositories
  repository
  idrepository/id
  namerepository/name
  urlhttp://localhost/~mmarkovich/repository/url
/repository
  /repositories


I'm running Apache on my local box...Apache automatically exposes items
public_html...if you are not familiar with this the url may look
funny...the key is make sure your url is pointing at your repository.

Good luck,
Mike


On Tue, 2006-05-23 at 10:38 +0100, ben short wrote:
 Hi,
 
 Search the list for Structure of an Internal Repository.
 
 and this is what i did...
 
 I have added the following to my settings.xml
 
 profile
  idinternal/id
  repositories
repository
  idinternal-release/id
  nameInternal Release/name
  urlhttp://192.168.100.20/maven2/release/url
/repository
  /repositories
/profile
 
 activeProfiles
 activeProfileinternal/activeProfile
   /activeProfiles
 
 Also I added
 
 text/xml   pom
 test/plain md5 sha1
 
 to /etc/mime.types
 
 
 
 On 5/23/06, Chris Eidhof [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm trying to create an internal repository. It should only contain
  some libraries that are specific to our project, and not part of
  IBiblio. What I've done, is this (probably not right, so correct me
  where I'm wrong):
 
  0. Add those libraries (3d-party jars) with mvn install:install-file
  1. Add them as dependencies to my pom.xml
  2. mvn install does a build successful.
 
  I don't think every developer should do this, so what I want to do is
  share all those 3d-party libraries in an internal repository. I
  backed up my .m2 directory (and removed it), and this is what I did
  next.
 
  1. Create a directory custom-repos on my webserver.
  2. Recursively copied the directories from my local repository to my
  webserver (every custom library inside ~/.m2/repository)
  3. Added the following line to my pom.xml:
 repositories
 repository
 idcustom.repository/id
 nameMy Custom Repository/name
 urlhttp://www.example.com/custom-repos//url
 /repository
 /repositories
  4. mvn install
 
  Well, maven doesn't find or doesn't know how to interact with my
  custom repository. Can anyone give me a hint on what I'm doing wrong?
 
  Also, is there a naming convention for repository id's? I was
  thinking to use the package name of this project, something like
  com.example.project.
 
  Thanks in advance,
  Chris Eidhof
 
 
 
  -
  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: Additional Repository

2006-05-23 Thread Mike Markovich
Ben, Chris, here is a link to a free book on Maven.  It looks pretty
good...



http://www.mergere.com/common/reg.jsp?form_source=m-m2bookform_landing=defaultpage

On Tue, 2006-05-23 at 11:34 +0200, Chris Eidhof wrote:
 Hi,
 
 I'm trying to create an internal repository. It should only contain  
 some libraries that are specific to our project, and not part of  
 IBiblio. What I've done, is this (probably not right, so correct me  
 where I'm wrong):
 
 0. Add those libraries (3d-party jars) with mvn install:install-file
 1. Add them as dependencies to my pom.xml
 2. mvn install does a build successful.
 
 I don't think every developer should do this, so what I want to do is  
 share all those 3d-party libraries in an internal repository. I  
 backed up my .m2 directory (and removed it), and this is what I did  
 next.
 
 1. Create a directory custom-repos on my webserver.
 2. Recursively copied the directories from my local repository to my  
 webserver (every custom library inside ~/.m2/repository)
 3. Added the following line to my pom.xml:
repositories
repository
idcustom.repository/id
nameMy Custom Repository/name
urlhttp://www.example.com/custom-repos//url
/repository
/repositories
 4. mvn install
 
 Well, maven doesn't find or doesn't know how to interact with my  
 custom repository. Can anyone give me a hint on what I'm doing wrong?
 
 Also, is there a naming convention for repository id's? I was  
 thinking to use the package name of this project, something like  
 com.example.project.
 
 Thanks in advance,
 Chris Eidhof
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Plugin versions and JDK

2006-05-23 Thread Daryl.Dwyer
You should (unless I misunderstood you) be able to set your JAVA_HOME to
1.5 and still compile in 1.4.  In your pom, you would need something
like...
  ...
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.4/source
  target1.4/target
/configuration
  /plugin
...
/plugins
  /build
  ...
 

-Original Message-
From: Fisher, Michael (IT) [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 22, 2006 11:23 AM
To: 'Maven Users List'
Subject: Plugin versions and JDK

Hello,

Quick question regarding JDK versions and running Maven2 plugins...

Maven requires a JAVA_HOME system property to be set in order to run,
when I set this to point to a 1.4.2_06 JDK, I get an
UnsupportedClassVersion exception when I get to the surefire test cycle
(Using version 2.0 of Surefire).  When looking at the JAR, it seems to
have been built with 1.5.2_05.  Does this mean I need to be running a
1.5+ JDK in order to use the latest version of such plugins?  

The reason I ask, is because even though I could build my software on
1.5+, I cannot deploy it to an environment running above 1.4.2.  What is
the suggested work around for this?

Thanks,
Mike

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



assemblies... unpacking dependencies issue

2006-05-23 Thread Sachin Patel

Hi,

I have the following configuration in an assembly.xml.  I need to  
unpack the dependency but somehow into a directory indicated by the  
outputFileNameMapping.  Is this possible? It seems as if if unpack is  
set to true, outputFileNameMapping has no bearing.


So how can I accomplish dependency A (foo-1.0.jar) from being  
unpacked into features/foo_1.0/? The current configuration unpacks  
directly into features/.


dependencySet
outputFileNameMapping${artifactId}_${version}/ 
outputFileNameMapping

outputDirectoryfeatures//outputDirectory
unpacktrue/unpack
includes
 
includeorg.apache.geronimo.devtools:org.apache.geronimo.feature/ 
include

/includes
/dependencySet

Thanks in advance.

-sachin



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



Re: Additional Repository

2006-05-23 Thread ben short

I have the book allready but thanks all the same :)

On 5/23/06, Mike Markovich [EMAIL PROTECTED] wrote:

Ben, Chris, here is a link to a free book on Maven.  It looks pretty
good...



http://www.mergere.com/common/reg.jsp?form_source=m-m2bookform_landing=defaultpage

On Tue, 2006-05-23 at 11:34 +0200, Chris Eidhof wrote:
 Hi,

 I'm trying to create an internal repository. It should only contain
 some libraries that are specific to our project, and not part of
 IBiblio. What I've done, is this (probably not right, so correct me
 where I'm wrong):

 0. Add those libraries (3d-party jars) with mvn install:install-file
 1. Add them as dependencies to my pom.xml
 2. mvn install does a build successful.

 I don't think every developer should do this, so what I want to do is
 share all those 3d-party libraries in an internal repository. I
 backed up my .m2 directory (and removed it), and this is what I did
 next.

 1. Create a directory custom-repos on my webserver.
 2. Recursively copied the directories from my local repository to my
 webserver (every custom library inside ~/.m2/repository)
 3. Added the following line to my pom.xml:
repositories
repository
idcustom.repository/id
nameMy Custom Repository/name
urlhttp://www.example.com/custom-repos//url
/repository
/repositories
 4. mvn install

 Well, maven doesn't find or doesn't know how to interact with my
 custom repository. Can anyone give me a hint on what I'm doing wrong?

 Also, is there a naming convention for repository id's? I was
 thinking to use the package name of this project, something like
 com.example.project.

 Thanks in advance,
 Chris Eidhof



 -
 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: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

hello again,

try to use this


repositories
   repository
 idapache.snapshots/id
 urlhttp://cvs.apache.org/maven-snapshot-repository/url
 snapshots
   enabledtrue/enabled
 /snapshots
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 idapache.snapshots/id
 urlhttp://cvs.apache.org/maven-snapshot-repository/url
 snapshots
   enabledtrue/enabled
 /snapshots
   /pluginRepository
 /pluginRepositories

HTH
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:


Sorry, but could you help me sort this out first? I obviously have
something wrong with my repository declarations. I cannot get mvn to
download 2.2-SNAPSHOT. It prefers 2.0.

Where is 2.2-SNAPSHOT meant to be online? Or should I download it and
install it myself?

I tried it with this repository config as well as with none:

  repositories
repository
  idMaven snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
repository
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  nameMaven Repository Switchboard/name
  layoutdefault/layout
  urlhttp://repo1.maven.org/maven2/url
/repository
  /repositories

The pluginRepositories node looks the same.



-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 15:22
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hi  Adam,
could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
me..

hth
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and
I
 am running 'mvn test' on a small pilot project with java 1.5 code. I
 have source and target = 1.5 in my POM (see below).

 mvn falls over on surefire with a UnsupportedClassVersionError

 [INFO] Surefire report directory:
 C:\Projects\cortex\back-end\target\surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0); nested except
 is java.lang.UnsupportedClassVersionError:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0)


 After searching the list archives and googling on this, I still cannot
 find a solution.

 There was an announcement on the list 2006-05-14 that surefire 2.2 has
 been released but specifying version 2.2 in my POM doesn't help and I
 cannot find it on the repositories. It seems there is only 2.0.
Perhaps
 2.2 will help but I can't see how to get it.

 I saw another message on the list


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2

 where the exact same problem occurred but the original poster signed
off
 saying they would wipe the surefire directory and see if that helps.
 However they did not report back. More significantly, I wiped my
 surefire jars and cleaned the whole project and have source and target
 specified as 1.5 but to no avail.

 What could the problem be?

 Thanks
 Adam

 project xmlns=http://maven.apache.org/POM/4.0.0;

 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion

 groupIdcom.foo.bar/groupId

 artifactIdfoo/artifactId

 packagingpom/packaging

 version1.0-SNAPSHOT/version

 nameThe whole of foo/name

 organization

 named/name

 urlhttp://www.foo.com/url

 /organization



 repositories

 repository

 idMaven snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2/url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /repository

 repository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /repository

 /repositories

 pluginRepositories

 pluginRepository

 idMaven Snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2//url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /pluginRepository

 pluginRepository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /pluginRepository

 /pluginRepositories



 modules

 moduleback-end/module

 modulegui/module

 modulestandalone/module

 /modules



 build

 plugins

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-compiler-plugin/artifactId

 configuration

 source1.5/source

 target1.5/target

 /configuration

RE: Plugin versions and JDK

2006-05-23 Thread Beyer,Nathan
Additionally, if you'll need to point the bootstrap classpath of the
compiler to the Java 1.4.2 libraries. So, the configuration would need
to be something like this.

plugin
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.4/source
target1.4/target
compilerArguments
  bootclasspath
c:/j2sdk1.4.2_11/jre/lib/rt.jar
  /bootclasspath
/compilerArguments
  /configuration
/plugin

Note: The actual JARs needed on the bootclasspath may vary depending on
JDK.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Tuesday, May 23, 2006 9:59 AM
To: users@maven.apache.org
Subject: RE: Plugin versions and JDK

You should (unless I misunderstood you) be able to set your JAVA_HOME to
1.5 and still compile in 1.4.  In your pom, you would need something
like...
  ...
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.4/source
  target1.4/target
/configuration
  /plugin
...
/plugins
  /build
  ...
 

-Original Message-
From: Fisher, Michael (IT) [mailto:[EMAIL PROTECTED]
Sent: Monday, May 22, 2006 11:23 AM
To: 'Maven Users List'
Subject: Plugin versions and JDK

Hello,

Quick question regarding JDK versions and running Maven2 plugins...

Maven requires a JAVA_HOME system property to be set in order to run,
when I set this to point to a 1.4.2_06 JDK, I get an
UnsupportedClassVersion exception when I get to the surefire test cycle
(Using version 2.0 of Surefire).  When looking at the JAR, it seems to
have been built with 1.5.2_05.  Does this mean I need to be running a
1.5+ JDK in order to use the latest version of such plugins?  

The reason I ask, is because even though I could build my software on
1.5+, I cannot deploy it to an environment running above 1.4.2.  What is
the suggested work around for this?

Thanks,
Mike

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


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


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



Continuum build for the gentoo distribution

2006-05-23 Thread Srepfler Srgjan

Hi,
is there some developer that knows the gentoo portage system and that 
can produce a gentoo ebuild for the continuum server?

We'd be really happy to see continuum on Gentoo.
Srgjan


Shared library to process resources [was RE : [m2] Getting SNAPSHOT information into a webapp]

2006-05-23 Thread Olivier Lamy
Hi,
Perso, I think It should be well about having something like a
maven-shared-resources in this
http://svn.apache.org/viewvc/maven/shared/trunk/.
A simple library to process resources with filtering (from file and
interpolation from the pom).
This could be used in few plugins :
- maven-resources-plugin
- maven-war-plugin (which as I see contains duplicate code from
maven-resources-plugin)
- in my company plugin (which contains duplicate code too ;-))
- in some others companies plugins (which contains duplicate code too
duplicate smiley ;-)

WDYT ?

--
Olivier

-Message d'origine-
De : Wayne Fay [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 23 mai 2006 17:02
À : Maven Users List
Objet : Re: [m2] Getting SNAPSHOT information into a webapp


You might need to just write your own plug-in to get this kind of
properties file output.

Wayne

On 5/23/06, Mark Chaimungkalanont [EMAIL PROTECTED] wrote:
 Thanks Kenney. I think what I want is similar to how the 
 pom.properties would normally be generated by Maven. As in, I want 
 some code / cofiguration that can generate a properties file with the 
 version in it.

 For example, I want something to work like

 eg.
 myApp.properties.template (with contents) 
 version.from.maven=${maven.pom.version}-${maven.package.build.date}

 to produce:

 myApp.properties (with contents)

 version.from.maven=1.0-SNAPSHOT-2006-05-22

 And so I can place in the myApp.properties in the class path and 
 easily read it?
 -
 ATLASSIAN - http://www.atlassian.com
 Australia's Fastest Growing Software Company 2002-05 [BRW Magazine]

 Kenney Westerhof wrote:
  On Tue, 23 May 2006, Mark Chaimungkalanont wrote:
 
  Maven writes a property file in the jar or war at 
  /META-INF/maven/groupId/artifactId/pom.properties.
 
  For jars you can use a classloader to find that resource, but in the

  case of a WAR the META-INF is not part of the classpath so you'd 
  have to use the servlet api to get the path to that file.
 
  Code snippet:
 
  public static String getVersion( String groupId, String
artifactId )
  throws IOException
  {
  ClassLoader cl =
Thread.currentThread().getContextClassLoader();
  Properties props = new Properties();
 
  String propFileName = META-INF/maven/ + groupId.replace( 
  '.', '/' ) + / + artifactId + /pom.properties;
  InputStream a = cl.getResourceAsStream( propFileName );
  if ( a == null )
  throw new IOException( Cannot find ' + propFileName +
' );
  props.load( a );
  return props.getProperty( version );
  }
 
 
  -- Kenney
 
 
  Guys,
 
  We're using Maven2 and wanted to know the best way to get version 
  information (including the SNAPSHOT timestamp, e.g. 
  1-0-SNAPSHOT-20050622 or sth) into a webapp that was built with the

  mvn package?
 
  My guess is that there is a property ${maven.snapshot.version} or 
  something that we can use to generate a properties file so that the

  app can read this information. Perhaps a filter copy plugin against

  one of the goals?
 
  Does anything know any references around this area? Have anyone got

  examples they can share?
 
  Thanks,
 
  Mark C
 
  ---
  --
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  --
  Kenney Westerhof
  http://www.neonics.com
  GPG public key: http://www.gods.nl/~forge/kenneyw.key
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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



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.

[M2] multiple-artifacts

2006-05-23 Thread Carlos.Fernandez
I am very new to maven and trying to wrap my head around how best to
port an existing ant based project to maven.

The project is a webservice layer for application.  The ant build
currently generates two artifacts:

- my-ws-client.jar.  Consists of WS interfaces, a few concrete classes
used only by the client and a client spring config file.
- my-ws.war.  Consists of WS interfaces, WS impls, server spring config
file and other config resources (e.g. web.xml etc)

Although maven strongly encourages a single primary artifact per
project, there is support for attached artifacts.  I normally see this
in reference to the ejb plugin.  However, there are archived emails that
mention registering the build-helper-maven-plugin and using it to
generate other associated artifacts.

Should I use these plugins to generate the client jar?  What is the best
way of doing that?

Or should I break this project into separate modules?

If I break them into separate modules I suspect that I will need three
modules:

1 - my-ws-client: classes and config files used by client only.
2 - my-ws: classes and config files used by the server only.
3 - my-ws-common: common classes, almost all interfaces, that the two
previous modules depend on.

Any help or reference to online docs/mail thread I have missed would be
appreciated.

Carlos.

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



Build Error

2006-05-23 Thread Gerard Garrigan








Hello,



I've set up Continuum and
everything seems to be fine but when I try to build a project I get the
following error:



 



Build Error:



Provider message: The cvs
command failed.

Command output: 

---

'cvs' is not recognized as
an internal or external command, operable program or batch file.

---



Any help on this is greatly
appreciated,



Thanks very much,



Ger



Ger Garrigan
Software
Engineer

Castlewood House, Castlewood Ave,

Rathmines, Dublin 6, Ireland. 
Tel:
+353 1 4060738 Fax: +353 1 4060748 
www.precisionsoftware.com












ear archetype name

2006-05-23 Thread Marco Mistroni

hi all,
 i m using Maven2 to build an EAR application
the ear that gets generated has the name myxxear-1.0.ear

i was wondering if there was a way so that the ear file name produced does
not contain the version.
anyone could help?

thanks and regards
marco


Problem when adding a m2 project into continuum

2006-05-23 Thread Dário Oliveros

I am having trouble importing a multiproject pom.xml that has its modules
located in a different directory structure. Please see below:

main/
trunk/
pom.xml (multiproject)
components/
comp_1/
trunk/
pom.xml
...
comp_n/
trunk/
pom.xml

multiproject pom.xml:
...
  
components/comp_1
   ...
components/comp_n
  

So If I import /main/trunk/pom.xml, continuum tries to find the modules as
subdirectories under main/trunk.
I brought up this scenario since I use svn:externals in the main/trunk and
had no problem when checking out the entire project from svn. However, I got
stuck with continnum now :-(
I think it would be great to have a feature where you could decide whether
to import the entire multiproject (with all modules) or just the
multiproject itself.

Any comments or suggestions would be appreciated.
Dário
--
View this message in context: 
http://www.nabble.com/Problem+when+adding+a+m2+project+into+continuum-t1669651.html#a4525221
Sent from the Continuum - Users forum at Nabble.com.


RE: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Adam Hardy
I must be missing something because surefire-booter et al. is 2.0 on
http://cvs.apache.org/maven-snapshot-repository 

I had a root around but couldn't see 2.2. Maybe I'm confusing the issue
here. Do I need 'surefire' or 'surefire-plugin'?


Thanks
Adam

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 16:16
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hello again,

try to use this


repositories
repository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/repository
  /repositories
  pluginRepositories
pluginRepository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/pluginRepository
  /pluginRepositories

HTH
 marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 Sorry, but could you help me sort this out first? I obviously have
 something wrong with my repository declarations. I cannot get mvn to
 download 2.2-SNAPSHOT. It prefers 2.0.

 Where is 2.2-SNAPSHOT meant to be online? Or should I download it and
 install it myself?

 I tried it with this repository config as well as with none:

   repositories
 repository
   idMaven snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2/url
   snapshots
 enabledtrue/enabled
   /snapshots
   releases
 enabledfalse/enabled
   /releases
 /repository
 repository
   releases
 enabledtrue/enabled
   /releases
   snapshots
 enabledfalse/enabled
   /snapshots
   idcentral/id
   nameMaven Repository Switchboard/name
   layoutdefault/layout
   urlhttp://repo1.maven.org/maven2/url
 /repository
   /repositories

 The pluginRepositories node looks the same.



 -Original Message-
 From: Marco Mistroni [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 15:22
 To: Maven Users List
 Subject: Re: Surefire and UnsupportedClassVersionError

 hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

 frankly i have no ideaon why is failing, but the 2.2-s is working fine
4
 me..

 hth
 marco

 On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:
 
  I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06
and
 I
  am running 'mvn test' on a small pilot project with java 1.5 code. I
  have source and target = 1.5 in my POM (see below).
 
  mvn falls over on surefire with a UnsupportedClassVersionError
 
  [INFO] Surefire report directory:
  C:\Projects\cortex\back-end\target\surefire-reports
  org.apache.maven.surefire.booter.SurefireExecutionException:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0); nested except
  is java.lang.UnsupportedClassVersionError:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0)
 
 
  After searching the list archives and googling on this, I still
cannot
  find a solution.
 
  There was an announcement on the list 2006-05-14 that surefire 2.2
has
  been released but specifying version 2.2 in my POM doesn't help and
I
  cannot find it on the repositories. It seems there is only 2.0.
 Perhaps
  2.2 will help but I can't see how to get it.
 
  I saw another message on the list
 
 

http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
 
  where the exact same problem occurred but the original poster signed
 off
  saying they would wipe the surefire directory and see if that helps.
  However they did not report back. More significantly, I wiped my
  surefire jars and cleaned the whole project and have source and
target
  specified as 1.5 but to no avail.
 
  What could the problem be?
 
  Thanks
  Adam
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 
  modelVersion4.0.0/modelVersion
 
  groupIdcom.foo.bar/groupId
 
  artifactIdfoo/artifactId
 
  packagingpom/packaging
 
  version1.0-SNAPSHOT/version
 
  nameThe whole of foo/name
 
  organization
 
  named/name
 
  urlhttp://www.foo.com/url
 
  /organization
 
 
 
  repositories
 
  repository
 
  idMaven snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2/url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /repository
 
  repository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  urlhttp://repo1.maven.org/maven2/url
 
  /repository
 
  /repositories
 
  pluginRepositories
 
  pluginRepository
 
  idMaven Snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2//url
 
  snapshots
 
  enabledtrue/enabled
 
  

Re: ear archetype name

2006-05-23 Thread Wayne Fay

Have you tried:

build
finalNameyourname.ear/finalName

Wayne

On 5/23/06, Marco Mistroni [EMAIL PROTECTED] wrote:

hi all,
  i m using Maven2 to build an EAR application
the ear that gets generated has the name myxxear-1.0.ear

i was wondering if there was a way so that the ear file name produced does
not contain the version.
anyone could help?

thanks and regards
 marco




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



Re: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

surefire plugin..

plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-plugin/artifactId
   version2.2-SNAPSHOT/version
...

hth
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:


I must be missing something because surefire-booter et al. is 2.0 on
http://cvs.apache.org/maven-snapshot-repository

I had a root around but couldn't see 2.2. Maybe I'm confusing the issue
here. Do I need 'surefire' or 'surefire-plugin'?


Thanks
Adam

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 16:16
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hello again,

try to use this


repositories
repository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/repository
  /repositories
  pluginRepositories
pluginRepository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/pluginRepository
  /pluginRepositories

HTH
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 Sorry, but could you help me sort this out first? I obviously have
 something wrong with my repository declarations. I cannot get mvn to
 download 2.2-SNAPSHOT. It prefers 2.0.

 Where is 2.2-SNAPSHOT meant to be online? Or should I download it and
 install it myself?

 I tried it with this repository config as well as with none:

   repositories
 repository
   idMaven snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2/url
   snapshots
 enabledtrue/enabled
   /snapshots
   releases
 enabledfalse/enabled
   /releases
 /repository
 repository
   releases
 enabledtrue/enabled
   /releases
   snapshots
 enabledfalse/enabled
   /snapshots
   idcentral/id
   nameMaven Repository Switchboard/name
   layoutdefault/layout
   urlhttp://repo1.maven.org/maven2/url
 /repository
   /repositories

 The pluginRepositories node looks the same.



 -Original Message-
 From: Marco Mistroni [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 15:22
 To: Maven Users List
 Subject: Re: Surefire and UnsupportedClassVersionError

 hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

 frankly i have no ideaon why is failing, but the 2.2-s is working fine
4
 me..

 hth
 marco

 On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:
 
  I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06
and
 I
  am running 'mvn test' on a small pilot project with java 1.5 code. I
  have source and target = 1.5 in my POM (see below).
 
  mvn falls over on surefire with a UnsupportedClassVersionError
 
  [INFO] Surefire report directory:
  C:\Projects\cortex\back-end\target\surefire-reports
  org.apache.maven.surefire.booter.SurefireExecutionException:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0); nested except
  is java.lang.UnsupportedClassVersionError:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0)
 
 
  After searching the list archives and googling on this, I still
cannot
  find a solution.
 
  There was an announcement on the list 2006-05-14 that surefire 2.2
has
  been released but specifying version 2.2 in my POM doesn't help and
I
  cannot find it on the repositories. It seems there is only 2.0.
 Perhaps
  2.2 will help but I can't see how to get it.
 
  I saw another message on the list
 
 

http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
 
  where the exact same problem occurred but the original poster signed
 off
  saying they would wipe the surefire directory and see if that helps.
  However they did not report back. More significantly, I wiped my
  surefire jars and cleaned the whole project and have source and
target
  specified as 1.5 but to no avail.
 
  What could the problem be?
 
  Thanks
  Adam
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 
  modelVersion4.0.0/modelVersion
 
  groupIdcom.foo.bar/groupId
 
  artifactIdfoo/artifactId
 
  packagingpom/packaging
 
  version1.0-SNAPSHOT/version
 
  nameThe whole of foo/name
 
  organization
 
  named/name
 
  urlhttp://www.foo.com/url
 
  /organization
 
 
 
  repositories
 
  repository
 
  idMaven snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2/url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /repository
 
  repository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  

RE: Build Error

2006-05-23 Thread Artamonov, Juri
Please verify your path environment variable. Cvs.exe file should be in
the path. I belive if you start cvs.exe command from cmd on the
servers where continuum is running you will get the same message.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:30 PM
To: continuum-users@maven.apache.org
Subject: Build Error



Hello,

 

I've set up Continuum and everything seems to be fine but when I try to
build a project I get the following error:

 

  




Build Error:




Provider message: The cvs command failed.

Command output: 


---

'cvs' is not recognized as an internal or external command, operable
program or batch file.


---

 

Any help on this is greatly appreciated,

 

Thanks very much,

 

Ger

 

Ger Garrigan
Software Engineer

Castlewood House, Castlewood Ave, 
Rathmines, Dublin 6, Ireland. 
Tel:  +353 1 4060738   Fax:  +353 1 4060748 
 http://www.precisionsoftware.com/ www.precisionsoftware.com

 

 



Re: ear archetype name

2006-05-23 Thread Trent Rosenbaum

Hi Marco,

The following can be used to set the final name of the resulting artifact

build
   finalNamemy-xxear/finalName
/build


looking at the plugin documentation at

http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html

The earName is created from the expression ${project.build.finalName} and
this is set from the above.  You can use the same elements within your WAR
artifact removed the version number.

Hope this helps
Trent


On 23/05/06, Marco Mistroni [EMAIL PROTECTED] wrote:


hi all,
  i m using Maven2 to build an EAR application
the ear that gets generated has the name myxxear-1.0.ear

i was wondering if there was a way so that the ear file name produced does
not contain the version.
anyone could help?

thanks and regards
marco




Re: [M2] multiple-artifacts

2006-05-23 Thread Wayne Fay

Easiest is always to break into multiple modules as you've already outlined.

Wayne

On 5/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I am very new to maven and trying to wrap my head around how best to
port an existing ant based project to maven.

The project is a webservice layer for application.  The ant build
currently generates two artifacts:

- my-ws-client.jar.  Consists of WS interfaces, a few concrete classes
used only by the client and a client spring config file.
- my-ws.war.  Consists of WS interfaces, WS impls, server spring config
file and other config resources (e.g. web.xml etc)

Although maven strongly encourages a single primary artifact per
project, there is support for attached artifacts.  I normally see this
in reference to the ejb plugin.  However, there are archived emails that
mention registering the build-helper-maven-plugin and using it to
generate other associated artifacts.

Should I use these plugins to generate the client jar?  What is the best
way of doing that?

Or should I break this project into separate modules?

If I break them into separate modules I suspect that I will need three
modules:

1 - my-ws-client: classes and config files used by client only.
2 - my-ws: classes and config files used by the server only.
3 - my-ws-common: common classes, almost all interfaces, that the two
previous modules depend on.

Any help or reference to online docs/mail thread I have missed would be
appreciated.

Carlos.

-
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: Build Error

2006-05-23 Thread Gerard Garrigan
Juri,

If I run the cvs command from cmd there are no problems. I have the
cvs.exe specified in the PATH. However is there special path settings
for Continuum?

Thanks for your reply,

Ger

-Original Message-
From: Artamonov, Juri [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 16:44
To: continuum-users@maven.apache.org
Subject: RE: Build Error

Please verify your path environment variable. Cvs.exe file should be in
the path. I belive if you start cvs.exe command from cmd on the
servers where continuum is running you will get the same message.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:30 PM
To: continuum-users@maven.apache.org
Subject: Build Error



Hello,

 

I've set up Continuum and everything seems to be fine but when I try to
build a project I get the following error:

 

  




Build Error:




Provider message: The cvs command failed.

Command output: 


---

'cvs' is not recognized as an internal or external command, operable
program or batch file.


---

 

Any help on this is greatly appreciated,

 

Thanks very much,

 

Ger

 

Ger Garrigan
Software Engineer

Castlewood House, Castlewood Ave, 
Rathmines, Dublin 6, Ireland. 
Tel:  +353 1 4060738   Fax:  +353 1 4060748 
 http://www.precisionsoftware.com/ www.precisionsoftware.com

 

 



RE: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Adam Hardy
Well, mvn has downloaded surefire-2.0-SNAPSHOT and
maven-surefire-plugin-2.2-SNAPSHOT, but I still get the original error.

BTW Marco, you say it works for you - are you targeting jdk 1.5?

Thanks
Adam 

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 15:22
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
me..

hth
 marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and
I
 am running 'mvn test' on a small pilot project with java 1.5 code. I
 have source and target = 1.5 in my POM (see below).

 mvn falls over on surefire with a UnsupportedClassVersionError

 [INFO] Surefire report directory:
 C:\Projects\cortex\back-end\target\surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0); nested except
 is java.lang.UnsupportedClassVersionError:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0)


 After searching the list archives and googling on this, I still cannot
 find a solution.

 There was an announcement on the list 2006-05-14 that surefire 2.2 has
 been released but specifying version 2.2 in my POM doesn't help and I
 cannot find it on the repositories. It seems there is only 2.0.
Perhaps
 2.2 will help but I can't see how to get it.

 I saw another message on the list


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2

 where the exact same problem occurred but the original poster signed
off
 saying they would wipe the surefire directory and see if that helps.
 However they did not report back. More significantly, I wiped my
 surefire jars and cleaned the whole project and have source and target
 specified as 1.5 but to no avail.

 What could the problem be?

 Thanks
 Adam

 project xmlns=http://maven.apache.org/POM/4.0.0;

 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion

 groupIdcom.foo.bar/groupId

 artifactIdfoo/artifactId

 packagingpom/packaging

 version1.0-SNAPSHOT/version

 nameThe whole of foo/name

 organization

 named/name

 urlhttp://www.foo.com/url

 /organization



 repositories

 repository

 idMaven snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2/url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /repository

 repository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /repository

 /repositories

 pluginRepositories

 pluginRepository

 idMaven Snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2//url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /pluginRepository

 pluginRepository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /pluginRepository

 /pluginRepositories



 modules

 moduleback-end/module

 modulegui/module

 modulestandalone/module

 /modules



 build

 plugins

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-compiler-plugin/artifactId

 configuration

 source1.5/source

 target1.5/target

 /configuration

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-surefire-plugin/artifactId

 version2.2/version

 /plugin

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdcobertura-maven-plugin/artifactId

 executions

 execution

 goals

 goalclean/goal

 goalcheck/goal

 /goals

 /execution

 /executions

 /plugin

 /plugins

 /build

 reporting

 plugins

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdtaglist-maven-plugin/artifactId

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-javadoc-plugin/artifactId

 /plugin

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdjxr-maven-plugin/artifactId

 /plugin

 plugin

 !-- Code rules verification report --

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-pmd-plugin/artifactId

 configuration

 targetjdk1.4/targetjdk

 !--

 rulesets

 ruleset/rulesets/basic.xml/ruleset

 ruleset/rulesets/controversial.xml/ruleset

 /rulesets

 formatxml/format

 --

 linkXreftrue/linkXref

 sourceEncodingutf-8/sourceEncoding

 minimumTokens100/minimumTokens

 /configuration

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactId

 maven-project-info-reports-plugin

 /artifactId

 /plugin

 plugin

 

RE: [M2] multiple-artifacts

2006-05-23 Thread Carlos.Fernandez
Thanks for the quick response.

What are the use-cases where attached artifacts are appropriate?  Would
creating a zip of the source along with a primary artifact be a
candidate for an attached artifact?

Carlos

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 11:45 AM
To: Maven Users List
Subject: Re: [M2] multiple-artifacts

Easiest is always to break into multiple modules as you've already
outlined.

Wayne

On 5/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I am very new to maven and trying to wrap my head around how best to
 port an existing ant based project to maven.

 The project is a webservice layer for application.  The ant build
 currently generates two artifacts:

 - my-ws-client.jar.  Consists of WS interfaces, a few concrete classes
 used only by the client and a client spring config file.
 - my-ws.war.  Consists of WS interfaces, WS impls, server spring
config
 file and other config resources (e.g. web.xml etc)

 Although maven strongly encourages a single primary artifact per
 project, there is support for attached artifacts.  I normally see this
 in reference to the ejb plugin.  However, there are archived emails
that
 mention registering the build-helper-maven-plugin and using it to
 generate other associated artifacts.

 Should I use these plugins to generate the client jar?  What is the
best
 way of doing that?

 Or should I break this project into separate modules?

 If I break them into separate modules I suspect that I will need three
 modules:

 1 - my-ws-client: classes and config files used by client only.
 2 - my-ws: classes and config files used by the server only.
 3 - my-ws-common: common classes, almost all interfaces, that the two
 previous modules depend on.

 Any help or reference to online docs/mail thread I have missed would
be
 appreciated.

 Carlos.

 -
 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: Build Error

2006-05-23 Thread Artamonov, Juri
Gerard, 

Perhaps you have cvs.exe in user's path, not in system? I would recommed
you to put it to system variables.

Best regards,
   Juri.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:47 PM
To: continuum-users@maven.apache.org
Subject: RE: Build Error


Juri,

If I run the cvs command from cmd there are no problems. I have the
cvs.exe specified in the PATH. However is there special path settings
for Continuum?

Thanks for your reply,

Ger

-Original Message-
From: Artamonov, Juri [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 16:44
To: continuum-users@maven.apache.org
Subject: RE: Build Error

Please verify your path environment variable. Cvs.exe file should be in
the path. I belive if you start cvs.exe command from cmd on the
servers where continuum is running you will get the same message.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:30 PM
To: continuum-users@maven.apache.org
Subject: Build Error



Hello,

 

I've set up Continuum and everything seems to be fine but when I try to
build a project I get the following error:

 

  




Build Error:




Provider message: The cvs command failed.

Command output: 


---

'cvs' is not recognized as an internal or external command, operable
program or batch file.


---

 

Any help on this is greatly appreciated,

 

Thanks very much,

 

Ger

 

Ger Garrigan
Software Engineer

Castlewood House, Castlewood Ave, 
Rathmines, Dublin 6, Ireland. 
Tel:  +353 1 4060738   Fax:  +353 1 4060748 
 http://www.precisionsoftware.com/ www.precisionsoftware.com

 

 



Re: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

yes in my main project.
the project that users surefire is a 'child project' of the main project
btw, what's your JDK version?
i got 1.5.0_06.

hth
marco


On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:


Well, mvn has downloaded surefire-2.0-SNAPSHOT and
maven-surefire-plugin-2.2-SNAPSHOT, but I still get the original error.

BTW Marco, you say it works for you - are you targeting jdk 1.5?

Thanks
Adam

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 15:22
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

hi  Adam,
could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
me..

hth
marco

On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and
I
 am running 'mvn test' on a small pilot project with java 1.5 code. I
 have source and target = 1.5 in my POM (see below).

 mvn falls over on surefire with a UnsupportedClassVersionError

 [INFO] Surefire report directory:
 C:\Projects\cortex\back-end\target\surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0); nested except
 is java.lang.UnsupportedClassVersionError:
 com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
 version 49.0)


 After searching the list archives and googling on this, I still cannot
 find a solution.

 There was an announcement on the list 2006-05-14 that surefire 2.2 has
 been released but specifying version 2.2 in my POM doesn't help and I
 cannot find it on the repositories. It seems there is only 2.0.
Perhaps
 2.2 will help but I can't see how to get it.

 I saw another message on the list


http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2

 where the exact same problem occurred but the original poster signed
off
 saying they would wipe the surefire directory and see if that helps.
 However they did not report back. More significantly, I wiped my
 surefire jars and cleaned the whole project and have source and target
 specified as 1.5 but to no avail.

 What could the problem be?

 Thanks
 Adam

 project xmlns=http://maven.apache.org/POM/4.0.0;

 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;

 modelVersion4.0.0/modelVersion

 groupIdcom.foo.bar/groupId

 artifactIdfoo/artifactId

 packagingpom/packaging

 version1.0-SNAPSHOT/version

 nameThe whole of foo/name

 organization

 named/name

 urlhttp://www.foo.com/url

 /organization



 repositories

 repository

 idMaven snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2/url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /repository

 repository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /repository

 /repositories

 pluginRepositories

 pluginRepository

 idMaven Snapshots/id

 urlhttp://snapshots.maven.codehaus.org/maven2//url

 snapshots

 enabledtrue/enabled

 /snapshots

 releases

 enabledfalse/enabled

 /releases

 /pluginRepository

 pluginRepository

 releases

 enabledtrue/enabled

 /releases

 snapshots

 enabledfalse/enabled

 /snapshots

 idcentral/id

 nameMaven Repository Switchboard/name

 layoutdefault/layout

 urlhttp://repo1.maven.org/maven2/url

 /pluginRepository

 /pluginRepositories



 modules

 moduleback-end/module

 modulegui/module

 modulestandalone/module

 /modules



 build

 plugins

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-compiler-plugin/artifactId

 configuration

 source1.5/source

 target1.5/target

 /configuration

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-surefire-plugin/artifactId

 version2.2/version

 /plugin

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdcobertura-maven-plugin/artifactId

 executions

 execution

 goals

 goalclean/goal

 goalcheck/goal

 /goals

 /execution

 /executions

 /plugin

 /plugins

 /build

 reporting

 plugins

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdtaglist-maven-plugin/artifactId

 /plugin

 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-javadoc-plugin/artifactId

 /plugin

 plugin

 groupIdorg.codehaus.mojo/groupId

 artifactIdjxr-maven-plugin/artifactId

 /plugin

 plugin

 !-- Code rules verification report --

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-pmd-plugin/artifactId

 configuration

 targetjdk1.4/targetjdk

 !--

 rulesets

 ruleset/rulesets/basic.xml/ruleset

 ruleset/rulesets/controversial.xml/ruleset

 /rulesets

 formatxml/format

 --

 linkXreftrue/linkXref

 

Re: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

If your project is not too big (and not too confidential) could you zip it
at my gmail address, i can try it out.. and see if i get same error.

rgds
marco

On 5/23/06, Marco Mistroni [EMAIL PROTECTED] wrote:


yes in my main project.
the project that users surefire is a 'child project' of the main project
btw, what's your JDK version?
i got 1.5.0_06.


hth
 marco


On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 Well, mvn has downloaded surefire-2.0-SNAPSHOT and
 maven-surefire-plugin-2.2-SNAPSHOT, but I still get the original error.

 BTW Marco, you say it works for you - are you targeting jdk 1.5?

 Thanks
 Adam

 -Original Message-
 From: Marco Mistroni [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 15:22
 To: Maven Users List
 Subject: Re: Surefire and UnsupportedClassVersionError

 hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

 frankly i have no ideaon why is failing, but the 2.2-s is working fine 4
 me..

 hth
 marco

 On 5/23/06, Adam Hardy  [EMAIL PROTECTED] wrote:
 
  I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06 and
 I
  am running 'mvn test' on a small pilot project with java 1.5 code. I
  have source and target = 1.5 in my POM (see below).
 
  mvn falls over on surefire with a UnsupportedClassVersionError
 
  [INFO] Surefire report directory:
  C:\Projects\cortex\back-end\target\surefire-reports
  org.apache.maven.surefire.booter.SurefireExecutionException:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0); nested except
  is java.lang.UnsupportedClassVersionError :
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0)
 
 
  After searching the list archives and googling on this, I still cannot
  find a solution.
 
  There was an announcement on the list 2006-05-14 that surefire 2.2 has
  been released but specifying version 2.2 in my POM doesn't help and I
  cannot find it on the repositories. It seems there is only 2.0.
 Perhaps
  2.2 will help but I can't see how to get it.
 
  I saw another message on the list
 
 
 http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
 
  where the exact same problem occurred but the original poster signed
 off
  saying they would wipe the surefire directory and see if that helps.
  However they did not report back. More significantly, I wiped my
  surefire jars and cleaned the whole project and have source and target
  specified as 1.5 but to no avail.
 
  What could the problem be?
 
  Thanks
  Adam
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
 
  xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;
 
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 
  modelVersion4.0.0/modelVersion
 
  groupIdcom.foo.bar/groupId
 
  artifactIdfoo/artifactId
 
  packagingpom/packaging
 
  version1.0-SNAPSHOT/version
 
  nameThe whole of foo/name
 
  organization
 
  named/name
 
  urlhttp://www.foo.com/url
 
  /organization
 
 
 
  repositories
 
  repository
 
  idMaven snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2/url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /repository
 
  repository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  urlhttp://repo1.maven.org/maven2/url
 
  /repository
 
  /repositories
 
  pluginRepositories
 
  pluginRepository
 
  idMaven Snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2/ /url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /pluginRepository
 
  pluginRepository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  urlhttp://repo1.maven.org/maven2/url
 
  /pluginRepository
 
  /pluginRepositories
 
 
 
  modules
 
  moduleback-end/module
 
  modulegui/module
 
  modulestandalone/module
 
  /modules
 
 
 
  build
 
  plugins
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-compiler-plugin/artifactId
 
  configuration
 
  source1.5/source
 
  target1.5/target
 
  /configuration
 
  /plugin
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-surefire-plugin/artifactId
 
  version2.2/version
 
  /plugin
 
  plugin
 
  groupIdorg.codehaus.mojo/groupId
 
  artifactIdcobertura-maven-plugin/artifactId
 
  executions
 
  execution
 
  goals
 
  goalclean/goal
 
  goalcheck/goal
 
  /goals
 
  /execution
 
  /executions
 
  /plugin
 
  /plugins
 
  /build
 
  reporting
 
  plugins
 
  plugin
 
  groupId org.codehaus.mojo/groupId
 
  artifactIdtaglist-maven-plugin/artifactId
 
  /plugin
 
  plugin
 
  groupIdorg.apache.maven.plugins /groupId
 
  

Re: [M2] Setting goals for release:perform? (REPOST)

2006-05-23 Thread dan tran

plugin
 artifactIdmaven-release-plugin/artifactId
 configuration
goalscomma separated goals/goals
 /configuration
/plugin


On 5/23/06, Paul Spencer [EMAIL PROTECTED] wrote:


The default goals for release:perform are deploy and site:deploy.
How do I change them in the pom?

From the command line:
   mvn release:perform -Dgoal=deploy

Paul Spencer


-
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: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Marco Mistroni

hi adam,
here' smy repository/plugin declaration in my pom.xml.. it's 'shorter' than
the one you have...

pluginRepositories
 pluginRepository
idapache.snapshots/id
urlhttp://cvs.apache.org/maven-snapshot-repository/url
 /pluginRepository
  /pluginRepositories
  repositories
 repository
  idapache.snapshots/id
  urlhttp://cvs.apache.org/maven-snapshot-repository/url
/repository
  /repositories
hth
marco

On 5/23/06, Marco Mistroni [EMAIL PROTECTED] wrote:


If your project is not too big (and not too confidential) could you zip it
at my gmail address, i can try it out.. and see if i get same error.

rgds
 marco


On 5/23/06, Marco Mistroni [EMAIL PROTECTED] wrote:

 yes in my main project.
 the project that users surefire is a 'child project' of the main project
 btw, what's your JDK version?
 i got 1.5.0_06.


 hth
  marco


 On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:
 
  Well, mvn has downloaded surefire-2.0-SNAPSHOT and
  maven-surefire-plugin-2.2-SNAPSHOT, but I still get the original
  error.
 
  BTW Marco, you say it works for you - are you targeting jdk 1.5?
 
  Thanks
  Adam
 
  -Original Message-
  From: Marco Mistroni [mailto:[EMAIL PROTECTED]
  Sent: 23 May 2006 15:22
  To: Maven Users List
  Subject: Re: Surefire and UnsupportedClassVersionError
 
  hi  Adam,
  could you try 2.2-SNAPSHOT for surefire and see if that fixes it?
 
  frankly i have no ideaon why is failing, but the 2.2-s is working fine
  4
  me..
 
  hth
  marco
 
  On 5/23/06, Adam Hardy  [EMAIL PROTECTED] wrote:
  
   I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06and
  I
   am running 'mvn test' on a small pilot project with java 1.5 code. I
   have source and target = 1.5 in my POM (see below).
  
   mvn falls over on surefire with a UnsupportedClassVersionError
  
   [INFO] Surefire report directory:
   C:\Projects\cortex\back-end\target\surefire-reports
   org.apache.maven.surefire.booter.SurefireExecutionException:
   com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
   version 49.0); nested except
   is java.lang.UnsupportedClassVersionError :
   com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
   version 49.0)
  
  
   After searching the list archives and googling on this, I still
  cannot
   find a solution.
  
   There was an announcement on the list 2006-05-14 that surefire 2.2has
   been released but specifying version 2.2 in my POM doesn't help and
  I
   cannot find it on the repositories. It seems there is only 2.0.
  Perhaps
   2.2 will help but I can't see how to get it.
  
   I saw another message on the list
  
  
 
  http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
  
   where the exact same problem occurred but the original poster signed
  off
   saying they would wipe the surefire directory and see if that helps.
 
   However they did not report back. More significantly, I wiped my
   surefire jars and cleaned the whole project and have source and
  target
   specified as 1.5 but to no avail.
  
   What could the problem be?
  
   Thanks
   Adam
  
   project xmlns=http://maven.apache.org/POM/4.0.0 
  
   xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;
  
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
   http://maven.apache.org/maven-v4_0_0.xsd;
  
   modelVersion4.0.0/modelVersion
  
   groupIdcom.foo.bar/groupId
  
   artifactIdfoo/artifactId
  
   packagingpom/packaging
  
   version1.0-SNAPSHOT/version
  
   nameThe whole of foo/name
  
   organization
  
   named/name
  
   urlhttp://www.foo.com/url
  
   /organization
  
  
  
   repositories
  
   repository
  
   idMaven snapshots/id
  
   url http://snapshots.maven.codehaus.org/maven2/url
  
   snapshots
  
   enabledtrue/enabled
  
   /snapshots
  
   releases
  
   enabledfalse/enabled
  
   /releases
  
   /repository
  
   repository
  
   releases
  
   enabledtrue/enabled
  
   /releases
  
   snapshots
  
   enabledfalse/enabled
  
   /snapshots
  
   idcentral/id
  
   nameMaven Repository Switchboard/name
  
   layoutdefault/layout
  
   urlhttp://repo1.maven.org/maven2/url
  
   /repository
  
   /repositories
  
   pluginRepositories
  
   pluginRepository
  
   idMaven Snapshots/id
  
   url http://snapshots.maven.codehaus.org/maven2/ /url
  
   snapshots
  
   enabledtrue/enabled
  
   /snapshots
  
   releases
  
   enabledfalse/enabled
  
   /releases
  
   /pluginRepository
  
   pluginRepository
  
   releases
  
   enabledtrue/enabled
  
   /releases
  
   snapshots
  
   enabledfalse/enabled
  
   /snapshots
  
   idcentral/id
  
   nameMaven Repository Switchboard/name
  
   layoutdefault/layout
  
   urlhttp://repo1.maven.org/maven2 /url
  
   /pluginRepository
  
   /pluginRepositories
  
  
  
   modules
  
   moduleback-end/module
  
   modulegui/module
  
   modulestandalone/module
  
   /modules
  
  
  
   build
  
   plugins
  
   plugin
  
   

Re: Additional Repository

2006-05-23 Thread Wayne Fay

Apparently this needs to be well-documented somewhere on the Maven
website, as this is a very common question on the User list...

Essentially, you cannot simply copy your local developer workstation
repo to a directory on a server, expose it over HTTP, and call it a
Maven repo.

A real Maven repo has additional metadata requirements etc that are
created when you use install:install-file but only created with the
deploy:deploy-file command.

If you use the deploy:deploy-file (or another deploy command) to
deploy your files, you will see the additional files created in the
filesystem, and can compare the deploy repo to your local install
repo. Or you can look at an artifact in your own ~/.m2/repository vs
the same artifact in the www.ibiblio.org/maven2 repo.

Wayne

On 5/23/06, ben short [EMAIL PROTECTED] wrote:

I have the book allready but thanks all the same :)

On 5/23/06, Mike Markovich [EMAIL PROTECTED] wrote:
 Ben, Chris, here is a link to a free book on Maven.  It looks pretty
 good...



 
http://www.mergere.com/common/reg.jsp?form_source=m-m2bookform_landing=defaultpage

 On Tue, 2006-05-23 at 11:34 +0200, Chris Eidhof wrote:
  Hi,
 
  I'm trying to create an internal repository. It should only contain
  some libraries that are specific to our project, and not part of
  IBiblio. What I've done, is this (probably not right, so correct me
  where I'm wrong):
 
  0. Add those libraries (3d-party jars) with mvn install:install-file
  1. Add them as dependencies to my pom.xml
  2. mvn install does a build successful.
 
  I don't think every developer should do this, so what I want to do is
  share all those 3d-party libraries in an internal repository. I
  backed up my .m2 directory (and removed it), and this is what I did
  next.
 
  1. Create a directory custom-repos on my webserver.
  2. Recursively copied the directories from my local repository to my
  webserver (every custom library inside ~/.m2/repository)
  3. Added the following line to my pom.xml:
 repositories
 repository
 idcustom.repository/id
 nameMy Custom Repository/name
 urlhttp://www.example.com/custom-repos//url
 /repository
 /repositories
  4. mvn install
 
  Well, maven doesn't find or doesn't know how to interact with my
  custom repository. Can anyone give me a hint on what I'm doing wrong?
 
  Also, is there a naming convention for repository id's? I was
  thinking to use the package name of this project, something like
  com.example.project.
 
  Thanks in advance,
  Chris Eidhof
 
 
 
  -
  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: Surefire and UnsupportedClassVersionError

2006-05-23 Thread Adam Hardy
Same here. 

I think it must have something to do with surefire setting up its own
classloader - although it seems impossible that it would have problems
with the jdk - I only have 1.5 and none other.  

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 17:01
To: Maven Users List
Subject: Re: Surefire and UnsupportedClassVersionError

yes in my main project.
the project that users surefire is a 'child project' of the main project
btw, what's your JDK version?
i got 1.5.0_06.

hth
 marco


On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:

 Well, mvn has downloaded surefire-2.0-SNAPSHOT and
 maven-surefire-plugin-2.2-SNAPSHOT, but I still get the original
error.

 BTW Marco, you say it works for you - are you targeting jdk 1.5?

 Thanks
 Adam

 -Original Message-
 From: Marco Mistroni [mailto:[EMAIL PROTECTED]
 Sent: 23 May 2006 15:22
 To: Maven Users List
 Subject: Re: Surefire and UnsupportedClassVersionError

 hi  Adam,
 could you try 2.2-SNAPSHOT for surefire and see if that fixes it?

 frankly i have no ideaon why is failing, but the 2.2-s is working fine
4
 me..

 hth
 marco

 On 5/23/06, Adam Hardy [EMAIL PROTECTED] wrote:
 
  I have just set up Maven 2.0.4 on a new machine with JDK-1.5.0_06
and
 I
  am running 'mvn test' on a small pilot project with java 1.5 code. I
  have source and target = 1.5 in my POM (see below).
 
  mvn falls over on surefire with a UnsupportedClassVersionError
 
  [INFO] Surefire report directory:
  C:\Projects\cortex\back-end\target\surefire-reports
  org.apache.maven.surefire.booter.SurefireExecutionException:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0); nested except
  is java.lang.UnsupportedClassVersionError:
  com/cortex/base/domain/card/CardFinderTest (Unsupported major.minor
  version 49.0)
 
 
  After searching the list archives and googling on this, I still
cannot
  find a solution.
 
  There was an announcement on the list 2006-05-14 that surefire 2.2
has
  been released but specifying version 2.2 in my POM doesn't help and
I
  cannot find it on the repositories. It seems there is only 2.0.
 Perhaps
  2.2 will help but I can't see how to get it.
 
  I saw another message on the list
 
 

http://marc.theaimsgroup.com/?l=turbine-maven-userm=114831704529929w=2
 
  where the exact same problem occurred but the original poster signed
 off
  saying they would wipe the surefire directory and see if that helps.
  However they did not report back. More significantly, I wiped my
  surefire jars and cleaned the whole project and have source and
target
  specified as 1.5 but to no avail.
 
  What could the problem be?
 
  Thanks
  Adam
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
 
  modelVersion4.0.0/modelVersion
 
  groupIdcom.foo.bar/groupId
 
  artifactIdfoo/artifactId
 
  packagingpom/packaging
 
  version1.0-SNAPSHOT/version
 
  nameThe whole of foo/name
 
  organization
 
  named/name
 
  urlhttp://www.foo.com/url
 
  /organization
 
 
 
  repositories
 
  repository
 
  idMaven snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2/url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /repository
 
  repository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  urlhttp://repo1.maven.org/maven2/url
 
  /repository
 
  /repositories
 
  pluginRepositories
 
  pluginRepository
 
  idMaven Snapshots/id
 
  urlhttp://snapshots.maven.codehaus.org/maven2//url
 
  snapshots
 
  enabledtrue/enabled
 
  /snapshots
 
  releases
 
  enabledfalse/enabled
 
  /releases
 
  /pluginRepository
 
  pluginRepository
 
  releases
 
  enabledtrue/enabled
 
  /releases
 
  snapshots
 
  enabledfalse/enabled
 
  /snapshots
 
  idcentral/id
 
  nameMaven Repository Switchboard/name
 
  layoutdefault/layout
 
  urlhttp://repo1.maven.org/maven2/url
 
  /pluginRepository
 
  /pluginRepositories
 
 
 
  modules
 
  moduleback-end/module
 
  modulegui/module
 
  modulestandalone/module
 
  /modules
 
 
 
  build
 
  plugins
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-compiler-plugin/artifactId
 
  configuration
 
  source1.5/source
 
  target1.5/target
 
  /configuration
 
  /plugin
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-surefire-plugin/artifactId
 
  version2.2/version
 
  /plugin
 
  plugin
 
  groupIdorg.codehaus.mojo/groupId
 
  artifactIdcobertura-maven-plugin/artifactId
 
  executions
 
  execution
 
  goals
 
  goalclean/goal
 
  goalcheck/goal
 
  /goals
 
  /execution
 
  /executions
 
  /plugin
 
  /plugins
 
  /build
 
  reporting
 
  plugins
 
  plugin
 
  

[m2.0.4] maven-site-plugin error

2006-05-23 Thread Jorge Alberto Rodrigues

Hi all,

I use maven 2.0.4 and maven-site-plugin 2.0-Beta-5.

I'm getting the following errors when I run mvn site:

[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Error getting reports from the plugin 
'org.apache.maven.plugins:maven-site-plugin': Unable to find the mojo 
'org.apache.maven.plugins:maven-site-plugin:2.0-beta-5:run' in the plugin 
'org.apache.maven.plugins:maven-site-plugin'

org/mortbay/jetty/handler/NotFoundHandler

Help, please!

Jorge



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



[M2] Proxy and Licence

2006-05-23 Thread Rémy Sanlaville

Hi,

I try to use m2 and I have some trouble with proxy settings.

In the settings.xml in %USER_HOME%/.m2, I have defined my proxy
   proxy
 idoptional/id
 activetrue/active
 username/
 password/
 protocolhttp/protocol
 hostmy-proxy/host
 port/port
 nonProxyHostslocalhost/nonProxyHosts
   /proxy

It works well when maven try to download plug-ins and artifacts.
But if maven try to (only) download a file like
http://www.apache.org/licenses/LICENSE-2.0.txt
it fails stating :
[ERROR] FATAL ERROR
[INFO]

[INFO] Can't read the url [http://www.apache.org/licenses/LICENSE-2.0.txt] :
Connection timed out: connect
[INFO]

[INFO] Trace
java.util.MissingResourceException: Can't read the url [
http://www.apache.org/licenses/LICENSE-2.0.txt] : Connection timed out:
connect
   at
org.apache.maven.report.projectinfo.LicenseReport$LicenseRenderer.renderBody
(LicenseReport.java:248)
   at org.apache.maven.reporting.AbstractMavenReportRenderer.render(
AbstractMavenReportRenderer.java:65)
   ...

If Maven try to download a plug-in or artifact and a file like
http://www.apache.org/licenses/LICENSE-2.0.txt
it works well. It seems that maven use the proxy settings only if it try to
download a plug-in or artifact.
I have the same behavior with mvn cargo:start and the file
http://internap.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.zip

It is a bug or I missed something ?
Thanks,

Rémy


RE: Build Error

2006-05-23 Thread Gerard Garrigan
Juri,

The cvs.exe is in the system path. Could the problem be arising in the
scm command or the connection tag in the pom.xml file?

Ger

-Original Message-
From: Artamonov, Juri [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 17:01
To: continuum-users@maven.apache.org
Subject: RE: Build Error

Gerard, 

Perhaps you have cvs.exe in user's path, not in system? I would recommed
you to put it to system variables.

Best regards,
   Juri.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:47 PM
To: continuum-users@maven.apache.org
Subject: RE: Build Error


Juri,

If I run the cvs command from cmd there are no problems. I have the
cvs.exe specified in the PATH. However is there special path settings
for Continuum?

Thanks for your reply,

Ger

-Original Message-
From: Artamonov, Juri [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2006 16:44
To: continuum-users@maven.apache.org
Subject: RE: Build Error

Please verify your path environment variable. Cvs.exe file should be in
the path. I belive if you start cvs.exe command from cmd on the
servers where continuum is running you will get the same message.

-Original Message-
From: Gerard Garrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 6:30 PM
To: continuum-users@maven.apache.org
Subject: Build Error



Hello,

 

I've set up Continuum and everything seems to be fine but when I try to
build a project I get the following error:

 

  




Build Error:




Provider message: The cvs command failed.

Command output: 


---

'cvs' is not recognized as an internal or external command, operable
program or batch file.


---

 

Any help on this is greatly appreciated,

 

Thanks very much,

 

Ger

 

Ger Garrigan
Software Engineer

Castlewood House, Castlewood Ave, 
Rathmines, Dublin 6, Ireland. 
Tel:  +353 1 4060738   Fax:  +353 1 4060748 
 http://www.precisionsoftware.com/ www.precisionsoftware.com

 

 



Http Response 502 with maven proxy

2006-05-23 Thread thorsten
Hi,

with the latest version of maven proxy i get the following error while trying 
to get file from the repository:

Any idea?

Regards,
Thorsten

org.apache.maven.wagon.TransferFailedException: Error transferring file
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:99)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:369)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:356)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:91)
at 
org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:62)
at 
org.apache.maven.artifact.transform.LatestArtifactTransformation.transformForResolve(LatestArtifactTransformation.java:38)
at 
org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:40)
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:104)
at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467)
at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225)
at 
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:102)
at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersionManager.java:669)
at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:183)
at 
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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: java.io.IOException: Server returned HTTP response code: 502 for 
URL: 
http://srv-ew-web:/repository/org/apache/maven/plugins/maven-clean-plugin/maven-metadata.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source)
at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:85)
... 36 more

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



NAR Plugin Problems

2006-05-23 Thread GaryC

I found this forum almost by accident and have already found out quite a lot
of useful information by browsing the old posts. Anyway time to register and
ask a question (and hopefully if I become skilled enough with Maven to
contribute something back in time!)

I've been having some problems with the NAR plugin under Maven 2. I've
configured the freehep repository in my settings.xml as follows:

pluginRepository
  idfreehep/id
  nameFreeHEP/name
  urlhttp://java.freehep.org/maven2/url
  layoutdefault/layout
  releases
  enabledtrue/enabled
  updatePolicydaily/updatePolicy
  checksumPolicywarn/checksumPolicy
  /releases
  snapshots
enabledtrue/enabled
updatePolicydaily/updatePolicy
  /snapshots
/pluginRepository


And my pom.xml is as follows:

project
  modelVersion4.0.0/modelVersion
  groupIdMQ/groupId
  artifactIdMQ/artifactId
  nameQuant/name
  packagingnar/packaging
  version1.0-SNAPSHOT/version
  urlhttp://maven.apache.org/url
  build
plugins
 plugin
groupIdorg.freehep/groupId
artifactIdfreehep-nar-plugin/artifactId
version2.0-alpha-1-SNAPSHOT/version
extensionstrue/extensions
configuration
   cpp
  includePaths
 includePathsrc/cpp/includePath
  /includePaths
   /cpp
/configuration
 /plugin
/plugins
  /build
/project

The plugin seems to download fine, and running goals such as mvn compile
definitely excute the plugin, but I can't seem to run other goals such as
mvn nar:info or mvn nar:nar. They simply result in the error message:

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

I understand that Maven looks for plugins entitled maven-myplugin-plugin
by default, unless a plugin prefix is configured using the goalPrefix tag
in the plugins pom. I've had a look through the NAR's pom files and can't
see this specified, so I'm wondering if there is something wrong with the
plugin...or more likely that I'm doing something wrong.

Can anyone help?

Gary.
--
View this message in context: 
http://www.nabble.com/NAR+Plugin+Problems-t1670063.html#a4526525
Sent from the Maven - Users forum at Nabble.com.


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



  1   2   >