Re: eclipse:eclipse does not generates proper folder for resources

2005-09-27 Thread Geoffrey
If you're using m1.1b2, try adding  (or 
something similar) to your project.xml's resource element.
The idea plugin doesn't generate resources if it's not included (it did 
in m1.0.2 though).


Erick Dovale wrote:

Hi there,
When I call m2 eclipse:eclipse on any eclipse project it does it all 
fine except for the fact that the src/main/resources directory is 
outputted to the root of the project.
is it me whose missing something here or is there a bug?? I search in 
jira and did not find anything like this reported..


Thanks..
edovale.


--
With kind regards,
Geoffrey De Smet


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



Re: [m2] multiple repository confusion

2005-09-27 Thread andrew


Brett Porter wrote:
> Finally, the profile you have below should also work (you need to be
> able to add this on some occasions - specifically when the parent that
> specifies the repository to use is actually in the repository). I
> think what you are lacking is a line to activate the profile.

Aha! Named the profile and activated it. All working now. Obvious in
hindsight :)

Thanks,
...andrew
--

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



Re: Can I get html reports out of maven 2 beta 2 surefire

2005-09-27 Thread Brett Porter
There is a plugin that is almost ready for release that will produce
HTML reports, much like those in maven 1.

It will be announced here - it is in SVN at http://svn.mojo.codehaus.org/

Regards,
Brett

On 9/28/05, Dhananjay Nene <[EMAIL PROTECTED]> wrote:
> Thanks to maven 2 beta 2 I am now able to get a text output of the test
> case execution status. Any way I can get the same generated in html /
> xml format ?
>
> Dhananjay
>
> -
> 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]



Can I get html reports out of maven 2 beta 2 surefire

2005-09-27 Thread Dhananjay Nene
Thanks to maven 2 beta 2 I am now able to get a text output of the test 
case execution status. Any way I can get the same generated in html / 
xml format ?


Dhananjay

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



Re: [m2] multiple repository confusion

2005-09-27 Thread Saleem Shafi
Thanks for the tip, but it didn't quite work..  i wasn't sure if you
meant that i should delete just the RELEASE value/element or the
entire file..  i did both but neither worked, the value/file just came
right back..  what did seem to work was replacing the RELEASE value
with '1.0-alpha-3', the version that matched the repository on
ibiblio.

i'm not sure if this is what you were asking me to do or not, and if
not, if that means that this is a different bug, but  that got me a
little BUILD SUCCESSFUL message, so i'm happy for tonight..   thanks
again..


Saleem.


p.s.  someone might want to put a little note on the Getting Started
page that explains this workaround in case anyone else has any
problems..

On 9/27/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> On 9/28/05, andrew <[EMAIL PROTECTED]> wrote:
> > Where I am having trouble is if I have a dependency that is not
> > available on the central maven/ibiblio repository, or my local
> > repository, but is available on my deployment repository. For example,
> > when a colleague deploys a project that I do not have locally.
>
> You should specify a repository in the project that needs to use it
> (using , similar to below).
>
> FYI, if it is not something specific to the project but just something
> you want to add, you can declare a mirror in settings.xml - this says
> that the repository is ibiblio, but I want to use planetmirror, or
> maven-proxy, etc.
>
> Finally, the profile you have below should also work (you need to be
> able to add this on some occasions - specifically when the parent that
> specifies the repository to use is actually in the repository). I
> think what you are lacking is a line to activate the profile.
>
> The m2 installation has a commented settings.xml to use as a basis.
>
> > Also, in previous m2 releases, when a dependency is not found m2 would
> > provide a pre-filled-in command line snippet for install:install-file.
> >  A nice hint so you could easily add it to your local
> > repository. It no longer appears to do this. Is this by design?
>
> I think its a bug - I already filed it this morning.
>
> Cheers,
> Brett
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Saleem Shafi
Partner
Pomatics Technology Partners LTD
http://pomatics.com
ph: 512.577.1472
email: [EMAIL PROTECTED]

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



Re: [m2-b1] classifier-specific dependencies colliding with generic dependencies

2005-09-27 Thread Brett Porter
I think its because the project you are depending on is in the
reactor, and its probably a bug.

Basically, its trying to use the built version of that project, but
projects are only identified by group:artifactId

- Brett

On 9/28/05, John Fallows <[EMAIL PROTECTED]> wrote:
> Folks,
>
> It seems like there is a collision between dependencies from the same
> project but with different classifiers, causing only the main
> dependency artifact to be present on the compilation classpath.
>
> This example will look familiar to anyone following a previous public
> mock api thread. :-)
>
> project/
>   api-module/
>   impl-module/
>
> The api-module generates 2 artifacts, one with classifier "mock".
> The impl-module depends on both of these artifiacts, one with "mock"
> classifier at "test" scope and the other with no classifier at the
> default "compile" scope.
>
> During compilation of the impl-module tests, classes from the
> api-module "mock" artifact are not found on the classpath.
>
> It seems as though the "mock" artifact and the regular artifact are
> colliding, causing the "mock" artifact to be removed from the test
> compilation classpath.
>
> Both the "mock" and regular artifacts from the api-module have type
> "jar".  Even when the "mock" type is changed to "zip", the same
> problem occurs.
>
> Perhaps dependency classifiers are ignored while constructing the
> compilation classpath?
>
> Kind Regards,
> John Fallows.
>
> -
> 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] war:inplace

2005-09-27 Thread Brett Porter
If there isn't already, yes. It is currently part of a TODO in the
code I think...

- Brett

On 9/28/05, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> Should a tracker against the war plugin component be added for
> war:inplace and war:exploded?
>
> -Stephen
>

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



Re: [m2] multiple repository confusion

2005-09-27 Thread Brett Porter
On 9/28/05, andrew <[EMAIL PROTECTED]> wrote:
> Where I am having trouble is if I have a dependency that is not
> available on the central maven/ibiblio repository, or my local
> repository, but is available on my deployment repository. For example,
> when a colleague deploys a project that I do not have locally.

You should specify a repository in the project that needs to use it
(using , similar to below).

FYI, if it is not something specific to the project but just something
you want to add, you can declare a mirror in settings.xml - this says
that the repository is ibiblio, but I want to use planetmirror, or
maven-proxy, etc.

Finally, the profile you have below should also work (you need to be
able to add this on some occasions - specifically when the parent that
specifies the repository to use is actually in the repository). I
think what you are lacking is a line to activate the profile.

The m2 installation has a commented settings.xml to use as a basis.

> Also, in previous m2 releases, when a dependency is not found m2 would
> provide a pre-filled-in command line snippet for install:install-file.
>  A nice hint so you could easily add it to your local
> repository. It no longer appears to do this. Is this by design?

I think its a bug - I already filed it this morning.

Cheers,
Brett

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



Re: archetype:create help

2005-09-27 Thread Brett Porter
This looks like:
http://jira.codehaus.org/browse/MNG-916

Please check ~/.m2/plugin-registry.xml - if that has RELEASE as a
version in there somewhere, remove it - that should correct the
problem.

- Brett

On 9/28/05, Saleem Shafi <[EMAIL PROTECTED]> wrote:
> hello all,
>
> i'm a bit new to Maven, so please bear with me..  i played around with
> Maven1 a bit, so i get the basic idea..  i finally got around to
> needing to do something a bit more serious and wanted to try Maven
> out..  i noticed that Maven2 b2 came out just today and got all
> excited..  i read all the docs on the website (no link to a Wiki page
> that i could find..  little help?), downloaded the sucker, get 'er
> installed..  i followed the instructions on the Getting Started page
> and typed:
>
> m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
> from my root directory of choice and Wham!
>
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/RELEASE/maven-archetype-plugin-RELEASE.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO] Cannot find mojo descriptor for: 'archetype:create' - Treating
> as non-aggregator.
> [INFO] 
> 
> [INFO] Building Maven Default Project
> [INFO]task-segment: [archetype:create]
> [INFO] 
> 
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/RELEASE/maven-archetype-plugin-RELEASE.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
>
>
>
> i checked the repository and there seems to be no artifact by that
> name..  in fact, i could only get as far as:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/,
> where there is a 1.0-alpha-3 edition of the plugin.
>
> from what i've read so far, i feel like i should be able to pin my
> installation of Maven2 to that version of the plugin, but haven't
> found anything tells me HOW to go about it..  if anyone here can give
> me some advice, i'd appreciate it..  i don't mind modifying my
> install, but this probably shouldn't be happening in the first place,
> should it?
>
>
> Saleem.
>
> -
> 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-b1] classifier-specific dependencies colliding with generic dependencies

2005-09-27 Thread John Fallows
Folks,

It seems like there is a collision between dependencies from the same
project but with different classifiers, causing only the main
dependency artifact to be present on the compilation classpath.

This example will look familiar to anyone following a previous public
mock api thread. :-)

project/
  api-module/
  impl-module/

The api-module generates 2 artifacts, one with classifier "mock".
The impl-module depends on both of these artifiacts, one with "mock"
classifier at "test" scope and the other with no classifier at the
default "compile" scope.

During compilation of the impl-module tests, classes from the
api-module "mock" artifact are not found on the classpath.

It seems as though the "mock" artifact and the regular artifact are
colliding, causing the "mock" artifact to be removed from the test
compilation classpath.

Both the "mock" and regular artifacts from the api-module have type
"jar".  Even when the "mock" type is changed to "zip", the same
problem occurs.

Perhaps dependency classifiers are ignored while constructing the
compilation classpath?

Kind Regards,
John Fallows.

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



[m2] multiple repository confusion

2005-09-27 Thread andrew
Maven version: 2.0-beta-2

Hi,

I am having some trouble getting m2 repositories to work as I expect.
Not sure if the problem is with my configuration, or my expectation :)

I can download plugins and dependencies from the main maven/ibiblio
repositories to my local (~/.m2/repository) repository without any hassle.

I can also install artefacts to my local repository (via install or
install:install-file) and deploy them to my deployment repository[1].

Where I am having trouble is if I have a dependency that is not
available on the central maven/ibiblio repository, or my local
repository, but is available on my deployment repository. For example,
when a colleague deploys a project that I do not have locally.

m2 appears to try my local repository, then the central repository, then
gives up.

I have tried adding a repository element to my ~/.m2/settings.xml[2] but
this doesn't appear to make any difference.

Is my expectation of m2 that it can draw dependencies from multiple
repositories correct? If so, can anyone let me know what may be wrong
with my configuration?

Also, in previous m2 releases, when a dependency is not found m2 would
provide a pre-filled-in command line snippet for install:install-file.
 A nice hint so you could easily add it to your local
repository. It no longer appears to do this. Is this by design?

Thanks,
...andrew

Listing 1:


  ...
  

  myrepo
  file:///path/to/myrepo

  
  ...


Listing 2:


  ...
  

  

  myrepo
file:///path/to/myrepo

  

  
  ...


--

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



archetype:create help

2005-09-27 Thread Saleem Shafi
hello all,

i'm a bit new to Maven, so please bear with me..  i played around with
Maven1 a bit, so i get the basic idea..  i finally got around to
needing to do something a bit more serious and wanted to try Maven
out..  i noticed that Maven2 b2 came out just today and got all
excited..  i read all the docs on the website (no link to a Wiki page
that i could find..  little help?), downloaded the sucker, get 'er
installed..  i followed the instructions on the Getting Started page
and typed:

m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

from my root directory of choice and Wham!

Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/RELEASE/maven-archetype-plugin-RELEASE.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] Cannot find mojo descriptor for: 'archetype:create' - Treating
as non-aggregator.
[INFO] 

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create]
[INFO] 

[INFO] Searching repository for plugin with prefix: 'archetype'.
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/RELEASE/maven-archetype-plugin-RELEASE.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Failed to resolve artifact.



i checked the repository and there seems to be no artifact by that
name..  in fact, i could only get as far as:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/,
where there is a 1.0-alpha-3 edition of the plugin.

from what i've read so far, i feel like i should be able to pin my
installation of Maven2 to that version of the plugin, but haven't
found anything tells me HOW to go about it..  if anyone here can give
me some advice, i'd appreciate it..  i don't mind modifying my
install, but this probably shouldn't be happening in the first place,
should it?


Saleem.

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



M2 scm plugin

2005-09-27 Thread Michael Cassidy
Trying to get the scm plugin to work with my project using goal
scm:update,
And I get the following error.  I know that the repository location is
valid, but the plugin can't seem to find it.  Just below is the
configuration excerpt (The stuff in brackets I replaced to protect
sensitive data).



scm:cvs:pserver:[EMAIL PROTECTED]:/misc/docs-dev/RE
POS:/v2/framework/common
HEAD


.

[INFO] Executing: cvs -f -q update -d -rHEAD
[INFO] Working directory: C:\dev\v2\framework\common
[DEBUG] Working directory: C:\dev\v2\framework\common
[DEBUG] Command line: cvs -f -q update -d -rHEAD
[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:
[ERROR] /misc/docs-dev/REPOS
: no such repository

[INFO]


[INFO] BUILD FAILURE
[INFO]


[INFO] Reason: Command failed.
[INFO]


[DEBUG] Trace
org.apache.maven.plugin.MojoExecutionException: Command failed.
at
org.apache.maven.scm.plugin.AbstractScmMojo.checkResult(AbstractScmMojo.
java:175)
at
org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:69)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:357)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:479)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:460)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:442)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:131)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
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)
[INFO]


[INFO] Total time: 1 second
[INFO] Finished at: Tue Sep 27 17:44:35 PDT 2005
[INFO] Final Memory: 2M/4M


Michael D. Cassidy
Software Architect
Vegas.com
[EMAIL PROTECTED]



Re: [m2] Archetype Plugin parameters and templates

2005-09-27 Thread Eric Jacob
Hi Jason,

Thanks for your fast answer. However, I took a look at the "
maven-archetype-quickstart-1.0-alpha-3.jar" in my local repository and I saw
no velocity templates... Here where I looked:

%USER_HOME%\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\1.0-alpha-3

Is it possible to provide a sample or a link to a velocity template on the
online source repository?

Thank you in advance,

Eric

On 9/27/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2005-09-26 at 21:49 -0400, Eric Jacob wrote:
> > Hi,
> >
> > The M1 Genapp plugin offers the possibility to define custom parameters
> and
> > templates... So here my questions about the M2 Archetype plugin:
> >
> > (1) Does it offer the same possibilities?
>
> Yes, the templates for a archetype are actually velocity templates so
> more flexible then what's in genapp.
>
> > (2) Is it possible to prompt the user for the parameter's value?
>
> Archetypes were designed to do that. The parameters can come from
> anywhere as long they end up in a Map. The Map is used when rendering
> the velocity templates to parameterize the output.
>
> I would like to do more work on the archetypes in order to provide some
> metadata about the parameters for a particular archetype so that better
> UI tools can be made. But even with that being the case there is reason
> why you couldn't make a UI for the generation of a project from an
> archetype.
>
> > (3) Where should I start to build my own template?
>
> You can look at the existing archetypes which are simply JARs that
> contain velocity templates and some metadata about what is actually in
> the archetype. I will add some doco to the getting started guide about
> archetypes as I think there is little known about them but they are
> going to be highly useful.
>
> If you follow the current getting started guide and create a project:
>
> m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
> This will actually download the archetype to your local maven repository
> and you can take a look at it. It will be in:
>
> $repo/org/apache/maven/archetypes/maven-archetype-quickstart/1.0-alpha-3
>
> > (4) Finally, how to add a specific "script/behaviour" to a template in
> M2?
>
> The templates are velocity templates so you get the directives that
> velocity provides and you can make your own velocity macros or tools. A
> tool is simply a Java object that you drop into a velocity context so
> you can really do whatever you want. I would think velocity itself would
> give you enough flexibility.
>
> > Thanks,
> >
> > Eric
> --
> jvz.
>
> Jason van Zyl
> jason at maven.org 
> http://maven.apache.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
> -- Jacques Ellul, The Technological Society
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: using maven.test.skip

2005-09-27 Thread Anthony Kong
Thanks very much for your help, Andy!

The 2nd problem I mentioned in my last mail seems to have something to do
with how I read the variable back.

Instead of 



I used 



And it works!

Thanks,

Anthony

-Original Message-
From: Andy Glick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 27 September 2005 12:34 PM
To: Maven Users List
Cc: 'Maven Users List'
Subject: RE: using maven.test.skip

At 08:32 PM 9/26/2005, Anthony Kong wrote:

>2) To proceed, I hardcoded the value in the  tag.
>
>It is something like:
>
>  property="maven.test.skip"
> value="true"/>
>
>Then there is an runtime error:
>
>You must define an attribute called 'value' for this tag.


Anthony,

You might want to try adding the artifact namespace to your project tag. As
in xmlns:artifact="artifact". I have found that with M1 1.0.2 and 1.1b1 that
the artifact namespace was necessary in order to set values in plugins.

I realized that I did have an existing project on which I could experiment. 
I've included a fragment of a maven.xml file, but I'm using Maven 1.1b2 so
your mileage may vary.

The coverage goal will execute the jblanket, jcoverage, and emma coverage
tools. Coverage tools instrument the code under test and then run the
testcases and report the % of the CUT that is covered. In this case, using
preGoals from the coverage tools I first checked to see if
maven.test.skip.value was not empty and removed it if it was and then set
the value of maven.test.skip.value to true. In the postGoal for test:test I
changed the value of maven.test.skip.value to false. So in this example I am
varying the value of the Jelly variable serving as a sentinel and setting
the a plugin variable's value. If you are interested, I've got a trace of
the execution of this maven.xml file which I'm willing to mail to you.

Hope that this helps.



>

   
 
 
 
   

   
 
 
   
   
 
 
   

   
 
 
   
   
 

 
   

   
 
 
   
   
 
 
   

   
 
 
 
 
   

   
 
   
   
 
   


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



[ann] Maven 2.0 Beta 2 Released

2005-09-27 Thread Brett Porter
The Apache Maven team are proud to announce the second beta release of
Maven 2.0.

Download it from http://maven.apache.org/maven2/download.html

Maven is a software project management and comprehension tool. Based on
the concept of a project object model (POM), Maven can manage a
project's build, reporting and documentation from a central piece of
information.

This release includes a number of bug fixes [1] since the previous
release on 16 September.

Maven 2.0 is a rewrite of the popular Maven application to achieve a
number of new goals, and to provide a stable basis to take it into the
future.

The main improvements in this release are:

* Bug fixes in the reporting API to allow the clover plugin to work
  in more scenarios
* Bug fixes in the artifact collector for version ranges
* Improvements to offline mode

This release is considered stable with a feature set comparable to Maven
1.0. Further betas and the final are expected to be backwards
compatible, with a primary goal of bugfixes, usability improvements, and
documentation.

The current roadmap is to make weekly beta releases to encourage faster
turnaround for issues found by the community.

This core release is independent of the plugins available. Further
releases of plugins will be made separately. See Maven Plugin Matrix
for more information.

We hope you enjoy using Maven! If you have any questions, please consult:

* the web site:
http://maven.apache.org/maven2/
* the maven-user mailing list:
http://maven.apache.org/mail-lists.html

For news and information, see:

* Maven Blogs:
http://www.mavenblogs.com/

[1] http://tinyurl.com/a8xu6
[2] http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix

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



Re: [m2] war:inplace

2005-09-27 Thread Stephen Duncan
Should a tracker against the war plugin component be added for
war:inplace and war:exploded?

-Stephen

On 9/27/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> On 9/27/05, Mark Hobson <[EMAIL PROTECTED]> wrote:
> > Does everyone think it's wise to remove these different modes of
> > operation?  I understand they break the install/deploy goals, but
> > can't help thinking that removing them will break a lot more people's
> > in-development build cycle.
>
> The intended replacement for the deprecated mode is to have a
> war:inplace and war:exploded goal (like m1), that will also perform
> "compile" first.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: [m2] Newbie Questions

2005-09-27 Thread Brett Porter
Are you on beta-1? It should not have attempted to use the new version
of the plugin. I will investigate.

You can fix this by pinning your version to beta-1 of the site plugin,
or getting the beta-2 core release.

- Brett

On 9/28/05, Beermann,Matthew <[EMAIL PROTECTED]> wrote:
>
> Just one more... I didn't see this one in Jira. The site:site goal seems
> to have broken overnight (literally - it downloaded a new version of the
> plugin when I ran it today).
>
> [INFO]
> 
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> 
> [INFO] Diagnosis: Error configuring plugin for execution of 'site:site'.
> [INFO]
> 
> 
> [ERROR] Cause: org.apache.maven.plugin.MojoExecutionException: Error
> configuring plugin for execution of 'site:site'.
> ...
> Caused by: org.apache.maven.plugin.PluginParameterException: Invalid or
> missing parameters: [Mojo parameter [name: 'reports'; alias: 'null']]
> for mojo: org.apache.maven.plugins:maven-site-plugin:2.0-beta-2:site
>
> Here's my "effective" POM from the helper; the groups are intact in the
> original, of course.
>
>   
> 
>   
> maven-clover-plugin
>   
>   
> maven-javadoc-plugin
>   
>   
> maven-pmd-plugin
>   
>   
> maven-project-info-reports-plugin
>   
> 
>   
>
> Matthew Beermann | Software Engineer | Cerner Corporation | 816.201.7026
> | [EMAIL PROTECTED] | www.cerner.com
>
>
>
> 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]



Re: [m2] multiple Suites and surefire

2005-09-27 Thread Brett Porter
I'm not sure the test parameter can be wildcarded?

I think you want to change  to **/*Suite*, right?

- Brett

On 9/28/05, Mike Perham <[EMAIL PROTECTED]> wrote:
> Sorry Emmanuel but I still only see the first Suite being run.
>
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 9:06 AM
> To: Maven Users List
> Subject: Re: [m2] multiple Suites and surefire
>
> use this : *Suite*
>
> surefire plugin add "**/
>
> Emmanuel
>
> Mike Perham a écrit :
> > I've got a project with multiple TestSuites and I have surefire
> > configured like so:
> >
> >   **/*Suite*
> >
> > I find that only the first TestSuite is being run.  Are projects not
> > allowed to have more than one TestSuite?
> >
> > mike
> >
> > -
> > 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: [m2] antlib and typedef - feel like a noob

2005-09-27 Thread Brett Porter
well, it would have if someone hadn't deleted it from SVN :)

fixed...

- Brett

On 9/28/05, Chad Berghorst <[EMAIL PROTECTED]> wrote:
> FYI - I logged a documentation bug about this, which has been fixed (see: 
> http://jira.codehaus.org/browse/MNG-918).  I imagine we should see it the 
> next time that the Maven 2 site is updated.
>
>
> >>> [EMAIL PROTECTED] 09/27/05 12:01 PM >>>
> Hi,
>
> There's a bug in the documentation. Instead of
>
>  
>
> you should have
>
>  
>
> Regards,
> Davy Toch
>
> On Tuesday 27 September 2005 15:37, Darren Hartford wrote:
> >  > name="NewDepTest"
> > default="get-deps"
> > basedir="."
> > xmlns:artifact="urn:maven-artifact-ant"
> > >
> >
> > 
> >> uri="maven-artifact-ant">
> > 
> >> location="lib/maven-artifact-ant-2.0-beta-1-dep.jar" />
> > 
> >   
> >
> > 
>
> -
> 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: Cross-project dependencies on unit test code

2005-09-27 Thread Brett Porter
This has been asked 2 or 3 times this week. IIRC someone was going to
write up their experience doing it? Would anyone like to volunteer to
add it to the wiki?

- Brett

On 9/28/05, Raphaël Piéroni <[EMAIL PROTECTED]> wrote:
> Hi Tim,
>
> May you try with something like this :
> wrapper
> +- core-api
> +- core-test (depend only on api)
> +- core-impl (with some test cases - depends on core-api and core-test
> the later with scope test)
> +- use-core-1 (depend on core-impl, depends on core-test at scope test -
> the test cases must not depend on core-impl's tests)
> +- use-core-2 (...)
>
> Then you move all the common test practices to the core-test project.
>
> May that helps.
>
> Regards,
>
> Raphaël.
>
> Tim Dysinger a écrit :
>
> >I have a "best practices" question.
> >
> >I have a multi-project setup with three sub-projects.  Two of the
> >sub-projects have tests which subclass tests in the "core" project.
> >However, just having the sub-projects depend on "core" does not expose
> >the unit test code and the build fails with a compilation error.
> >
> >If I put the unit tests into the src/java directory, then the eclipse
> >plugin generates duplicate source directories "src/java" in
> >the .classpath file.
> >
> >I imagine that I could break out all the tests into other sub-projects
> >but that seems clumsy and would double the number of projects in my
> >multi-project setup.
> >
> >How do I deal with this elegantly?
> >
> >-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]



Re: Building only dependencies

2005-09-27 Thread Brett Porter
On 9/28/05, Jerry Charumilind <[EMAIL PROTECTED]> wrote:
> Is it possible to set up maven to allow me to request a build of C
> which will also build D, E, and F automatically?  I do not want to have
> to aggregate the dependencies by hand, since they are already expressed
> in the project.xml files of the individual projects  I'd like to be
> able to easily add a project, G, with D->G and B->G and be able to
> build say, A, and have G properly rebuilt.

I did this once in Maven 1, but it was a bit lame and I didn't end up
using it myself. In particular I didn't have any checking if the
dependant project had changed, so it was too slow to always do it when
I knew it hadn't changed.

> Hopefully, my question makes sense.  If not, I will clarify.  I've been
> trying to learn about m2, but can't seem to figure out if it addresses
> my problem at all.

Feel free to file it for Maven 2.1. It's a lot more feasible, but I
think we need to add the following planned features first:
- universal source directory/workspace (so the other projects can be
located in your workspace)
- guarded execution (so no build runs when unchanged)

Cheers,
Brett

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



Re: Deploying to Local File System

2005-09-27 Thread Brett Porter
standard URL notation:
file://localhost/path/to/file
or
file:///path/to/file

- Brett

On 9/28/05, Allison, Bob <[EMAIL PROTECTED]> wrote:
> The repository that I deploy artifacts to is an NFS mount on my system.
> Is there a way to specify the repository so that deploys just copy the
> file like install does rather than needing an ssh connection?
>
> -
> 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] equivalent to false

2005-09-27 Thread Brett Porter
On 9/28/05, Mike Perham <[EMAIL PROTECTED]> wrote:
> Can dependency scopes solve most of this problem?  Maybe the only jars
> to appear in the eclipse .classpath should be those in the compile, test
> and provided scopes?  Or should the eclipse classpath reflect the full
> set of libraries required at runtime?

IIRC, you need to include the runtime libraries so that you can run
unit tests and debugger.

- Brett

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



Re: [m20b2] Upgrade Problem with Site Plugin

2005-09-27 Thread Brett Porter
It seems you don't have the latest site plugin that was also released to
match this change. This particular isssue required an API  breaking
change, unfortunately. Try m2 -U site:site once to see if it gets it.

I'll update the download page with a note.

- Brett

On 9/28/05, Allison, Bob <[EMAIL PROTECTED]> wrote:
> I upgraded from -beta-1 to -beta-2 this morning.  When I try to build a
> site (m2 clean:clean site:site), I get the dump at the end of the
> message.  I tried flushing my local repository in case there was a
> problem but the problem remains.  I have also tried updating the site
> plugin (m2 -U site:site) but that did no good (as I would expect since I
> started with an empty local repository).  The site plugin version
> currently in my local repository is 2.0-beta-1.  The POM lists the
> following reports:  project-info-reports, checkstyle, javadoc, and pmd.
> Is there something else I need to do to update the plugin or is there
> something else to look at to determine why the wrong version was
> downloaded?
>
> [INFO] [site:site]
> ---
> constituent[0]: file:/opt/maven/2/lib/maven-core-2.0-beta-2.jar
> constituent[1]:
> file:/opt/maven/2/lib/plexus-input-handler-1.0-alpha-2.jar
> constituent[2]: file:/opt/maven/2/lib/maven-artifact-2.0-beta-2.jar
> constituent[3]: file:/opt/maven/2/lib/maven-monitor-2.0-beta-2.jar
> constituent[4]:
> file:/opt/maven/2/lib/maven-plugin-descriptor-2.0-beta-2.jar
> constituent[5]: file:/opt/maven/2/lib/maven-project-2.0-beta-2.jar
> constituent[6]: file:/opt/maven/2/lib/commons-cli-1.0.jar
> constituent[7]: file:/opt/maven/2/lib/maven-profile-2.0-beta-2.jar
> constituent[8]:
> file:/opt/maven/2/lib/maven-repository-metadata-2.0-beta-2.jar
> constituent[9]: file:/opt/maven/2/lib/maven-plugin-api-2.0-beta-2.jar
> constituent[10]: file:/opt/maven/2/lib/jsch-0.1.21.jar
> constituent[11]:
> file:/opt/maven/2/lib/wagon-provider-api-1.0-alpha-4.jar
> constituent[12]:
> file:/opt/maven/2/lib/maven-reporting-api-2.0-beta-2.jar
> constituent[13]: file:/opt/maven/2/lib/wagon-file-1.0-alpha-4.jar
> constituent[14]:
> file:/opt/maven/2/lib/maven-artifact-manager-2.0-beta-2.jar
> constituent[15]: file:/opt/maven/2/lib/maven-settings-2.0-beta-2.jar
> constituent[16]:
> file:/opt/maven/2/lib/maven-plugin-registry-2.0-beta-2.jar
> constituent[17]: file:/opt/maven/2/lib/maven-model-2.0-beta-2.jar
> constituent[18]: file:/opt/maven/2/lib/jline-0.9.1.jar
> constituent[19]: file:/opt/maven/2/lib/doxia-sink-api-1.0-alpha-4.jar
> constituent[20]: file:/opt/maven/2/lib/wagon-ssh-1.0-alpha-4.jar
> constituent[21]:
> file:/opt/maven/2/lib/wagon-http-lightweight-1.0-alpha-4.jar
> ---
> java.lang.NoSuchMethodError: getReports
> at
> org.apache.maven.doxia.DoxiaMojo.getReports()Ljava.util.List;(DoxiaMojo.
> java:1095)
> at
> org.apache.maven.doxia.DoxiaMojo.execute()V(DoxiaMojo.java:237)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(Lorg.apache.mav
> en.project.MavenProject;Lorg.apache.maven.plugin.MojoExecution;Lorg.apac
> he.maven.execution.MavenSession;)V(DefaultPluginManager.java:401)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Ljava.u
> til.List;Lorg.apache.maven.execution.MavenSession;Lorg.apache.maven.proj
> ect.MavenProject;)V(DefaultLifecycleExecutor.java:515)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
> l(Ljava.lang.String;Lorg.apache.maven.execution.MavenSession;Lorg.apache
> .maven.project.MavenProject;)V(DefaultLifecycleExecutor.java:478)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Ljava.la
> ng.String;Lorg.apache.maven.execution.MavenSession;Lorg.apache.maven.pro
> ject.MavenProject;)V(DefaultLifecycleExecutor.java:460)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> Ljava.util.List;Lorg.apache.maven.execution.ReactorManager;Lorg.apache.m
> aven.execution.MavenSession;Lorg.apache.maven.project.MavenProject;Lorg.
> apache.maven.monitor.event.EventDispatcher;)V(DefaultLifecycleExecutor.j
> ava:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Lorg.apache.
> maven.execution.MavenSession;Lorg.apache.maven.execution.ReactorManager;
> Lorg.apache.maven.monitor.event.EventDispatcher;)Lorg.apache.maven.execu
> tion.MavenExecutionResponse;(DefaultLifecycleExecutor.java:136)
> at
> org.apache.maven.DefaultMaven.execute(Lorg.apache.maven.execution.MavenE
> xecutionRequest;)Lorg.apache.maven.execution.MavenExecutionResponse;(Def
> aultMaven.java:216)
> at
> org.apache.maven.cli.MavenCli.main([Ljava.lang.String;Lorg.codehaus.clas
> sworlds.ClassWorld;)I(MavenCli.java:246)
> at
> jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lan
> g.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
> at
> jrockit.reflec

Re: Maven ANT task help

2005-09-27 Thread Brett Porter
On 9/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm guessing from what i've seen that something like
> "4.0-SNAPSHOT" gets the
> same treatment as "SNAPSHOT" in maven 1.0?  In that if it's newer in the
> remote repository,
> it will be transferred to the local repository.

correct

> I get a NullPointerException way down in the .equals method of the
> Repository class in
> the wagon module.

I think you're missing the  tag in  in the POM, or
your ant task. I thought I'd fixed this error reporting... guess not.
I'll look into it.

Cheers,
Brett

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



[m20b2] Upgrade Problem with Site Plugin

2005-09-27 Thread Allison, Bob
I upgraded from -beta-1 to -beta-2 this morning.  When I try to build a
site (m2 clean:clean site:site), I get the dump at the end of the
message.  I tried flushing my local repository in case there was a
problem but the problem remains.  I have also tried updating the site
plugin (m2 -U site:site) but that did no good (as I would expect since I
started with an empty local repository).  The site plugin version
currently in my local repository is 2.0-beta-1.  The POM lists the
following reports:  project-info-reports, checkstyle, javadoc, and pmd.
Is there something else I need to do to update the plugin or is there
something else to look at to determine why the wrong version was
downloaded?

[INFO] [site:site]
---
constituent[0]: file:/opt/maven/2/lib/maven-core-2.0-beta-2.jar
constituent[1]:
file:/opt/maven/2/lib/plexus-input-handler-1.0-alpha-2.jar
constituent[2]: file:/opt/maven/2/lib/maven-artifact-2.0-beta-2.jar
constituent[3]: file:/opt/maven/2/lib/maven-monitor-2.0-beta-2.jar
constituent[4]:
file:/opt/maven/2/lib/maven-plugin-descriptor-2.0-beta-2.jar
constituent[5]: file:/opt/maven/2/lib/maven-project-2.0-beta-2.jar
constituent[6]: file:/opt/maven/2/lib/commons-cli-1.0.jar
constituent[7]: file:/opt/maven/2/lib/maven-profile-2.0-beta-2.jar
constituent[8]:
file:/opt/maven/2/lib/maven-repository-metadata-2.0-beta-2.jar
constituent[9]: file:/opt/maven/2/lib/maven-plugin-api-2.0-beta-2.jar
constituent[10]: file:/opt/maven/2/lib/jsch-0.1.21.jar
constituent[11]:
file:/opt/maven/2/lib/wagon-provider-api-1.0-alpha-4.jar
constituent[12]:
file:/opt/maven/2/lib/maven-reporting-api-2.0-beta-2.jar
constituent[13]: file:/opt/maven/2/lib/wagon-file-1.0-alpha-4.jar
constituent[14]:
file:/opt/maven/2/lib/maven-artifact-manager-2.0-beta-2.jar
constituent[15]: file:/opt/maven/2/lib/maven-settings-2.0-beta-2.jar
constituent[16]:
file:/opt/maven/2/lib/maven-plugin-registry-2.0-beta-2.jar
constituent[17]: file:/opt/maven/2/lib/maven-model-2.0-beta-2.jar
constituent[18]: file:/opt/maven/2/lib/jline-0.9.1.jar
constituent[19]: file:/opt/maven/2/lib/doxia-sink-api-1.0-alpha-4.jar
constituent[20]: file:/opt/maven/2/lib/wagon-ssh-1.0-alpha-4.jar
constituent[21]:
file:/opt/maven/2/lib/wagon-http-lightweight-1.0-alpha-4.jar
---
java.lang.NoSuchMethodError: getReports
at
org.apache.maven.doxia.DoxiaMojo.getReports()Ljava.util.List;(DoxiaMojo.
java:1095)
at
org.apache.maven.doxia.DoxiaMojo.execute()V(DoxiaMojo.java:237)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(Lorg.apache.mav
en.project.MavenProject;Lorg.apache.maven.plugin.MojoExecution;Lorg.apac
he.maven.execution.MavenSession;)V(DefaultPluginManager.java:401)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Ljava.u
til.List;Lorg.apache.maven.execution.MavenSession;Lorg.apache.maven.proj
ect.MavenProject;)V(DefaultLifecycleExecutor.java:515)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(Ljava.lang.String;Lorg.apache.maven.execution.MavenSession;Lorg.apache
.maven.project.MavenProject;)V(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Ljava.la
ng.String;Lorg.apache.maven.execution.MavenSession;Lorg.apache.maven.pro
ject.MavenProject;)V(DefaultLifecycleExecutor.java:460)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
Ljava.util.List;Lorg.apache.maven.execution.ReactorManager;Lorg.apache.m
aven.execution.MavenSession;Lorg.apache.maven.project.MavenProject;Lorg.
apache.maven.monitor.event.EventDispatcher;)V(DefaultLifecycleExecutor.j
ava:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(Lorg.apache.
maven.execution.MavenSession;Lorg.apache.maven.execution.ReactorManager;
Lorg.apache.maven.monitor.event.EventDispatcher;)Lorg.apache.maven.execu
tion.MavenExecutionResponse;(DefaultLifecycleExecutor.java:136)
at
org.apache.maven.DefaultMaven.execute(Lorg.apache.maven.execution.MavenE
xecutionRequest;)Lorg.apache.maven.execution.MavenExecutionResponse;(Def
aultMaven.java:216)
at
org.apache.maven.cli.MavenCli.main([Ljava.lang.String;Lorg.codehaus.clas
sworlds.ClassWorld;)I(MavenCli.java:246)
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lan
g.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang
.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)L
java.lang.Object;(Unknown Source)
at
org.codehaus.classworlds.Launcher.launchEnhanced([Ljava.lang.String;)V(L
auncher.java:315)
at
org.codehaus.classworlds.Launcher.launch([Ljava.lang.String;)V(Launcher.
java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode([Ljava.lang.Strin

Re: and scoping

2005-09-27 Thread Brett Porter
Please file a feature request in JIRA.

Thanks,
Brett

On 9/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Sorry, found the "useScope" attribute in the source code, which is not
> documented in the ant tasks documentation page.
> However, i've also found something else missing, which is retrieving
> arbitrary types of dependencies, such as tld
> files.
>
> I'd like to be able to do this:
>
>  type="tld">
> 
> 
>
>
> From there, i can use that in a war task or copy, or whatever.
>
> -
> Matthew Inger
> Fiberlink Communications Corp
> 215-664-1723
>
>
>
> [EMAIL PROTECTED]
> 09/27/2005 02:52 PM
> Please respond to
> "Maven Users List" 
>
>
> To
> users@maven.apache.org
> cc
>
> Subject
>  and scoping
>
>
>
>
>
>
> Is there a particular reason that the  task has no
> way to specify
> which level of scoping you are looking for?  It would be nice if I could
> do the following:
>
>
>pathId="compile.classpath"
>   filesetid="compile.fileset>...
>
>pathId="test.classpath"
>   filesetId="test.fileset">...
>
>pathId="deploy.classpath"
>   filesetId="deploy.fileset">...
>
>
>   src="${src.dir}" >
> ...
> 
>
>   src="${test.src.dir}" >
> ...
> 
>
>
> 
>
>
> 
> 
> 
>
> -
> Matthew Inger
> Fiberlink Communications Corp
> 215-664-1723
>
>

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



RE: [M2] equivalent to false

2005-09-27 Thread Mike Perham
Because you have a transitive dependency that you don't want polluting
your Eclipse classpath but you still need at runtime?  For example, when
I hit Ctrl+Space to suggest a class I don't want to see the BSF classes
but Tapestry needs that jar at runtime.

Can dependency scopes solve most of this problem?  Maybe the only jars
to appear in the eclipse .classpath should be those in the compile, test
and provided scopes?  Or should the eclipse classpath reflect the full
set of libraries required at runtime?

mike

-Original Message-
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 4:07 PM
To: Maven Users List
Subject: Re: [M2] equivalent to
false

On Tue, 27 Sep 2005, Erick Dovale wrote:

No, there isn't, why would you want that? Maybe there's some other
solution?

> Hello there,
> is there an equivalento to
> false in M2 so that when I 
> call
> m2 eclipse:eclipse these dependecies don;t get added to the .classpath

> file??
>
> Thanks.
>
> edovale
>
> -
> 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]



Re: eclipse:eclipse does not generates proper folder for resources

2005-09-27 Thread Kenney Westerhof
On Tue, 27 Sep 2005, Erick Dovale wrote:

I use the plugin extensively and never had these sorts of problems.

What is your pom.xml, directory structure, and how do you invoke
eclipse:eclipse, and from what location?

-- Kenney

> Hi there,
> When I call m2 eclipse:eclipse on any eclipse project it does it all
> fine except for the fact that the src/main/resources directory is
> outputted to the root of the project.
> is it me whose missing something here or is there a bug?? I search in
> jira and did not find anything like this reported..
>
> Thanks..
> edovale.
>
> -
> 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]



Re: [M2] equivalent to false

2005-09-27 Thread Kenney Westerhof
On Tue, 27 Sep 2005, Erick Dovale wrote:

No, there isn't, why would you want that? Maybe there's some other
solution?

> Hello there,
> is there an equivalento to
> false in M2 so that when I call
> m2 eclipse:eclipse these dependecies don;t get added to the .classpath
> file??
>
> Thanks.
>
> edovale
>
> -
> 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]



Deploying to Local File System

2005-09-27 Thread Allison, Bob
The repository that I deploy artifacts to is an NFS mount on my system.
Is there a way to specify the repository so that deploys just copy the
file like install does rather than needing an ssh connection?

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



Maven Plugin Matrix -- adding hyperlink to actual plugin sites would help newcomers

2005-09-27 Thread Miks Rozenbergs
Hi!
The great Maven Plugin Matrix would be even more usefull if it would 
contain links to home sites of each plugin. Otherwise people should guess 
of what exactly it does by name of the plugin.
Best Regards.
Miks Rozenbergs,


Building only dependencies

2005-09-27 Thread Jerry Charumilind
Suppose I have several projects, A, B, C, D, E, F, none of which are a
"main" project.  However, there are dependencies between the various
projects: project A depends on B (A->B), C->D, D->E, D->F, A->F for
example.

Is it possible to set up maven to allow me to request a build of C
which will also build D, E, and F automatically?  I do not want to have
to aggregate the dependencies by hand, since they are already expressed
in the project.xml files of the individual projects  I'd like to be
able to easily add a project, G, with D->G and B->G and be able to
build say, A, and have G properly rebuilt.

I've seen similar, if not the same, questions asked before and have
spent the last several hours searching for a satisfying answer but have
come across none.  I have tried using multiproject, but
multiproject:install ends up building A, B, C, D, E, and F even though
I just want to build C and its dependencies.  Some have suggested
building different project.xml files for the different subsets, but
this requires manual parsing of the dependencies to come up with the
subset that needs building.

Hopefully, my question makes sense.  If not, I will clarify.  I've been
trying to learn about m2, but can't seem to figure out if it addresses
my problem at all.

Thanks in advance for any replies.



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



eclipse:eclipse does not generates proper folder for resources

2005-09-27 Thread Erick Dovale

Hi there,
When I call m2 eclipse:eclipse on any eclipse project it does it all 
fine except for the fact that the src/main/resources directory is 
outputted to the root of the project.
is it me whose missing something here or is there a bug?? I search in 
jira and did not find anything like this reported..


Thanks..
edovale.

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



[M2] equivalent to false

2005-09-27 Thread Erick Dovale

Hello there,
is there an equivalento to 
false in M2 so that when I call 
m2 eclipse:eclipse these dependecies don;t get added to the .classpath 
file??


Thanks.

edovale

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



Re: Cross-project dependencies on unit test code

2005-09-27 Thread Raphaël Piéroni

Hi Tim,

May you try with something like this :
wrapper
+- core-api
+- core-test (depend only on api)
+- core-impl (with some test cases - depends on core-api and core-test 
the later with scope test)
+- use-core-1 (depend on core-impl, depends on core-test at scope test - 
the test cases must not depend on core-impl's tests)

+- use-core-2 (...)

Then you move all the common test practices to the core-test project.

May that helps.

Regards,

Raphaël.

Tim Dysinger a écrit :

I have a "best practices" question.  


I have a multi-project setup with three sub-projects.  Two of the
sub-projects have tests which subclass tests in the "core" project.
However, just having the sub-projects depend on "core" does not expose
the unit test code and the build fails with a compilation error.

If I put the unit tests into the src/java directory, then the eclipse
plugin generates duplicate source directories "src/java" in
the .classpath file.

I imagine that I could break out all the tests into other sub-projects
but that seems clumsy and would double the number of projects in my
multi-project setup.

How do I deal with this elegantly?

-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: and scoping

2005-09-27 Thread MInger
Sorry, found the "useScope" attribute in the source code, which is not 
documented in the ant tasks documentation page.
However, i've also found something else missing, which is retrieving 
arbitrary types of dependencies, such as tld
files.

I'd like to be able to do this:






>From there, i can use that in a war task or copy, or whatever.

-
Matthew Inger
Fiberlink Communications Corp
215-664-1723



[EMAIL PROTECTED] 
09/27/2005 02:52 PM
Please respond to
"Maven Users List" 


To
users@maven.apache.org
cc

Subject
 and scoping






Is there a particular reason that the  task has no 
way to specify
which level of scoping you are looking for?  It would be nice if I could 
do the following:


...

...



...



...




 





-
Matthew Inger
Fiberlink Communications Corp
215-664-1723


Cross-project dependencies on unit test code

2005-09-27 Thread Tim Dysinger
I have a "best practices" question.  

I have a multi-project setup with three sub-projects.  Two of the
sub-projects have tests which subclass tests in the "core" project.
However, just having the sub-projects depend on "core" does not expose
the unit test code and the build fails with a compilation error.

If I put the unit tests into the src/java directory, then the eclipse
plugin generates duplicate source directories "src/java" in
the .classpath file.

I imagine that I could break out all the tests into other sub-projects
but that seems clumsy and would double the number of projects in my
multi-project setup.

How do I deal with this elegantly?

-Tim



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



and scoping

2005-09-27 Thread MInger
Is there a particular reason that the  task has no 
way to specify
which level of scoping you are looking for?  It would be nice if I could 
do the following:


...

...



...



...




 





-
Matthew Inger
Fiberlink Communications Corp
215-664-1723

Re: [m2] antlib and typedef - feel like a noob

2005-09-27 Thread Chad Berghorst
FYI - I logged a documentation bug about this, which has been fixed (see: 
http://jira.codehaus.org/browse/MNG-918).  I imagine we should see it the next 
time that the Maven 2 site is updated.


>>> [EMAIL PROTECTED] 09/27/05 12:01 PM >>>
Hi,

There's a bug in the documentation. Instead of 

 

you should have

 

Regards,
Davy Toch

On Tuesday 27 September 2005 15:37, Darren Hartford wrote:
>  name="NewDepTest"
> default="get-deps"
> basedir="."
> xmlns:artifact="urn:maven-artifact-ant"
> >
>
> 
>uri="maven-artifact-ant">
> 
>location="lib/maven-artifact-ant-2.0-beta-1-dep.jar" />
> 
>   
>
> 

Maven JDepend Plugin 1.5.1 release

2005-09-27 Thread Carlos Sanchez
The maven team is pleased to announce the Maven JDepend Plugin 1.5.1 release!

http://maven.apache.org/reference/plugins/jdepend/

JDepend traverses Java class file directories and generates design quality
metrics for each Java package. JDepend allows you to automatically measure the
quality of a design in terms of its extensibility, reusability, and
maintainability to manage package dependencies effectively.

Changes in this version include:

  Fixed bugs:

o Exception in jsl when there are no cyclic dependencies. Issue: MPJDEPEND-4.
  Thanks to Alexey Demakov.

To automatically install the plugin, type the following on a single line:

maven plugin:download
  -DgroupId=maven
  -DartifactId=maven-jdepend-plugin
  -Dversion=1.5.1

For a manual installation, you can download the plugin here:
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-jdepend-plugin-1.5.1.jar


Have fun!
-The maven team

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



Maven ANT task help

2005-09-27 Thread MInger
I'm trying to use the Maven Artifact tasks for ANT.
We have an existing build structure which has several modules which share 
the
same versions of various jar files.  Not all modules use all jar files.

My plan was this:
1.  Create a parent pom file
2.  Create a pom file for each individual module which inherits 
from the parent
3.  Use the ANT tasks to read the pom file, and then 
determine the dependencies.

As with every maven project, you have this issue with when something in 
the local repository
is outdated.  I'm guessing from what i've seen that something like 
"4.0-SNAPSHOT" gets the
same treatment as "SNAPSHOT" in maven 1.0?  In that if it's newer in the 
remote repository,
it will be transferred to the local repository.

However, even if that's the case, the very first build wouldn't have the 
parent pom in the
repository, so I'm trying to get it there by calling artifact:install. But 
when I do the following:



I get a NullPointerException way down in the .equals method of the 
Repository class in
the wagon module.

This doesn't however happen if I load the child pom file (assuming the 
parent file is
now in the repository).

It apperas to have something to do with the code that deals with "pom" 
packaging, but
i'm not quite sure.

Is this a known issue, or am i doing something completely wrong?

I'm using the Beta-2-dep version of the artifact-ant jar file.

Any help would be appreciated.

-
Matthew Inger
Fiberlink Communications Corp
215-664-1723

Re: [m2] Newbie Questions

2005-09-27 Thread Beermann,Matthew

Just one more... I didn't see this one in Jira. The site:site goal seems
to have broken overnight (literally - it downloaded a new version of the
plugin when I ran it today).

[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Diagnosis: Error configuring plugin for execution of 'site:site'.
[INFO]


[ERROR] Cause: org.apache.maven.plugin.MojoExecutionException: Error
configuring plugin for execution of 'site:site'.
...
Caused by: org.apache.maven.plugin.PluginParameterException: Invalid or
missing parameters: [Mojo parameter [name: 'reports'; alias: 'null']]
for mojo: org.apache.maven.plugins:maven-site-plugin:2.0-beta-2:site

Here's my "effective" POM from the helper; the groups are intact in the
original, of course.

  

  
maven-clover-plugin
  
  
maven-javadoc-plugin
  
  
maven-pmd-plugin
  
  
maven-project-info-reports-plugin
  

  

Matthew Beermann | Software Engineer | Cerner Corporation | 816.201.7026
| [EMAIL PROTECTED] | www.cerner.com



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

Re: [m2] antlib and typedef - feel like a noob

2005-09-27 Thread Davy . Toch
Hi,

There's a bug in the documentation. Instead of 

 

you should have

 

Regards,
Davy Toch

On Tuesday 27 September 2005 15:37, Darren Hartford wrote:
>  name="NewDepTest"
> default="get-deps"
> basedir="."
> xmlns:artifact="urn:maven-artifact-ant"
> >
>
> 
>    uri="maven-artifact-ant">
>     
>            location="lib/maven-artifact-ant-2.0-beta-1-dep.jar" />
>     
>   
>
> 

Re: Schedule Definitions

2005-09-27 Thread Emmanuel Venisse

The first field is the second's parameter, so run every hour

if you want to run a schedule every 15 minutes, you must define it to :
"0 0,15,30,45 * * * ?"

The full description of schedule expression is there 
http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html


Emmanuel

Allison, Bob a écrit :

I am trying to set up a schedule to run every 15 minutes.  I am a little
confused about the current cron-style specification since, as written,
it indicates that the DEFAULT_SCHEDULE (0 0 * * *) should run only at
midnight.  Is there some sort of disconnect between the text being
displayed and the actual schedule or is this not actually following the
cron time specification (minute, hour, day-of-month, month,
day-of-week)?  Also, my schedule to run every 15 minutes (specified as
"0,15,30,45 * * * *") does not appear to be running, at least I am not
getting any messages in the log from the SchedulesActivator for that
schedule.







Re: m1.1b2 localization

2005-09-27 Thread jan_bar
Thanks, but it doesn't help, the date is still in Czech locale.

Jan

> You could hack the maven.bat file to use:
> java -Duser.language=en -Duser.region=US




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



Schedule Definitions

2005-09-27 Thread Allison, Bob
I am trying to set up a schedule to run every 15 minutes.  I am a little
confused about the current cron-style specification since, as written,
it indicates that the DEFAULT_SCHEDULE (0 0 * * *) should run only at
midnight.  Is there some sort of disconnect between the text being
displayed and the actual schedule or is this not actually following the
cron time specification (minute, hour, day-of-month, month,
day-of-week)?  Also, my schedule to run every 15 minutes (specified as
"0,15,30,45 * * * *") does not appear to be running, at least I am not
getting any messages in the log from the SchedulesActivator for that
schedule.


[m2] antlib and typedef - feel like a noob

2005-09-27 Thread Darren Hartford
Hey all,
I was ecstatic to see the maven repository support available through
Ant!  I tried to follow the clear instructions at
http://maven.apache.org/maven2/ant-tasks.html, specifically the
'typedef' version.

Unfortunately, I'm getting the "Could not create task or type of type:
urn:maven-artifact-ant:remoteRepository" (and :dependencies if I skip
remoteRepo).

This is with maven-artifact-ant-2.0-beta-1-dep.jar and Ant 1.6.4 and not
entirely sure what to do next. The .jar is in the lib folder of the
project and doesn't seem to have a problem finding it.

===



  

  

  



Re: m1.1b2 localization

2005-09-27 Thread Geoffrey

You could hack the maven.bat file to use:
java -Duser.language=en -Duser.region=US

jan_bar wrote:

Hi,

maven tries to display localized strings, for instance the last output line:
Finished at : ter, 27. z 2005 11:15:33 CEST

Unfortunately the text for Czech locale is bad, all the UNICODE characters
for month and day name are lost (tried with Eclipse console and Win2k
console). Seems like bug in maven or some problem with Java?
How can I use english locale instead fo the default one?

Regards, Jan


--
With kind regards,
Geoffrey De Smet


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



RE: [m2] multiple Suites and surefire

2005-09-27 Thread Mike Perham
Sorry Emmanuel but I still only see the first Suite being run.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 9:06 AM
To: Maven Users List
Subject: Re: [m2] multiple Suites and surefire

use this : *Suite*

surefire plugin add "**/

Emmanuel

Mike Perham a écrit :
> I've got a project with multiple TestSuites and I have surefire 
> configured like so:
> 
>   **/*Suite*
> 
> I find that only the first TestSuite is being run.  Are projects not 
> allowed to have more than one TestSuite?
> 
> mike
> 
> -
> 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: [m2] multiple Suites and surefire

2005-09-27 Thread Emmanuel Venisse

use this : *Suite*

surefire plugin add "**/

Emmanuel

Mike Perham a écrit :

I've got a project with multiple TestSuites and I have surefire
configured like so:

**/*Suite*

I find that only the first TestSuite is being run.  Are projects not
allowed to have more than one TestSuite?

mike

-
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] multiple Suites and surefire

2005-09-27 Thread Mike Perham
I've got a project with multiple TestSuites and I have surefire
configured like so:

**/*Suite*

I find that only the first TestSuite is being run.  Are projects not
allowed to have more than one TestSuite?

mike

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



m1.1b2 localization

2005-09-27 Thread jan_bar
Hi,

maven tries to display localized strings, for instance the last output line:
Finished at : ter, 27. z 2005 11:15:33 CEST

Unfortunately the text for Czech locale is bad, all the UNICODE characters
for month and day name are lost (tried with Eclipse console and Win2k
console). Seems like bug in maven or some problem with Java?
How can I use english locale instead fo the default one?

Regards, Jan




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



Fw: Error While executing Maven2 deploy

2005-09-27 Thread narayanan . devanathan

Narayanan Devanathan/CHN/TCS 
09/26/2005 04:32 PM

To
users@maven.apache.org
cc

Subject
Fw: Error While executing Maven2 deploy 





Dear All,

Can anyone please help in resolving the below issue in Maven2?

Regards and Thanks,
Deva



Narayanan Devanathan/CHN/TCS 
09/22/2005 06:01 PM

To
users@maven.apache.org
cc

Subject
Error While executing Maven2 deploy 





Dear All,

Attached is the exception encountered while executing the command "m2 
deploy" using Beta-1 Version of Maven2.

Kindly give me the possible solution to the below problem ASAP. Also I 
have attached the pom.xml and settings.xml for the reference.

[ERROR] BUILD ERROR
[INFO] 

[INFO] Diagnosis: Error deploying artifact
[INFO] 

[ERROR] Cause: 
org.apache.maven.plugin.MojoExecutionException: Error deploying artifact
at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:154)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:357)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:452)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:438)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: 
Error deploying artifact: 
at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:89)
at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:53)
at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:142)
... 16 more
Caused by: 
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: 
Unable to retrieve metadata
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:212)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:183)
at 
org.apache.maven.artifact.transform.SnapshotTransformation.resolveLatestSnapshotBuildNumber(SnapshotTransformation.java:130)
at 
org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:75)
at 
org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForDeployment(DefaultArtifactTransformationManager.java:58)
at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:62)
... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Invalid 
checksum file
at 
org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum(DefaultWagonManager.java:497)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:336)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:256)
at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:198)
... 23 more
Caused by: java.io.FileNotFoundException: 
/net/michiru/homes/userId/main/maven2/m2/User-apptest/local_repo/com/mycompany/app/user-apptest/1.0-SNAPSHOT/maven-metadata-User.xml.tmp.sha1
 
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:258)
at 
org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum(DefaultWagonManager.java:468)
... 26 more
[INFO] 
--

Re: [m2] war:inplace

2005-09-27 Thread Mark Hobson
On 27/09/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> The intended replacement for the deprecated mode is to have a
> war:inplace and war:exploded goal (like m1), that will also perform
> "compile" first.

Ah right, no-one mentioned this - thanks for clarifying.

Mark

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



Re: [m2] Mojo, subproject and self-reference

2005-09-27 Thread Brett Porter
This seems identical to the situation John Fallows is working through
at the moment:
http://mail-archives.apache.org/mod_mbox/maven-users/200509.mbox/[EMAIL 
PROTECTED]

- Brett

On 9/27/05, Gilles Scokart <[EMAIL PROTECTED]> wrote:
>
>
> I'm writting a mock generator and I need advice on how to organise my
> project.  Amongst other module, I have :
> - The genrator itself
> - The runtime library used by the genrated code
> - The Mojo that will launch the genrator from
> + All the unit test.
>
> I wonder how to organise this into modules?
>
> I guess that the decomposition I have should be nice, but I have a problem
> for my unit tests.
>
> Indeed, I would like to be self-testing.  I mean that I would like to use my
> mock generator to make my tests.
>
> One solution I have seen is to place the unit test into a separated module.
> But I don't really like it.
> An other one is to rely an a previous version of the mock generator being
> already deployed on the repository.
>
> Did you have already encounter similar problem ?  What is the best practice
> ?
>
> Other question, maybe related : How did you make to test a plugin like
> sure-fire?  Or how do you generate site docs for the site plugin ?
>
> _
> Protégez votre boîte de réception: Phishing : comment l'identifier, le
> signaler et l'empêcher   http://www.fr.msn.be/security/phishing/
>
>
> -
> 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] war:inplace

2005-09-27 Thread Brett Porter
On 9/27/05, Mark Hobson <[EMAIL PROTECTED]> wrote:
> Does everyone think it's wise to remove these different modes of
> operation?  I understand they break the install/deploy goals, but
> can't help thinking that removing them will break a lot more people's
> in-development build cycle.

The intended replacement for the deprecated mode is to have a
war:inplace and war:exploded goal (like m1), that will also perform
"compile" first.

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



Re: [m1.1b1] IntelliJ IDEA plugin with Maven 1.1beta1

2005-09-27 Thread Geoffrey

Brett,

Have you gotten a chance to take a look at the following regression bug 
in m1.1b2 that corrupts the idea plugin a bit:



> Try the following line in jelly:
> 0${res.targetPath}0 0${res.targetPath == ''}0
> My output was:
> [echo] 00 0false0
>
> So the string is empty but still it's not equal to empty.
> Must be a null != empty bug, but is this possible in Jelly?
> It wasn't before, because it breaks backwards compability with maven 
1.0.2:

>
> For example (partly taken from the idea 1.6 plugin, which doesn't 
work properly in m1.1-b2):

> 
>   0${res.targetPath}0 0${res.targetPath == ''}0
>   
> Normally the resources would be have been added here
> ...
>   
> 

Although the bug still exists, adding targetPath solved my problem with 
the idea plugin btw:



${basedir}/src/resources





Brett Porter wrote:

Please try 1.1 beta-2 first. The IDEA plugin has been improved.

- Brett


On 9/27/05, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:


Can you open an issue on Jira please, if this one doesn't yet exist.

Arnaud



Hi,

when generating the iml file with Maven 1.1beta1, I always
get the following error when using that iml file: "Cannot
determine module type for the following module: "mymodule".
Assuming it is a JAVA module". But this assuming does not
seem to work properly. The current workaround I have found is
to manually edit the iml file as follows:

Original:


Add JAVA_MODULE as type:


please fix this,

regards,

Wim






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