Re: help with projecthelp

2005-10-18 Thread Allan Ramirez
Hi, I tried to run "m2 -e projecthelp:describe 
-Dplugin=org.apache.maven.plugins:maven-eclipse-plugin", and it worked 
fine with me.


what version of maven are you using? Mine is rc1.

[INFO] Plugin: 'null'
---
Group Id: org.apache.maven.plugins
Artifact Id: maven-eclipse-plugin
Version: 2.0-beta-2
Goal Prefix: eclipse
Description:

Maven plugin parent

Mojos:

Goal: 'add-maven-repo'

Description:

A Maven2 plugin to ensure that the classpath variable MAVEN_REPO exists 
in the Eclipse envir


Implementation: org.apache.maven.plugin.eclipse.AddMavenRepoMojo
Language: java


Goal: 'clean'

Description:

A Maven2 plugin to delete the .project, .classpath and .wtpmodules files 
needed for Eclipse.


Implementation: org.apache.maven.plugin.eclipse.EclipseCleanMojo
Language: java


Goal: 'eclipse'

Description:

A Maven2 plugin which integrates the use of Maven2 with Eclipse.

Implementation: org.apache.maven.plugin.eclipse.EclipsePlugin
Language: java

Before this mojo executes, it will call:

Phase: 'generate-sources'


[INFO] 
 


[INFO] BUILD SUCCESSFUL
[INFO] 
 


[INFO] Total time: 1 minute 24 seconds
[INFO] Finished at: Wed Oct 19 14:08:19 CST 2005
[INFO] Final Memory: 1M/4M
[INFO] 



Brian Bonner wrote:


Well, I looked at the source, I think this does the trick:

m2 -e projecthelp:describe 
-Dplugin=org.apache.maven.plugins:maven-eclipse-plugin


returns:

Group Id:  org.apache.maven.plugins
Artifact Id: maven-eclipse-plugin
Version: 2.0-beta-2
Goal Prefix: eclipse

Mojos:
---

TODO!
---

TODO!
---

TODO!
---

I'm still not sure why the prior syntax doesn't work.

Brian



Brian Bonner wrote:


I was expecting to see the goals for this eclipse plugin using:

m2 projecthelp:describe -DgroupId=org.apache.maven.plugins 
-DartifactId=maven-eclipse-plugin


It returns:

[ERROR] BUILD ERROR
[INFO] 
- 


---
[INFO] You must either specify 'groupId' and 'artifactId', or a valid 
'plugin' p

arameter.
[INFO] 
- 


---
[INFO] For more information, run Maven with the -e switch
[INFO] 
- 



Can anyone help explain to me what I'm doing wrong?

Thanks.




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




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

Re: Maven 1 and Maven 2 next to each other

2005-10-18 Thread Wim Deblauwe
I'm using Maven 1 to build jars and wars. I also build windows dll's and
InstallShield Merge Modules and InstallShield Installers through custom
goals in my maven.xml. I will need to convert those things into plugins
first. We also use the XDoclet plugin in 1 module which is not converted
yet, so for the moment it is impossible to use m2 for that module.

As I see it, it will take some work to convert it all (lean how to write the
plugins, write them, ...) so I would like to migrate a module at a time,
starting with the pure java ones to Maven2.

regards,

Wim

2005/10/19, Jason van Zyl <[EMAIL PROTECTED]>:
>
> On Tue, 2005-10-18 at 08:29 +0200, Wim Deblauwe wrote:
> > Hi,
> >
> > is it possible to build with Maven 1 and Maven 2? As I understand it,
> Maven
> > 2 uses pom.xml in stead of project.xml. So if I have a project.xml I can
> > build with Maven 1 and if I add a pom.xml I can build the same project
> with
> > Maven 2. Correct? Or are there any extra's I need to consider?
>
> Yes, m1 and m2 can sit side by side but you probably don't want to do
> this more long. It was meant for migration but if you have both systems
> there one of them will naturally get out of date. We've been thinking
> about creating an m2 -> m1 converter which might help with this as m2
> POMs are a superset of m1 POMs.
>
> If you are building a simple JAR you will probably be ok, but if you're
> going to get into using plug-ins then it could get a little hard to
> manage. What's your use case?
>
> > regards,
> >
> > Wim
> --
> jvz.
>
> Jason van Zyl
> jason at maven.org 
> http://maven.apache.org
>
> We know what we are, but know not what we may be.
>
> -- Shakespeare
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] Another exception when executing war:war

2005-10-18 Thread Allan Ramirez
Please make sure that you have your web.xml file inside your 
src/main/webapp/WEB-INF directory


Regards
- allan


Michael McCrann wrote:


Christian,

Does your web.xml exist at: 
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml.

You can tell the plugin where to find your web.xml by adding the snippet below 
to your pom.xml:

   
   
 

   maven-war-plugin
   2.0-beta-1
   
  web/web.xml
   
 
   
   




-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 October 2005 6:01 PM
To: Maven Users List
Subject: [m2] Another exception when executing war:war


Hi folks,

OK, I switched to m2 RC and it looks like I get one step further. But now
another issue is rising up:

[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Assembling webapp MyWebApp in
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Generating war D:\eclipse\workspace\MyProject\target\MyWebApp.war
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling WAR

Embedded error: Deployment descriptor:
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml does not
exist.
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
assembling WAR
   at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:91)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
   ... 16 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment
descriptor: D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml
does not exist.
   at
org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:73)
   at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:121)
   at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86)

I have the web.xml file in my project folder under \WebRoot\WEB-INF. It
seems like its not beeing copied to the target dir.

How can I resolve this?

Thanks & Regards,

Chris

 


Brett Porter had this to say about the error

"There was a required update to the reporting API. Compatible plugins
will be republished in the near future. If you are able to rebuild the
plugin from SVN that should work as is."

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David H.
DeWolf
Sent: Monday, October 17, 2005 8:19 AM
To: Maven Users List
Subject: Re: [m2] NoSuchMethodError exception when executing site:site

Zheng,

I got the same thing over the weekend and found that Maven was
downloading the most recent plugins but I didn't have the most recent
dist to go with them. To get things working (at least partway), I
cleared out my maven plugings from the repo and installed M2 RC.

This got me further, but I still had an issue. . .if I remember, it had
something to do with trying to generate a site from a project without
any source. If I create a main/java dir or generate the site from a
project which cont

Re: Maven Site Plugin

2005-10-18 Thread Eli Doran
Oh good. I just wanted to make sure before I gear up for the work. I 
don't know how Maven plugins are written so I wanted to be sure they are 
selfcontained enough to work without being dependent on the Maven core 
system.  The site plugin seems pretty sweet. I've been using Forrest and 
am tired of it but I don't use Maven, still an Ant user. So, an Ant task 
is my goal.


I'll look into the plugin.

Thank you,
~eli

Brett Porter wrote:


This is entirely possible. We haven't schedulde the work, but if you'd
like to do so we'd be happy to help point you in the right direction.

A good start would be to look at the maven-site-plugin.

- Brett

On 10/18/05, Eli Doran <[EMAIL PROTECTED]> wrote:
 


There are Ant tasks to use some parts of Maven. Can an Ant task be
created to utilize the site plugin? If so, where should I start looking
to figure that out?

any info will be appreciated,
~eli

-
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] Eclipse WTP Web app libraries

2005-10-18 Thread Dietrich Schulten
Hi Fabrizio,

thank you for your quick reply. Comments inline.

Fabrizio Giustina schrieb:
> On 10/18/05, Dietrich Schulten <[EMAIL PROTECTED]> wrote:
> 
>>how does the m2 eclipse plugin determine the path where it looks for web
>>app libraries when used for dynamic web projects?

> if you run m2 eclipse
> from a parent project and some of these dependencies are in the list
> of compiled modules they will be added as a module dependencies
> instead of jars.

I added springframework 1.2.5 as dependency.
m2 retrieves the jar and puts it to
ws\my-webapp\target\my-webapp\WEB-INF\lib
It also makes it to the m2-built war from there.

Eclipse is informed about the jar by adding
M2_REPO/springframework/spring/1.2.5/spring-1.2.5.jar
to .classpath

So this works almost as I hoped.

However, eclipse does not understand that it should add this lib from
the target folder to .deployables, from where Eclipse debugs the
application using Eclipse's tomcat integration.
Rather Eclipse seems to expect the lib in the
src\main\webapp\WEB-INF\lib folder. I manually copied it there, and
Eclipse automatically inserted spring.1.2.5.jar into the web apps
library and .deployables.

That would mean I have to manually copy everything from
target/my-webapp/WEB-INF/lib to src/main/webapp/WEB-INF/lib
Probably this is not how it is meant to be:

How can I provide external jars for a parent project, so that they
"appear in the list of compiled modules and are added as module
dependencies", as you said above? I created a parent pom.xml and used m2
eclipse:eclipse from the parent folder. I also updated the child pom.xml
files to have a parent element that points back to the parent.

My parent pom.xml:

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.mycompany.app
  1.0-SNAPSHOT
  app
  pom
  
my-app
my-webapp
  


Also missing is the project dependency from my-webapp to my-app, Eclipse
does not get the dependency yet.


>>I have the problem that eclipse complains about a missing
>>WEB-INF/classes classes folder, which seems to come from a "Web app
>>library [artifact]" containing a my-webapp/WEB-INF/classes source path
>>with a marker saying "(missing)".

This disappeared after I selected my-webapp instead of artifact in
Eclipse. So I have to enter the artifactId in the pom.xml like so:


org.eclipse.jst.j2ee.internal.web.container/my-webapp


instead of


org.eclipse.jst.j2ee.internal.web.container/artifact


I assumed, some magic might replace the artifactId for artifact. M2
newbie question: Is it possible to refer to the artifactId, as if it
were a variable, in the pom.xml?

Thank you for all your hard work. Do you have a HOWTO already? Maybe I
could write one if I get all this to work.

Regards,
Dietrich

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

Re: [m2-b3] running a non-aggregator plugin after local install only

2005-10-18 Thread John Fallows
On 10/19/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> That's a good point. We will also investigate that avenue.
>
> Anything in a static var would also be an issue.

Some of our unit tests did have some statics that we'll work on
removing, and none of them had instance state that was not nulled out
in tearDown.

When I exclude the tests with statics from the surefire test suite,
leaving 414 tests, the OutOfMemoryError still occurs, so it seems that
something else is causing the leak.

Note that the unit tests in question are part of the "api-module"
project, whereas the OutOfMemoryError occurs during compilation of a
subsequent "impl-module" project during the same reactor "install"
build.

As previously mentioned, skipping the tests causes the problem to go
away.  However, it is possible that there are multiple leaks (perhaps
in some plugins?) and the test suite is just pushing it over the edge
to trigger the OutOfMemoryError.

Kind Regards,
John Fallows.

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



RE: How to add html parser dependency?

2005-10-18 Thread Siegfried Heintze
I don't understand http://maven.apache.org/reference/repository-upload.html.
http://htmlparser.sourceforge.net/ does not have a LICENSE.TXT.

Where does the project.xml come from? Do I create a new empty project with
maven genapp? Or does maven create it? OR do I create it with emacs? It does
not make sense to use my current project.

OK, so I tried "maven create-upload-bundle" in an empty temp directory.
Maven only created a "target" directory contain a bunch of empty directories
and no jar file. http://maven.apache.org/reference/repository-upload.html
explained that it would create a jar file -- it did not.

I'm confused.

Thanks,
Siegfried

-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 10:41 PM
To: 'Maven Users List'
Subject: RE: How to add html parser dependency?

Yes this is the faster solution.
You can also follow the instructions given in [1] to upload it to ibiblio.

[1] http://maven.apache.org/reference/repository-upload.html

Arnaud
 

> -Message d'origine-
> De : Siegfried Heintze [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 19 octobre 2005 06:13
> À : 'Maven Users List'
> Objet : How to add html parser dependency?
> 
> I'm looking for an HTML parser. I heard that 
> http://java-source.net/open-source/html-parsers/html-parser 
> is good. How do I add that to my maven 1 project? I don't see 
> this in the mevenide repository browser. Do I have to 
> manually download it and stick it in my local maven repository?
> 
> Sieg
> 
> 
> -
> 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] Maven release plugin and CVS: bug?

2005-10-18 Thread Michael McCrann
Fabrice,

Here is something else that is worth trying:

- Make sure that you are using M2 RC. (I deleted my local repository after 
installing the RC, to ensure my installation was completely fresh)

Say, for example your Maven SCM URL is:

scm:cvs:pserver::@::module

- Delete your .cvspass file. 

This should be in your home directory ('c:\Documents and Settings' for me)

- Run the CVS login command:

cvs -d:pserver:@: login

- Run the release:prepare goal.

Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 October 2005 5:55 PM
To: Michael McCrann
Subject: RE: [M2 RC] problems with release:perform






Hi Michael,

This release plugin seems to be quite tricky... I still haven't succeeded
in making the prepare goal working! Could you please show me how your pom
looks like so that I can try to find what's wrong with mine?

Thanks a lot in advance! :o)

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [EMAIL PROTECTED]


   
 Michael McCrann   
   Pour 
   Maven Users List
 18/10/2005 08:34  
cc 
   
 VeuillezObjet 
répondre à RE: [M2 RC] problems with   
 Maven Users List  release:perform 
 <[EMAIL PROTECTED]  
 che.org>  
   
   
   
   




Hi,

In attempt to find a solution to the my release:perform problem, I checked
out the trunk version and
built maven using the m2-bootstrap-all.bat script.

I ran the release:perform again and got the error below.

Ignoring the m2 deprecated message! could the problem be something to do
with '/' in the working directory:
c:\michaels_projects\transact\target/checkout?

Michael

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-release-plugin:2.0-beta-3:perform' -->
[DEBUG]   (f) basedir = c:\michaels_projects\transact
[DEBUG]   (f) goals = deploy:deploy
[DEBUG]   (f) interactive = true
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) workingDirectory =
c:\michaels_projects\transact\target/checkout
[DEBUG] -- end configuration --
[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...

THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD

The directory name is invalid.
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Result of m2 execution is: '1'. Release failed.
[INFO]


[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Result of m2
execution is: '1'. Release failed.


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


-
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: sun jars

2005-10-18 Thread Arik Kfir
Yes, you are right. It wouldn't make much sense if you couldn't
redistribute them, eh? ;-)

Still, it prohibits the maven team from putting them on ibiblio (arrggh!)


On 10/19/05, Brill Pappin <[EMAIL PROTECTED]> wrote:
> Are you sure that the case? Last time I looked you could distribute them as
> part of your application, but could not distribute them as themselves... the
> difference being that you as the application developer have agreed to abide
> by the license.
>
> I may be wrong, but I don't think your restricted to "for your own use".
>
> - Brill Pappin
>
> On 10/18/05, Arik Kfir <[EMAIL PROTECTED]> wrote:
> >
> > No, that's ok. The license prohibits you from *redistributing* the
> > JAR. As long as its for your own use, you're fine.
> >
> >
> >
>

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



RE: Need an example of calling a batch file from maven please.

2005-10-18 Thread Arnaud HERITIER
In m1 you can use the ant:exec task in your maven.xml scripting file

Arnaud
 

> -Message d'origine-
> De : Mick Knutson [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 19 octobre 2005 00:55
> À : users@maven.apache.org
> Objet : Need an example of calling a batch file from maven please.
> 
> I have a batch file with 4 different parameters that I need 
> to call from Maven.
> Can someone please give me an example of doing this?
> 
> 
> 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: Plugins of plugins

2005-10-18 Thread Jason van Zyl
On Wed, 2005-10-19 at 00:00 -0400, Brill Pappin wrote:
> I've got one for you... I used to have a m1 goal that called several other
> goals while preparing for a release... the idea was to make a repetitive
> task (executing several goals) simple by executing one goal.
> 
> Since I no longer have the maven.xml. I'd love to be able to set up a
> "composit" plugin where I could define a set of goals to execute.

Fair enough, that's a good use case I think. Essentially what we're
talking about here is a way make altering the life cycle very flexible.
Exactly what Chris is talking about where you might graft a bunch of
mojos/goals into the life cycle. You may want to execute some goals that
are not part of the life cycle and some that are. 

So maybe a plugin with a configuration that allowed you to do this would
be the solution. I don't think this would be hard to do but would be
good to get a couple more concrete use cases first.  

> - Brill Pappin
> 
> On 10/19/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote:
> > > Greetings,
> > > Is it possible to write a "plugin of plugins"?? I.e. a plugin that is
> > simply
> > > a composite of other plugins.
> > >
> > > To make this concrete, imagine that you have a common set of plugins
> > that
> > > are used across many projects -- together forming a common build system.
> > For
> > > example, in project A you have
> > >
> > >  > >  . plugin X at phase 1
> > >  . plugin Y at phase 5
> > >  . plugin Z at phase 7
> > > 
> >
> > Do you have a concrete example which may help me understand what you're
> > trying to do before I respond. Looks like you're trying to provide
> > solution before we know what you're really trying to do.
> >
> > --
> > jvz.
> >
> > Jason van Zyl
> > jason at maven.org 
> > http://maven.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



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



RE: How to add html parser dependency?

2005-10-18 Thread Arnaud HERITIER
Yes this is the faster solution.
You can also follow the instructions given in [1] to upload it to ibiblio.

[1] http://maven.apache.org/reference/repository-upload.html

Arnaud
 

> -Message d'origine-
> De : Siegfried Heintze [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 19 octobre 2005 06:13
> À : 'Maven Users List'
> Objet : How to add html parser dependency?
> 
> I'm looking for an HTML parser. I heard that 
> http://java-source.net/open-source/html-parsers/html-parser 
> is good. How do I add that to my maven 1 project? I don't see 
> this in the mevenide repository browser. Do I have to 
> manually download it and stick it in my local maven repository?
> 
> Sieg
> 
> 
> -
> 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 RC] release:prepare release:perform now working

2005-10-18 Thread Michael McCrann
Jason,

I have read over your doco. Here are some things I think are worth
adding (in no particular order):

*** Both goals access an external SCM system (CVS in my case), which
must be installed and on your PATH.

All the work I did on this was on a Win2000 workstation running Cygwin.
I used CVS: (CVSNT) 2.0.51d

*** The project that you are releasing must be a snapshot version.

*** The release:prepare goal creates a release.properties file that is
used by release:perform goal. This file
doesn't seem to get deleted automatically.

*** The release:perform goal checks out the source code from the SCM
system (using the tag you gave in release:prepare goal);
the source is checked out to directory target/checkout and the artifact
is built from this directory.

*** After release:perform goal has checked out the source code, it runs
M2 again (against the checked out source) with a new goal (the default
is deploy). So if you use the default goal, your distribution repository
(as specifed in ) will be updated with the
project's versioned artifact.

*** release:perform goal seems to need the M2_HOME environmental
variable set.

Hope this helps,

Michael



-Original Message-
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 October 2005 3:15 AM
To: Maven Users List
Subject: RE: [M2 RC] release:prepare release:perform now working


On Wed, 2005-10-19 at 10:47 +1000, Michael McCrann wrote:
> Hi,
> 
> The release:prepare release:perform plugin/goals are working for me in
M2 RC.
> 
> Thanks everyone who gave me help.

You can pay us back by looking this over and correcting anything :-)

http://maven.apache.org/maven2/guides/mini/guide-releasing.html

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

Jason van Zyl
jason at maven.org
http://maven.apache.org

Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.

 -- Eric Hoffer, Reflections on the Human Condition


-
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: Plugins of plugins

2005-10-18 Thread Chris Berry
Hi Jason,
Examples:

1) In our current m2 build we have a specialized "rpm build" which lays out
4 separate plugins that play into 4 different phases of the build. Together
they form a system. Each of these plugins is parametrized, such that using
artifactId, etc, they have enough information to do their job. This set of
plugins is general enough to apply to a wide range of projects. I don't want
to repeat the plugin definitions in each project. Of course, this system is
being fleshed out, which is why I'm writing this ;-)

2) In m1 I have a build system which builds Java web services. It slips many
extra goals into the standard maven Java build sequence (e.g. WSDL2Java,
copy extra test resources, company specific stuff, etc.) I collect these
goals into a single maven build file which is imported (using jelly:core
import) into a project's vanilla maven.xml. This way I control the build
process for my many "clients" -- who ultimately just want to type "maven"
and don't really care what or how it gets built -- as long as it builds
correctly. When I port this to m2, I need something similar -- a composite
representing a complete, reusable build solution.

Does this make sense??
Thanks,
-- Chris

On 10/18/05, Brill Pappin <[EMAIL PROTECTED]> wrote:
>
> I've got one for you... I used to have a m1 goal that called several other
> goals while preparing for a release... the idea was to make a repetitive
> task (executing several goals) simple by executing one goal.
>
> Since I no longer have the maven.xml. I'd love to be able to set up a
> "composit" plugin where I could define a set of goals to execute.
>
> - Brill Pappin
>
> On 10/19/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote:
> > > Greetings,
> > > Is it possible to write a "plugin of plugins"?? I.e. a plugin that is
> > simply
> > > a composite of other plugins.
> > >
> > > To make this concrete, imagine that you have a common set of plugins
> > that
> > > are used across many projects -- together forming a common build
> system.
> > For
> > > example, in project A you have
> > >
> > >  > >  . plugin X at phase 1
> > >  . plugin Y at phase 5
> > >  . plugin Z at phase 7
> > > 
> >
> > Do you have a concrete example which may help me understand what you're
> > trying to do before I respond. Looks like you're trying to provide
> > solution before we know what you're really trying to do.
> >
> > --
> > jvz.
> >
> > Jason van Zyl
> > jason at maven.org  
> > http://maven.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


How to add html parser dependency?

2005-10-18 Thread Siegfried Heintze
I'm looking for an HTML parser. I heard that
http://java-source.net/open-source/html-parsers/html-parser is good. How do
I add that to my maven 1 project? I don't see this in the mevenide
repository browser. Do I have to manually download it and stick it in my
local maven repository?

Sieg


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



Re: Plugins of plugins

2005-10-18 Thread Brill Pappin
I've got one for you... I used to have a m1 goal that called several other
goals while preparing for a release... the idea was to make a repetitive
task (executing several goals) simple by executing one goal.

Since I no longer have the maven.xml. I'd love to be able to set up a
"composit" plugin where I could define a set of goals to execute.

- Brill Pappin

On 10/19/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote:
> > Greetings,
> > Is it possible to write a "plugin of plugins"?? I.e. a plugin that is
> simply
> > a composite of other plugins.
> >
> > To make this concrete, imagine that you have a common set of plugins
> that
> > are used across many projects -- together forming a common build system.
> For
> > example, in project A you have
> >
> >  >  . plugin X at phase 1
> >  . plugin Y at phase 5
> >  . plugin Z at phase 7
> > 
>
> Do you have a concrete example which may help me understand what you're
> trying to do before I respond. Looks like you're trying to provide
> solution before we know what you're really trying to do.
>
> --
> jvz.
>
> Jason van Zyl
> jason at maven.org 
> http://maven.apache.org
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: sun jars

2005-10-18 Thread Brill Pappin
Are you sure that the case? Last time I looked you could distribute them as
part of your application, but could not distribute them as themselves... the
difference being that you as the application developer have agreed to abide
by the license.

I may be wrong, but I don't think your restricted to "for your own use".

- Brill Pappin

On 10/18/05, Arik Kfir <[EMAIL PROTECTED]> wrote:
>
> No, that's ok. The license prohibits you from *redistributing* the
> JAR. As long as its for your own use, you're fine.
>
>
>


Re: Plugins of plugins

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 22:00 -0500, Chris Berry wrote:
> Greetings,
> Is it possible to write a "plugin of plugins"?? I.e. a plugin that is simply
> a composite of other plugins.
> 
> To make this concrete, imagine that you have a common set of plugins that
> are used across many projects -- together forming a common build system. For
> example, in project A you have
> 
>   . plugin X at phase 1
>  . plugin Y at phase 5
>  . plugin Z at phase 7
> 

Do you have a concrete example which may help me understand what you're
trying to do before I respond. Looks like you're trying to provide
solution before we know what you're really trying to do.

-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



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



Struts pom (was Re: For critical project we use maven 1.0.2 or m2 ?)

2005-10-18 Thread Wendy Smoak

Not really.  :)  What do you need?

This (http://www.ibiblio.org/maven2/struts/struts/1.2.7/struts-1.2.7.pom)
looks like a recent project.xml from struts/build/trunk.  Is it causing 
problems?


(I haven't switched any of my Struts webapps over to m2 builds, so you'll 
have to fill me in.)


--
Wendy
...who is working on an m2 build for Shale, not for Struts Classic.  Not 
yet, anyway. :)

http://wiki.wsmoak.net/cgi-bin/wiki.pl?ShaleMaven2

- Original Message - 
From: "Brett Porter" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Tuesday, October 18, 2005 1:06 PM
Subject: Re: For critical project we use maven 1.0.2 or m2 ?


Wendy has been working on an m2 build for Struts - perhaps she has
some more information?

- Brett

On 10/18/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:

Cool. Is there anything yet for Struts? Last time I checked (last week), I
couldn't find a pom for transitive dependencies.



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



RE: [M2 RC] release:prepare release:perform now working

2005-10-18 Thread Jason van Zyl
On Wed, 2005-10-19 at 10:47 +1000, Michael McCrann wrote:
> Hi,
> 
> The release:prepare release:perform plugin/goals are working for me in M2 RC.
> 
> Thanks everyone who gave me help.

You can pay us back by looking this over and correcting anything :-)

http://maven.apache.org/maven2/guides/mini/guide-releasing.html

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

Jason van Zyl
jason at maven.org
http://maven.apache.org

Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.

 -- Eric Hoffer, Reflections on the Human Condition


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



Re: using preGoal and postGoal in m2?

2005-10-18 Thread Brill Pappin
I can't say that I've got all that far with m2 yet, however what they used
to be good at was "fixing" behavior of a plugin that didn't quite do what it
should/could or allow you to set up a set of goals to be run with one
command ... now as a rule I think a plugin that doesn't do what it
could/should should be fixed, but the reality of it is that most developers
don't have the luxury of waiting on the plugin developers or the plugin
developers simply don't think it's important.

Another case was where we had a lot of tests of different types that had to
be run at certain times (for instance, a set of unit tests before
integration, and a set of automated acceptance tests). having the pre/post
goals (not to mentions goals at all) made doing that very simple.

For the moment I'll restrict my comments on the issue until I better
understand how m2 should work. I can understand the stated reasons for not
including that feature in m2 and I have yet to get deep enough into it to
understand how to get the same functionality but I must admit I'm a bit
concerned that one of the most powerful features of m1 is now gone.


Re: [m2] compileSourceRoots

2005-10-18 Thread Jason van Zyl
On Wed, 2005-10-19 at 08:11 +0800, Edwin Punzalan wrote:
> That is not possible... in pom.xml.
> 
> However, plugins that generate sources add their outputDirectory to 
> compileSourceRoots so that the compiler plugin will be able to compile 
> them along with project.build.sourceDirectory.
> 
> You might want to take a look at source generating plugins to see how 
> that works.

http://maven.apache.org/maven2/guides/mini/guide-generating-sources.html

-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



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



Plugins of plugins

2005-10-18 Thread Chris Berry
Greetings,
Is it possible to write a "plugin of plugins"?? I.e. a plugin that is simply
a composite of other plugins.

To make this concrete, imagine that you have a common set of plugins that
are used across many projects -- together forming a common build system. For
example, in project A you have

 . plugin X at phase 1
 . plugin Y at phase 5
 . plugin Z at phase 7


Now I want to re-use this same "build system" in project B.
I understand that I can move this to a parent POM and use inheritance in
both projects A and B -- but this doesn't smell right to me. This is really
a "has-a" relationship, not an "is-a" relationship

What seems to make more sense would be to encapsulate these plugins into a
composite plugin, say plugin XYZ. And declare only that in the 
section.

This would allow one to use the Composite Pattern when assembling a build
system.
Is this possible??
Thanks,
-- Chris


Re: help with projecthelp

2005-10-18 Thread Brian Bonner

Well, I looked at the source, I think this does the trick:

m2 -e projecthelp:describe 
-Dplugin=org.apache.maven.plugins:maven-eclipse-plugin


returns:

Group Id:  org.apache.maven.plugins
Artifact Id: maven-eclipse-plugin
Version: 2.0-beta-2
Goal Prefix: eclipse

Mojos:
---

TODO!
---

TODO!
---

TODO!
---

I'm still not sure why the prior syntax doesn't work.

Brian



Brian Bonner wrote:

I was expecting to see the goals for this eclipse plugin using:

m2 projecthelp:describe -DgroupId=org.apache.maven.plugins 
-DartifactId=maven-eclipse-plugin


It returns:

[ERROR] BUILD ERROR
[INFO] 
-

---
[INFO] You must either specify 'groupId' and 'artifactId', or a valid 
'plugin' p

arameter.
[INFO] 
-

---
[INFO] For more information, run Maven with the -e switch
[INFO] 
-


Can anyone help explain to me what I'm doing wrong?

Thanks.




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



Re: scm:clearcase Help

2005-10-18 Thread dan tran
Raghurajan
 I am interesting in how you use clearcase UCM to for SCM.
 Do you have any non SCM vobs involved?
 -D

 On 10/18/05, dan tran <[EMAIL PROTECTED]> wrote:
>
>  Clearcase support for maven is almost none. What are you trying to do?
>  http://svn.apache.org/repos/asf/maven/scm/trunk contains 2 clearcase
> command.
>  -D
>
>  On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> >
> > Can anyone please provide me some how to connect to UCM clearcase using
> > M2
> >  tag
> >
> > 
> > scm:clearcase:
> > scm:clearcase
> > 
> > 
> > 
> >
> > I'm stuck with this and don't know where to give my user and vob
> > information and how to run update command
> >
> >
> >
> > Thanks,
> > Raghurajan Gurunathan
> >
> >
>


help with projecthelp

2005-10-18 Thread Brian Bonner

I was expecting to see the goals for this eclipse plugin using:

m2 projecthelp:describe -DgroupId=org.apache.maven.plugins 
-DartifactId=maven-eclipse-plugin


It returns:

[ERROR] BUILD ERROR
[INFO] 
-

---
[INFO] You must either specify 'groupId' and 'artifactId', or a valid 
'plugin' p

arameter.
[INFO] 
-

---
[INFO] For more information, run Maven with the -e switch
[INFO] 
-


Can anyone help explain to me what I'm doing wrong?

Thanks.

--
Brian



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



[m102]: sourceModification does not take effect

2005-10-18 Thread rks
Env:

  Maven1.0.2
  Java 5.0
  
Problem:

I have what looks like a well formed sourceModifications
clause but it does not seem to take effect. 

Any help appreciated!


   src/main/java
   

  com.foo.X.Missingclass
  
  
  
com/foo/OffendingClass.java
  

   
 //...



And yet java:compile goal includes OffendingClass.java:


$ maven java:compile
//...
java:compile:
//...
[available] [DEBUG] class "com.foo.X.Missingclass" was not found
[available] [VERBOSE] Unable to load class com.foo.Missingclass to set 
property classPresent
[javac] [DEBUG] fileset: Setup scanner in dir /root/bar/src/main/java with 
patternSet{ includes: [] excludes: [com/foo/OffendingClass.java, 
**/package.html] }
//...
'-source'
'1.5'

[javac] [VERBOSE] Files to be compiled:

/root/bar/src/main/java/com/foo/OffendingClass.java:16: package com.bar.X does 
not exist
import com.bar.X.Missingclass;
   ^
//...

Thanks,

Rk
x77309

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



Re: [m2-b3] running a non-aggregator plugin after local install only

2005-10-18 Thread Brett Porter
That's a good point. We will also investigate that avenue.

Anything in a static var would also be an issue.

- Brett

On 10/18/05, John Fallows <[EMAIL PROTECTED]> wrote:
> On 10/16/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > On 10/16/05, John Fallows <[EMAIL PROTECTED]> wrote:
> > > What do you mean by "reinstalled"?  Is that related to m2 install?
> >
> > Yes, m2 install on a plugin that is already loaded will mean the next
> > time it is used, it will be reloaded (by checking the file timestamp).
> >
> > >
> > > I noticed that there is never any OutOfMemoryError in a local module
> > > project build, even when the top level project reactor build does
> > > throw an OutOfMemoryError.
> > >
> > >
> > > Not that big - only 4 modules, and no additional "sub-modules".  There
> > > are 5 custom plugins too, giving a total of 22 custom goal executions
> > > during the reactor build.
> >
> > That seems unusual - m2 itself has a much bigger build. Is it possible
> > that your unit tests leak memory? Currently they are not forked, so
> > leaky tests will cause problems in a big reactor.
> >
> > I believe Cocoon had similar problems and we are going to look into it
> > in the next couple of weeks, but the tests would be the first thing to
> > check - is it all ok if -Dmaven.test.skip=true is used?
>
> Thanks for the tip, Brett.  Disabling the tests did allow the build to
> succeed, and leaving the tests in place still causes the
> OutOfMemoryError, even on the 2.0-RC.
>
> I would like to better understand how (not) to write a leaky test. :-)
>
> My understanding is that each JUnit test is a separate instance of the
> test class, with independent setup and teardown.  Suppose that some
> Object created during setup is not nulled out in teardown, then that
> would be a leak of private instance state inside the test class
> instance.
>
> I am wondering how this could lead to a real leak unless the test
> execution framework (surefire) is holding onto all the test instances
> even after testing has completed.  If that is the case, wouldn't it
> also be a leak in surefire?
>
> In the meantime, I'll investigate to discover the leaks in our unit tests. :-)
>
> 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: MAVEN in non-java project!

2005-10-18 Thread dan tran
Mark, I there is a native plugin porting in alpha state at mojo
 https://svn.codehaus.org/mojo/trunk/mojo/maven-native/
 I use it at work, perhaps we can join rather than doing it separately.
 -Dan


 On 10/18/05, Donszelmann, Mark <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> we wrote a Native Archive Plugin which handles C, C++ and Fortran and
> Binary compatible
> libraries as dependencies.
>
> Have a look at:
>
> http://java.freehep.org/freehep-nar-plugin/index.html
>
> it is for Maven 1. We are porting it to Maven 2 at the moment.
>
> Regards
> Mark Donszelmann
>
>
> -Original Message-
> From: Paulo Oliveira [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 18, 2005 4:44 PM
> To: users@maven.apache.org
> Subject: MAVEN in non-java project!
>
> Hi all,
>
> A first question: it's possible to use MAVEN in a project with another
> language than not JAVA (in instance, C/C++)???
>
> Sincerely,
>
> Paulo Oliveira
> --
> EmbarQ Systems
>
> -
> 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 RC] release:prepare release:perform now working

2005-10-18 Thread Michael McCrann
Hi,

The release:prepare release:perform plugin/goals are working for me in M2 RC.

Thanks everyone who gave me help.

Michael


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


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



Re: Need an example of calling a batch file from maven please.

2005-10-18 Thread andrew
This is all well documented here
 btw.

Cheers,
...andrew

andrew wrote:
> Hi Mick,
> 
> For m2, in your pom.xml:
> 
>   ...
>   
> 
>   
> maven-antrun-plugin
> 
>   
> do-something
> pick-a-phase-any-phase
> 
>   
>  dir="${basedir}"
>  executable="${basedir}/src/main/sh/do-something.sh"
>  failonerror="true">
>  
>
>
>   
> 
> 
>   run
> 
>   
> 
>   
> 
>   
>   ...
> 
> Cheers,
> ...andrew
> 
> Mick Knutson wrote:
> 
>>I have a batch file with 4 different parameters that I need to call from
>>Maven.
>>Can someone please give me an example of doing this?
>>
>>
>>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: Need an example of calling a batch file from maven please.

2005-10-18 Thread andrew
Hi Mick,

For m2, in your pom.xml:

  ...
  

  
maven-antrun-plugin

  
do-something
pick-a-phase-any-phase

  
   
 
   
   
  


  run

  

  

  
  ...

Cheers,
...andrew

Mick Knutson wrote:
> I have a batch file with 4 different parameters that I need to call from
> Maven.
> Can someone please give me an example of doing this?
> 
> 
> 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] compileSourceRoots

2005-10-18 Thread andrew
Hi Fabrice,

You can access this property from within a plugin via the
org.apache.maven.project.MavenProject addCompileSourceRoot method.

I think the idea behind having compileSourceRoots as read-only is that
source generation should be done from within a plugin. That plugin
should then append any new source root to the project as required,
keeping the plugin self contained and not contaminating your POM.

That said, attached is a very simple example that will let you add a
source root in your POM [1].

Cheers,
...andrew

Listing 1:

package com.yourcompany.maven.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;

/**
 * @author mailto:[EMAIL PROTECTED]">You
 * @version $Id$
 * @goal addCompileSourceRoot
 */
public class CompileSourceRootMojo
  extends AbstractMojo
{
  /**
   * The Maven project.
   *
   * @parameter expression="${project}"
   * @required
   * @readonly
   */
  private MavenProject project;

  /**
   * @parameter
   * @required
   */
  private String compileSourceRoot;

  public void execute()
throws MojoExecutionException
  {
project.addCompileSourceRoot(compileSourceRoot);
  }
}

[EMAIL PROTECTED] wrote:
> 
> 
> 
> Hi guys,
> 
> one of my dev teams uses the multiple source folder functionnality of
> Eclipse (in a single project). That is, they have a project that looks
> like:
> 
> MyProject
>+ src_1
>  + ...java packages and files...
>+ src_2
>  + ...java packages and files...
> 
> I've just seen that there's a "compileSourceRoots" property for the
> compiler plugin, but it is read-only. How is it possible then to put the
> source roots "src_1" and "src_2" in this property?
> 
> Thanks for your help!
> 
> Best Regards / Cordialement,
> Fabrice BELLINGARD
> DINQ/DSIN/INSI/EATE/IDVS/AIDV
> (+33) (01 61) 45 15 91  -  [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] compileSourceRoots

2005-10-18 Thread Edwin Punzalan


That is not possible... in pom.xml.

However, plugins that generate sources add their outputDirectory to 
compileSourceRoots so that the compiler plugin will be able to compile 
them along with project.build.sourceDirectory.


You might want to take a look at source generating plugins to see how 
that works.



[EMAIL PROTECTED] wrote:




Hi guys,

one of my dev teams uses the multiple source folder functionnality of
Eclipse (in a single project). That is, they have a project that looks
like:

MyProject
  + src_1
+ ...java packages and files...
  + src_2
+ ...java packages and files...

I've just seen that there's a "compileSourceRoots" property for the
compiler plugin, but it is read-only. How is it possible then to put the
source roots "src_1" and "src_2" in this property?

Thanks for your help!

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  [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] unable to download plugin SNAPSHOT

2005-10-18 Thread andrew


Brett Porter wrote:
> As you can see from the trace, it is not attempting to use your
> internal repository.

Yes, hence my question.

> You need to add a  element.

I'm a bit confused here.

According to the pom.xml and settings.xml descriptors there is no
 element.

There is a  element that contains  elements.

If I attempt to insert a fully specified  element (ie with
 and  elements) within a  element I receive
 an error reading my settings.xml [1]. m2 appears to simply want a
pointer to a pre-defined repository name. Specifying the plugin
repository in this manner does not, however, appear to work (m2 only
checks central and not my internal repository).

The relevant portion of my settings.xml is appended [2].

Listing 1:

$ m2 clean:clean package
Error reading settings.xml: TEXT must be immediately followed by END_TAG
and not START_TAG (position: START_TAG seen ...\n
... @33:15)
  Line:   33
  Column: 15

Listing 2:

  ...
  

  distra
  

  distra
  local Distra artefacts
  file:///secure/development/bt3/m2/distra


  libraries
  local libraries
  file:///secure/development/bt3/m2/libraries

  
  

distra

  

  
  
distra
  
  ...

Thanks,
...andrew
--

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



JDIC

2005-10-18 Thread Dmitry Beransky

Hi folks, completely lost here.

I'm adding JDIC's Browser component to my application.  Two problems:  1) 
my application is deployed via WebStart (i.e. I'm using the jnlp plugin to 
package it); 2) JDIC requires loading of a dll resource.  How do I write 
this up in Maven 1.x?


Thanks
Dmitry


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



RE: MAVEN in non-java project!

2005-10-18 Thread Donszelmann, Mark
Hi

we wrote a Native Archive Plugin which handles C, C++ and Fortran and Binary 
compatible
libraries as dependencies.

Have a look at:

http://java.freehep.org/freehep-nar-plugin/index.html

it is for Maven 1. We are porting it to Maven 2 at the moment.

Regards
Mark Donszelmann
 

-Original Message-
From: Paulo Oliveira [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 4:44 PM
To: users@maven.apache.org
Subject: MAVEN in non-java project!

Hi all,

A first question: it's possible to use MAVEN in a project with another language 
than not JAVA (in instance, C/C++)???

Sincerely,

Paulo Oliveira
--
EmbarQ Systems

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


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



Re: MAVEN in non-java project!

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 20:43 -0300, Paulo Oliveira wrote:
> Hi all,
> 
> A first question: it's possible to use MAVEN in a project with another 
> language than not JAVA (in instance, C/C++)???

Short answer, yes. Longer answer is that there are some tools that exist
and they will probably be placed into a repository at Apache in the near
future. These specific tools deal with building C code and RPMs.

> Sincerely,
> 
> Paulo Oliveira
> --
> EmbarQ Systems
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.

  -- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)


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



Re: [m2-b3] running a non-aggregator plugin after local install only

2005-10-18 Thread John Fallows
On 10/16/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> On 10/16/05, John Fallows <[EMAIL PROTECTED]> wrote:
> > What do you mean by "reinstalled"?  Is that related to m2 install?
>
> Yes, m2 install on a plugin that is already loaded will mean the next
> time it is used, it will be reloaded (by checking the file timestamp).
>
> >
> > I noticed that there is never any OutOfMemoryError in a local module
> > project build, even when the top level project reactor build does
> > throw an OutOfMemoryError.
> >
> >
> > Not that big - only 4 modules, and no additional "sub-modules".  There
> > are 5 custom plugins too, giving a total of 22 custom goal executions
> > during the reactor build.
>
> That seems unusual - m2 itself has a much bigger build. Is it possible
> that your unit tests leak memory? Currently they are not forked, so
> leaky tests will cause problems in a big reactor.
>
> I believe Cocoon had similar problems and we are going to look into it
> in the next couple of weeks, but the tests would be the first thing to
> check - is it all ok if -Dmaven.test.skip=true is used?

Thanks for the tip, Brett.  Disabling the tests did allow the build to
succeed, and leaving the tests in place still causes the
OutOfMemoryError, even on the 2.0-RC.

I would like to better understand how (not) to write a leaky test. :-)

My understanding is that each JUnit test is a separate instance of the
test class, with independent setup and teardown.  Suppose that some
Object created during setup is not nulled out in teardown, then that
would be a leak of private instance state inside the test class
instance.

I am wondering how this could lead to a real leak unless the test
execution framework (surefire) is holding onto all the test instances
even after testing has completed.  If that is the case, wouldn't it
also be a leak in surefire?

In the meantime, I'll investigate to discover the leaks in our unit tests. :-)

Kind Regards,
John Fallows.

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



MAVEN in non-java project!

2005-10-18 Thread Paulo Oliveira

Hi all,

A first question: it's possible to use MAVEN in a project with another 
language than not JAVA (in instance, C/C++)???


Sincerely,

Paulo Oliveira
--
EmbarQ Systems

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



Re: scm:clearcase Help

2005-10-18 Thread dan tran
Clearcase support for maven is almost none. What are you trying to do?
 http://svn.apache.org/repos/asf/maven/scm/trunk contains 2 clearcase
command.
 -D

 On 10/18/05, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Can anyone please provide me some how to connect to UCM clearcase using M2
>  tag
>
> 
> scm:clearcase:
> scm:clearcase
> 
> 
> 
>
> I'm stuck with this and don't know where to give my user and vob
> information and how to run update command
>
>
>
> Thanks,
> Raghurajan Gurunathan
>
>


Need an example of calling a batch file from maven please.

2005-10-18 Thread Mick Knutson
I have a batch file with 4 different parameters that I need to call from 
Maven.

Can someone please give me an example of doing this?


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]



scm:clearcase Help

2005-10-18 Thread raghurajan . x . gurunathanv
Can anyone please provide me some how to connect to UCM clearcase using M2 
 tag


scm:clearcase:
scm:clearcase




I'm stuck with this and don't know where to give my user and vob 
information and how to run update command



Thanks,
Raghurajan Gurunathan


FW: [jira] Commented: (SCM-61) CVS errors using release:prepare

2005-10-18 Thread Michael McCrann
Emmanuel,

When I upgraded to the M2 RC the release:prepare plugin started working. So, I 
think the issue can be closed.

But in answer to your question, I didn't do anything to define the message.

Michael

-Original Message-
From: Emmanuel Venisse (JIRA) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 October 2005 7:33 PM
To: Michael McCrann
Subject: [jira] Commented: (SCM-61) CVS errors using release:prepare


[ http://jira.codehaus.org/browse/SCM-61?page=comments#action_48770 ] 
Emmanuel Venisse commented on SCM-61:
-

How do you define the message with cvsnt on remove command?

> CVS errors using release:prepare
> 
>
>  Key: SCM-61
>  URL: http://jira.codehaus.org/browse/SCM-61
>  Project: Maven SCM
> Type: Bug
>   Components: maven-scm-provider-cvs
>  Environment: Windows 2000. 
> Concurrent Versions System (CVSNT) 2.0.51d (client/server)
> Reporter: Michael McCrann

>
>
> I am getting the message below when I run release:prepare on my project.
> Provider message:
> The cvs command failed.
> Command output:
> remove: invalid option -- m
> Usage: cvs remove [-flR] [files...]
> -f  Delete the file before removing it.
> -l  Process this directory only (not recursive).
> -R  Process directories recursively.
> (Specify the --help global option for a list of other help options)
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Diagnosis: Cannot remove c:\michaels_projects\transact\release-pom.xml 
> from development HEAD.
> I am using cvsnt: Concurrent Versions System (CVSNT) 2.0.51d (client/server)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



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


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



Re: M2: NoSuchMethodError in ..reporting.MavenReport.canGenerateReport()

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 23:05 +0100, Roy Henderson wrote:
> I'm working through getting started with M2 (thanks for the earlier answer
> Jason).
> 
> I've got down to the m2 site:site section with no problem but trying to
> generate the site gives me:

I've corrected the guide and redeployed the site so that it refers to
the right phase. Now to deploy the site you just use "m2 site" and to
deploy the site you only need to use "m2 site-deploy".

> 
> constituent[22]: file:/C:/Maven/bin/../lib/wagon-ssh-1.0-alpha-4.jar
> ---
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.maven.reporti
> ng.MavenReport.canGenerateReport()Z
> at
> org.apache.maven.plugins.site.SiteMojo.filterReports(SiteMojo.java:40
> 7)
> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:221)
> 

I see that you are using wagon-ssh-1.0-alpha-4 which is the wrong
version. Again I have updated the site and redeployed the site.

> 
> Is this something I have done wrong or a genuine M2 problem?

I would suggest waiting a couple hours and get the final 2.0 release.

> Thanks,
> 
> Roy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

Three people can keep a secret provided two of them are dead.

 -- Unknown


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



Need an example of calling a batch file from maven please.

2005-10-18 Thread Mick Knutson
I have a batch file with 4 different parameters that I need to call from 
Maven.

Can someone please give me an example of doing this?


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: [m2] Another exception when executing war:war

2005-10-18 Thread Michael McCrann
Christian,

Does your web.xml exist at: 
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml.

You can tell the plugin where to find your web.xml by adding the snippet below 
to your pom.xml:



  
maven-war-plugin
2.0-beta-1

   web/web.xml

  





-Original Message-
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 October 2005 6:01 PM
To: Maven Users List
Subject: [m2] Another exception when executing war:war


Hi folks,

OK, I switched to m2 RC and it looks like I get one step further. But now
another issue is rising up:

[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Assembling webapp MyWebApp in
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Generating war D:\eclipse\workspace\MyProject\target\MyWebApp.war
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling WAR

Embedded error: Deployment descriptor:
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml does not
exist.
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
assembling WAR
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:91)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment
descriptor: D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml
does not exist.
at
org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:73)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:121)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86)

I have the web.xml file in my project folder under \WebRoot\WEB-INF. It
seems like its not beeing copied to the target dir.

How can I resolve this?

Thanks & Regards,

Chris

> Brett Porter had this to say about the error
>
> "There was a required update to the reporting API. Compatible plugins
> will be republished in the near future. If you are able to rebuild the
> plugin from SVN that should work as is."
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David H.
> DeWolf
> Sent: Monday, October 17, 2005 8:19 AM
> To: Maven Users List
> Subject: Re: [m2] NoSuchMethodError exception when executing site:site
>
> Zheng,
>
> I got the same thing over the weekend and found that Maven was
> downloading the most recent plugins but I didn't have the most recent
> dist to go with them. To get things working (at least partway), I
> cleared out my maven plugings from the repo and installed M2 RC.
>
> This got me further, but I still had an issue. . .if I remember, it had
> something to do with trying to generate a site from a project without
> any source. If I create a main/java dir or generate the site from a
> project which contains source, it execs fine.
>
> David
>
>
> On 10/17/05, Zhong ZHENG 

M2: NoSuchMethodError in ..reporting.MavenReport.canGenerateReport()

2005-10-18 Thread Roy Henderson
I'm working through getting started with M2 (thanks for the earlier answer
Jason).

I've got down to the m2 site:site section with no problem but trying to
generate the site gives me:


constituent[22]: file:/C:/Maven/bin/../lib/wagon-ssh-1.0-alpha-4.jar
---
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.maven.reporti
ng.MavenReport.canGenerateReport()Z
at
org.apache.maven.plugins.site.SiteMojo.filterReports(SiteMojo.java:40
7)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:221)



Is this something I have done wrong or a genuine M2 problem?

Thanks,

Roy


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



Re: How to do EJB Compile

2005-10-18 Thread mika

Hi,

in that case what about compiling ejb and creating stub and skeleton for 
them??




I don't exactly understand what you mean with "compiling ejb". EJB's are 
just classes like other java classes, if you've got them in the source 
folder, maven will compile them... regarding "stub and skeleton", are 
you refering to EJB interfaces, homes, etc? Yes, then you're maybe 
looking for xdoclet which generates all the EJB interfaces, value 
objects, util-classes and deployment descriptors... maybe there's a 
working xdoclet plugin for m2 already, otherwise an ant-script will do 
it as well (if you can live with sources generated into /java/main/src)...


Regards,
mika

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



converting m1 style repos to m2

2005-10-18 Thread Jorg Heymans
Hi,

Over at cocoon, we use the apache repository [1] for a lot of our libs
during the m2 build process. This is an m1 type repository, meaning that
we get a lot of these during a build/package/whatever execution :

[WARNING] POM for:
'excalibur-sourceresolve:excalibur-sourceresolve:pom:2.1' does not
appear to be valid. Its will be ignored for artifact resolution.

Reason: Invalid POM (not v4.0.0 modelVersion)

Is there any way to switch off this warning? They clutter the output
window, making it difficult for a novice to find out what is really
going on/wrong.

Related to this:
1) do we benefit from transitive dependencies if m1 poms are used in m2?
I guess not, just wanted to be sure
2) what is involved in converting an m1 repo to the m2 layout? Is this a
manual process or do you guys have some scripts available to assist in
this?


Regards
Jorg Heymans

[1] http://www.apache.org/dist/java-repository/


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



[m2] Empty dependency list in antlib

2005-10-18 Thread spa6
I created a generic (for me) build script lib in ant that has the following:






But if none are found for runtime I get the following -

C:\development\common.xml:24: No files specified for filelist.
at org.apache.tools.ant.types.FileList.getFiles(FileList.java:132)
at org.apache.tools.ant.types.Path.list(Path.java:339)
at org.apache.tools.ant.types.Path.list(Path.java:325)
at org.apache.tools.ant.types.Path.list(Path.java:325)
at org.apache.tools.ant.types.Path.addExisting(Path.java:258)
at org.apache.tools.ant.types.Path.addExisting(Path.java:247)
at
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:564)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.getCom
pileClasspath(DefaultCompilerAdapter.java:141)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupJ
avacCommandlineSwitches(DefaultCompilerAdapter.java:163)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupM
odernJavacCommandlineSwitches(DefaultCompilerAdapter.java:296)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.setupM
odernJavacCommand(DefaultCompilerAdapter.java:341)
at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


Is this illegal/wrong?  How would I make my dependencies generic enough so
that I can pick them up if they exist, like I can do in ant?  Something
ala -















-s




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



Re: using configuration in plugin

2005-10-18 Thread Xavier Toth
Thanks

On 10/19/05, Jason van Zyl <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2005-10-18 at 15:58 -0500, Xavier Toth wrote:
> > in [m2] that is
>
> http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-configuring-
> plugins.html
>
> http://people.apache.org/~jvanzyl/maven2/guides/plugin/guide-java-
> plugin-development.html
>
> > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > >
> > > In plugin code how do you access the configuration specified in the
> pom?
> > >
> --
> jvz.
>
> Jason van Zyl
> jason at maven.org 
> http://maven.apache.org
>
> A party which is not afraid of letting culture,
> business, and welfare go to ruin completely can
> be omnipotent for a while.
>
> -- Jakob Burckhardt
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] Dependency Scope Resolution

2005-10-18 Thread Brett Porter
confirmed - will be fixed in 2.0

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

On 10/18/05, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> I have the portlet-api defined as provided scope in a parent POM in
> dependencyManagement.  As expected, the following message occurs
> indicating that 'provided' is the scope that will be used:
>
> [WARNING]
> Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
> 'provided' overriding broader scope 'compile'
> given by a dependency. If this is not intended, modify or
> remove the local scope.
>
> When I run with -X, the following section of output indicates that it
> WAS selected for compile, but then overriden:
>
> [DEBUG]   mil.jfcom.cie.portal:cdcie-portletframework:jar:1.2.1
> (selected for compile)
> [DEBUG] javax.portlet:portlet-api:jar:1.0 (selected for compile)
> [DEBUG] springframework:spring-beans:jar:1.2.5 (selected for compile)
> [DEBUG]   springframework:spring-core:jar:1.2.5 (selected for compile)
> [DEBUG] commons-collections:commons-collections:jar:3.1
> (removed - nearer found: 2.1)
> [DEBUG] commons-collections:commons-collections:jar:3.1
> (selected for compile)
> [DEBUG] commons-logging:commons-logging:jar:1.0.4 (selected for 
> compile)
> [DEBUG] springframework:spring-core:jar:1.2.5 (selected for compile)
> [DEBUG]   commons-collections:commons-collections:jar:2.1 (removed
> - nearer found: 3.1)
> [DEBUG]   commons-collections:commons-collections:jar:3.1
> (selected for compile)
> [DEBUG]   commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> [DEBUG] commons-lang:commons-lang:jar:2.1 (selected for compile)
> [DEBUG] springframework:spring-context:jar:1.2.5 (selected for compile)
> [DEBUG] commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> [DEBUG]   javax.portlet:portlet-api:jar:1.0 (not setting scope to:
> compile; local scope provided wins)
> [WARNING]
> Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
> 'provided' overriding broader scope 'compile'
> given by a dependency. If this is not intended, modify or
> remove the local scope.
>
>
> However, it's ending up in my WAR.  Seems like it's a WAR plugin problem, 
> maybe?
>
> --
> 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: *** Spam *** Re: Outstanding questions (Documentation)

2005-10-18 Thread Brian Bonner

Thanks.  The plugin-expressions are very helpful.

Can you point me in the general direction for the reactor in svn?  I 
only found the ReactorManager here:

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/?rev=326250

I looked through your docs.  for some reason it was colored like I had 
already visited it.  I must have clicked on it by accident.


Thanks again.

Brian



Jason van Zyl wrote:

On Tue, 2005-10-18 at 16:02 -0400, Brian Bonner wrote:
  

I'm looking for documentation about:

1.  Reactor (I'd like to understand more about the inner workings of Maven)



Sure, that level of documentation is coming but for the release the
general user base was the priority.
  
Can you point to me the reactor in svn?  I only found the ReactorManager 
here:

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/?rev=326250
  
2.  Tags available when making a plugin, what properties are available 
to me.



http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
core/src/main/resources/META-INF/maven/plugin-expressions/

This is what we use internally and we will eventually generate doco for
it. But you can see what you can use in plug-ins. The rootless and
settings files in particular.

  
3.  Are the packaging elements a finite set?  pom, war, ejb, ear, jar  
Or are there others?  Are they described anywhere?  The gist seems to me 
that they are the deliverable of a project.



They are not finite, they are pluggable but we ship with a default set.

But you're right some more documentation here would be good. Noted.

  
4.  Profiles  (what they're used for, how they might help me)  I think I 
got enough from:  http://docs.codehaus.org/display/MAVEN/Build+Profiles  
Please let me know if this was the correct place :)



http://people.apache.org/~jvanzyl/maven2/guides/introduction/introduction-to-profiles.html

  



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



Re: Struts tld dependancy

2005-10-18 Thread Wendy Smoak

From: "Brian E. Fox" <[EMAIL PROTECTED]>


We noticed that the struts tld files are on ibiblio:
http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/ 
Is there a way to download these like a normal dependancy? I initially

thought setting the depend type to tld but the docs say only jar,ejb and
plugin are recognized.


Unless you're on Servlet 2.2, you don't need them.  Just use the URI:
  <%@ taglib uri="http://struts.apache.org/tags-html prefix="html" %>
and the tld that's inside struts.jar will be used automatically.

--
Wendy Smoak
... on a mission to get  tags out of web.xml files.


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



Re: using configuration in plugin

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 15:58 -0500, Xavier Toth wrote:
> in [m2] that is

http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-configuring-
plugins.html

http://people.apache.org/~jvanzyl/maven2/guides/plugin/guide-java-
plugin-development.html

> On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> >
> > In plugin code how do you access the configuration specified in the pom?
> >
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt


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



Re: Getting started with M2

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 22:08 +0100, Roy Henderson wrote:
> I'm trying to take a quick-trip through Maven to see if it would help me
> with an application I am developing.
> 
> I have downloaded and installed M2. I've now ground to a total halt trying
> to run the genapp plugin as recommended by the 10-minute tour.

The genapp plug-in in for m1. Try this instead:

http://people.apache.org/~jvanzyl/maven2/guides/getting-
started/index.html

And generally

http://people.apache.org/~jvanzyl/maven2/guides/index.html

> I've downloaded the plugin - but can't find any instructions regarding how
> to install either this or any plugin.
> 
> Can someone point me towards instructions for installing plugins for M2?
> 
> Thanks,
> 
> Roy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org



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



Re: Outstanding questions (Documentation)

2005-10-18 Thread Jason van Zyl
On Tue, 2005-10-18 at 16:02 -0400, Brian Bonner wrote:
> I'm looking for documentation about:
> 
> 1.  Reactor (I'd like to understand more about the inner workings of Maven)

Sure, that level of documentation is coming but for the release the
general user base was the priority.

> 2.  Tags available when making a plugin, what properties are available 
> to me.

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
core/src/main/resources/META-INF/maven/plugin-expressions/

This is what we use internally and we will eventually generate doco for
it. But you can see what you can use in plug-ins. The rootless and
settings files in particular.

> 3.  Are the packaging elements a finite set?  pom, war, ejb, ear, jar  
> Or are there others?  Are they described anywhere?  The gist seems to me 
> that they are the deliverable of a project.

They are not finite, they are pluggable but we ship with a default set.

But you're right some more documentation here would be good. Noted.

> 4.  Profiles  (what they're used for, how they might help me)  I think I 
> got enough from:  http://docs.codehaus.org/display/MAVEN/Build+Profiles  
> Please let me know if this was the correct place :)

http://people.apache.org/~jvanzyl/maven2/guides/introduction/introduction-to-profiles.html

-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

 -- Buddha


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



Getting started with M2

2005-10-18 Thread Roy Henderson
I'm trying to take a quick-trip through Maven to see if it would help me
with an application I am developing.

I have downloaded and installed M2. I've now ground to a total halt trying
to run the genapp plugin as recommended by the 10-minute tour.

I've downloaded the plugin - but can't find any instructions regarding how
to install either this or any plugin.

Can someone point me towards instructions for installing plugins for M2?

Thanks,

Roy


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



RE: Struts tld dependancy

2005-10-18 Thread Brian E. Fox
We removed the property section and it worked perfectly. The war even
has a tld folder that contains the tld files.magic! 

-Original Message-
From: Grant Ingersoll [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 4:51 PM
To: Maven Users List
Subject: Re: Struts tld dependancy

I am using M1.  Don't know about M2, but I would guess it isn't.  At any
rate, that property is used by the WAR goal and is not needed for the
TLD linking.  Then again, I don't know if M2 handles TLD dependencies.

Sorry.

Brian E. Fox wrote:

>Is the properties tag a maven 1 setting? M2 doesn't like it.
>
>Any one else notice a bunch of the quick links disappeared from the 
>maven page? I hope they come back soon.
>
>-Original Message-
>From: Grant Ingersoll [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 18, 2005 4:05 PM
>To: Maven Users List
>Subject: Re: Struts tld dependancy
>
>I use:
>
>struts
>struts-bean
>1.2.7
>
>true
>
>tld
>
>and the like w/o any problems.  Maven will download and use.  I don't 
>think the documentation is up to date for the types.
>
>Brian E. Fox wrote:
>
>  
>
>>Hello,
>>We noticed that the struts tld files are on ibiblio:
>>http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/
>>Is there a way to download these like a normal dependancy? I initially

>>thought setting the depend type to tld but the docs say only jar,ejb 
>>and plugin are recognized.
>>
>>TIA,
>>Brian
>>
>> 
>>
>>
>>
>
>-
>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: using configuration in plugin

2005-10-18 Thread Xavier Toth
in [m2] that is

On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
>
> In plugin code how do you access the configuration specified in the pom?
>


using configuration in plugin

2005-10-18 Thread Xavier Toth
In plugin code how do you access the configuration specified in the pom?


Re: How to do EJB Compile

2005-10-18 Thread raghurajan . x . gurunathanv
Thanks for that

but my understanding on "package" life cycle its just compiles the java 
codes and package them as a jar right?

in that case what about compiling ejb and creating stub and skeleton for 
them??


Please advice


Thanks,
Raghurajan Gurunathan


Re: Struts tld dependancy

2005-10-18 Thread Grant Ingersoll
I am using M1.  Don't know about M2, but I would guess it isn't.  At any 
rate, that property is used by the WAR goal and is not needed for the 
TLD linking.  Then again, I don't know if M2 handles TLD dependencies.


Sorry.

Brian E. Fox wrote:


Is the properties tag a maven 1 setting? M2 doesn't like it.

Any one else notice a bunch of the quick links disappeared from the
maven page? I hope they come back soon.

-Original Message-
From: Grant Ingersoll [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 4:05 PM

To: Maven Users List
Subject: Re: Struts tld dependancy

I use:

   struts
   struts-bean
   1.2.7
   
   true
   
   tld
   
and the like w/o any problems.  Maven will download and use.  I don't
think the documentation is up to date for the types.

Brian E. Fox wrote:

 


Hello,
We noticed that the struts tld files are on ibiblio:
http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/
Is there a way to download these like a normal dependancy? I initially 
thought setting the depend type to tld but the docs say only jar,ejb 
and plugin are recognized.


TIA,
Brian



   



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



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

 



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



Re: How to do EJB Compile

2005-10-18 Thread Emmanuel Venisse


[EMAIL PROTECTED] a écrit :

Hi All,

In my project i have ejbs to compile but if use "m2 compile" life cycle it 
just compiles and i don't think its doing ejbgen what do i need to do for 
that?


run "m2 package"



and also can any one please tell me how to use scm tag with clear case


scm:clearcase:



would appreciate if you could provide me with some sample codes





Thanks,
Raghurajan Gurunathan




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



RE: Struts tld dependancy

2005-10-18 Thread Brian E. Fox
Is the properties tag a maven 1 setting? M2 doesn't like it.

Any one else notice a bunch of the quick links disappeared from the
maven page? I hope they come back soon.

-Original Message-
From: Grant Ingersoll [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 4:05 PM
To: Maven Users List
Subject: Re: Struts tld dependancy

I use:

struts
struts-bean
1.2.7

true

tld

and the like w/o any problems.  Maven will download and use.  I don't
think the documentation is up to date for the types.

Brian E. Fox wrote:

>Hello,
>We noticed that the struts tld files are on ibiblio:
>http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/
>Is there a way to download these like a normal dependancy? I initially 
>thought setting the depend type to tld but the docs say only jar,ejb 
>and plugin are recognized.
> 
>TIA,
>Brian
>
>  
>

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



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



How to do EJB Compile

2005-10-18 Thread raghurajan . x . gurunathanv
Hi All,

In my project i have ejbs to compile but if use "m2 compile" life cycle it 
just compiles and i don't think its doing ejbgen what do i need to do for 
that?

and also can any one please tell me how to use scm tag with clear case

would appreciate if you could provide me with some sample codes





Thanks,
Raghurajan Gurunathan


Re: Struts tld dependancy

2005-10-18 Thread Grant Ingersoll

I use:

   struts
   struts-bean
   1.2.7
   
   true
   
   tld
   
and the like w/o any problems.  Maven will download and use.  I don't 
think the documentation is up to date for the types.


Brian E. Fox wrote:


Hello,
We noticed that the struts tld files are on ibiblio:
http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/ 
Is there a way to download these like a normal dependancy? I initially

thought setting the depend type to tld but the docs say only jar,ejb and
plugin are recognized.

TIA,
Brian

 



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



Re: For critical project we use maven 1.0.2 or m2 ?

2005-10-18 Thread Brett Porter
Wendy has been working on an m2 build for Struts - perhaps she has
some more information?

- Brett

On 10/18/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:
> Cool. Is there anything yet for Struts? Last time I checked (last week), I
> couldn't find a pom for transitive dependencies.
>
> Cheers,
> Thomas
>
> On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> >
> > We are working on this this week, based on correcting the most
> > requested artifacts from the Maven repository.
> >
> > On 10/18/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:
> > > Even thuogh the core development for M2 is close to being completed, I
> > would
> > > be worried about the transitive dependencies not being correctly defined
> > in
> > > the various pom's. cfr. Hibernate.
> > >
> > > On 10/18/05, David Sag <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > That page is somewhat misleading. For example it claims there is a
> > QALab
> > > > plugin in development, but, aside from the one I am writing, that does
> > not
> > > > seem to be the case.
> > > >
> > > > Kind regards,
> > > > Dave Sag
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Stephen Duncan <[EMAIL PROTECTED]> wrote on 18/10/2005 12:41:47
> > PM:
> > > >
> > > > > http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
> > > > >
> > > > > -Stephen
> > > > >
> > > > > On 10/18/05, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> > > > > > i will start a new critical project in one month. so i undrestand
> > > > > that the released version will be come soon; what about plugin-s.
> > > > > with maven 1.0.2 i found all what i need; for example the plugin
> > > > > eclipse, jcover 
> > > > > >
> > > > > >
> > > > > >
> > > > > > -Message d'origine-
> > > > > > De : Wendy Smoak [mailto:[EMAIL PROTECTED]
> > > > > > Envoyé : lundi 17 octobre 2005 16:35
> > > > > > À : Maven Users List
> > > > > > Objet : Re: For critical project we use maven 1.0.2 or m2 ?
> > > > > >
> > > > > >
> > > > > > From: "Marouane Amraoui" <[EMAIL PROTECTED]>
> > > > > >
> > > > > > > i m working on a critical j2ee project, i want an advise from
> > you
> > > > > > > if i use a released
> > > > > > > version maven 1.0.2 or beta version of maven 2.0 (m2)
> > > > > >
> > > > > > I would not start any new projects in Maven 1. What's your
> > timeline?
> > > > Brett
> > > > > > posted a Maven 2 release candidate (not a beta) on the 15th. So...
> > if
> > > > all
> > > > > > you want is the "final" label on it, I would think that's coming
> > soon.
> > > > > >
> > > > > > --
> > > > > > Wendy Smoak
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > -
> > > > > > 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  <
> > http://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]



Outstanding questions (Documentation)

2005-10-18 Thread Brian Bonner

I'm looking for documentation about:

1.  Reactor (I'd like to understand more about the inner workings of Maven)
2.  Tags available when making a plugin, what properties are available 
to me.
3.  Are the packaging elements a finite set?  pom, war, ejb, ear, jar  
Or are there others?  Are they described anywhere?  The gist seems to me 
that they are the deliverable of a project.
4.  Profiles  (what they're used for, how they might help me)  I think I 
got enough from:  http://docs.codehaus.org/display/MAVEN/Build+Profiles  
Please let me know if this was the correct place :)


--
Brian



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



Re: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve plugin dependencies

2005-10-18 Thread cheethus
Nope. I use m2 beta 3. This is the error that i get when i run m2 -X
install. Also, as i said, it used to work for me without changing any proxy
settings.

[DEBUG] 
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.0(selected
for runtime)
[DEBUG] commons-io:commons-io:jar:1.0 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null)
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0(selected
for runtime)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Diagnosis: Error configuring:
org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
plugin dependencies
[INFO]

[DEBUG] Trace:

org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for
execution of 'compiler:compile'.
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:508)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:494)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:307)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error
configuring: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot
resolve plugin dependencies
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:641)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:532)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:385)
... 16 more
Caused by:
org.apache.maven.artifact.resolver.TransitiveArtifactResolutionException:
Unable to read the metadata file
org.codehaus.plexus:plexus-compiler-api:1.5.1:jar

from the specified remote repositories:
snapshots (http://snapshots.maven.codehaus.org/maven2),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0


at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:270)
at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(
DefaultArtifactCollector.java:69)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:225)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:213)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:184)
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:606)
... 18 more
Caused by:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
Unable to read the metadata file
at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(
MavenMetadataSource.java:121)
at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:255)
... 23 more
Caused by: org.apache.maven.project.ProjectBuildingException: Failed to
build model from file '/opt/java/maven-2.0-beta-3
/repo/org/codehaus/plexus/plexus-compiler-api/1.5.1/plexus-
compiler-api-1.5.1.pom'.
Error: 'null'
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
DefaultMavenProjectBuilder.java:944)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:351)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
DefaultMavenProjectBuilder.java:315)
at org.apache.mav

Struts tld dependancy

2005-10-18 Thread Brian E. Fox
Hello,
We noticed that the struts tld files are on ibiblio:
http://www.ibiblio.org/pub/packages/maven2/struts/struts-bean/1.1/ 
Is there a way to download these like a normal dependancy? I initially
thought setting the depend type to tld but the docs say only jar,ejb and
plugin are recognized.
 
TIA,
Brian


Re: [m2]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Xavier Toth
Oops I was looking in maven not maven2 :(

On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
>
> http://www.ibiblio.org/maven2/org/apache/maven/maven-plugin-api/2.0/
>
> On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > I've look all over that repository and I don't see it.
> >
> > On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > >
> > > in the default one.
> > >
> > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > What repository is it in?
> > > >
> > > > On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Yep, its a bug, please update the version to '2.0'. The class is
> in
> > > > > plugin-api.
> > > > >
> > > > > - Brett
> > > > >
> > > > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > > > ok, instead I'll ask where do I find
> > > > > > org.apache.maven.plugin.AbstractMojo.class??
> > > > > >
> > > > > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > I tried creating a plugin project with the
> maven-archetype-mojo
> > > but it
> > > > > > > generated a dependency on maven-plugin-api that can't be
> resolved.
> > > Is
> > > > > this a
> > > > > > > 'good' archtype? Does anyone know how to fix the dependency?
> > > > > > >
> > > > > > >
> > > > > > > [INFO] Failed to resolve artifact.
> > > > > > >
> > > > > > > GroupId: org.apache.maven
> > > > > > > ArtifactId: maven-plugin-api
> > > > > > > Version: 2.0-beta-1-SNAPSHOT
> > > > > > >
> > > > > > > Reason: Unable to download the artifact from any repository
> > > > > > > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> > > > > > >
> > > > > > > from the specified remote repositories:
> > > > > > > central (http://www.ibiblio.org/maven2)
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> -
> > > > > 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: For critical project we use maven 1.0.2 or m2 ?

2005-10-18 Thread Thomas Van de Velde
Cool. Is there anything yet for Struts? Last time I checked (last week), I
couldn't find a pom for transitive dependencies.

Cheers,
Thomas

On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
>
> We are working on this this week, based on correcting the most
> requested artifacts from the Maven repository.
>
> On 10/18/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:
> > Even thuogh the core development for M2 is close to being completed, I
> would
> > be worried about the transitive dependencies not being correctly defined
> in
> > the various pom's. cfr. Hibernate.
> >
> > On 10/18/05, David Sag <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > That page is somewhat misleading. For example it claims there is a
> QALab
> > > plugin in development, but, aside from the one I am writing, that does
> not
> > > seem to be the case.
> > >
> > > Kind regards,
> > > Dave Sag
> > >
> > >
> > >
> > >
> > >
> > >
> > > Stephen Duncan <[EMAIL PROTECTED]> wrote on 18/10/2005 12:41:47
> PM:
> > >
> > > > http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
> > > >
> > > > -Stephen
> > > >
> > > > On 10/18/05, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> > > > > i will start a new critical project in one month. so i undrestand
> > > > that the released version will be come soon; what about plugin-s.
> > > > with maven 1.0.2 i found all what i need; for example the plugin
> > > > eclipse, jcover 
> > > > >
> > > > >
> > > > >
> > > > > -Message d'origine-
> > > > > De : Wendy Smoak [mailto:[EMAIL PROTECTED]
> > > > > Envoyé : lundi 17 octobre 2005 16:35
> > > > > À : Maven Users List
> > > > > Objet : Re: For critical project we use maven 1.0.2 or m2 ?
> > > > >
> > > > >
> > > > > From: "Marouane Amraoui" <[EMAIL PROTECTED]>
> > > > >
> > > > > > i m working on a critical j2ee project, i want an advise from
> you
> > > > > > if i use a released
> > > > > > version maven 1.0.2 or beta version of maven 2.0 (m2)
> > > > >
> > > > > I would not start any new projects in Maven 1. What's your
> timeline?
> > > Brett
> > > > > posted a Maven 2 release candidate (not a beta) on the 15th. So...
> if
> > > all
> > > > > you want is the "final" label on it, I would think that's coming
> soon.
> > > > >
> > > > > --
> > > > > Wendy Smoak
> > > > >
> > > > >
> > > > >
> > > > >
> -
> > > > > 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  <
> http://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]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Brett Porter
http://www.ibiblio.org/maven2/org/apache/maven/maven-plugin-api/2.0/

On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> I've look all over that repository and I don't see it.
>
> On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> >
> > in the default one.
> >
> > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > What repository is it in?
> > >
> > > On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yep, its a bug, please update the version to '2.0'. The class is in
> > > > plugin-api.
> > > >
> > > > - Brett
> > > >
> > > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > > ok, instead I'll ask where do I find
> > > > > org.apache.maven.plugin.AbstractMojo.class??
> > > > >
> > > > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I tried creating a plugin project with the maven-archetype-mojo
> > but it
> > > > > > generated a dependency on maven-plugin-api that can't be resolved.
> > Is
> > > > this a
> > > > > > 'good' archtype? Does anyone know how to fix the dependency?
> > > > > >
> > > > > >
> > > > > > [INFO] Failed to resolve artifact.
> > > > > >
> > > > > > GroupId: org.apache.maven
> > > > > > ArtifactId: maven-plugin-api
> > > > > > Version: 2.0-beta-1-SNAPSHOT
> > > > > >
> > > > > > Reason: Unable to download the artifact from any repository
> > > > > > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> > > > > >
> > > > > > from the specified remote repositories:
> > > > > > central (http://www.ibiblio.org/maven2)
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > > -
> > > > 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.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve plugin dependencies

2005-10-18 Thread Brett Porter
Are you using Maven 2.0 RC? The error should provide more information.
At a guess, I'd say proxy settings.

- Brett

On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Getting the below error when I run m2 install on the example project (my-app
> in the maven site). Used to work for me but has anything changed yet. I used
>
>
> m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
> to create this app.
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Diagnosis: Error configuring:
> org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
> plugin dependencies
> [INFO]
> 
> [INFO]
> 
> [ERROR] BUILD ERROR
>
> -Kris
>
>

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



Re: [m2]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Xavier Toth
I've look all over that repository and I don't see it.

On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
>
> in the default one.
>
> On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > What repository is it in?
> >
> > On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > >
> > > Yep, its a bug, please update the version to '2.0'. The class is in
> > > plugin-api.
> > >
> > > - Brett
> > >
> > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > ok, instead I'll ask where do I find
> > > > org.apache.maven.plugin.AbstractMojo.class??
> > > >
> > > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I tried creating a plugin project with the maven-archetype-mojo
> but it
> > > > > generated a dependency on maven-plugin-api that can't be resolved.
> Is
> > > this a
> > > > > 'good' archtype? Does anyone know how to fix the dependency?
> > > > >
> > > > >
> > > > > [INFO] Failed to resolve artifact.
> > > > >
> > > > > GroupId: org.apache.maven
> > > > > ArtifactId: maven-plugin-api
> > > > > Version: 2.0-beta-1-SNAPSHOT
> > > > >
> > > > > Reason: Unable to download the artifact from any repository
> > > > > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> > > > >
> > > > > from the specified remote repositories:
> > > > > central (http://www.ibiblio.org/maven2)
> > > > >
> > > > >
> > > >
> > > >
> > >
> > > -
> > > 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.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve plugin dependencies

2005-10-18 Thread cheethus
Getting the below error when I run m2 install on the example project (my-app
in the maven site). Used to work for me but has anything changed yet. I used


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

to create this app.

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Diagnosis: Error configuring:
org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
plugin dependencies
[INFO]

[INFO]

[ERROR] BUILD ERROR

-Kris


Re: [m2] Can't get hello world plugin to work

2005-10-18 Thread Brett Porter
Kevin,

Oh, I hadn't read your earlier messages. Marmalade support was removed
from Maven 2.0. It is now part of the marmalade project and will be
released when it is mature enough.

- Brett

On 10/18/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi Brett,
>
> I assume that the goal is declared in the Marmalade script:
>
> 
>   
> hello
> Say Hello to the World.
>   
>   
> Hello, World
>   
> 
>
> This comes from the example at
> http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
> html
>
> In any case I have given up on Marmalade since it will not be officially
> supported.
>
> /Kevin
>
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2005 04:52
> To: Maven Users List
> Subject: Re: [m2] Can't get hello world plugin to work
>
> Did you declare a @goal ?
>
> - Brett
>
> On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> > Hi again,
> >
> > I updated to Maven 2.0 RC and reran the demo, with the same result (see
> > below)
> >
> > What is the problem? Why can't it find my plugin? Why is it throwing an
> > exception? Please help.
> >
> > Much appreciated,
> > Kevin
> >
> >
> >
> > maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> > [INFO] Scanning for projects...
> > [INFO]
> >
> 
> > [INFO] Building Maven Hello World Plugin
> > [INFO]task-segment: [install]
> > [INFO]
> >
> 
> > [INFO] [plugin:descriptor]
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:compile]
> > [INFO] No sources to compile
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > [INFO] No sources to compile
> > [INFO] [surefire:test]
> > [INFO] Setting reports dir:
> > /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
> >
> > ---
> >  T E S T S
> > ---
> > There are no test to run.
> >
> > Results :
> > [surefire] Tests run: 0, Failures: 0, Errors: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar
> > [INFO] [plugin:addPluginArtifactMetadata]
> > [INFO] [install:install]
> > [INFO] Installing
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar to /home/kevin/.m2/rep
> >
> ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> > -plugin-1.0-SNAPSHOT.jar
> > [INFO] [plugin:updateRegistry]
> > [INFO]
> >
> 
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> >
> 
> > [INFO] Total time: 9 seconds
> > [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> > [INFO] Final Memory: 3M/8M
> > [INFO]
> >
> 
> >
> > maven-hello-plugin> m2 hello:hello
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'hello'.
> > [INFO]
> >
> 
> > [ERROR] FATAL ERROR
> > [INFO]
> >
> 
> > [INFO] null
> > [INFO]
> >
> 
> > [INFO] Trace
> > java.lang.NullPointerException
> > at
> >
> org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> > .java:261)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> > tLifecycleExecutor.java:1363)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> > tionNeeds(DefaultLifecycleExecutor.
> > java:376)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> > Executor.java:132)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> > 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
> > or

Re: [m2] unable to download plugin SNAPSHOT

2005-10-18 Thread Brett Porter
As you can see from the trace, it is not attempting to use your
internal repository. You need to add a  element.

 -Brett

On 10/18/05, andrew <[EMAIL PROTECTED]> wrote:
> maven-2.0-RC
>
> Hi,
>
> I've created a m2 plugin and deployed it as a SNAPSHOT to an internal
> (distinct from my local) repository.
>
> When building projects that use this plugin, the plugin resolves and
> works as expected when it is already in my local repository.
>
> If I clean out my local repository (the plugin is now deployed only to
> my internal repository) projects that use this plugin can resolve the
> correct SNAPSHOT POM but cannot resolve the plugin jar itself [1].
>
> I'm unsure of the correct settings for and/or interactions between the
> - 
> - , and
> - 
> configuration directives. My current effort [2] appears to allow the
> deployment of a plugin SNAPSHOT to the internal repository but not
> building from it.
>
> Any ideas most appreciated.
>
> Thanks,
> ...andrew
>
> Listing 1:
>
> $ m2 -X -Dmaven.test.skip clean:clean deploy
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from:
> '/home/amm/.m2/plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> '/opt/maven/conf/plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'clean'.
> [DEBUG] maven-clean-plugin: resolved to version 2.0 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-clean-plugin:maven-plugin:2.0
> [INFO]
> 
> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [clean:clean, deploy]
> [INFO]
> 
> [DEBUG] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.0
> (selected for runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-clean-plugin:2.0:clean' -->
> [DEBUG]   (f) directory = /secure/home/amm/prj/bt3/distra/test/target
> [DEBUG]   (f) outputDirectory =
> /secure/home/amm/prj/bt3/distra/test/target/classes
> [DEBUG]   (f) testOutputDirectory =
> /secure/home/amm/prj/bt3/distra/test/target/test-classes
> [DEBUG] -- end configuration --
> [INFO] [clean:clean]
> [DEBUG] maven-resources-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-resources-plugin:maven-plugin:2.0
> [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-compiler-plugin:maven-plugin:2.0
> [DEBUG] maven-surefire-plugin: resolved to version 2.0-beta-1 from
> repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-surefire-plugin:maven-plugin:2.0-beta-1
> [DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-jar-plugin:maven-plugin:2.0
> [DEBUG] maven-install-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-install-plugin:maven-plugin:2.0
> [DEBUG] maven-deploy-plugin: resolved to version 2.0 from repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-deploy-plugin:maven-plugin:2.0
> [DEBUG] Skipping disabled repository central
> [INFO] snapshot
> com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:
> checking for updates from distra
> [DEBUG] Skipping disabled repository central
> [DEBUG] distra-compile-source-root-plugin: resolved to version
> 1.0-20051018.065951-1 from repository distra
> [DEBUG] Retrieving parent-POM from the repository for project:
> com.distra.maven-plugins:distra-compile-source-root-plugin:maven-plugin:1.0-20051018.065951-1
> [DEBUG] Skipping disabled repository central
> [INFO] snapshot com.distra:maven-plugins:1.0-SNAPSHOT: checking for
> updates from distra
> [DEBUG] Skipping disabled repository central
> [DEBUG] maven-plugins: resolved to version 1.0-20051018.065951-1 from
> repository distra
> [DEBUG] Retrieving parent-POM from the repository for project:
> com.distra:maven-plugins:pom:1.0-SNAPSHOT
> [DEBUG] Skipping disabled repository central
> [INFO] snapshot com.distra:bt3:1.0-SNAPSHOT: checking for updates from
> distra
> [DEBUG] Skipping disabled repository central
> [DEBUG] bt3: resolved to version 1.0-20051018.065951-5 from repository
> distra
> [DEBUG] distra-compile-source-root-plugin: using locally installed snapshot
> [DEBUG] Skipping disabled repository central
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] A required plugin was not found: Plugin could n

Re: [m2] 'central has been blacklisted'

2005-10-18 Thread Brett Porter
It just means that the repository won't be used again since it is known not
to work. It only lasts for the current build.

What error occurs once the proxy settings are in place?

- Brett

On 10/18/05, David Sag <[EMAIL PROTECTED]> wrote:
>
>
> A co-worker here using windows just tried to build a project using maven2
> but forgot to set his proxy settings - i didn't notice as i am on a mac
> where the JVM reads the system proxy settings for me.
>
> so he got an error and then a notice saying "Central has been blacklisted"
>
> so now he has set his proxies but m2 fails getting the
> maven-resources-plugin
>
> what does that error mean and how does one work-around it?
>
> Kind regards,
> Dave Sag
>
>
>
>
>


Re: using preGoal and postGoal in m2?

2005-10-18 Thread Brett Porter
Or, just point at the docs:

http://maven.apache.org/maven2/lifecycle.html

On 10/18/05, John Casey <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> The general pattern we've adopted with Maven 2.0 is that of binding your
> custom behavior to the appropriate place in an absolute lifecycle,
> rather than relative to some other plugin's execution. The problem with
> specifying a pre/postGoal is that the referenced goal is the only one
> that can ever trigger that custom behavior (ties the build to a concrete
> goal, rather than an abstract action), and it's impossible to inject new
> behavior between the two (goal and decorator).
>
> In m2, you should be able to determine in which lifecycle phase the mojo
> in question executes, and bind your custom plugin to the phase before or
> after it.
>
> I know this will probably bring up more questions than it answers, but
> I'll let you chew on that for a minute and see what other questions you
> have, rather than delving into all the ins and outs of lifecycle binding...
>
> HTH,
>
> john
>
> Brill Pappin wrote:
> | Sorry if this has been covered on the list before (a quick search didn't
> | turn up anything useful).
> |
> | Since the maven.xml file is now gone, how to I set up pre/post goals
> in M2?
> |
> | They are one of the really good features of maven 1.x and I'll really miss
> | them if I can't use them.
> |
> | - Brill Pappin
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFDVQ1VK3h2CZwO/4URAvVtAKCfO/BU0KCtRugnkH3/fC06aGB2lgCfVLcR
> RAqSwJRR1ux7/X2Mlb1z338=
> =V6sL
> -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: [m2]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Brett Porter
in the default one.

On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> What repository is it in?
>
> On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> >
> > Yep, its a bug, please update the version to '2.0'. The class is in
> > plugin-api.
> >
> > - Brett
> >
> > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > ok, instead I'll ask where do I find
> > > org.apache.maven.plugin.AbstractMojo.class??
> > >
> > > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I tried creating a plugin project with the maven-archetype-mojo but it
> > > > generated a dependency on maven-plugin-api that can't be resolved. Is
> > this a
> > > > 'good' archtype? Does anyone know how to fix the dependency?
> > > >
> > > >
> > > > [INFO] Failed to resolve artifact.
> > > >
> > > > GroupId: org.apache.maven
> > > > ArtifactId: maven-plugin-api
> > > > Version: 2.0-beta-1-SNAPSHOT
> > > >
> > > > Reason: Unable to download the artifact from any repository
> > > > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> > > >
> > > > from the specified remote repositories:
> > > > central (http://www.ibiblio.org/maven2)
> > > >
> > > >
> > >
> > >
> >
> > -
> > 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: plexus-compiler-*-1.5.1.jar not available in remote repo

2005-10-18 Thread Brett Porter
http://www.ibiblio.org/pub/packages/maven2/org/codehaus/plexus/plexus-compiler-api/1.5.1/

On 10/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> m2 looks for plexus-compiler-*-1.5.1.jar series of jars in the remote repo.
> http://www.ibiblio.org/pub/packages/maven2, but could not find them and
> hence build fails. I tried pointing to 1.5 versions(which is available in
> remote repo), but the problem still persists. Any idea where I can get these
> from? Is it really required?
>
>

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



plexus-compiler-*-1.5.1.jar not available in remote repo

2005-10-18 Thread cheethus
m2 looks for plexus-compiler-*-1.5.1.jar series of jars in the remote repo.
http://www.ibiblio.org/pub/packages/maven2, but could not find them and
hence build fails. I tried pointing to 1.5 versions(which is available in
remote repo), but the problem still persists. Any idea where I can get these
from? Is it really required?


Re: [m2]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Xavier Toth
What repository is it in?

On 10/18/05, Brett Porter <[EMAIL PROTECTED]> wrote:
>
> Yep, its a bug, please update the version to '2.0'. The class is in
> plugin-api.
>
> - Brett
>
> On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > ok, instead I'll ask where do I find
> > org.apache.maven.plugin.AbstractMojo.class??
> >
> > On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > >
> > > I tried creating a plugin project with the maven-archetype-mojo but it
> > > generated a dependency on maven-plugin-api that can't be resolved. Is
> this a
> > > 'good' archtype? Does anyone know how to fix the dependency?
> > >
> > >
> > > [INFO] Failed to resolve artifact.
> > >
> > > GroupId: org.apache.maven
> > > ArtifactId: maven-plugin-api
> > > Version: 2.0-beta-1-SNAPSHOT
> > >
> > > Reason: Unable to download the artifact from any repository
> > > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> > >
> > > from the specified remote repositories:
> > > central (http://www.ibiblio.org/maven2)
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Bug in compile plugin (or in Java ?)

2005-10-18 Thread Brett Porter
The only option you have is to use a forked compiler and have it use
the 1.4 javac.

- Brett

On 10/18/05, Arik Kfir <[EMAIL PROTECTED]> wrote:
> The java compiler does not warn you if you use API that's new since
> 1.5 - it only makes sure you use language constructs that are
> available in 1.4 as well. This means, for instance, that you won't be
> able to use enums or generics. But it will not prevent you from using
> any API (1.5 or not).
>
> This is a known limitation of Java - and has nothing to do with maven
>
> On 10/18/05, Charles-Alexandre Sabourdin <[EMAIL PROTECTED]> wrote:
> > The problem is that when I use jdk 1.5 with 1.4 source code, I does not warn
> > me for using methode that are only since 1.5.
> > I set the following simple exemple :
> > maven use jdk 1.5
> >
> > my project.properties have the following parameter :
> > maven.compile.source=1.4
> > maven.compile.target=1.4
> > and my exemple class is :
> >
> > public class App
> > {
> > public static void main( String[] args )
> > {
> > String str1 = "Test 001";
> > System.out.println( "str1 : "+str1 );
> > System.out.println( "str1.replace(\"001\", \"002\") :
> > "+str1.replace("001", "002"));
> > }
> > }
> >
> > Normally does not works in 1.4, but I cant compile it.
> > with maven jar:jar, but I can not run this jar with 1.4 JRE.
> >
> > Is it normal ?
> >
> > I suppose that those parameter should have block compilation.
> >
> > --
> > Charles-Alexandre
> > SABOURDIN
> > -
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Maven Site Plugin

2005-10-18 Thread Brett Porter
This is entirely possible. We haven't schedulde the work, but if you'd
like to do so we'd be happy to help point you in the right direction.

A good start would be to look at the maven-site-plugin.

- Brett

On 10/18/05, Eli Doran <[EMAIL PROTECTED]> wrote:
> There are Ant tasks to use some parts of Maven. Can an Ant task be
> created to utilize the site plugin? If so, where should I start looking
> to figure that out?
>
> any info will be appreciated,
> ~eli
>
> -
> 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]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Brett Porter
Yep, its a bug, please update the version to '2.0'. The class is in plugin-api.

- Brett

On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> ok, instead I'll ask where do I find
> org.apache.maven.plugin.AbstractMojo.class??
>
> On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
> >
> > I tried creating a plugin project with the maven-archetype-mojo but it
> > generated a dependency on maven-plugin-api that can't be resolved. Is this a
> > 'good' archtype? Does anyone know how to fix the dependency?
> >
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.maven
> > ArtifactId: maven-plugin-api
> > Version: 2.0-beta-1-SNAPSHOT
> >
> > Reason: Unable to download the artifact from any repository
> > org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
> >
> > from the specified remote repositories:
> > central (http://www.ibiblio.org/maven2)
> >
> >
>
>

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



Re: How to define a jars with no version in M2?

2005-10-18 Thread Wendy Smoak

From: <[EMAIL PROTECTED]>


If i want use some jars which has no version number and it doesn't change
like "weblogic.jar"

How do i it in Maven2


I've just been inventing version numbers for them, matching the version
number of whatever product they came with.  For a Java library that comes
with IBM's UniData 6.1:

m2 install:install-file
  -Dfile=/path/to/uojsdk/lib/asjava.zip
  -DgroupId=asjava.uniobjects
  -DartifactId=asjava
  -Dversion=6.1
  -Dpackaging=jar

Even if you could do it (and the m2 repository directory structure doesn't
seem like it would support a .jar with no version number) this doesn't seem
like a good idea.  There will be another version at some point, and you need
a way to switch one project at a time to the new version.

--
Wendy Smoak


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



Re: Installing "old" build artifacts into your m2 local repository

2005-10-18 Thread Brett Porter
blind stab, untested:


  
  


- Brett

On 10/18/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> I have a few projects that are still using Ant and was looking for a way to
> get those build artifacts into my m2 local repository for use in new
> projects.
>
> This works.  It's going to wrap badly... the  is all on one line:
>
> build.xml:
>
>   
>  
>   
>
>
> Would anyone like to share a maven.xml goal to do the same thing for m1
> artifacts?
>
> Thanks,
> Wendy
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: For critical project we use maven 1.0.2 or m2 ?

2005-10-18 Thread Brett Porter
We are working on this this week, based on correcting the most
requested artifacts from the Maven repository.

On 10/18/05, Thomas Van de Velde <[EMAIL PROTECTED]> wrote:
> Even thuogh the core development for M2 is close to being completed, I would
> be worried about the transitive dependencies not being correctly defined in
> the various pom's. cfr. Hibernate.
>
> On 10/18/05, David Sag <[EMAIL PROTECTED]> wrote:
> >
> >
> > That page is somewhat misleading. For example it claims there is a QALab
> > plugin in development, but, aside from the one I am writing, that does not
> > seem to be the case.
> >
> > Kind regards,
> > Dave Sag
> >
> >
> >
> >
> >
> >
> > Stephen Duncan <[EMAIL PROTECTED]> wrote on 18/10/2005 12:41:47 PM:
> >
> > > http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
> > >
> > > -Stephen
> > >
> > > On 10/18/05, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> > > > i will start a new critical project in one month. so i undrestand
> > > that the released version will be come soon; what about plugin-s.
> > > with maven 1.0.2 i found all what i need; for example the plugin
> > > eclipse, jcover 
> > > >
> > > >
> > > >
> > > > -Message d'origine-
> > > > De : Wendy Smoak [mailto:[EMAIL PROTECTED]
> > > > Envoyé : lundi 17 octobre 2005 16:35
> > > > À : Maven Users List
> > > > Objet : Re: For critical project we use maven 1.0.2 or m2 ?
> > > >
> > > >
> > > > From: "Marouane Amraoui" <[EMAIL PROTECTED]>
> > > >
> > > > > i m working on a critical j2ee project, i want an advise from you
> > > > > if i use a released
> > > > > version maven 1.0.2 or beta version of maven 2.0 (m2)
> > > >
> > > > I would not start any new projects in Maven 1. What's your timeline?
> > Brett
> > > > posted a Maven 2 release candidate (not a beta) on the 15th. So... if
> > all
> > > > you want is the "final" label on it, I would think that's coming soon.
> > > >
> > > > --
> > > > Wendy Smoak
> > > >
> > > >
> > > >
> > > > -
> > > > 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]



Installing "old" build artifacts into your m2 local repository

2005-10-18 Thread Wendy Smoak

I have a few projects that are still using Ant and was looking for a way to
get those build artifacts into my m2 local repository for use in new
projects.

This works.  It's going to wrap badly... the  is all on one line:

build.xml:
  
 

 
  

Would anyone like to share a maven.xml goal to do the same thing for m1 
artifacts?


Thanks,
Wendy



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



Re: For critical project we use maven 1.0.2 or m2 ?

2005-10-18 Thread Brett Porter
That one is in error. It is the only one that I know of.

- Brett

On 10/18/05, David Sag <[EMAIL PROTECTED]> wrote:
>
>
> That page is somewhat misleading. For example it claims there is a QALab
> plugin in development, but, aside from the one I am writing, that does not
> seem to be the case.
>
> Kind regards,
> Dave Sag
>
>
>
>
>
>
> Stephen Duncan <[EMAIL PROTECTED]> wrote on 18/10/2005 12:41:47 PM:
>
> > http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix
> >
> > -Stephen
> >
> > On 10/18/05, Marouane Amraoui <[EMAIL PROTECTED]> wrote:
> > > i will start a new critical project in one month. so i undrestand
> > that the released version will be come soon; what about plugin-s.
> > with maven 1.0.2 i found all what i need; for example the plugin
> > eclipse, jcover 
> > >
> > >
> > >
> > > -Message d'origine-
> > > De : Wendy Smoak [mailto:[EMAIL PROTECTED]
> > > Envoyé : lundi 17 octobre 2005 16:35
> > > À : Maven Users List
> > > Objet : Re: For critical project we use maven 1.0.2 or m2 ?
> > >
> > >
> > > From: "Marouane Amraoui" <[EMAIL PROTECTED]>
> > >
> > > > i m working on a critical j2ee project, i want an advise from you
> > > > if i use a released
> > > > version maven 1.0.2 or beta version of maven 2.0 (m2)
> > >
> > > I would not start any new projects in Maven 1. What's your timeline?
> Brett
> > > posted a Maven 2 release candidate (not a beta) on the 15th. So... if
> all
> > > you want is the "final" label on it, I would think that's coming soon.
> > >
> > > --
> > > Wendy Smoak
> > >
> > >
> > >
> > > -
> > > 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]
> >
>


Re: [m2] new plugins for m2 RC??

2005-10-18 Thread Brett Porter
Hi Chris,

The current releases (with the exception of a limited number of
reporting plugins) work with the RC and have been tested via the
integration tests.

Likewise, you can build from SVN if you wish for one or all plugins,
however we're highly recommending those not working on development of
plugins use the releases as they've received more testing. There
should be very few fixes that have been made since the last releases
of plugins.

This will stabilise now, we just had to do a once off update to ensure
the plugins were using the 2.0 libraries where applicable.

- Brett

On 10/18/05, Chris Berry <[EMAIL PROTECTED]> wrote:
> Hi John,
> I guess what's problematic is that many of us have been working from the
> HEAD of SVN so that we could workaround this or that bug. So now that we
> have a release candidate (RC) -- it is only a portion of the picture (no
> plugins are provided). So do we stick with our current SNAPSHOT
> plugins (i.epost beta3) ?? Will that combo work correctly??
> Thanks,
> -- Chris
>
>

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



Re: [m2]archetypeArtifactId=maven-archetype-mojo unresolved artifact maven-plugin-api

2005-10-18 Thread Xavier Toth
ok, instead I'll ask where do I find
org.apache.maven.plugin.AbstractMojo.class??

On 10/18/05, Xavier Toth <[EMAIL PROTECTED]> wrote:
>
> I tried creating a plugin project with the maven-archetype-mojo but it
> generated a dependency on maven-plugin-api that can't be resolved. Is this a
> 'good' archtype? Does anyone know how to fix the dependency?
>
>
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.maven
> ArtifactId: maven-plugin-api
> Version: 2.0-beta-1-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
> org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
>
> from the specified remote repositories:
> central (http://www.ibiblio.org/maven2)
>
>


Re: How to define a jars with no version in M2?

2005-10-18 Thread Jesse McConnell
ya, I use file-unknown.jar in a lot of places...too many really...quite
scary :P


On 10/18/05, Kenney Westerhof <[EMAIL PROTECTED]> wrote:
>
> On Tue, 18 Oct 2005 [EMAIL PROTECTED] wrote:
>
> You can't in maven2.
>
> Just m2 install:install-file' it, and give it a version.
> If you really don't know the version, use 'unknown' or something.
> In the case of weblogic, you can use the version of weblogic you're using
> (probably 8.1 or 9.0 if that's out yet).
>
> -- Kenney
>
> > Hi
> >
> > If i want use some jars which has no version number and it doesn't
> change
> > like "weblogic.jar"
> >
> > i used as follows in Maven 1
> > 
> > weblogic
> > weblogic
> > weblogic.jar
> > jar
> > weblogic/workshop/extensions/
> > 
> >
> >
> > How do i it in Maven2
> >
> >
> >
> > Thanks,
> > Raghurajan Gurunathan
> >
>
> --
> 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]
>
>


--
jesse mcconnell


Re: How to define a jars with no version in M2?

2005-10-18 Thread Kenney Westerhof
On Tue, 18 Oct 2005 [EMAIL PROTECTED] wrote:

You can't in maven2.

Just m2 install:install-file' it, and give it a version.
If you really don't know the version, use 'unknown' or something.
In the case of weblogic, you can use the version of weblogic you're using
(probably 8.1 or 9.0 if that's out yet).

-- Kenney

> Hi
>
> If i want use some jars which has no version number and it doesn't change
> like "weblogic.jar"
>
> i used as follows in Maven 1
> 
> weblogic
> weblogic
> weblogic.jar
> jar
> weblogic/workshop/extensions/
> 
>
>
> How do i it in Maven2
>
>
>
> Thanks,
> Raghurajan Gurunathan
>

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

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



Re: [m2] new plugins for m2 RC??

2005-10-18 Thread Chris Berry
Hi John,
I guess what's problematic is that many of us have been working from the
HEAD of SVN so that we could workaround this or that bug. So now that we
have a release candidate (RC) -- it is only a portion of the picture (no
plugins are provided). So do we stick with our current SNAPSHOT
plugins (i.epost beta3) ?? Will that combo work correctly??
Thanks,
-- Chris


How to define a jars with no version in M2?

2005-10-18 Thread raghurajan . x . gurunathanv
Hi

If i want use some jars which has no version number and it doesn't change 
like "weblogic.jar"

i used as follows in Maven 1

weblogic
weblogic
weblogic.jar
jar
weblogic/workshop/extensions/



How do i it in Maven2



Thanks,
Raghurajan Gurunathan


  1   2   >