Re: [m2] Help with SCM plugin and CVS?

2005-09-28 Thread Emmanuel Venisse

your scm connection url seems to be incorrect.
You need to fix it before use the scm plugin. This error is a cvs error.

Emmanuel


[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




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



Re: [m2] httpclient doesn't refer to dependencies

2005-09-28 Thread Ashley Williams
Not sure what you mean when you say worthless - there is an issue,  
it's logged as requested.


Please remember that I'm just reporting the problem, i.e. that the  
dependency section is missing
in the ibiblio pom. I definitely don't have time to poke around on  
the HttpClient webpages
to formulate an exact solution. The version numbers I provided were  
just a suggestion that
worked for me with one quick test and I would have thought it was  
down to the commons guys

to fix their own poms IMO.

Cheers
AW

On 29 Sep 2005, at 03:01, Carlos Sanchez wrote:


Well if you're not sure about the versions the issue is worthless.
Please spend some time to figure out what they are.

On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:


Done http://jira.codehaus.org/browse/MEV-99

(99... maybe somebody could make it 100)

On 29 Sep 2005, at 02:30, Carlos Sanchez wrote:


Please file an issue at http://jira.codehaus.org/browse/MEV if  
you can

provide a correct pom.

On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:


I'm writing a project that uses httpclient and I've noticed that  
the

pom.xml file doesn't contain a dependencies section. Since it uses
commons-logging for example, my app fails with a
NoClassDefFoundError. I checked three other components in the same
directory at random and noticed that they don't declare any
dependencies in their poms either. Obviously it will be a right  
pain

to set up Eclipse so I'm hoping somebody can point out something
simple I've missed.

The pom.xml url is http://www.ibiblio.org/maven2/commons- 
httpclient/

commons-httpclient/3.0-rc3/commons-httpclient-3.0-rc3.pom

Thanks
AW

--- 
--

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






 
-

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






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





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





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



classpath woes

2005-09-28 Thread Brian Moseley
i'm having a classpath issue. the description is fairly lengthy, so bear 
with me while i illustrate with examples...


i have a preGoal for test:test-resources that attains a test:reposetup goal:

  

  

test:reposetup calls a tag that i defined in maven.xml using the jelly 
define taglib:


  
...

...
  

jackrabbit:overlord uses the jelly new tag to instantiate one of my 
classes and invoke a method on it:


  
...

...
  

this mess fails with a ClassNotFoundException for 
org.osaf.cosmo.jackrabbit.RepositoryLoader.


RepositoryLoader.class is found in target/classes:

  $ find target -name RepositoryLoader.class
target/classes/org/osaf/cosmo/jackrabbit/RepositoryLoader.class

so i guess that target/classes is not in the classpath when 
test:test-resources is executed.


so the money question is: how do i add it to the classpath? or am i 
mis-diagnosing the problem?


thanks!

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



Re: [m2] httpclient doesn't refer to dependencies

2005-09-28 Thread Carlos Sanchez
Well if you're not sure about the versions the issue is worthless.
Please spend some time to figure out what they are.

On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:
> Done http://jira.codehaus.org/browse/MEV-99
>
> (99... maybe somebody could make it 100)
>
> On 29 Sep 2005, at 02:30, Carlos Sanchez wrote:
>
> > Please file an issue at http://jira.codehaus.org/browse/MEV if you can
> > provide a correct pom.
> >
> > On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:
> >
> >> I'm writing a project that uses httpclient and I've noticed that the
> >> pom.xml file doesn't contain a dependencies section. Since it uses
> >> commons-logging for example, my app fails with a
> >> NoClassDefFoundError. I checked three other components in the same
> >> directory at random and noticed that they don't declare any
> >> dependencies in their poms either. Obviously it will be a right pain
> >> to set up Eclipse so I'm hoping somebody can point out something
> >> simple I've missed.
> >>
> >> The pom.xml url is http://www.ibiblio.org/maven2/commons-httpclient/
> >> commons-httpclient/3.0-rc3/commons-httpclient-3.0-rc3.pom
> >>
> >> Thanks
> >> AW
> >>
> >> -
> >> 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] httpclient doesn't refer to dependencies

2005-09-28 Thread Ashley Williams

Done http://jira.codehaus.org/browse/MEV-99

(99... maybe somebody could make it 100)

On 29 Sep 2005, at 02:30, Carlos Sanchez wrote:


Please file an issue at http://jira.codehaus.org/browse/MEV if you can
provide a correct pom.

On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:


I'm writing a project that uses httpclient and I've noticed that the
pom.xml file doesn't contain a dependencies section. Since it uses
commons-logging for example, my app fails with a
NoClassDefFoundError. I checked three other components in the same
directory at random and noticed that they don't declare any
dependencies in their poms either. Obviously it will be a right pain
to set up Eclipse so I'm hoping somebody can point out something
simple I've missed.

The pom.xml url is http://www.ibiblio.org/maven2/commons-httpclient/
commons-httpclient/3.0-rc3/commons-httpclient-3.0-rc3.pom

Thanks
AW

-
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: jelly: How to get a reference to an environment variable?: solved

2005-09-28 Thread Hogeweg, Erwin \(GE Infrastructure\)
I missed the fact that I had to define the "env" variable. Thought that was a 
built-in.

So:

  
  

Does the trick.

Also note that the variable is case sensitive, also under windows. JAVA_HOME != 
Java_Home.

Erwin

> -Original Message-
> From: Hogeweg, Erwin (GE Infrastructure) 
> Sent: Wednesday, September 28, 2005 5:07 PM
> To: Maven Users List
> Subject: jelly: How to get a reference to an environment variable?
> 
> 
> Hi,
> 
> I need a reference to JAVA_HOME in my jelly script but the 
> tag below doesn't seem to work. All I get is "JAVA_HOME=" 
> (w/o the quotes of course).
> 
> 
> 
> So I assume there is a different way to do this but I can not find it.
> 
> Any help is highly appreciated.
> 
> Thanks,
> 
> Erwin
> 
> -
> 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] httpclient doesn't refer to dependencies

2005-09-28 Thread Carlos Sanchez
Please file an issue at http://jira.codehaus.org/browse/MEV if you can
provide a correct pom.

On 9/28/05, Ashley Williams <[EMAIL PROTECTED]> wrote:
> I'm writing a project that uses httpclient and I've noticed that the
> pom.xml file doesn't contain a dependencies section. Since it uses
> commons-logging for example, my app fails with a
> NoClassDefFoundError. I checked three other components in the same
> directory at random and noticed that they don't declare any
> dependencies in their poms either. Obviously it will be a right pain
> to set up Eclipse so I'm hoping somebody can point out something
> simple I've missed.
>
> The pom.xml url is http://www.ibiblio.org/maven2/commons-httpclient/
> commons-httpclient/3.0-rc3/commons-httpclient-3.0-rc3.pom
>
> Thanks
> AW
>
> -
> 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] httpclient doesn't refer to dependencies

2005-09-28 Thread Ashley Williams
I'm writing a project that uses httpclient and I've noticed that the  
pom.xml file doesn't contain a dependencies section. Since it uses  
commons-logging for example, my app fails with a  
NoClassDefFoundError. I checked three other components in the same  
directory at random and noticed that they don't declare any  
dependencies in their poms either. Obviously it will be a right pain  
to set up Eclipse so I'm hoping somebody can point out something  
simple I've missed.


The pom.xml url is http://www.ibiblio.org/maven2/commons-httpclient/ 
commons-httpclient/3.0-rc3/commons-httpclient-3.0-rc3.pom


Thanks
AW

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



Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Carlos Sanchez
I'd say, use the spring pieces you need instead of adding the full
jar. It'll be easier for you.

On 9/28/05, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> spring-full
>
> http://www.ibiblio.org/maven2/springframework/spring-full/1.2.4/spring-full-1.2.4.pom
>
> And then, for example for each piece:
>
> http://www.ibiblio.org/maven2/springframework/spring-hibernate/1.2.4/spring-hibernate-1.2.4.pom
>
> -Stephen
>
> On 9/28/05, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> > The 1.2.4 pom neither has the dependency information, at least in the
> > maven2 respository
> > (http://www.ibiblio.org/maven2/springframework/spring/1.2.4/spring-1.2.4.pom).
> > I have taken a look at the maven1 respoitory and I was only able to
> > find the 1.1.2 pom
> > (http://www.ibiblio.org/maven/springframework/poms/spring-1.1.2.pom).
> >
> > Best regards
> > Jose
> >
> > 2005/9/28, Stephen Duncan <[EMAIL PROTECTED]>:
> > > You should be able to look at the 1.2.4 poms in the repository and
> > > figure them out.  I wouldn't expect very many of the dependencies to
> > > change.
> > >
> > > -Stephen
> > >
> > > On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> > > > -- Forwarded message --
> > > > From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> > > > Date: 28 sept. 2005 19:12
> > > > Subject: Re: [M2] Using Spring with Maven / Eclipse
> > > > To: Nicolas Chalumeau <[EMAIL PROTECTED]>
> > > >
> > > >
> > > > http://jira.codehaus.org/browse/MEV-98
> > > >
> > > > Meanwhile, anybody has a list of spring dependencies to include them 
> > > > manually?
> > > >
> > > > 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > > > > post an issue at http://jira.codehaus.org/browse/MEV for it
> > > > >
> > > > > Nicolas
> > > > >
> > > > > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > > > > Hi there,
> > > > > >
> > > > > > I'm trying to use Spring / Maven / Eclipse in one of my projects 
> > > > > > with
> > > > > > no success. I have included the following dependency in my pom:
> > > > > >
> > > > > > 
> > > > > >   springframework
> > > > > >   spring
> > > > > >   1.2.5
> > > > > > 
> > > > > >
> > > > > > When I try to generate the Eclipse project (m2 eclipse:eclipse) I 
> > > > > > only
> > > > > > get spring-1.2.5.jar added to the project classpath, so whenever I 
> > > > > > try
> > > > > > to launch my application it fails due to missing spring 
> > > > > > dependencies.
> > > > > > I've taken a look at ibiblio.org/maven2, and all the spring poms 
> > > > > > seem
> > > > > > to include no dependency information, so... am I doing anything 
> > > > > > wrong
> > > > > > or should I include all the Spring dependencies manually? Are the
> > > > > > Spring poms incorrect? If this is the case, is it normal to have
> > > > > > incorrect poms with missing dependencies in the ibiblio repository?
> > > > > >
> > > > > > Thanks in advance, best regards
> > > > > > Jose
> > > > > >
> > > > > > -
> > > > > > 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]
> > > >
> > > >
> > >
> > >
> > > --
> > > Stephen Duncan Jr
> > > www.stephenduncanjr.com
> > >
> > > -
> > > 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]
>
>

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



Re: M2 scm plugin

2005-09-28 Thread Brett Porter
> [ERROR] /misc/docs-dev/REPOS
> : no such repository

This indicates the response from the cvs command. Try running the same
update command manually - once you sort out how to get that to work
the scm plugin will work.

- Brett

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



Re: repositories in settings.xml

2005-09-28 Thread Brett Porter
just further to Saleem's response:

On 9/29/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> Many of us use a few local repos -- say, a local mirror of ibiblio or
> a local repo for internal JARs. -- common to all projects, and it
> makes sense to me that this is a global setting per user.

for a local mirror of ibiblio, it is recommended to use the "mirrors"
element in settings.xml. This means any project trying to use
"central" will use that mirror first *instead*. Adding a new
repository means both are checked.

for information common to all projects, we recommend using an
organisation-wide parent POM that declares all the information. Of
course, this is a chicken and egg problem - you need the repository to
define the repository. The advantages to this are still:
- if you want to change the repository location you only need to
update that pom, not individual users computers (they get the new pom
from the old repository, and that is used for the new definition)
- you can share standard settings - organisation information, plugin
configuration, source layout, among all projects.

- Brett

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



Re: [m2-b2] install:install-file fails without pom

2005-09-28 Thread Brett Porter
Ok, to elaborate:
- the install plugin has this fixed, but it has not been released
- it worked with the beta-1 core because it wasn't validating the
@requiresProject element
- when the updated install plugin is available, it will work again -
you should be prompted to download it after it is released
- you can create any pom in the local directory and run from there to
get it to work in the mean time (eg, use archetype:create)

 -Brett

On 9/29/05, Allison, Bob <[EMAIL PROTECTED]> wrote:
> I can't get this to work except in one of my projects, either.  Using -npr or 
> --no-plugin-registry did not help.  I also have maven-install-plugin 
> v2.0-beta-1 installed.  The maven-metadata-central.xml in the repository 
> shows 2.0-beta-1 as the only version.
>
> Is there a form of this that can be used to place an item in the global 
> repository?  I have a number of jars which I end up needing to have available 
> for people to build our projects and it would be nice to have a means like 
> this to install new jars for automatic download rather than requiring each 
> developer to issue a bunch of "m2 install:install-file" commands any time 
> they need to clean out their repository.
>
> -Original Message-
> From: John Casey [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 28, 2005 14:45
> To: Maven Users List
> Subject: Re: [m2-b2] install:install-file fails without pom
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I'm unable to replicate this behavior on my local working copy. Can you
> try running with the '--no-plugin-registry' to see if this helps? You
> may have an older version of the plugin which may have been created with
> a faulty plugin-plugin version...
>
> Good luck,
>
> john
>
> Ralph Pöllath wrote:
> | Hi,
> |
> | installing a jar into my local repository as explained at [1]:
> |
> | /tmp % m2 install:install-file \
> | -Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar  \
> | -DgroupId=org.eXtremeComponents  \
> | -DartifactId=eXtremeComponents  \
> | -Dversion=1.0.2-M1 \
> | -Dpackaging=jar
> |
> | fails with "Cannot execute mojo: install-file. It requires a project,
> | but the build is not using one" (full trace below).
> |
> | This looks like MNG-432 [2], which is supposed to be fixed. Can  anyone
> | help?
> |
> | I noticed the install-plugin used is 2.0-beta-1, while m2 itself is  at
> | 2.0-beta-2. Is that correct?
> |
> | Thanks,
> | -Ralph.
> |
> | [1] http://maven.apache.org/maven2/general.html#importing-jars
> | [2] http://jira.codehaus.org/browse/MNG-432
> |
> | /tmp % m2 -v
> | Maven version: 2.0-beta-2
> |
> | [DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from
> | repository central
> | [INFO]
> | 
> | 
> | [INFO] Building Maven Default Project
> | [INFO]task-segment: [install:install-file]
> | [INFO]
> | 
> | 
> | [INFO]
> | 
> | 
> | [INFO] BUILD FAILURE
> | [INFO]
> | 
> | 
> | [INFO] Reason: Cannot execute mojo: install-file. It requires a
> | project, but the build is not using one.
> | [INFO]
> | 
> | 
> | [DEBUG] Trace
> | org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:
> | install-file. It requires a project, but the build is not using one.
> | at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> | (DefaultPluginManager.java:318)
> | at
> | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> | (DefaultLifecycleExecutor.java:515)
> | at
> | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
> | l(DefaultLifecycleExecutor.java:478)
> | at
> | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> | (DefaultLifecycleExecutor.java:460)
> | at
> | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> | DefaultLifecycleExecutor.java:278)
> | at  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> | (DefaultLifecycleExecutor.java:136)
> | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216)
> | at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
> | 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.Launc

Re: [ot] m2 antlib and eclipse classpath task - someone else take a look pls?

2005-09-28 Thread Brett Porter
This would be a question for Ant. I'm not sure how you generally deal
with iterating paths for generating content.

Of course, another option is to use the Maven Eclipse plugin to
generate the eclipse .classpath from the POM you have already created
(which could be wrapped in an ant task if that was what you needed).

- Brett

On 9/29/05, Darren Hartford <[EMAIL PROTECTED]> wrote:
> Hey all,
> Great success using the M2 Antlib, specifically with the default-install
> of Eclipse!
>
> I'm trying to get the classpath that is generated from the
> artifact:dependencies to CREATE the eclipse .classpath to keep the
> environments in-sync, with the maven pom.xml being the master file.
>
> Build.xml TASK:
> ===
>   
>   
>
>
> 
> 
> 
> 
> ==
>
>
> Intent is to run as an Ant task from Eclipse with minimal additional
> jars (although I already have maven-artifact-ant-2.0.jar bootstrapped,
> could add another if needed) and build the Eclipse classpath using the
> Maven repo/dependencies.
>
> As you can see by the notes above, I'm having an issue with the lib's -
> Eclipse by default has one lib entry per library, and I have the refid
> that lists all the project's maven dependencies.  Has anyone already
> defeated this challenge or has any recommendations?
>
>
> Thanks,
> -D
>
> -
> 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: repositories in settings.xml

2005-09-28 Thread Saleem Shafi
ah ha!  i found it..  check out the documentation in the settings.xml
file in your [maven2]/conf directory..   wouldn't it be swell if that
info found its way into the documentation of the Setting config file
online..

Saleem

On 9/28/05, Saleem Shafi <[EMAIL PROTECTED]> wrote:
> if i'm understanding your problem correctly, you should be able to
> define the profile with the repository settings you want and just
> declare that profile in the  element near the end of
> the file (http://maven.apache.org/maven2/maven-settings/settings.html)..
>  that should make that profile active all the time, which effectively
> makes it a global profile..
>
> i can't seem to find it now, but i remember reading something about
> that somewhere..
>
> Saleem.
>
>
> On 9/28/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> > Greetings,
> > Can one declare a  at the top level of the  . In
> > other words, outside of a ??
> >
> > Many of us use a few local repos -- say, a local mirror of ibiblio or
> > a local repo for internal JARs. -- common to all projects, and it
> > makes sense to me that this is a global setting per user.
> >
> > If not, could someone explain profiles?? I get the idea behind them --
> > just not how they fit into the procedure?? It appears that one does
> > the following::
> >
> > m2 -P myglobalprofile install
> >
> > which would seem a bit verbose to get at global settings -- where the
> > alternative is simply
> >
> >m2 install
> >
> > Also it would appear that, since one can declare multiple profiles;
> >
> >m2 -P myglobalprofile,mylocalprofile install
> >
> >  then repositories must be additive??
> >
> > Thanks,
> > -- Chris
> >
> > -
> > 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]
>


--
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: Logging/tracing conventions

2005-09-28 Thread Brett Porter
On 9/29/05, Gilles Scokart <[EMAIL PROTECTED]> wrote:
> Thanks, but what are the guidelines on when to log at which level ?  I guess
> it's a good idea that all plugins follow the same guidelines.  What is the
> best practice for that ?

This should all be information for the user: ERROR for things that
went wrong (generally this will result in a failure/exception
instead), WARN for things that need attention but not a problem, and
INFO for general progress (this won't be displayed if we have a quiet
mode).

DEBUG for verbose information to help them diagnose a problem.

>
> And what if our mojo call external code that is not (and should not be)
> aware of running into a maven plugin ?

In theory it is possible to configure log4j and commons-logging from
the plexus container that Maven runs in. That is probably what would
need to happen but I'd have to look at a specific case to see how this
plays out.

- Brett

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



Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Stephen Duncan
spring-full

http://www.ibiblio.org/maven2/springframework/spring-full/1.2.4/spring-full-1.2.4.pom

And then, for example for each piece:

http://www.ibiblio.org/maven2/springframework/spring-hibernate/1.2.4/spring-hibernate-1.2.4.pom

-Stephen

On 9/28/05, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> The 1.2.4 pom neither has the dependency information, at least in the
> maven2 respository
> (http://www.ibiblio.org/maven2/springframework/spring/1.2.4/spring-1.2.4.pom).
> I have taken a look at the maven1 respoitory and I was only able to
> find the 1.1.2 pom
> (http://www.ibiblio.org/maven/springframework/poms/spring-1.1.2.pom).
>
> Best regards
> Jose
>
> 2005/9/28, Stephen Duncan <[EMAIL PROTECTED]>:
> > You should be able to look at the 1.2.4 poms in the repository and
> > figure them out.  I wouldn't expect very many of the dependencies to
> > change.
> >
> > -Stephen
> >
> > On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> > > -- Forwarded message --
> > > From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> > > Date: 28 sept. 2005 19:12
> > > Subject: Re: [M2] Using Spring with Maven / Eclipse
> > > To: Nicolas Chalumeau <[EMAIL PROTECTED]>
> > >
> > >
> > > http://jira.codehaus.org/browse/MEV-98
> > >
> > > Meanwhile, anybody has a list of spring dependencies to include them 
> > > manually?
> > >
> > > 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > > > post an issue at http://jira.codehaus.org/browse/MEV for it
> > > >
> > > > Nicolas
> > > >
> > > > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > > > Hi there,
> > > > >
> > > > > I'm trying to use Spring / Maven / Eclipse in one of my projects with
> > > > > no success. I have included the following dependency in my pom:
> > > > >
> > > > > 
> > > > >   springframework
> > > > >   spring
> > > > >   1.2.5
> > > > > 
> > > > >
> > > > > When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> > > > > get spring-1.2.5.jar added to the project classpath, so whenever I try
> > > > > to launch my application it fails due to missing spring dependencies.
> > > > > I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> > > > > to include no dependency information, so... am I doing anything wrong
> > > > > or should I include all the Spring dependencies manually? Are the
> > > > > Spring poms incorrect? If this is the case, is it normal to have
> > > > > incorrect poms with missing dependencies in the ibiblio repository?
> > > > >
> > > > > Thanks in advance, best regards
> > > > > Jose
> > > > >
> > > > > -
> > > > > 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]
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > -
> > 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: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.

2005-09-28 Thread Mick Knutson

OK, it seems that only cvstimestamp parameter is getting quoted correctly.
How did this happen? How can I maek the cclastbuildtimestamp, label, 
cclastgoodbuildtimestamp , cclastbuildsuccessful and cctimestamp parameters 
quoted?




Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)





From: "Mick Knutson" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: users@maven.apache.org
Subject: RE: RE : CruiseControl issues trying to install and run from 
maven.Pleasehelp.

Date: Wed, 28 Sep 2005 16:09:55 -0700

Revisiting this again, I am having issues getting cruiseControl to 
correctly call Maven.

This is what I get in the MAVEN_BATCH_ECHO=on:


C:\opt\local\blackhawk\FastForward_AppServer\fastforward>"c:\j2sdk1.4.2_08\bin\java.exe"
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
"-Dmaven.home=C:\Maven_1.0.2"
"-Dtools.jar=c:\j2sdk1.4.2_08\lib\tools.jar"
"-Dforehead.conf.file=C:\Maven_1.0.2\bin\forehead.conf"
-Djava.endorsed.dirs="c:\j2sdk1.4.2_08\lib\endorsed;C:\Maven_1.0.2\lib\endorsed"
-Xmx1024m -classpath "C:\Maven_1.0.2\lib\forehead-1.0-beta-5.jar"
"com.werken.forehead.Forehead" -Dcclastbuildtimestamp 2005092100
-Dlabel build.1 -Dcclastgoodbuildtimestamp 2005092100
-Dlastbuildsuccessful false "-Dcvstimestamp=2005-09-28 22:52:04 GMT"
-Dcctimestamp 20050928155204 -b -p project.xml scm:update-project

BUILD FAILED
Goal "2005092100" does not exist in this project.
Total time: 4 seconds
Finished at: Wed Sep 28 15:52:13 PDT 2005

When I careate a new batch file that calles maven like this:
maven_cc.bat:
=
call %maven_BIN%\maven.bat


I get this:

C:\opt\local\blackhawk\FastForward_AppServer\fastforward>"c:\j2sdk1.4.2_08\bin\java.exe"
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
"-Dmaven.home=C:\Maven_1.0.2"
"-Dtools.jar=c:\j2sdk1.4.2_08\lib\tools.jar"
"-Dforehead.conf.file=C:\Maven_1.0.2\bin\forehead.conf"
-Djava.endorsed.dirs="c:\j2sdk1.4.2_08\lib\endorsed;C:\Maven_1.0.2\lib\endorsed"
-Xmx1024m -classpath "C:\Maven_1.0.2\lib\forehead-1.0-beta-5.jar"
"com.werken.forehead.Forehead"

then Maven runs the default goal for my project, but nothing else.



-
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: repositories in settings.xml

2005-09-28 Thread Saleem Shafi
if i'm understanding your problem correctly, you should be able to
define the profile with the repository settings you want and just
declare that profile in the  element near the end of
the file (http://maven.apache.org/maven2/maven-settings/settings.html)..
 that should make that profile active all the time, which effectively
makes it a global profile..

i can't seem to find it now, but i remember reading something about
that somewhere..

Saleem.


On 9/28/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> Greetings,
> Can one declare a  at the top level of the  . In
> other words, outside of a ??
>
> Many of us use a few local repos -- say, a local mirror of ibiblio or
> a local repo for internal JARs. -- common to all projects, and it
> makes sense to me that this is a global setting per user.
>
> If not, could someone explain profiles?? I get the idea behind them --
> just not how they fit into the procedure?? It appears that one does
> the following::
>
> m2 -P myglobalprofile install
>
> which would seem a bit verbose to get at global settings -- where the
> alternative is simply
>
>m2 install
>
> Also it would appear that, since one can declare multiple profiles;
>
>m2 -P myglobalprofile,mylocalprofile install
>
>  then repositories must be additive??
>
> Thanks,
> -- Chris
>
> -
> 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: Dependencies and war files

2005-09-28 Thread Saleem Shafi
According to the docs, it sounds like what you're looking for is the
"provided" scope..

"provided  - this is much like compile, but indicates you expect the
JDK or a container to provide it. It is only available on the
compilation classpath, and is not transitive."
  - from http://maven.apache.org/maven2/dependency-mechanism.html


Saleem.

On 9/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm using m2 beta 1 version of the ANT tasks.
>
> I've specified the "servletapi" jar file as a "compile" dependency.
> However, when i create my war file (which i do with an ANT script),
> i don't want it included in the WEB-INF/lib directory.
>
> From what i can tell, when i can't use the  element
> to use the servlet api in the compile, but not when building the war.
>
> I imagine that the "war" plugin suffers from the same issue. In addition,
> why is it that the "war" plugin still does not package up the application
> classes into a jar file? Why must it use a WEB-INF/classes directory?
>
> Is there some scope for the file I can use that won't include it in the
> runtime list?
>
> -
> Matthew Inger
>  Fiberlink Communications Corp
> 215-664-1723
>
>
> -
> 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: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.

2005-09-28 Thread Mick Knutson
Revisiting this again, I am having issues getting cruiseControl to correctly 
call Maven.

This is what I get in the MAVEN_BATCH_ECHO=on:


C:\opt\local\blackhawk\FastForward_AppServer\fastforward>"c:\j2sdk1.4.2_08\bin\java.exe"
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
"-Dmaven.home=C:\Maven_1.0.2"
"-Dtools.jar=c:\j2sdk1.4.2_08\lib\tools.jar"
"-Dforehead.conf.file=C:\Maven_1.0.2\bin\forehead.conf"
-Djava.endorsed.dirs="c:\j2sdk1.4.2_08\lib\endorsed;C:\Maven_1.0.2\lib\endorsed"
-Xmx1024m -classpath "C:\Maven_1.0.2\lib\forehead-1.0-beta-5.jar"
"com.werken.forehead.Forehead" -Dcclastbuildtimestamp 2005092100
-Dlabel build.1 -Dcclastgoodbuildtimestamp 2005092100
-Dlastbuildsuccessful false "-Dcvstimestamp=2005-09-28 22:52:04 GMT"
-Dcctimestamp 20050928155204 -b -p project.xml scm:update-project

BUILD FAILED
Goal "2005092100" does not exist in this project.
Total time: 4 seconds
Finished at: Wed Sep 28 15:52:13 PDT 2005

When I careate a new batch file that calles maven like this:
maven_cc.bat:
=
call %maven_BIN%\maven.bat


I get this:

C:\opt\local\blackhawk\FastForward_AppServer\fastforward>"c:\j2sdk1.4.2_08\bin\java.exe"
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
"-Dmaven.home=C:\Maven_1.0.2"
"-Dtools.jar=c:\j2sdk1.4.2_08\lib\tools.jar"
"-Dforehead.conf.file=C:\Maven_1.0.2\bin\forehead.conf"
-Djava.endorsed.dirs="c:\j2sdk1.4.2_08\lib\endorsed;C:\Maven_1.0.2\lib\endorsed"
-Xmx1024m -classpath "C:\Maven_1.0.2\lib\forehead-1.0-beta-5.jar"
"com.werken.forehead.Forehead"

then Maven runs the default goal for my project, but nothing else.



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



[M2] jar plugin and the jar manifest

2005-09-28 Thread Erick Dovale

Hello there,
I am generating my jars perfectly using maven-jar-plugin. I see it 
actually creates a minifest file and includes it in the jar file which 
is perfect. However, I need this jar to be executable and the plugin 
does not add the classpath entries to the manifest. How can I have this 
plugin to add the classpath to the manifest? I also need to add the main 
class entry in the manifest but this one has to be specified in the pom 
somehow.
Reading through the list I see there is a way to add manifest entries in 
the configuration of the jar plugin however, I was unable to find an 
example of a pom doing this. I am assuming it is something like this:


   
   org.apache.maven.plugins
   maven-jar-plugin
   
   
   
   
   
   

But then how can I speciefy the key/value pair? should I go like:

   ...
   ...


If it is like this, There should be a variable somewhere that refers to 
the runtime classpath for the project; how is it called??

Thanks a lot.

edovale




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



Re: jelly: How to get a reference to an environment variable?

2005-09-28 Thread Davy Toch
Hi,

Different solutions:

   ...
   
   
   
   
   JAVA_HOME : ${env.JAVA_HOME}
   ...
   
   Maven variables : ${context.getVariables()}
   
   Maven JRE : ${context.getVariable("java.home")}

   
   Maven JAVA_HOME : ${context.getVariable("env.JAVA_HOME")}
   ...

Regards,
Davy Toch

On Wednesday 28 September 2005 22:07, Hogeweg, Erwin (GE Infrastructure) 
wrote:
> Hi,
>
> I need a reference to JAVA_HOME in my jelly script but the tag below
> doesn't seem to work. All I get is "JAVA_HOME=" (w/o the quotes of course).
>
> 
>
> So I assume there is a different way to do this but I can not find it.
>
> Any help is highly appreciated.
>
> Thanks,
>
> Erwin
>
> -
> 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: jelly: How to get a reference to an environment variable?

2005-09-28 Thread Doug Douglass

Try getting it via the System property "java.home":




Hogeweg, Erwin (GE Infrastructure) wrote:


Hi,

I need a reference to JAVA_HOME in my jelly script but the tag below doesn't seem to 
work. All I get is "JAVA_HOME=" (w/o the quotes of course).

   

So I assume there is a different way to do this but I can not find it.

Any help is highly appreciated.

Thanks,

Erwin

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



repositories in settings.xml

2005-09-28 Thread Chris Berry
Greetings,
Can one declare a  at the top level of the  . In
other words, outside of a ??

Many of us use a few local repos -- say, a local mirror of ibiblio or
a local repo for internal JARs. -- common to all projects, and it
makes sense to me that this is a global setting per user.

If not, could someone explain profiles?? I get the idea behind them --
just not how they fit into the procedure?? It appears that one does
the following::

m2 -P myglobalprofile install

which would seem a bit verbose to get at global settings -- where the
alternative is simply

   m2 install

Also it would appear that, since one can declare multiple profiles;

   m2 -P myglobalprofile,mylocalprofile install

 then repositories must be additive??

Thanks,
-- Chris

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



RE: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Mike Perham
The only dep I had to add to get Spring to work was:


  aopalliance
  aopalliance
  1.0
  runtime


-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 3:30 PM
To: Maven Users List; Stephen Duncan
Subject: Re: [M2] Using Spring with Maven / Eclipse

The 1.2.4 pom neither has the dependency information, at least in the
maven2 respository
(http://www.ibiblio.org/maven2/springframework/spring/1.2.4/spring-1.2.4
.pom).
I have taken a look at the maven1 respoitory and I was only able to find
the 1.1.2 pom
(http://www.ibiblio.org/maven/springframework/poms/spring-1.1.2.pom).

Best regards
Jose

2005/9/28, Stephen Duncan <[EMAIL PROTECTED]>:
> You should be able to look at the 1.2.4 poms in the repository and 
> figure them out.  I wouldn't expect very many of the dependencies to 
> change.
>
> -Stephen
>
> On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> > -- Forwarded message --
> > From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> > Date: 28 sept. 2005 19:12
> > Subject: Re: [M2] Using Spring with Maven / Eclipse
> > To: Nicolas Chalumeau <[EMAIL PROTECTED]>
> >
> >
> > http://jira.codehaus.org/browse/MEV-98
> >
> > Meanwhile, anybody has a list of spring dependencies to include them
manually?
> >
> > 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > > post an issue at http://jira.codehaus.org/browse/MEV for it
> > >
> > > Nicolas
> > >
> > > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > > Hi there,
> > > >
> > > > I'm trying to use Spring / Maven / Eclipse in one of my projects

> > > > with no success. I have included the following dependency in my
pom:
> > > >
> > > > 
> > > >   springframework
> > > >   spring
> > > >   1.2.5
> > > > 
> > > >
> > > > When I try to generate the Eclipse project (m2 eclipse:eclipse) 
> > > > I only get spring-1.2.5.jar added to the project classpath, so 
> > > > whenever I try to launch my application it fails due to missing
spring dependencies.
> > > > I've taken a look at ibiblio.org/maven2, and all the spring poms

> > > > seem to include no dependency information, so... am I doing 
> > > > anything wrong or should I include all the Spring dependencies 
> > > > manually? Are the Spring poms incorrect? If this is the case, is

> > > > it normal to have incorrect poms with missing dependencies in
the ibiblio repository?
> > > >
> > > > Thanks in advance, best regards
> > > > Jose
> > > >
> > > > 
> > > > - 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]
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



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



RE: how do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread David Jackman
Unfortunately, the Maven integration for CC doesn't have separate
elements for setting properties like the Ant integration does.  However,
since you've created your own Maven.bat that CC calls, you can add the
properties there.  For example:

@echo "C:\Maven_1.0.2\Maven.bat" -Dmyprop=value %*
call "C:\Maven_1.0.2\Maven.bat" -Dmyprop=value %*

The other suggestions (using the user-level build.properties or creating
a separate goal) will also work.

..David..


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 2:20 PM
To: users@maven.apache.org
Subject: how do I override a parameter for a value in my build.props in
crusieControl?

I have a property in my build.properties that I want to override when I
run my maven in cruisecontrol.
How would I do this please?

Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



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



jelly: How to get a reference to an environment variable?

2005-09-28 Thread Hogeweg, Erwin \(GE Infrastructure\)
Hi,

I need a reference to JAVA_HOME in my jelly script but the tag below doesn't 
seem to work. All I get is "JAVA_HOME=" (w/o the quotes of course).



So I assume there is a different way to do this but I can not find it.

Any help is highly appreciated.

Thanks,

Erwin

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



Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Chris Berry
I don't think you can do what you want with Spring. It cannot have a
master set of dependencies because Spring is split up into a
"pay-as-you-go" set of JARs (i.e there are many JARs available -- but
you use a subset).

Once you know that subset, m2 has a cool way of building "Composite
POM Projects" -- where you simply have a project that has POM
packaging and only declares dependencies (e.g. teh set of Spring JARs
applicable to your app) in it's pom.xml. So your app declares a
dependency on the Composite POM which, in turn, brings in it's
dependencies.

On 9/28/05, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:
> The 1.2.4 pom neither has the dependency information, at least in the
> maven2 respository
> (http://www.ibiblio.org/maven2/springframework/spring/1.2.4/spring-1.2.4.pom).
> I have taken a look at the maven1 respoitory and I was only able to
> find the 1.1.2 pom
> (http://www.ibiblio.org/maven/springframework/poms/spring-1.1.2.pom).
>
> Best regards
> Jose
>
> 2005/9/28, Stephen Duncan <[EMAIL PROTECTED]>:
> > You should be able to look at the 1.2.4 poms in the repository and
> > figure them out.  I wouldn't expect very many of the dependencies to
> > change.
> >
> > -Stephen
> >
> > On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> > > -- Forwarded message --
> > > From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> > > Date: 28 sept. 2005 19:12
> > > Subject: Re: [M2] Using Spring with Maven / Eclipse
> > > To: Nicolas Chalumeau <[EMAIL PROTECTED]>
> > >
> > >
> > > http://jira.codehaus.org/browse/MEV-98
> > >
> > > Meanwhile, anybody has a list of spring dependencies to include them 
> > > manually?
> > >
> > > 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > > > post an issue at http://jira.codehaus.org/browse/MEV for it
> > > >
> > > > Nicolas
> > > >
> > > > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > > > Hi there,
> > > > >
> > > > > I'm trying to use Spring / Maven / Eclipse in one of my projects with
> > > > > no success. I have included the following dependency in my pom:
> > > > >
> > > > > 
> > > > >   springframework
> > > > >   spring
> > > > >   1.2.5
> > > > > 
> > > > >
> > > > > When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> > > > > get spring-1.2.5.jar added to the project classpath, so whenever I try
> > > > > to launch my application it fails due to missing spring dependencies.
> > > > > I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> > > > > to include no dependency information, so... am I doing anything wrong
> > > > > or should I include all the Spring dependencies manually? Are the
> > > > > Spring poms incorrect? If this is the case, is it normal to have
> > > > > incorrect poms with missing dependencies in the ibiblio repository?
> > > > >
> > > > > Thanks in advance, best regards
> > > > > Jose
> > > > >
> > > > > -
> > > > > 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]
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Dependencies and war files

2005-09-28 Thread MInger





I'm using m2 beta 1 version of the ANT tasks.

I've specified the "servletapi" jar file as a "compile" dependency.
However, when i create my war file (which i do with an ANT script),
i don't want it included in the WEB-INF/lib directory.

>From what i can tell, when i can't use the  element
to use the servlet api in the compile, but not when building the war.

I imagine that the "war" plugin suffers from the same issue.  In addition,
why is it that the "war" plugin still does not package up the application
classes into a jar file?  Why must it use a WEB-INF/classes directory?

Is there some scope for the file I can use that won't include it in the
runtime list?

-
Matthew Inger
 Fiberlink Communications Corp
215-664-1723


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



Re: how do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread Arnaud HERITIER
yes.
http://maven.apache.org/reference/properties.html#Property_Processing

Arnaud

On 9/28/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> now if xxx is defined in my build.properties, will this override the
> build.properties value?
>
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> HP Consulting Services (Walnut Creek, CA)
>
>
>
>
> >From: "Arnaud HERITIER" <[EMAIL PROTECTED]>
> >Reply-To: "Maven Users List" 
> >To: "'Maven Users List'" 
> >Subject: RE: how do I override a parameter for a value in my build.propsin
> >crusieControl?
> >Date: Wed, 28 Sep 2005 22:34:57 +0200
> >
> >If it's only for one project in CC, you could create a custom goal on
> this
> >project :
> >
> >maven.xml :
> >
> >
> > 
> > 
> >
> >
> >And you call this goal from CC
> >
> >Arnaud
> >
> >
> > > -Message d'origine-
> > > De : Mick Knutson [mailto:[EMAIL PROTECTED]
> > > Envoyé : mercredi 28 septembre 2005 22:20
> > > À : users@maven.apache.org
> > > Objet : how do I override a parameter for a value in my
> > > build.props in crusieControl?
> > >
> > > I have a property in my build.properties that I want to
> > > override when I run my maven in cruisecontrol.
> > > How would I do this please?
> > >
> > > Thank You
> > > Mick Knutson
> > >
> > > Sr. Java/J2EE Consultant
> > > BASE logic, inc.
> > > (415) 648-1804 (S.F., CA)
> > > http://www.BASELogic.com
> > >
> > > HP Consulting Services (Walnut Creek, CA)
> > >
> > >
> > >
> > > -
> > > 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-b2] install:install-file fails without pom

2005-09-28 Thread Allison, Bob
I can't get this to work except in one of my projects, either.  Using -npr or 
--no-plugin-registry did not help.  I also have maven-install-plugin 
v2.0-beta-1 installed.  The maven-metadata-central.xml in the repository shows 
2.0-beta-1 as the only version.

Is there a form of this that can be used to place an item in the global 
repository?  I have a number of jars which I end up needing to have available 
for people to build our projects and it would be nice to have a means like this 
to install new jars for automatic download rather than requiring each developer 
to issue a bunch of "m2 install:install-file" commands any time they need to 
clean out their repository.

-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 14:45
To: Maven Users List
Subject: Re: [m2-b2] install:install-file fails without pom


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm unable to replicate this behavior on my local working copy. Can you
try running with the '--no-plugin-registry' to see if this helps? You
may have an older version of the plugin which may have been created with
a faulty plugin-plugin version...

Good luck,

john

Ralph Pöllath wrote:
| Hi,
|
| installing a jar into my local repository as explained at [1]:
|
| /tmp % m2 install:install-file \
| -Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar  \
| -DgroupId=org.eXtremeComponents  \
| -DartifactId=eXtremeComponents  \
| -Dversion=1.0.2-M1 \
| -Dpackaging=jar
|
| fails with "Cannot execute mojo: install-file. It requires a project,
| but the build is not using one" (full trace below).
|
| This looks like MNG-432 [2], which is supposed to be fixed. Can  anyone
| help?
|
| I noticed the install-plugin used is 2.0-beta-1, while m2 itself is  at
| 2.0-beta-2. Is that correct?
|
| Thanks,
| -Ralph.
|
| [1] http://maven.apache.org/maven2/general.html#importing-jars
| [2] http://jira.codehaus.org/browse/MNG-432
|
| /tmp % m2 -v
| Maven version: 2.0-beta-2
|
| [DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from
| repository central
| [INFO]
| 
| 
| [INFO] Building Maven Default Project
| [INFO]task-segment: [install:install-file]
| [INFO]
| 
| 
| [INFO]
| 
| 
| [INFO] BUILD FAILURE
| [INFO]
| 
| 
| [INFO] Reason: Cannot execute mojo: install-file. It requires a
| project, but the build is not using one.
| [INFO]
| 
| 
| [DEBUG] Trace
| org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:
| install-file. It requires a project, but the build is not using one.
| at org.apache.maven.plugin.DefaultPluginManager.executeMojo
| (DefaultPluginManager.java:318)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
| (DefaultLifecycleExecutor.java:515)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
| l(DefaultLifecycleExecutor.java:478)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
| (DefaultLifecycleExecutor.java:460)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
| DefaultLifecycleExecutor.java:278)
| at  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
| (DefaultLifecycleExecutor.java:136)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
| 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)
| [INFO]
| 
| 
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDOuSvK3h2CZwO/4URAvvvAJ9z0OUC14x0TFHkMsytQooUWzenSgCfQGYd
pftOTMWGOM+YdVs2YpbnsqI=
=TUtE
-END PGP SIGNATURE-

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

RE: how do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread Mick Knutson
now if xxx is defined in my build.properties, will this override the 
build.properties value?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)





From: "Arnaud HERITIER" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: "'Maven Users List'" 
Subject: RE: how do I override a parameter for a value in my build.props in 
crusieControl?

Date: Wed, 28 Sep 2005 22:34:57 +0200

If it's only for one project in CC, you could create a custom goal on this 
project :


maven.xml :


  
  


And you call this goal from CC

Arnaud


> -Message d'origine-
> De : Mick Knutson [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 28 septembre 2005 22:20
> À : users@maven.apache.org
> Objet : how do I override a parameter for a value in my
> build.props in crusieControl?
>
> I have a property in my build.properties that I want to
> override when I run my maven in cruisecontrol.
> How would I do this please?
>
> Thank You
> Mick Knutson
>
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
>
> HP Consulting Services (Walnut Creek, CA)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




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





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



[m2] Help with SCM plugin and CVS?

2005-09-28 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] non-filtered resource copy is incremental?

2005-09-28 Thread John Fallows
On 9/28/05, John Casey <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> doesn't look like it, from a quick read of the code. It's not using a
> stale source scanner like the compiler plugin is...

Understood.  Filed issue MNG-1042.

http://jira.codehaus.org/browse/MNG-1042

Kind Regards,
John Fallows

> John Fallows wrote:
> | When filtering is disabled, are resources and testResources copied
> | incrementally?
> |
> | For example, if the target file exists and has a more recent
> | timestamp, is the resource file still copied?
> |
> | Kind Regards,
> | John Fallows.
> |
> | -
> | To unsubscribe, e-mail: [EMAIL PROTECTED]
> | For additional commands, e-mail: [EMAIL PROTECTED]
> |
> |
> |
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD4DBQFDOvXWK3h2CZwO/4URAlD5AJiz87+3ExsCbfBJKMqX/EdIIXucAJ9ZHp8u
> rbVmfkLGGtJA3Vce+/SjbQ==
> =3hVe
> -END PGP SIGNATURE-
>
> -
> 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 do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread Arnaud HERITIER
If it's only for one project in CC, you could create a custom goal on this 
project :

maven.xml :


  
  

 
And you call this goal from CC

Arnaud


> -Message d'origine-
> De : Mick Knutson [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 28 septembre 2005 22:20
> À : users@maven.apache.org
> Objet : how do I override a parameter for a value in my 
> build.props in crusieControl?
> 
> I have a property in my build.properties that I want to 
> override when I run my maven in cruisecontrol.
> How would I do this please?
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> -
> 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 do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread Arnaud HERITIER
If it's for all your projects you can set it in the build.properties on the 
account you use to launch CC.

Arnaud

> -Message d'origine-
> De : Mick Knutson [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 28 septembre 2005 22:20
> À : users@maven.apache.org
> Objet : how do I override a parameter for a value in my 
> build.props in crusieControl?
> 
> I have a property in my build.properties that I want to 
> override when I run my maven in cruisecontrol.
> How would I do this please?
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> -
> 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] Using Spring with Maven / Eclipse

2005-09-28 Thread Jose Gonzalez Gomez
The 1.2.4 pom neither has the dependency information, at least in the
maven2 respository
(http://www.ibiblio.org/maven2/springframework/spring/1.2.4/spring-1.2.4.pom).
I have taken a look at the maven1 respoitory and I was only able to
find the 1.1.2 pom
(http://www.ibiblio.org/maven/springframework/poms/spring-1.1.2.pom).

Best regards
Jose

2005/9/28, Stephen Duncan <[EMAIL PROTECTED]>:
> You should be able to look at the 1.2.4 poms in the repository and
> figure them out.  I wouldn't expect very many of the dependencies to
> change.
>
> -Stephen
>
> On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> > -- Forwarded message --
> > From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> > Date: 28 sept. 2005 19:12
> > Subject: Re: [M2] Using Spring with Maven / Eclipse
> > To: Nicolas Chalumeau <[EMAIL PROTECTED]>
> >
> >
> > http://jira.codehaus.org/browse/MEV-98
> >
> > Meanwhile, anybody has a list of spring dependencies to include them 
> > manually?
> >
> > 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > > post an issue at http://jira.codehaus.org/browse/MEV for it
> > >
> > > Nicolas
> > >
> > > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > > Hi there,
> > > >
> > > > I'm trying to use Spring / Maven / Eclipse in one of my projects with
> > > > no success. I have included the following dependency in my pom:
> > > >
> > > > 
> > > >   springframework
> > > >   spring
> > > >   1.2.5
> > > > 
> > > >
> > > > When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> > > > get spring-1.2.5.jar added to the project classpath, so whenever I try
> > > > to launch my application it fails due to missing spring dependencies.
> > > > I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> > > > to include no dependency information, so... am I doing anything wrong
> > > > or should I include all the Spring dependencies manually? Are the
> > > > Spring poms incorrect? If this is the case, is it normal to have
> > > > incorrect poms with missing dependencies in the ibiblio repository?
> > > >
> > > > Thanks in advance, best regards
> > > > Jose
> > > >
> > > > -
> > > > 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]
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.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]



how do I override a parameter for a value in my build.props in crusieControl?

2005-09-28 Thread Mick Knutson
I have a property in my build.properties that I want to override when I run 
my maven in cruisecontrol.

How would I do this please?

Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



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



RE: how do I install/deploy my ear to my own remote repository

2005-09-28 Thread Arnaud HERITIER
With maven 1 :

maven ear:deploy

Arnaud

 

> -Message d'origine-
> De : Mick Knutson [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 28 septembre 2005 20:57
> À : users@maven.apache.org
> Objet : how do I install/deploy my ear to my own remote repository
> 
> how do I install/deploy my ear to my own remote repository
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> -
> 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] non-filtered resource copy is incremental?

2005-09-28 Thread John Casey

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

doesn't look like it, from a quick read of the code. It's not using a
stale source scanner like the compiler plugin is...

HTH,

john

John Fallows wrote:
| When filtering is disabled, are resources and testResources copied
| incrementally?
|
| For example, if the target file exists and has a more recent
| timestamp, is the resource file still copied?
|
| Kind Regards,
| John Fallows.
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD4DBQFDOvXWK3h2CZwO/4URAlD5AJiz87+3ExsCbfBJKMqX/EdIIXucAJ9ZHp8u
rbVmfkLGGtJA3Vce+/SjbQ==
=3hVe
-END PGP SIGNATURE-

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



Re: [m2] sequencing goals

2005-09-28 Thread John Casey

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

not that I know of, but there's no real magic to doing this. It
effectively turns your usage of the other mojos by the lifecycle mojo
into API calls. So, you'd have to construct each one, and use setters to
inject the parameters into each of the three mojos, then fire execute()
for each in order. You'll have to declare parameters on the lifecycle
mojo such that you have all the parameter values required to pass on to
the other three mojos, but this shouldn't be that big of a deal...it'll
just be a lot of initialization code to call all the setters, then call
execute.

Does that make sense?

- -john

dohadwala, moiz wrote:
| Thanks, John.
|
| Is there an example of such a plugin in the maven codebase? I need to put
| this together quickly to demo a proof-of-concept project
|
| -Moiz
|
| -Original Message-
| From: John Casey [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, September 28, 2005 11:49 AM
| To: Maven Users List
| Subject: Re: [m2] sequencing goals
|
| one thing that springs to mind is to create an aggregator plugin that you
| can bind into the lifecycle, which will call each of these mojos in
| order...beyond that, it *may* work to add them in the order you desire
| within an execution section under the plugin definition in the pom.
I'm not
| entirely sure whether this will work, though.
|
| The aggregator mojo seems to be the most fool-proof, and it can handle
| rough-grained integration into the lifecycle, while allowing each mojo
| itself to stand alone for direct command-line invocation.
|
| Does this seem reasonable? BTW, if you specify configuration at the plugin
| definition level, it will be shared with all mojos within that plugin,
where
| the configuration is applicable.
|
| HTH,
|
| john
|
| dohadwala, moiz wrote:
| | I have a custom plugin with 3 goals. They are separate becuase I need
| to be
| | able to execute each one individually.
| | They all bind to the same lifecycle phase.
| |
| | However, when the plugin is included in the build section, I need to
| be able
| | to execute all 3 goals, but in a pre-defined order:
| | goal1->goal2>goal3.
| |
| | How do I enforce this in the plugin? If not, do I have to move them to
| | separate plugins? Then how do I enforce order between the plugins?
| |
| | -Moiz
| |

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



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDOvDzK3h2CZwO/4URAsg5AJ9wFchuz+n0l6/6Gv6uV9FLo2FiuACgoXNM
ahjwwDI+lp9PQw/aEPXMOTA=
=b0cm
-END PGP SIGNATURE-

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



RE: [m2] sequencing goals

2005-09-28 Thread dohadwala, moiz
Thanks, John.

Is there an example of such a plugin in the maven codebase? I need to put
this together quickly to demo a proof-of-concept project

-Moiz 

-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 11:49 AM
To: Maven Users List
Subject: Re: [m2] sequencing goals

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

one thing that springs to mind is to create an aggregator plugin that you
can bind into the lifecycle, which will call each of these mojos in
order...beyond that, it *may* work to add them in the order you desire
within an execution section under the plugin definition in the pom. I'm not
entirely sure whether this will work, though.

The aggregator mojo seems to be the most fool-proof, and it can handle
rough-grained integration into the lifecycle, while allowing each mojo
itself to stand alone for direct command-line invocation.

Does this seem reasonable? BTW, if you specify configuration at the plugin
definition level, it will be shared with all mojos within that plugin, where
the configuration is applicable.

HTH,

john

dohadwala, moiz wrote:
| I have a custom plugin with 3 goals. They are separate becuase I need
to be
| able to execute each one individually.
| They all bind to the same lifecycle phase.
|
| However, when the plugin is included in the build section, I need to
be able
| to execute all 3 goals, but in a pre-defined order:
| goal1->goal2>goal3.
|
| How do I enforce this in the plugin? If not, do I have to move them to 
| separate plugins? Then how do I enforce order between the plugins?
|
| -Moiz
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDOuWUK3h2CZwO/4URArJOAKCqlz/h6fdxYgGMcsPZkVI/RzvSjQCgnrWH
C9g3FWBcpyzsAlvbXDcb5Rs=
=DhA2
-END PGP SIGNATURE-

-
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: read contents of a file

2005-09-28 Thread Ramon Buckland
good morning sir :-)

I found a way .. my fix is a work around .. so .. 
I was happy with anything :-)

   
   
   



 
 













> -Original Message-
> From: Adam Jenkins [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 September 2005 5:04 AM
> To: 'users@maven.apache.org'
> Subject: RE: read contents of a file
> 
> 
> Untested suggestions:
> 
> 1. Use ants "loadfile" task with a regexp task to set a 
> condition property
> or
> 2. Extend the ant task that does the filtering to include the 
> check and
> declare your custom task.
> or
> 3. Use the jelly util load text tag in conjunction with the regexp tag
> 
> anyone think of any more?
> 
> -Original Message-
> From: Ramon Buckland [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 29 September 2005 2:11 AM
> To: 'users@maven.apache.org'
> Subject: read contents of a file
> 
> 
> Hi,
> 
> I am trying to work out the best way to read the contents of a file.
> Specifically, I an performing an iteration over **/*.jsp files
> and want to only perform tasks on JSP which have  (ie a JSP XML file).
> 
> Any ideas ?
> 
> Thanks
> Ramon
> 


RE: read contents of a file

2005-09-28 Thread Adam Jenkins
Untested suggestions:

1. Use ants "loadfile" task with a regexp task to set a condition property
or
2. Extend the ant task that does the filtering to include the check and
declare your custom task.
or
3. Use the jelly util load text tag in conjunction with the regexp tag

anyone think of any more?

-Original Message-
From: Ramon Buckland [mailto:[EMAIL PROTECTED]
Sent: Thursday, 29 September 2005 2:11 AM
To: 'users@maven.apache.org'
Subject: read contents of a file


Hi,

I am trying to work out the best way to read the contents of a file.
Specifically, I an performing an iteration over **/*.jsp files
and want to only perform tasks on JSP which have 

[m2] non-filtered resource copy is incremental?

2005-09-28 Thread John Fallows
When filtering is disabled, are resources and testResources copied
incrementally?

For example, if the target file exists and has a more recent
timestamp, is the resource file still copied?

Kind Regards,
John Fallows.

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



Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Stephen Duncan
You should be able to look at the 1.2.4 poms in the repository and
figure them out.  I wouldn't expect very many of the dependencies to
change.

-Stephen

On 9/28/05, Nicolas Chalumeau <[EMAIL PROTECTED]> wrote:
> -- Forwarded message --
> From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
> Date: 28 sept. 2005 19:12
> Subject: Re: [M2] Using Spring with Maven / Eclipse
> To: Nicolas Chalumeau <[EMAIL PROTECTED]>
>
>
> http://jira.codehaus.org/browse/MEV-98
>
> Meanwhile, anybody has a list of spring dependencies to include them manually?
>
> 2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> > post an issue at http://jira.codehaus.org/browse/MEV for it
> >
> > Nicolas
> >
> > 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > > Hi there,
> > >
> > > I'm trying to use Spring / Maven / Eclipse in one of my projects with
> > > no success. I have included the following dependency in my pom:
> > >
> > > 
> > >   springframework
> > >   spring
> > >   1.2.5
> > > 
> > >
> > > When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> > > get spring-1.2.5.jar added to the project classpath, so whenever I try
> > > to launch my application it fails due to missing spring dependencies.
> > > I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> > > to include no dependency information, so... am I doing anything wrong
> > > or should I include all the Spring dependencies manually? Are the
> > > Spring poms incorrect? If this is the case, is it normal to have
> > > incorrect poms with missing dependencies in the ibiblio repository?
> > >
> > > Thanks in advance, best regards
> > > Jose
> > >
> > > -
> > > 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]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



how do I install/deploy my ear to my own remote repository

2005-09-28 Thread Mick Knutson

how do I install/deploy my ear to my own remote repository

Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



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



Fwd: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Nicolas Chalumeau
-- Forwarded message --
From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
Date: 28 sept. 2005 19:12
Subject: Re: [M2] Using Spring with Maven / Eclipse
To: Nicolas Chalumeau <[EMAIL PROTECTED]>


http://jira.codehaus.org/browse/MEV-98

Meanwhile, anybody has a list of spring dependencies to include them manually?

2005/9/28, Nicolas Chalumeau <[EMAIL PROTECTED]>:
> post an issue at http://jira.codehaus.org/browse/MEV for it
>
> Nicolas
>
> 2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> > Hi there,
> >
> > I'm trying to use Spring / Maven / Eclipse in one of my projects with
> > no success. I have included the following dependency in my pom:
> >
> > 
> >   springframework
> >   spring
> >   1.2.5
> > 
> >
> > When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> > get spring-1.2.5.jar added to the project classpath, so whenever I try
> > to launch my application it fails due to missing spring dependencies.
> > I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> > to include no dependency information, so... am I doing anything wrong
> > or should I include all the Spring dependencies manually? Are the
> > Spring poms incorrect? If this is the case, is it normal to have
> > incorrect poms with missing dependencies in the ibiblio repository?
> >
> > Thanks in advance, best regards
> > Jose
> >
> > -
> > 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] sequencing goals

2005-09-28 Thread John Casey

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

one thing that springs to mind is to create an aggregator plugin that
you can bind into the lifecycle, which will call each of these mojos in
order...beyond that, it *may* work to add them in the order you desire
within an execution section under the plugin definition in the pom. I'm
not entirely sure whether this will work, though.

The aggregator mojo seems to be the most fool-proof, and it can handle
rough-grained integration into the lifecycle, while allowing each mojo
itself to stand alone for direct command-line invocation.

Does this seem reasonable? BTW, if you specify configuration at the
plugin definition level, it will be shared with all mojos within that
plugin, where the configuration is applicable.

HTH,

john

dohadwala, moiz wrote:
| I have a custom plugin with 3 goals. They are separate becuase I need
to be
| able to execute each one individually.
| They all bind to the same lifecycle phase.
|
| However, when the plugin is included in the build section, I need to
be able
| to execute all 3 goals, but in a pre-defined order:
| goal1->goal2>goal3.
|
| How do I enforce this in the plugin? If not, do I have to move them to
| separate plugins? Then how do I enforce order between the plugins?
|
| -Moiz
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDOuWUK3h2CZwO/4URArJOAKCqlz/h6fdxYgGMcsPZkVI/RzvSjQCgnrWH
C9g3FWBcpyzsAlvbXDcb5Rs=
=DhA2
-END PGP SIGNATURE-

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



Re: [m2-b2] install:install-file fails without pom

2005-09-28 Thread John Casey

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm unable to replicate this behavior on my local working copy. Can you
try running with the '--no-plugin-registry' to see if this helps? You
may have an older version of the plugin which may have been created with
a faulty plugin-plugin version...

Good luck,

john

Ralph Pöllath wrote:
| Hi,
|
| installing a jar into my local repository as explained at [1]:
|
| /tmp % m2 install:install-file \
| -Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar  \
| -DgroupId=org.eXtremeComponents  \
| -DartifactId=eXtremeComponents  \
| -Dversion=1.0.2-M1 \
| -Dpackaging=jar
|
| fails with "Cannot execute mojo: install-file. It requires a project,
| but the build is not using one" (full trace below).
|
| This looks like MNG-432 [2], which is supposed to be fixed. Can  anyone
| help?
|
| I noticed the install-plugin used is 2.0-beta-1, while m2 itself is  at
| 2.0-beta-2. Is that correct?
|
| Thanks,
| -Ralph.
|
| [1] http://maven.apache.org/maven2/general.html#importing-jars
| [2] http://jira.codehaus.org/browse/MNG-432
|
| /tmp % m2 -v
| Maven version: 2.0-beta-2
|
| [DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from
| repository central
| [INFO]
| 
| 
| [INFO] Building Maven Default Project
| [INFO]task-segment: [install:install-file]
| [INFO]
| 
| 
| [INFO]
| 
| 
| [INFO] BUILD FAILURE
| [INFO]
| 
| 
| [INFO] Reason: Cannot execute mojo: install-file. It requires a
| project, but the build is not using one.
| [INFO]
| 
| 
| [DEBUG] Trace
| org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:
| install-file. It requires a project, but the build is not using one.
| at org.apache.maven.plugin.DefaultPluginManager.executeMojo
| (DefaultPluginManager.java:318)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
| (DefaultLifecycleExecutor.java:515)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
| l(DefaultLifecycleExecutor.java:478)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
| (DefaultLifecycleExecutor.java:460)
| at
| org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
| DefaultLifecycleExecutor.java:278)
| at  org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
| (DefaultLifecycleExecutor.java:136)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
| 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)
| [INFO]
| 
| 
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDOuSvK3h2CZwO/4URAvvvAJ9z0OUC14x0TFHkMsytQooUWzenSgCfQGYd
pftOTMWGOM+YdVs2YpbnsqI=
=TUtE
-END PGP SIGNATURE-

-
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-28 Thread John Fallows
On 9/28/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> 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

Okay - filed issue MNG-1041.

http://jira.codehaus.org/browse/MNG-1041

Kind Regards,
John Fallows.

> 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: Cross-project dependencies on unit test code

2005-09-28 Thread Trygve Laugstøl
On Wed, 2005-09-28 at 09:39 -0700, Tim Dysinger wrote:
> Ok.  Let's say we did it that way.  We are still faced with the same
> problem with the maven-eclipse-plugin.  Maven-eclipse-plugin does not
> like having your source and test directories the same.  
> 
> ${basedir}/src/java
> ${basedir}/src/java
> 
> I can't do this without using eclipse.  The plugin, in this case, would
> generate a bogus .classpath file.  

That is a bug, please file an issue in JIRA[1].

> Putting the junit code in src/java is the only way I know that maven
> will publish your jar so other projects can depened on it.  If you just
> put your tests in src/test, maven will publish an empty jar and the
> dependant project will fail to compile.

See [2].

Though I don't think you understood what Raphaël meant. He was
suggesting that you make a separate project containing your test code,
which would result in two separate Maven and Eclipse projects.


[1]: http://jira.codehaus.org/browse/MNG
[2]: http://jira.codehaus.org/browse/MNG-932

--
Trygve


> -Tim
> 
> On Wed, 2005-09-28 at 08:42 +1000, Brett Porter wrote:
> > 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]
> > 
> 
> 
> -
> 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-28 Thread Allison, Bob
Here is the pattern I was going to build:

Project proj-a creates a.jar which contains:
-- Interface A which is the API for the jar
-- Class AImpl which implements the API
-- Class AFactory which creates implementations of interface A

Project a-test creates a-test.jar which contains a MockObjects version of class 
AFactory which allows unit tests to preload the factory with a mock-object 
implementation of interface A to be returned by the factory

Project proj-b uses a.jar, so needs to define a dependency on a.jar with 
compile scope and a-test.jar with test scope.


My questions:

1) Is there a reason why the API class (interface A) needs to be in a separate 
project from the implementation classes (AImpl and AFactory)?

2) How do I define the dependencies in project proj-b to ensure that the 
mock-objects version of AFactory gets used during unit tests?

-Original Message-
From: Tim Dysinger [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 12:39
To: [EMAIL PROTECTED]; Brett Porter
Cc: Maven Users List
Subject: Re: Cross-project dependencies on unit test code


Ok.  Let's say we did it that way.  We are still faced with the same
problem with the maven-eclipse-plugin.  Maven-eclipse-plugin does not
like having your source and test directories the same.  

${basedir}/src/java
${basedir}/src/java

I can't do this without using eclipse.  The plugin, in this case, would
generate a bogus .classpath file.  

Putting the junit code in src/java is the only way I know that maven
will publish your jar so other projects can depened on it.  If you just
put your tests in src/test, maven will publish an empty jar and the
dependant project will fail to compile.

-Tim

On Wed, 2005-09-28 at 08:42 +1000, Brett Porter wrote:
> 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]
> 


-
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-b2] install:install-file fails without pom

2005-09-28 Thread Ralph Pöllath

Hi,

installing a jar into my local repository as explained at [1]:

/tmp % m2 install:install-file \
-Dfile=/tmp/eXtremeComponents-1.0.2-M1.jar  \
-DgroupId=org.eXtremeComponents  \
-DartifactId=eXtremeComponents  \
-Dversion=1.0.2-M1 \
-Dpackaging=jar

fails with "Cannot execute mojo: install-file. It requires a project,  
but the build is not using one" (full trace below).


This looks like MNG-432 [2], which is supposed to be fixed. Can  
anyone help?


I noticed the install-plugin used is 2.0-beta-1, while m2 itself is  
at 2.0-beta-2. Is that correct?


Thanks,
-Ralph.

[1] http://maven.apache.org/maven2/general.html#importing-jars
[2] http://jira.codehaus.org/browse/MNG-432

/tmp % m2 -v
Maven version: 2.0-beta-2

[DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from  
repository central
[INFO]  
 


[INFO] Building Maven Default Project
[INFO]task-segment: [install:install-file]
[INFO]  
 

[INFO]  
 


[INFO] BUILD FAILURE
[INFO]  
 

[INFO] Reason: Cannot execute mojo: install-file. It requires a  
project, but the build is not using one.
[INFO]  
 


[DEBUG] Trace
org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo:  
install-file. It requires a project, but the build is not using one.
at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:318)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:515)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa 
l(DefaultLifecycleExecutor.java:478)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:460)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( 
DefaultLifecycleExecutor.java:278)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:136)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
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)
[INFO]  
 




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



[m2] sequencing goals

2005-09-28 Thread dohadwala, moiz
I have a custom plugin with 3 goals. They are separate becuase I need to be
able to execute each one individually.
They all bind to the same lifecycle phase. 
 
However, when the plugin is included in the build section, I need to be able
to execute all 3 goals, but in a pre-defined order: 
goal1->goal2>goal3.
 
How do I enforce this in the plugin? If not, do I have to move them to
separate plugins? Then how do I enforce order between the plugins?
 
-Moiz


Re: Cross-project dependencies on unit test code

2005-09-28 Thread Tim Dysinger
Ok.  Let's say we did it that way.  We are still faced with the same
problem with the maven-eclipse-plugin.  Maven-eclipse-plugin does not
like having your source and test directories the same.  

${basedir}/src/java
${basedir}/src/java

I can't do this without using eclipse.  The plugin, in this case, would
generate a bogus .classpath file.  

Putting the junit code in src/java is the only way I know that maven
will publish your jar so other projects can depened on it.  If you just
put your tests in src/test, maven will publish an empty jar and the
dependant project will fail to compile.

-Tim

On Wed, 2005-09-28 at 08:42 +1000, Brett Porter wrote:
> 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]
> 


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



Re: org.extremecomponents-1.0.1-M1.jar in repo1 contains no class files

2005-09-28 Thread Ralph Pöllath

On 28.09.2005, at 18:17, Trygve Laugstøl wrote:

On Wed, 2005-09-28 at 17:29 +0200, Ralph Pöllath wrote:

Hi,

seems like the jar for org.extremecomponents-1.0.1-M1 contains no
class files (see below). Should I report this in the Maven Evangelism
JIRA?


Yes please. Thanks.


Done: http://jira.codehaus.org/browse/MEV-97

Cheers,
-Ralph.



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



Re: org.extremecomponents-1.0.1-M1.jar in repo1 contains no class files

2005-09-28 Thread Trygve Laugstøl
On Wed, 2005-09-28 at 17:29 +0200, Ralph Pöllath wrote:
> Hi,
> 
> seems like the jar for org.extremecomponents-1.0.1-M1 contains no  
> class files (see below). Should I report this in the Maven Evangelism  
> JIRA?

Yes please. Thanks.

--
Trygve



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



read contents of a file

2005-09-28 Thread Ramon Buckland
Hi,

I am trying to work out the best way to read the contents of a file.
Specifically, I an performing an iteration over **/*.jsp files
and want to only perform tasks on JSP which have 

Re: [M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Nicolas Chalumeau
post an issue at http://jira.codehaus.org/browse/MEV for it

Nicolas

2005/9/28, Jose Gonzalez Gomez <[EMAIL PROTECTED]>:
> Hi there,
>
> I'm trying to use Spring / Maven / Eclipse in one of my projects with
> no success. I have included the following dependency in my pom:
>
> 
>   springframework
>   spring
>   1.2.5
> 
>
> When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
> get spring-1.2.5.jar added to the project classpath, so whenever I try
> to launch my application it fails due to missing spring dependencies.
> I've taken a look at ibiblio.org/maven2, and all the spring poms seem
> to include no dependency information, so... am I doing anything wrong
> or should I include all the Spring dependencies manually? Are the
> Spring poms incorrect? If this is the case, is it normal to have
> incorrect poms with missing dependencies in the ibiblio repository?
>
> Thanks in advance, best regards
> Jose
>
> -
> 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]



org.extremecomponents-1.0.1-M1.jar in repo1 contains no class files

2005-09-28 Thread Ralph Pöllath

Hi,

seems like the jar for org.extremecomponents-1.0.1-M1 contains no  
class files (see below). Should I report this in the Maven Evangelism  
JIRA?


Cheers,
-Ralph.

---

/tmp % curl -O http://www.ibiblio.org/maven2/org/extremecomponents/ 
extremecomponents/1.0.1-M1/extremecomponents-1.0.1-M1.jar

/tmp % jar tf extremecomponents-1.0.1-M1.jar
META-INF/
META-INF/MANIFEST.MF
META-INF/LICENSE.txt


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



Re: Delivering mock objects for a public API [was Re: [m2] custom compiler mojo]

2005-09-28 Thread Trygve Laugstøl
On Mon, 2005-09-26 at 22:02 +, John Fallows wrote:
> On 9/25/05, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:
> > On Sat, 2005-09-24 at 04:31 +, John Fallows wrote:
> > > On 9/23/05, Trygve Laugstøl <[EMAIL PROTECTED]> wrote:
> > > > On Fri, 2005-09-23 at 08:03 +, John Fallows wrote:

[snip]

> > [1]: http://jira.codehaus.org/browse/MNG-932
> 
> Yes, I understand that it would be generally useful to deliver a
> subset of the unit test code as a JAR.
> 
> The above proposal still stands though, although the name "mock" can
> be treated as a placeholder for that subset until we have a better
> name.

Not sure I agree, what more than distributing the test do you need?

> Alternatively, is there any mileage in the idea of having completely
> separate sub-modules for main, mock, and test, all inside the
> api-module?

Don't think so, but I also think I'm missing some information here :)

--
Trygve


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



[M2] Using Spring with Maven / Eclipse

2005-09-28 Thread Jose Gonzalez Gomez
Hi there,

I'm trying to use Spring / Maven / Eclipse in one of my projects with
no success. I have included the following dependency in my pom:


  springframework
  spring
  1.2.5


When I try to generate the Eclipse project (m2 eclipse:eclipse) I only
get spring-1.2.5.jar added to the project classpath, so whenever I try
to launch my application it fails due to missing spring dependencies.
I've taken a look at ibiblio.org/maven2, and all the spring poms seem
to include no dependency information, so... am I doing anything wrong
or should I include all the Spring dependencies manually? Are the
Spring poms incorrect? If this is the case, is it normal to have
incorrect poms with missing dependencies in the ibiblio repository?

Thanks in advance, best regards
Jose

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



RE: [m20b2] Upgrade Problem with Site Plugin

2005-09-28 Thread Jason van Zyl
On Wed, 2005-09-28 at 05:48 -0500, Allison, Bob wrote:
> It turns out that the reason that the m2 -U site:site did not work when
> I first tried it was that I am using a proxy for ibiblio and the proxy
> was not updating its cache.
> 
> I think maven-proxy could stand modification so that it doesn't cache
> the metadata (something to look into if I get a chance).

We definitely need to overhaul maven-proxy, or rewrite it. It will come
in the next couple months if no one else gets to it first :-)

> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 27, 2005 18:32
> To: Maven Users List
> Subject: Re: [m20b2] Upgrade Problem with Site Plugin
> 
> 
> 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

Re: Logging/tracing conventions

2005-09-28 Thread Gilles Scokart
Thanks, but what are the guidelines on when to log at which level ?  I guess 
it's a good idea that all plugins follow the same guidelines.  What is the 
best practice for that ?


And what if our mojo call external code that is not (and should not be) 
aware of running into a maven plugin ?



> When writting a Mojo, what are the standard convention to trace/log 
[debug]

> messages ?

getLog().info( "Hey yo!" );

--
Trygve


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



Re: [m2-b2] trouble creating sar packaging plugin

2005-09-28 Thread mika
Ok, thanks a lot! I hadn't any time to further investigate and get it to 
work right now anyway; a "common" solution for this type of packaging 
certainly would be the nicest approach ;-)


cheers,
mika

Trygve Laugstøl wrote:

On Wed, 2005-09-28 at 14:47 +0200, mika wrote:


Hi,

I just started to play around with maven 2 yesterday and really want to 
move from maven 1... i tried to create a simple plugin to package 
projects as SAR (Service ARchives in jboss). Now after some struggling 
using beta-1, the plugin seems to be built and installed correctly using 
beta-2. Invoking the goal "sar:sar" directly from a project (with 
sar) works fine, but when invoked indirectly 
through the lifecycle process (e.g. m2 install) i get the folloging error:



There was someone on [EMAIL PROTECTED] or mojo that was working on the same
thing. If I can figure out who it was I'll let you know. Ideally this
plugin would be hosted by either jboss or on the mojo project[1].

[1]: http://mojo.codehaus.org

--
Trygve


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



[ot] m2 antlib and eclipse classpath task - someone else take a look pls?

2005-09-28 Thread Darren Hartford
Hey all,
Great success using the M2 Antlib, specifically with the default-install
of Eclipse!

I'm trying to get the classpath that is generated from the
artifact:dependencies to CREATE the eclipse .classpath to keep the
environments in-sync, with the maven pom.xml being the master file.

Build.xml TASK:
===
  
  
   





==


Intent is to run as an Ant task from Eclipse with minimal additional
jars (although I already have maven-artifact-ant-2.0.jar bootstrapped,
could add another if needed) and build the Eclipse classpath using the
Maven repo/dependencies.

As you can see by the notes above, I'm having an issue with the lib's -
Eclipse by default has one lib entry per library, and I have the refid
that lists all the project's maven dependencies.  Has anyone already
defeated this challenge or has any recommendations? 


Thanks,
-D

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



Re: Cycle detected problem

2005-09-28 Thread Trygve Laugstøl
Do not hijack threads like this. Start a new thread instead of replying
to a existing thread. It messes up the thread view in the email clients
that thread messages.

On Wed, 2005-09-28 at 17:58 +0400, Muralidhar Y. wrote:
>  
> hi I am using multiproject plug-in. When I am trying to create complete
> build it says cycle detected. Build failed. This is happening when I declare
> dependency of one subproject in another like the following 
> 
> I had 2 subprojects. I declared 1st one as dependency in 2nd one and 2nd one
> in 1st one.
> 
> Pls tell me how to solve it.

You can't have a circular dependency. The only way to solve this is to
move the parts of 1 and 2 that you want to share in a third project and
make both 1 and 2 depend on 3.

--
Trygve


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



RE: Cycle detected problem

2005-09-28 Thread Jörg Schaible
Muralidhar Y. wrote on Wednesday, September 28, 2005 3:59 PM:

> hi I am using multiproject plug-in. When I am trying to
> create complete build it says cycle detected. Build failed.
> This is happening when I declare dependency of one subproject in
> another like the following 
> 
> I had 2 subprojects. I declared 1st one as dependency in 2nd one and
> 2nd one in 1st one. 

This is obviously a cycle and cannot be resolved. What should be build first: 
Hen or Egg?

Refastructure your projects, move the common parts of both into a third one and 
let both projects depend on that.

- Jörg

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



Cycle detected problem

2005-09-28 Thread Muralidhar Y.
 

hi I am using multiproject plug-in. When I am trying to create complete
build it says cycle detected. Build failed. This is happening when I declare
dependency of one subproject in another like the following 

I had 2 subprojects. I declared 1st one as dependency in 2nd one and 2nd one
in 1st one.

Pls tell me how to solve it.


Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-Original Message-
From: Erick Dovale [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 17:34
To: Maven Users List
Subject: Re: eclipse:eclipse does not generates proper folder for resources

Kenney Westerhof wrote:

>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]
>
>
>  
>
Hi Kenney,

This is my pom.xml file:



http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 
  4.0.0
  com.thewoodexplorer
  thewoodexplorer.ui
  jar
  0.1
  
com.thewoodexplorer
thewoodexplorer
0.1
  
  
src/main/java
src/test/java


src/main/resources

**/*



  
  

com.thewoodexplorer
thewoodexplorer.service
0.1
jar


jgoodies
forms
1.0.5
jar


jgoodies
looks
1.3.1
jar


springframework
spring
1.2.4
jar


commons-beanutils
commons-beanutils
1.6.1
jar

  


the problem is that the output folder for the resources directory is set to
the root of the project as apposed to target/classes or something like that.
I also have a second folder into resources and I need it to be  added as a
source folder so that eclipse add it to the classpath.

Thanks..

edovale

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


Re: [M2] equivalent to false

2005-09-28 Thread Erick Dovale

Brett Porter wrote:


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]


 


Hi there,

I found this reported as a bug in jira and it says it is already in cvs. 
The solution seems to be not adding the jar to eclipse's classpath if an 
artifact with the same name is in the reactor already. Is this bug fix 
included in the most recent version of the eclipse plugin?


Thanks

Erick.

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



RE: [m2] multiple Suites and surefire

2005-09-28 Thread Mike Perham
According to the surefire docs,  is of type List (i.e. I would assume 
it cannot be wildcarded) whereas  is of type String and notes "Specify 
this parameter if you want to use the test regex notation to select tests to 
run".  I changed to your suggestion anyways and I get an "error configuring 
plugin" for surefire.


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 6:09 PM
To: Maven Users List
Subject: Re: [m2] multiple Suites and surefire

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]



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



Re: [m2-b2] trouble creating sar packaging plugin

2005-09-28 Thread Trygve Laugstøl
On Wed, 2005-09-28 at 14:47 +0200, mika wrote:
> Hi,
> 
> I just started to play around with maven 2 yesterday and really want to 
> move from maven 1... i tried to create a simple plugin to package 
> projects as SAR (Service ARchives in jboss). Now after some struggling 
> using beta-1, the plugin seems to be built and installed correctly using 
> beta-2. Invoking the goal "sar:sar" directly from a project (with 
> sar) works fine, but when invoked indirectly 
> through the lifecycle process (e.g. m2 install) i get the folloging error:

There was someone on [EMAIL PROTECTED] or mojo that was working on the same
thing. If I can figure out who it was I'll let you know. Ideally this
plugin would be hosted by either jboss or on the mojo project[1].

[1]: http://mojo.codehaus.org

--
Trygve


-
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-28 Thread Erick Dovale

Kenney Westerhof wrote:


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]


 


Hi Kenney,

This is my pom.xml file:



http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>


 4.0.0
 com.thewoodexplorer
 thewoodexplorer.ui
 jar
 0.1
 
   com.thewoodexplorer
   thewoodexplorer
   0.1
 
 
   src/main/java
   src/test/java
   
   
   src/main/resources
   
   **/*
   
   
   
 
 
   
   com.thewoodexplorer
   thewoodexplorer.service
   0.1
   jar
   
   
   jgoodies
   forms
   1.0.5
   jar
   
   
   jgoodies
   looks
   1.3.1
   jar
   
   
   springframework
   spring
   1.2.4
   jar
   
   
   commons-beanutils
   commons-beanutils
   1.6.1
   jar
   
 


the problem is that the output folder for the resources directory is set 
to the root of the project as apposed to target/classes or something 
like that. I also have a second folder into resources and I need it to 
be  added as a source folder so that eclipse add it to the classpath.


Thanks..

edovale

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



Re: [m2-b2] trouble creating sar packaging plugin

2005-09-28 Thread Brett Porter
This is a missing instruction on the build lifecycle page. You need to
add the plugin to the project, true

- Brett

On 9/28/05, mika <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just started to play around with maven 2 yesterday and really want to
> move from maven 1... i tried to create a simple plugin to package
> projects as SAR (Service ARchives in jboss). Now after some struggling
> using beta-1, the plugin seems to be built and installed correctly using
> beta-2. Invoking the goal "sar:sar" directly from a project (with
> sar) works fine, but when invoked indirectly
> through the lifecycle process (e.g. m2 install) i get the folloging error:
>
> ...
> 
> [ERROR] Nonexistent component:
> org.apache.maven.lifecycle.mapping.LifecycleMappingsar
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Diagnosis: Cannot find lifecycle mapping for packaging: 'sar'.
> [INFO]
> 
> [INFO]
> 
> FATAL ERROR: Error executing Maven for a project
> For more information, run with the -e flag
>
>
> The SAR-plugin is actually just a modified jar plugin - replaced jar
> with sar.
>
> The generated plugin-descriptor looks quite the same as the one of the
> jar plugin, except the prefix / goal / implementation of course.
>
> Am i missing something? Should i add some lifecycle information to the
> project's pom? where?
>
> thanks in advance,
> mika
>
> -
> 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-b2] trouble creating sar packaging plugin

2005-09-28 Thread mika

Hi,

I just started to play around with maven 2 yesterday and really want to 
move from maven 1... i tried to create a simple plugin to package 
projects as SAR (Service ARchives in jboss). Now after some struggling 
using beta-1, the plugin seems to be built and installed correctly using 
beta-2. Invoking the goal "sar:sar" directly from a project (with 
sar) works fine, but when invoked indirectly 
through the lifecycle process (e.g. m2 install) i get the folloging error:


...

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingsar
[INFO] 


[ERROR] FATAL ERROR
[INFO] 


[INFO] Diagnosis: Cannot find lifecycle mapping for packaging: 'sar'.
[INFO] 

[INFO] 


FATAL ERROR: Error executing Maven for a project
For more information, run with the -e flag


The SAR-plugin is actually just a modified jar plugin - replaced jar 
with sar.


The generated plugin-descriptor looks quite the same as the one of the 
jar plugin, except the prefix / goal / implementation of course.


Am i missing something? Should i add some lifecycle information to the 
project's pom? where?


thanks in advance,
mika

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



[m2] compile errors for clover:report with wrong dependency declaration order

2005-09-28 Thread Daniel Schömer
Hi,

I have just downloaded m2-beta-2 and found some interesting fact
about the dependency declaration order in pom.xml when executing
the clover:report goal.

My project has a dependency to commons-lang with compile scope and
junit with test scope.  Since commons-lang declares junit as
compile-time dependency, I've excluded the junit dependency from
commons-lang.

If I execute the clover:report goal now, junit is not included in
the classpath during compiler:testCompile which results in
compilation errors (TestCase class not found).

But if I move the declaration of the junit dependency in pom.xml
above the commons-lang dependency, junit is included in the
classpath during compiler:testCompile of clover:report and the
test classes can be compiled.

Is this an expected behaviour?

This results in compilation errors for clover:report:
  
...

  
commons-lang
commons-lang
2.1
compile

  
junit
junit
  

  
  
junit
junit
3.8.1
test
  

With this, test classes can be compiled for clover:report:
  
...

  
junit
junit
3.8.1
test
  
  
commons-lang
commons-lang
2.1
compile

  
junit
junit
  

  

Regards,
Daniel Schömer


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



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

2005-09-28 Thread Darren Hartford
Confirmed, that fixed it - thanks! 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, September 27, 2005 12:01 PM
> To: Maven Users List
> Subject: Re: [m2] antlib and typedef - feel like a noob
> 
> Hi,
> 
> There's a bug in the documentation. Instead of 
> 
>  
> 
> you should have
> 
>  
> 
> Regards,
> Davy Toch

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



Re: Logging/tracing conventions

2005-09-28 Thread Orjan Austvold
Instead of having lots of debug statements in your Mojo, you could 
simply connect a debugger to Maven.


I'm doing this with IDEA simply by running maven with

MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" m2 install



Ørjan


Gilles Scokart wrote:


When writting a Mojo, what are the standard convention to trace/log 
[debug] messages ?



Gilles Scokart

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



--
Ørjan Austvold - Senior Software Architect
www.colibria.com - putting the presence into messaging

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



RE: [m20b2] Upgrade Problem with Site Plugin

2005-09-28 Thread Allison, Bob
It turns out that the reason that the m2 -U site:site did not work when
I first tried it was that I am using a proxy for ibiblio and the proxy
was not updating its cache.

I think maven-proxy could stand modification so that it doesn't cache
the metadata (something to look into if I get a chance).

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 18:32
To: Maven Users List
Subject: Re: [m20b2] Upgrade Problem with Site Plugin


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

Re: Logging/tracing conventions

2005-09-28 Thread Trygve Laugstøl
On Wed, 2005-09-28 at 12:24 +0200, Gilles Scokart wrote:
> When writting a Mojo, what are the standard convention to trace/log [debug] 
> messages ?

getLog().info( "Hey yo!" );

--
Trygve



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



Logging/tracing conventions

2005-09-28 Thread Gilles Scokart


When writting a Mojo, what are the standard convention to trace/log [debug] 
messages ?



Gilles Scokart

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



Re: [m2] war:inplace

2005-09-28 Thread Mark Hobson
On 28/09/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> If there isn't already, yes. It is currently part of a TODO in the
> code I think...

Done.. http://jira.codehaus.org/browse/MNG-1037

Mark

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