What are the arguments

2006-04-09 Thread Dave Hoffer
Where can I find documentation of the Continuum build definition
arguments?  It defaults to these, are there others?

 

--batch-mode --non-recursive  

 

-dh



How can I label the build?

2006-04-09 Thread Dave Hoffer
I am trying to configure a new build system using Continuum and Maven2,
can anyone comment on these questions?

 

1.  How do I label the build (apply version label to source control
system)?
2.  Also, how does one checkout all source atomically work?
Typically this is done by check-out by label, etc.
3.  Is triggering the build by source control system check-in
supported, or just a timed build?  
4.  How does the Enter a quiet period period for this schedule
field work?

 

Thanks!

 

-dh



Re: What are the arguments

2006-04-09 Thread Emmanuel Venisse

arguments are arguments of what you use (mvn, maven, ant or a shell program).

Emmanuel

Dave Hoffer a écrit :

Where can I find documentation of the Continuum build definition
arguments?  It defaults to these, are there others?

 

--batch-mode --non-recursive  

 


-dh






Apparent bug, can't change group

2006-04-09 Thread Dave Hoffer
I just configured my first 2 projects in continuum.  

 

I don't recall how Continuum got the Group for the project...possibly
from my pom file; in any case I had an error in the group name so I
deleted the project and re-added the project.  The old Group name is
still being used.  I cannot seem to get it to ever read the value in my
pom file.

 

Is this a bug or am I doing this wrong?

 

-dh



Using the Eclipse compiler under maven

2006-04-09 Thread gdub

I see messages that suggest that I
can use the Eclipse compiler instead
of the Sun compiler from within
Maven. Is this true? Is there a con-
figuration page somewhere? I can't
seem to find it.

I have run across a situation where
the Eclipse compiler compiles my
1.5 code but the Sun compiler won't.
I think that the Eclipse compiler
is correct but whether or not that
is the case, I'm in the 11th hour
and would just like to install my
modules and keep moving.

TIA,

  -dub


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



Re: [m2] Releases and test builds

2006-04-09 Thread Arnaud HERITIER
Can't we have something similar to the site:deploy/site:publish goals in m1
?
By default the team deploy the artifact on a staging repository and when the
release is graded the team publish it on the main repository.
I think that it is easy to do in m1.
I don't know for m2.

Arnaud

On 4/9/06, Brett Porter [EMAIL PROTECTED] wrote:

 Unfortunately the support for this is not going to be great. We don't
 have any type of repository promotion (yet) for something already
 released.

 I'd suggest using profiles, but distributionManagement can't currently
 be in a profile.

 I think you should have your test repository somewhere as the default
 in the distributionManagement and deploy there, and when you decide to
 promote it, check out the tag, modify the pom, and deploy it again.
 This will rebuild the artifacts however - so I'm not sure if that's
 satisfactory.

 Maybe a custom deployment plugin is in order here?

 - Brett

 On 4/9/06, Wendy Smoak [EMAIL PROTECTED] wrote:
  In another thread about Maven 1 [1] the idea of httpd- and
  Tomcat-style releases came up, where a build is produced and numbered
  x.x.x, and then it is later graded.  Struts has also adopted this
  style of test-build/release.  And we're in the process of converting
  the Struts Action 1 build to Maven 2. :)
 
  How does Maven 2 handle this style of releasing?
 
  Ideally, we would release the test build to a snapshot repository
  for evaluation.  Given the amount of metadata that goes along with
  Maven build artifacts, what's the best way to 're-deploy' everything
  to a distribution repository once it is graded and approved as an
  actual release?
 
  [1] http://www.nabble.com/Re%3A-Maven-1.1-gold--p3813013.html
 
  Thanks,
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




How to develop a new scope

2006-04-09 Thread Jacek Laskowski
Hi,

I wonder if there's a way to develop (provide) a new scope beside the
already available ones: compile, test, runtime, provided and system.
Is there any?

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl

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



How to assign properties to dependencies

2006-04-09 Thread Jacek Laskowski
Hi,

In Apache Geronimo, there exists a plugin that processes some
dependencies in a special way. It lists all of them and only those
with a property are passed on to a further processing. It was
available in M1, but neither is in M2. I wonder how many people found
it missing and worked it out. What would be a suggested M2-wise
solution to it?

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl

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



M2 dependency cause null pointer

2006-04-09 Thread Amund Mortensen

Hey,
I'm having a problem with M2, hope you guys can help me.
When I run mvn site I get a null pointer exception, mvn compile works  
great.

This is when I got this section in my pom.xml:

dependency
groupIdlog4j/groupId
  artifactIdLogger/artifactId
  version1.2.13/version
  scopesystem/scope
  
systemPath/var/maven/shelter/src/main/java/trunk/resources/log4j-1.2.13.jar/systemPath
/dependency

When I remove this section, mvn site work great. But mvn compile does not  
work, understanderbli, complains about the log4j package.


So.. What could be the cause of the null pointer?


Thanks.

--
- Amund.

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



Re: M2 dependency cause null pointer

2006-04-09 Thread Boris Lenzinger

did you try to use a repository instead to check if it fails the same way ?
I'm using download way and it is working fine. I've tried with the 
system syntax way and I see that maven is downloading the pom file. May 
be you are missing it.
Building the site and compilation is working fine for me if I use 
compile or system scope (maven 2.0.2).


Here is my dependency section for log4j to test the download way (avoids 
you to rewrite it just copy and paste it):

dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.13/version
 scopecompile/scope
   /dependency

Are you sure it is the generation of the site that causes a nullpointer 
exception and not when it is running a unit test ? May be it is related 
to your code. I say this because:
 * if compilation fails, building the site will remove any interaction 
with your code (starting unit tests, coverage, etc) and you have no 
exception. Note that this means that building the site does require 
log4j version 1.2.13.
 * if compilaton succeeds, then site cannot be built and a 
NullPointerException is raised. And what is the difference ? interaction 
with your code. I would say that the problem is coming from your code 
(but may be I'm worng).


Could you post the stack trace ? I'm not qualified if this a maven error 
but may be some others on the list are (I don't think that full stack is 
useful but 50 first lines could be useful so we can see where it is thrown).

And we can see at which level the exception happens.



Amund Mortensen a écrit :

Hey,
I'm having a problem with M2, hope you guys can help me.
When I run mvn site I get a null pointer exception, mvn compile works 
great.

This is when I got this section in my pom.xml:

dependency
groupIdlog4j/groupId
  artifactIdLogger/artifactId
  version1.2.13/version
  scopesystem/scope
  
systemPath/var/maven/shelter/src/main/java/trunk/resources/log4j-1.2.13.jar/systemPath 


/dependency

When I remove this section, mvn site work great. But mvn compile does 
not work, understanderbli, complains about the log4j package.


So.. What could be the cause of the null pointer?


Thanks.

--
- Amund.

-
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] surefire plugin and JUnit 4

2006-04-09 Thread Jakub Pawlowicz

Hi,

Does anybody know if there's a way to use JUnit 4 with maven-surefire- 
plugin?
It seems that classes which are using the JUnit 4 (annotations etc)  
are not executed using the standard 'mvn test' command.


The surefire plugin has a direct dependency on JUnit 3.8.1, so I  
guess there is the problem.
But I don't know if there's a way to change it (in my pom.xml) to  
JUnit 4.


I'm using Maven 2.0.3 and maven-surefire-plugin 2.1.3 and have all  
sources compiled for Java 5.


Thanks in advance.
Best regards,
Jakub Pawlowicz

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



Invoking maven from maven

2006-04-09 Thread Marco Tedone
Hi, I'm in the need of invoking Maven from withing a maven.xml. This is the 
scenario:


Folder A contains project.xml and maven.xml
Folder B, subdirectory of A, contains the whole maven project which I want 
to build. I would need to invoke a goal in B from maven.xml in A.


I couldn't find anything out there which would let me obtain this. Could you 
recommend a solution?


Many thanks.

Marco 



---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are

currently using to read this email. ]


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



Changing Local Repository

2006-04-09 Thread Carlos Cadete



 Then I change the localRepository in the global settings file, to a new
empty directory, and I execute mvn compile, maven simples gives me 

[ERROR] BUILD ERROR
[INFO]

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

 Why this happen? It showld try to download the sources for my new
LocalRepository, so why is not doing so.



--
View this message in context: 
http://www.nabble.com/Changing-Local-Repository-t1420888.html#a3830030
Sent from the Maven - Users forum at Nabble.com.


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



Re: M2 dependency cause null pointer

2006-04-09 Thread Tom Huybrechts
On 4/9/06, Amund Mortensen [EMAIL PROTECTED] wrote:

 Hey,
 I'm having a problem with M2, hope you guys can help me.
 When I run mvn site I get a null pointer exception, mvn compile works
 great.
 This is when I got this section in my pom.xml:

 dependency
 groupIdlog4j/groupId
artifactIdLogger/artifactId
version1.2.13/version
scopesystem/scope
systemPath/var/maven/shelter/src/main/java/trunk/resources/log4j-
 1.2.13.jar/systemPath
 /dependency

 When I remove this section, mvn site work great. But mvn compile does not
 work, understanderbli, complains about the log4j package.

 So.. What could be the cause of the null pointer?


There was a bug in the project-info-reports plugin that causes an NPE when
using a system scoped dependency. I believe it's fixed in the latest SVN
version.

Tom


Re: Invoking maven from maven

2006-04-09 Thread Arnaud HERITIER
You can use the maven tag
http://maven.apache.org/maven-1.x/tags.html#maven:maven

Arnaud

On 4/9/06, Marco Tedone [EMAIL PROTECTED] wrote:

 Hi, I'm in the need of invoking Maven from withing a maven.xml. This is
 the
 scenario:

 Folder A contains project.xml and maven.xml
 Folder B, subdirectory of A, contains the whole maven project which I want
 to build. I would need to invoke a goal in B from maven.xml in A.

 I couldn't find anything out there which would let me obtain this. Could
 you
 recommend a solution?

 Many thanks.

 Marco


 ---
 [This E-mail has been scanned for viruses but it is your responsibility
 to maintain up to date anti virus software on the device that you are
 currently using to read this email. ]


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




Re: Invoking maven from maven

2006-04-09 Thread Marco Tedone
I found  a solution. I use the multiproject goal to invoke the build process 
on Folder B from Folder A.
- Original Message - 
From: Marco Tedone [EMAIL PROTECTED]

To: Maven-Users users@maven.apache.org
Sent: Sunday, April 09, 2006 4:09 PM
Subject: Invoking maven from maven


Hi, I'm in the need of invoking Maven from withing a maven.xml. This is 
the scenario:


Folder A contains project.xml and maven.xml
Folder B, subdirectory of A, contains the whole maven project which I want 
to build. I would need to invoke a goal in B from maven.xml in A.


I couldn't find anything out there which would let me obtain this. Could 
you recommend a solution?


Many thanks.

Marco

---
[This E-mail has been scanned for viruses but it is your responsibility to 
maintain up to date anti virus software on the device that you are

currently using to read this email. ]


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





---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are

currently using to read this email. ]


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



Re: Invoking maven from maven

2006-04-09 Thread Marco Tedone

Thank you. That solved the problem brilliantly.
- Original Message - 
From: Arnaud HERITIER [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Sunday, April 09, 2006 10:42 PM
Subject: Re: Invoking maven from maven


You can use the maven tag
http://maven.apache.org/maven-1.x/tags.html#maven:maven

Arnaud

On 4/9/06, Marco Tedone [EMAIL PROTECTED] wrote:


Hi, I'm in the need of invoking Maven from withing a maven.xml. This is
the
scenario:

Folder A contains project.xml and maven.xml
Folder B, subdirectory of A, contains the whole maven project which I want
to build. I would need to invoke a goal in B from maven.xml in A.

I couldn't find anything out there which would let me obtain this. Could
you
recommend a solution?

Many thanks.

Marco


---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


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





---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are

currently using to read this email. ]


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



Re: [m2] Releases and test builds

2006-04-09 Thread Brett Porter
It's quite a different thing - the site is a remote rsync of two
entire directories. This is a copy of a small number of files, and
some repository metadata must be updated and most likely is not going
to be the same between the two afterwards (as the source repository
has 2.0.1, 2.0.2, 2.0.3, while the target has only the stable 2.0.3,
for examples).

The best way to do it from Maven would be to write a plugin that
downloads the original from the repository given by
distributionManagement and then republishes it to a new repository.
I guess this could be part of the deploy plugin, but its possible as a
custom plugin too.

The main thing is that it's not going to be fully integrated into
distributionManagement (at least until a future release)

- Brett

On 4/9/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:
 Can't we have something similar to the site:deploy/site:publish goals in m1
 ?
 By default the team deploy the artifact on a staging repository and when the
 release is graded the team publish it on the main repository.
 I think that it is easy to do in m1.
 I don't know for m2.

 Arnaud

 On 4/9/06, Brett Porter [EMAIL PROTECTED] wrote:
 
  Unfortunately the support for this is not going to be great. We don't
  have any type of repository promotion (yet) for something already
  released.
 
  I'd suggest using profiles, but distributionManagement can't currently
  be in a profile.
 
  I think you should have your test repository somewhere as the default
  in the distributionManagement and deploy there, and when you decide to
  promote it, check out the tag, modify the pom, and deploy it again.
  This will rebuild the artifacts however - so I'm not sure if that's
  satisfactory.
 
  Maybe a custom deployment plugin is in order here?
 
  - Brett
 
  On 4/9/06, Wendy Smoak [EMAIL PROTECTED] wrote:
   In another thread about Maven 1 [1] the idea of httpd- and
   Tomcat-style releases came up, where a build is produced and numbered
   x.x.x, and then it is later graded.  Struts has also adopted this
   style of test-build/release.  And we're in the process of converting
   the Struts Action 1 build to Maven 2. :)
  
   How does Maven 2 handle this style of releasing?
  
   Ideally, we would release the test build to a snapshot repository
   for evaluation.  Given the amount of metadata that goes along with
   Maven build artifacts, what's the best way to 're-deploy' everything
   to a distribution repository once it is graded and approved as an
   actual release?
  
   [1] http://www.nabble.com/Re%3A-Maven-1.1-gold--p3813013.html
  
   Thanks,
   --
   Wendy
  
   -
   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: Changing Local Repository

2006-04-09 Thread Allan Ramirez

Hi there,

Try to append -U in your command

regards,
allan

Carlos Cadete wrote:



Then I change the localRepository in the global settings file, to a new
empty directory, and I execute mvn compile, maven simples gives me 


[ERROR] BUILD ERROR
[INFO]

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

Why this happen? It showld try to download the sources for my new
LocalRepository, so why is not doing so.



--
View this message in context: 
http://www.nabble.com/Changing-Local-Repository-t1420888.html#a3830030
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: How to assign properties to dependencies

2006-04-09 Thread Brett Porter
This has been asked quite a bit before, including in regards to the
Geronimo build. Which plugin are you referring to?

The assembly plugin should be replacable with the Maven assembly
plugin, which was one of them.

Any other plugins that do this should use sensible defaults based on
scope, and apply a filter to them. The filter can be configured on the
plugin. Note that this is rarely really needed, and I'd take a careful
look at your use case first.

- Brett

On 4/9/06, Jacek Laskowski [EMAIL PROTECTED] wrote:
 Hi,

 In Apache Geronimo, there exists a plugin that processes some
 dependencies in a special way. It lists all of them and only those
 with a property are passed on to a further processing. It was
 available in M1, but neither is in M2. I wonder how many people found
 it missing and worked it out. What would be a suggested M2-wise
 solution to it?

 Jacek

 --
 Jacek Laskowski
 http://www.laskowski.org.pl

 -
 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 develop a new scope

2006-04-09 Thread Brett Porter
No.

On 4/9/06, Jacek Laskowski [EMAIL PROTECTED] wrote:
 Hi,

 I wonder if there's a way to develop (provide) a new scope beside the
 already available ones: compile, test, runtime, provided and system.
 Is there any?

 Jacek

 --
 Jacek Laskowski
 http://www.laskowski.org.pl

 -
 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: [M2] surefire plugin and JUnit 4

2006-04-09 Thread Brett Porter
Support has been submitted (but not yet tested) and is likely to be
included in surefire plugin 2.2, along with the already implemented
and tested testNG support.

In the mean time, you might try this technique:
http://www.jroller.com/page/eu?entry=running_junit_4_test_cases

- Brett

On 4/10/06, Jakub Pawlowicz [EMAIL PROTECTED] wrote:
 Hi,

 Does anybody know if there's a way to use JUnit 4 with maven-surefire-
 plugin?
 It seems that classes which are using the JUnit 4 (annotations etc)
 are not executed using the standard 'mvn test' command.

 The surefire plugin has a direct dependency on JUnit 3.8.1, so I
 guess there is the problem.
 But I don't know if there's a way to change it (in my pom.xml) to
 JUnit 4.

 I'm using Maven 2.0.3 and maven-surefire-plugin 2.1.3 and have all
 sources compiled for Java 5.

 Thanks in advance.
 Best regards,
 Jakub Pawlowicz

 -
 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: [m2] Including the source code in a war

2006-04-09 Thread Wendy Smoak
On 4/6/06, Martin Cooper [EMAIL PROTECTED] wrote:
 Yes, I'm now of the belief that we can't treat this as a plain vanilla
 resource thing. However, looking at the source for the war plugin, I see
 that a webResources section is permitted, and it looks like this may do
 what you want. Unfortunately, my attempt to add this to the POM made no
 difference at all, so it may be that it hasn't made it into a release of the
 plugin yet. (Or I'm just doing it wrong, which is entirely possible. ;)

I don't see webResources listed here, so it's probably not in a release yet:
   http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

Meanwhile, I solved it with an execution of the antrun plugin bound to
the process-sources phase.  It works, but... maven-copier-plugin,
anyone??

 *   http://svn.apache.org/repos/asf/struts/action/trunk/apps/pom.xml

Other ideas are welcome. :)

--
Wendy

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



Re: PROBLEM SOLVED : Line too long error when I try to fork the compiler for jdk1.3

2006-04-09 Thread Carlos Sanchez
It was not fixed, see http://jira.codehaus.org/browse/MCOMPILER-22

On 4/7/06, David J. M. Karlsen [EMAIL PROTECTED] wrote:
 Sanjay Choudhary skrev:

 Finally I was able to resolve this issue
 
 On DOS if number of source files or classpath entries are too many we get an
 error Line too Long and this breaks compiling using jdk1.3 using fork.
 
 To shorten the options and source files to javac command we can use
 
 javac @options @class other options)
 
 in my solution file options contain list of all the classpath entries and
 @class contains list of all .java files that needs to be compiled.
 
 I made changes to AbstractCompilerMojo.java in maven-compiler-plugin (
 2.0.1-SNAPSHOT) and JavacCompiler in plexus-compiler-java (1.6-SNAPSHOT).
 These changes will kick into play only if fork = true.
 
 
 Hmm, I still get issues with 2.0.1 and 1.6-SNAPSHOT?

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



Deployed class files different to local compiled files

2006-04-09 Thread Michael McCrann
Hi,

I have come across a strange thing and I was hoping somebody could
explain it.

I am converting a WAR project from Ant to Maven2. I am doing a series of
checks to ensure that the Ant WAR and the Maven WAR are compatiable.

The steps in one of these checks is:

- Unwar the WAR that has been deployed to the Maven internal release
repository.
- Compare the the unwar'ed WEB-INF/classes directory with the
'target/classes' directory from a local compile.

There are about 50 class files. 47 of these files are binary identical.
3 of them are the same size but have a few bytes that are different.

Any thoughts?

Michael McCrann


NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.



Re: How to develop a new scope

2006-04-09 Thread Wayne Fay
Just wondering, what other scope(s) do you need, and what's the use
case? Although Brett has made it clear that its generally not
possible... ;-)

Wayne

On 4/9/06, Brett Porter [EMAIL PROTECTED] wrote:
 No.

 On 4/9/06, Jacek Laskowski [EMAIL PROTECTED] wrote:
  Hi,
 
  I wonder if there's a way to develop (provide) a new scope beside the
  already available ones: compile, test, runtime, provided and system.
  Is there any?
 
  Jacek
 
  --
  Jacek Laskowski
  http://www.laskowski.org.pl
 
  -
  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: PROBLEM SOLVED : Line too long error when I try to fork the compiler for jdk1.3

2006-04-09 Thread Carlos Sanchez
still interested in submitting the patch? that will save somebody else's time
http://jira.codehaus.org/browse/MCOMPILER-22

On 3/12/06, Brett Porter [EMAIL PROTECTED] wrote:
 On 3/13/06, Sanjay Choudhary [EMAIL PROTECTED] wrote:
  javac @options @class other options)

 Yep, that's how the problem has been solved elsewhere like in Javadoc.
 Nice work!

  1. How can I share my code with maven group, this will enable us to close
  bug http:/jira/codehaus.org/browse/MCCOMPILER-22?

 http://maven.apache.org/guides/development/guide-m2-development.html##Creating%20and%20submitting%20a%20patch

 attach the patch to MCOMPLIER-22

  2. How can I share these maven jars with my other team members?(need to do
  tomorrow morning .  I will hate to email them these new versions of jars.
  Is there a way I can install them in my companies snapshot repository?
  (This will involve adding distribution entries in POM.xml for both the
  projects. Is it OK?). Any suggestions/ideas.

 You've got the right idea here. Change the distributionManagement
 section of your local POM copies to deploy to your own snapshot
 repository and run mvn deploy, then have the developers include that
 repository as their pluginRepository (see
 http://maven.apache.org/guides/development/guide-testing-development-plugins.html
 for an example).

 Thanks,
 Brett

 -
 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: m2 unable to build on linux with maven-compiler-plugin 2.0.1 version

2006-04-09 Thread Carlos Sanchez
to be sure, try removing /home/gpamu/.m2/repository/org/codehaus/plexus
Are you behind a proxy? using a mirror?

On 4/8/06, Gautham Pamu [EMAIL PROTECTED] wrote:
 Hi Carlos,

 I now remove the
 /home/gpamu/.m2/repository/org/codehaus/plexus/plexus-compiler/1.5.2/plexus-
 compiler-1.5.2.pom but now it is failing with javac pom file.

 [INFO] [antrun:run]
 [INFO] Executing tasks
 [INFO] Executed tasks
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler/1.5.2/plexus-compiler-1.5.2.pom
 761b downloaded
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components/1.1.5/plexus-components-1.1.5.pom
 2K downloaded
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plexus-1.0.5.pom
 5K downloaded
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.2/plexus-compiler-manager-1.5.2.pom
 634b downloaded
 Downloading:
 http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-javac/1.5.2/plexus-compiler-javac-1.5.2.pom
 625b downloaded
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:plexus-compiler-javac:jar:1.5.2

 Reason: Cannot find parent: org.codehaus.plexus:plexus-compilers for
 project: null:plexus-compiler-javac:jar:1.5.2



 On 4/7/06, Carlos Sanchez [EMAIL PROTECTED] wrote:
 
  You need to remove
 
  /home/gpamu/.m2/repository/org/codehaus/plexus/plexus-compiler/1.5.2/plexus-
  compiler-1.5.2.pom
 
  On 4/7/06, Gautham Pamu [EMAIL PROTECTED] wrote:
   HI Carlos,
  
   I removed the plexus-compiler-api, plexus-compiler-manager and
   plexus-compiler-javac. I am still getting the same error...
  
   [INFO]
  
  [ERROR]
   BUILD ERROR
   [INFO]
  
  [INFO]
   Error building POM (may not be this project's POM).
  
  
   Project ID: null:plexus-compiler-api:jar:1.5.2
  
   Reason: Cannot find parent: org.codehaus.plexus:plexus-compiler for
  project:
   null:plexus-compiler-api:jar:1.5.2
  
  
   [INFO]
  
  [INFO]
   Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
   dependency information: Unable to read the metadata file for artifact '
   org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent:
   org.codehaus.plexus:plexus-compiler for project:
   null:plexus-compiler-api:jar:1.5.2
 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2
  
   from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
 snapshots (http://snapshots.maven.codehaus.org/maven2)
   Path to dependency:
   1)
  org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1
  
  
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
   DefaultLifecycleExecutor.java:551)
   at
  
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   (DefaultLifecycleExecutor.java:475)
   at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
   DefaultLifecycleExecutor.java:454)
   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(
   NativeMethodAccessorImpl.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   NativeMethodAccessorImpl.java:58)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   DelegatingMethodAccessorImpl.java:60)
   at java.lang.reflect.Method.invoke(Method.java:391)
   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:
  

Test case failure caused to build failure

2006-04-09 Thread Venkatagopalaraju
Dear Maven Users,

  I am using Maven2.0.2. I am trying to build my project(multiple projects) 
including test classes. Problem is, If any one test case in my project(while 
building project) fails, then automatically goes to build failure. But, I don't 
want to stop build, If anything(test case fails) wrong occured. I need these 
test case failure details in Surefire reports.

Could you please let me know, what I need to do for getting build success with 
test case failures details.



Thanks  Regards
  Gopal