Re: [m2] Downloading m1 JARs from a legacy repo

2006-01-20 Thread Edwin Punzalan


Hi.

mvn will not create a default m2 pom when it did not find a valid v4 pom 
in the remote repository.  This is done to make mvn to keep on checking 
the remore repo for a valid v4 pom.


Anyway, the output you see is just a warning and if mvn does not see a 
pom in its local repo, it will create one in-memory.


^_^



Sasvata Chatterjee wrote:


When m2 downloads m1-built JARs from a legacy repo, and there is an
associated m1-POM, is m2 supposed to create a
modelVersion4.0.0/modelVersion POM in the local m2 repo?

I have this repo definition:

   repositories
   repository
   idapache - legacy/id
   layoutlegacy/layout
   urlhttp://cvs.apache.org/repository//url
   /repository
   repository
   iddist.codehaus.org - legacy/id
   urlhttp://dist.codehaus.org/url
   layoutlegacy/layout
   /repository
   /repositories

and when m2 (2.0.2) downloaded (several other codehaus.org JARs do
this, but as an example), picocontainer-1.2-RC-2.jar, it downloaded
the m1-POM verbatim.  The build later complains:

[WARNING] POM for 'picocontainer:picocontainer:pom:1.2-RC-2' is invalid. It will
be ignored for artifact resolution. Reason: Not a v4.0.0 POM.

Thanks,
Shash

-
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: Maven2: Error trying to run tests.

2006-01-20 Thread Edwin Punzalan
I think the information you gave may not be enough... can you try 
running mvn with the -X option?


Thanks.



Gerard Garrigan wrote:


Hello,

 

I have set up a maven project. When I try to run /mvn test /from 
within eclipse I get the following error.


 


Compiling 453 source files to E:\workarea\iTRAX2\target\classes

_org.apache.maven.plugin.CompilationFailureException_: Compilation failure

  at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(_AbstractCompilerMojo.java:429_)


  at 
org.apache.maven.plugin.CompilerMojo.execute(_CompilerMojo.java:110_)


  at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(_DefaultPluginManager.java:426_)


  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_)[ERROR] 
mojo-execute : compiler:compile


Diagnosis: Compilation failure

FATAL ERROR: Error executing Maven for a project









 

  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(_DefaultLifecycleExecutor.java:307_)


  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(_DefaultLifecycleExecutor.java:149_)


  at 
org.apache.maven.embedder.MavenEmbedder.execute(_MavenEmbedder.java:439_)


  at 
org.apache.maven.embedder.MavenEmbedder.execute(_MavenEmbedder.java:383_)


  at 
org.maven.ide.eclipse.Maven2Executor.main(_Maven2Executor.java:71_)


 

As this is the first Maven project I have worked on there is a chance 
that I may have set it up wrong. Any help would be greatly appreciated.


 


Thanks very much,

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

 

 



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



Re: [m2] Mailing list how to deploy 3rd party jars ?

2006-01-20 Thread Romain Rouvoy
About Q2... The compiler can be configured to use a certain  
compiler version.  Please see: http://maven.apache.org/plugins/ 
maven-compiler-plugin/howto.html


Ok but once the jar is compiled is there any metadata stored to  
specify that it has been compiled with a 1.5 or 1.4 compiler ?


Romain

Re: [m2] Central repository in a standalone environment

2006-01-20 Thread Edwin Punzalan


From the error output, the configuration for the remote repository 
you've set did not take effect.


That is, because profiles need to be explicitly activated before it gets 
used.  You'll need a profile id, too.


To explicitly activate a profile, you need to put -P profileId with 
the mvn command, where profileId is the id in the profile you want to 
activate.


If you want to make a profile to be always implicitly activated (always 
active), you can put the profile id inside the activeProfiles of your 
settings.xml.


Hope these help.

^_^



COUVREUR jacques wrote:


Hello,

I am using m1 since 2004 on my projects : our remote repository (m1)
is on a network drive (z:/maven/repository). We manage a pool of
business libraries and we want to control the dependencies.

I have downloaded the m2.0.2 and I want to do the same thing (use only
our local central repository (m2) without any internet connection),
but it does not work.
I'm trying several configurations with the
document(settings.xml)/settings/profiles/profile/repositories and the
document(pom.xml)/project/repositories tags, but without success !

For example, the following sample, extracted from my settings.xml: 


profiles
  profile
repositories
  repository
idcentral/id
nameLocal repository/name
urlfile://Z:\maven\repository/url
  /repository
/repositories
  /profile
/profiles

Generates the following error:
...
[INFO] Repository 'central' will be blacklisted
...
Caused by: java.net.UnknownHostException: repo1.maven.org
...


What is the good configuration???

Thanks.

Jacques




--
Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.

This message is protected by the secrecy of correspondence rules ; furthermore 
it may contain privileged or confidential information that is protected by law, 
notably by the secrecy of business relations rule ; it is intended solely for 
the attention of   the addressee . Any disclosure, use, dissemination or 
reproduction (either whole or  partial) of this message or the information 
contained herein is strictly prohibited without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can 
not be assured.  AGF declines any  responsibility for  this message in the 
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the sender of the wrong delivery and the mail deletion. 
--



-
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: running an antrun task alone -- or pulling a maven classpath from the pom?

2006-01-20 Thread John Casey
You've bound the configuration of the antrun plugin to an execution, 
which is bound to the test lifecycle phase. This is a good thing.


However, you won't be able to use the configuration within an execution 
from a direct, command-line invocation like `mvn antrun:run`.


Instead, try running `mvn test` against your current setup. This should 
compile your sources, compile your test sources (if you have any), and 
then run your ant script.


Note that if you want to enable execution of your ant script from `mvn 
antrun:run` while still retaining the ability to do so from `mvn test`, 
you can simply move the configuration/ section outside of the 
executions/ section, where it will apply generally to all invocations 
of the antrun plugin.


HTH,

John

Eric Biesterfeld wrote:

So, I have my maven classpath all set up, everything's running quite nicely.
(and once this release is out and I'm settled down in a few projects I'll
try to write up what we did to get our multi-product, multimodule ant
project building under Maven 2...) However, I'm trying to run TestNG and I'm
running into a bit of a problem.

While the ant task I've set up for the task runs quite nicely when run
within the build process, I can't find a way to run this task separately.

From the pom.xml:


plugins
  plugin
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
idrun-testng/id
phasetest/phase
configuration
  tasks
ant antfile=run-testng.xml inheritAll=true
inheritRefs=true/
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin
/plugins

and that testng.xml:

project name=TestNG tests default=test

  path id=local.class.path
pathelement location=./target/test-classes/
pathelement location=./target/classes/
path refid=maven.test.classpath/
  /path

  target name=test
delete dir=target/testdbs/
taskdef resource=testngtasks classpathref=local.class.path/
testng classpathref=local.class.path
outputDir=./target/testng-output
sourcedir=./src/test/java
haltOnfailure=true
  xmlfileset dir=./target/test-classes includes=testng.xml/
/testng
  /target
/project
___

mvn antrun:run doesn't work. I don't seem to find any property to specify
how to run this particular task after looking at the sources at
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/.

Of course, finding a way to pull the dependencies from the POM in the ant
script would work as well. However as it is, there is no obvious way to that
either. As such, I have to modify a build file when I want to run another
set of tests, which is a suboptimal solution.

Thanks for any help! --Eric



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



SV: Dependency on hibernate

2006-01-20 Thread Bengt-Erik Fröberg
Hi

You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
3) Replace path-to-file with the path to your download
4) group-id with javax.transaction
5) artifact-id with jta
6) version with 1.0.1B
7) packaging with jar
8) watch your desired transaction package get installed hopefully...

Yes, I know, there should be a tool for this, feels like the 80's entering
shitloads of command line arguments..

HTH

/B-E


-Ursprungligt meddelande-
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] 
Skickat: den 19 januari 2006 21:30
Till: Maven Users List
Ämne: Dependency on hibernate

Hello!

I added a dependency on hibernate in my pom.xml:


dependency
  groupIdhibernate/groupId
  artifactIdhibernate/artifactId
  version3.1rc2/version
  scopecompile/scope
/dependency

If I try to compile I get an error:

[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

required artifacts missing:
  javax.transaction:jta:jar:1.0.1B


Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for 
the jar-file. There is no JAR on this server. How can I resolve this 
dependency?

Thanks in advance!

- Guenther

-- 
  Guenther Schroettner
  [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] Multiprojects and inherited SCM URLs

2006-01-20 Thread Yann Le Du
Thanks Emmanuel, I'll try with maven-scm trunk then.

- Yann

2006/1/19, Emmanuel Venisse [EMAIL PROTECTED]:

 Actually, you need to define scm url in all your modules if you want to
 use relative path.
 This problem is fixed in maven-scm trunk.

 Emmanuel

 Yann Le Du a écrit :
  Hi,
 
  In order to ease Continuum use, we want to have the following project
  structure :
 
  ~  PROJECT
  ~  +-- parent
  ~  +-- pom.xml
  ~  +-- module
  ~  +-- pom.xml
 
  module has obviously parent for parent
 
  parent defines this SCM URL :
  scm:svn:svn://host/PROJECT/parent
 
  In module, this is inheirted as :
  scm:svn:svn://host/PROJECT/parent/module
  ... which is not what we want
 
  Note that in parent the module is correctly defined :
  module../module/module
 
  Is there way to inherit correct URL (e.g. through relativePath), or is
 the
  only solution to put correct URL directly in module ?
 
  TIA,
 
  - Yann
 


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




RE: [m2] Central repository in a standalone environment

2006-01-20 Thread COUVREUR jacques
Hi Edwin and thanks !...

But I have tried the following settings as you hinted me:

profiles
   profile
!--activationactiveByDefault //activation--
 iddev-profile/id
 repositories
   repository
 idcentral/id
 nameLocal repositoryname
 !--urlfile://Z:\maven\repository/url--
 !--urlfile:C:/Dev/tools/maven/repository-m2/url--
 urlhttp://mon.cataweb.org/url
   /repository
 /repositories
   /profile
 /profiles
 activeProfiles
   activeProfiledev-profile/activeProfile
 /activeProfiles

And the following command line:

mvn -e -X -P dev-profile test

but I get the same error!

I have tried later to name my *local* central repository with the id 
central as I wrote in my first mail...

and I also get the same result!!!...

...

J.




-Message d'origine-
De : Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 09:13
À : Maven Users List
Objet : Re: [m2] Central repository in a standalone environment


 From the error output, the configuration for the remote repository 
you've set did not take effect.

That is, because profiles need to be explicitly activated before it gets 
used.  You'll need a profile id, too.

To explicitly activate a profile, you need to put -P profileId with 
the mvn command, where profileId is the id in the profile you want to 
activate.

If you want to make a profile to be always implicitly activated (always 
active), you can put the profile id inside the activeProfiles of your 
settings.xml.

Hope these help.

^_^



COUVREUR jacques wrote:

Hello,

I am using m1 since 2004 on my projects : our remote repository (m1)
is on a network drive (z:/maven/repository). We manage a pool of
business libraries and we want to control the dependencies.

I have downloaded the m2.0.2 and I want to do the same thing (use only
our local central repository (m2) without any internet connection),
but it does not work.
I'm trying several configurations with the
document(settings.xml)/settings/profiles/profile/repositories and the
document(pom.xml)/project/repositories tags, but without success !

For example, the following sample, extracted from my settings.xml: 

profiles
   profile
 repositories
   repository
 idcentral/id
 nameLocal repository/name
 urlfile://Z:\maven\repository/url
   /repository
 /repositories
   /profile
 /profiles

Generates the following error:
...
[INFO] Repository 'central' will be blacklisted
...
Caused by: java.net.UnknownHostException: repo1.maven.org
...


What is the good configuration???

Thanks.

Jacques




--
Ce message est protege par les regles relatives au secret des correspondances 
; il peut en outre contenir des informations a caractere confidentiel ou 
protegees par differentes regles et notamment le secret des affaires ; il est 
etabli a destination exclusive de son destinataire. Toute divulgation, 
utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou 
des informations qu'il contient, doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne 
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce 
message s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire 
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la 
destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore 
it may contain privileged or confidential information that is protected by 
law, notably by the secrecy of business relations rule ; it is intended solely 
for the attention of   the addressee . Any disclosure, use, dissemination or 
reproduction (either whole or  partial) of this message or the information 
contained herein is strictly prohibited without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can 
not be assured.  AGF declines any  responsibility for  this message in the 
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  
notify the sender of the wrong delivery and the mail deletion. 
--


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





--
Ce message est protege par les regles relatives au secret des correspondances ; 
il peut en outre contenir des informations a caractere confidentiel ou 
protegees par differentes regles et notamment le secret des affaires ; il est 
etabli a destination exclusive de son destinataire. Toute divulgation, 
utilisation, diffusion ou 

Re: [m2] Multiprojects and inherited SCM URLs

2006-01-20 Thread Yann Le Du
Actually, yes, I use artifactId for directory names, and had thought of this
solution. But I'd supposed it would give me :
scm:svn:svn://host/PROJECT/module/module
I can't try today, but will do on Monday and let you know. Thank you anyway.

- Yann

2006/1/19, Dennis Lundberg  [EMAIL PROTECTED]:

 Yann Le Du wrote:
  Hi,
 
  In order to ease Continuum use, we want to have the following project
  structure :
 
  ~  PROJECT
  ~  +-- parent
  ~  +-- pom.xml
  ~  +-- module
  ~  +-- pom.xml
 
  module has obviously parent for parent
 
  parent defines this SCM URL :
  scm:svn:svn://host/PROJECT/parent
 
  In module, this is inheirted as :
  scm:svn:svn://host/PROJECT/parent/module
  ... which is not what we want
 
  Note that in parent the module is correctly defined :
  module../module/module
 
  Is there way to inherit correct URL ( e.g. through relativePath), or is
 the
  only solution to put correct URL directly in module ?

 How about this:
 scm:svn:svn://host/PROJECT/${pom.artifactId}

 This should work if you use the same name for the part in your svn
 repository as their artifactIds.

 --
 Dennis Lundberg

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




Re: [m2] Question about writing my first Mojo

2006-01-20 Thread John Casey
I *think* you could use a ${project} parameter, which will return an 
instance of org.apache.maven.project.MavenProject (artifactId: 
maven-project), and then use something like:


MavenProject.setArtifacts(..) or something (the exact API here escapes 
me, but a good IDE should help you). You'll have to use 
MavenProject.getArtifacts(), and filter out anything you don't want.


Then, I'd bind the plugin's execution to the process-test-classes phase 
of the build, using an execution/ section in the plugin definition 
inside your POM. Then, it's a matter of calling:


mvn test


Though, I do have to ask: why would you want to do this? Also, be warned 
that this may affect all plugins executing after your plugin, and in 
strange ways.


HTH,

John

Matthew Beermann wrote:

It's my understanding that plugins do not communicate with one another 
directly; rather, they utilize their parameters. Which is all well and good, so 
here's what I'm trying to do:
   
  I'm writing a plugin that overrides Surefire's classpath to a classpath that I've constructed. In particular, I do _not_ want the project's dependencies/ to be included on the test classpath. It appears that all I have to do is alter the value of ${project.testClasspathElements}.
   
  So... how do I do that? Maven's @parameter magic annotation lets me get the value in, but how do I write it back back out again?
   
  A related question might be: what's the lifespan of changes I make to these properties? In other words, if I run mvn myplugin test, it appears that the changes I've made have been discarded by the time the surefire plugin sees them.
   
  --Matthew



-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!


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



Re: Transitive sibling builds

2006-01-20 Thread John Casey
This just means that you could create a couple of orchestration only 
poms, each with a war project and its dependency components specified as 
modules...and with a packaging of pom which means it'll organize the 
submodules (war and components) according to dependencies, and then 
build them.


Aside from the duplication of information in these two (or more) POMs, 
you will end up with a couple of dummy poms installed in your local repo.


We're planning to include more features related to the concept of a 
project directory context (I mean your project within some larger 
context of an application or something), but this will likely have to 
wait at least until 2.2, since it's going to require some major design work.


Cheers,

John

Chris Bredesen wrote:

I just tried this, and the problem is that the POM that contains the modules
becomes an aggregator project, and requires packagingpom/packaging.
This precludes us (I think) from using w1 (or any end result artifact) as
the driving build. I will play with this some more.

My actual enterprise is quite a bit more complex than w1,w2,c1,c2,c3;
indeed, c1 actually uses c2-c4, and w1 might use c1,c5,c6.  It's getting
simpler, but there's always legacy code :)

The point is, any one of the artifacts might be the interesting one, i.e.,
the one which I'm attempting to create.  That project, whatever level it
might be at, would need to know not only whom he depends on, but how to
build the dependency.  It's almost as if we need another level past SNAPSHOT
-- something like SNAPSHOT_LOCAL, which says not only that we depend on the
most recent version, but we should freshen the artifact if it is dirty.  I
may be totally off base here, as I'm a Maven newbie, but I think the tool
has immense promise for even complex teams. (It's a real life saver for my
smaller projects).

I will have to look at the source and see if there's something I can glean
from all of this.  I'm glad to know I'm not alone in my venture!

To add another log to the fire, I'd also love for the Maven Eclipse plugin
(or the eclipse m2 plugin, heh) to keep my Eclipse environment up to date!

Cheers,

Chris


-Original Message-
From: Christopher Cobb [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 9:41 AM

To: 'Maven Users List'
Subject: RE: Transitive sibling builds


That's an interesting idea.  I'll give it a try.

But even if it works, it is less than ideal because then you 
are putting the same information in twice:  once at the top 
level to say what its children are, and once at the child 
level to say what its siblings are.  This violates the 
hallowed OnceAndOnlyOnce dictum.


It would be nice if you could just put the information in 
(once) at the top level, and it would just work at the 
sibling level.



-Original Message-
From: Scokart Gilles [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 19, 2006 8:47 AM
To: Maven Users List
Subject: RE: Transitive sibling builds

Isn't it possible to use something like that :

For example if w1 use c1 and c3, in the pom of w1 use : modules
module../c1/module
module../c3/module
/modules

I think you could even put that into a profile in order to allow 
recursive build or not.




Gilles


-Original Message-
From: Chris Bredesen [mailto:[EMAIL PROTECTED]
Sent: 19 January 2006 02:42
To: users@maven.apache.org
Cc: [EMAIL PROTECTED]
Subject: Transitive sibling builds

Hello All,

Just subscribed, and I wanted to revisit the discussion that took 
place regarding the above topic in this thread: 
http://www.mail-archive.com/users@maven.apache.org/msg32502.html


There seems to be a lot of resistance from the community (lack of 
understanding, maybe) to implementing this sort of 
transitive build 
mechanism.  I, too, do exactly what the original poster does, and 
the

lack
of support for this is the only real reason I haven't 
adopted Maven2 

as

my
build tool of choice.  I get closer each time, but since 
there's no 

way

to
build an entire WAR file in one shot, I have to give it up.  I 
realize

it
CAN be done, but it seems that the WAR file has to be the 
parent of 

all its components.

I wanted to add my own experience into this discussion, 

and possibly

even
spur enough information to contribute myself.  I have my 
enterprise 

laid out as such, made of webapps (w) and components (c):

w1
w2
w3
c1
c2
c3
c4
c5

Each of the webapps may use any of the components as 
dependencies, 
along with a slew of off-the-shelf API's.  The problem for me is 
that these components can have only one parent directory. 
 I have no 
way to separately build w1 and w2.  Unless I'm missing, 
something, 

we'd need sibling communication in order to make this work.

Currently each Ant buildfile knows which components are 
needed, but 

has

no

idea if they need to be built or not, thus causing me to build

everything
each time I compile.  To avoid this, I also maintain Eclipse 
projects

(one
per app, not one big one) 

RE: [M1] Ant Zip task excluded empty directories

2006-01-20 Thread Arnaud HERITIER
You can get a snapshot of the 1.1 beta 3 here :
http://people.apache.org/~aheritier/maven/1.X/snapshots/

I'll try to put a newer one this WE or in the beginning of the next week when 
I'll succeed to fix some regressions

Arnaud
 

 -Message d'origine-
 De : Afkham Azeez [mailto:[EMAIL PROTECTED] 
 Envoyé : vendredi 20 janvier 2006 06:15
 À : Maven Users List
 Objet : Re: [M1] Ant Zip task excluded empty directories
 
 Hi Lukas,
 I'd be grateful if you could provide me with the link to 
 download 1.1-b3. None of the mirrors seem to contain it :(
 
 Thanks
 Azeez
 
 On 1/19/06, Lukas Theussl [EMAIL PROTECTED] wrote:
  This is fixed only in the current maven 1.1-beta-3:
  http://jira.codehaus.org/browse/MAVEN-1657
 
  (jira seems to have some problems again, right now you 
 can't see any 
  comments, just wait a bit).
 
  Lukas
 
 
  Afkham Azeez wrote:
   Hi Folks,
  
   I'm using Maven 1.0.2. I have a problem with the ant zip 
 task. Empty 
   directories are not getting included in the zip archive. 
 Seems like 
   a bug. Anybody encountered a similar situation before?
   --
   Thanks
   Afkham Azeez
  
   
 
   - 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]
 
 
 
 
 --
 Thanks
 Afkham Azeez
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



[m2] Manipulatinga Maven ${project} in ANT Mojo

2006-01-20 Thread Michael Böckling

Hey there,

I'm trying to figure out how to add an entry to 
${project.compileSourceRoot} inside a Mojo written in ANT. How would I 
go about this? Are there any special Ant tasks that aren't documented?


Regards,
   Michael

--
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/



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



RE: [m2] Generating was5 ejb code ?

2006-01-20 Thread Malcolm Wong Ho

I am getting this error, any idea what the cause is ?

[wsejbdeploy] [*Error] ejbModule/ejbs/DefaultSessionHome.java(5): CHKJ2907E: 
Type ejbs.DefaultSessionHome, or one of its supertypes, cannot be reflected. 
Check the classpath.
[wsejbdeploy] [*Error] ejbModule/ejbs/DefaultSessionBean.java(5): CHKJ2907E: 
Type ejbs.DefaultSessionBean, or one of its supertypes, cannot be reflected. 
Check the classpath.
[wsejbdeploy] [*Error] ejbModule/ejbs/DefaultSession.java(5): CHKJ2907E: Type 
ejbs.DefaultSession, or one of its supertypes, cannot be reflected. Check the 
classpath.
[wsejbdeploy] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean: 
DefaultSession): CHKJ2802E: ejb-class class ejbs.DefaultSessionBean, or one 
of its supertypes, cannot be reflected. Check the classpath.
[wsejbdeploy] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean: 
DefaultSession): CHKJ2803E: home interface ejbs.DefaultSessionHome, or one of 
its supertypes, cannot be reflected. Check the classpath.
[wsejbdeploy] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean: 
DefaultSession): CHKJ2804E: remote interface ejbs.DefaultSession, or one of 
its supertypes, cannot be reflected. Check the classpath.


-Original Message-
From: Marcel Schutte [mailto:[EMAIL PROTECTED]
Sent: Thu 1/19/2006 10:32 AM
To: Maven Users List
Subject: Re: [m2] Generating was5 ejb code ?
 
This works for me, but a real plugin would be nicer:

In my pom.xml:

plugin
  artifactIdmaven-ejb-plugin/artifactId
  configuration
archive
  manifest
addClasspathtrue/addClasspath
  /manifest
/archive
generateClienttrue/generateClient
clientExcludes
clientExclude**/persist//clientExclude
clientExclude**/*Bean.class/clientExclude
/clientExcludes
  /configuration
/plugin
plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
   execution
iddeploycode/id
phasepackage/phase
configuration
 tasks
  taskdef name=wasEjbDeploy
   classname=com.ibm.websphere.ant.tasks.WsEjbDeploy
   classpath=${was.home}/lib/wsanttasks.jar /

  wasEjbDeploy
  
inputJar=${project.build.directory}/${project.build.finalName}.jar
   workingDirectory=${project.build.directory}/temp
  
outputJar=${project.build.directory}/${project.build.finalName}.was5.jar
   washome=${was.home}
   trace=true
   quiet=false /
  
!-- generated jar replaces the original --
move
file=${project.build.directory}/${project.build.finalName}.was5.jar
   
tofile=${project.build.directory}/${project.build.finalName}.jar/
  
!-- add deploy code to the client jar --
zip
destfile=${project.build.directory}/${project.build.finalName}-client.jar
 update=true
zipfileset
src=${project.build.directory}/${project.build.finalName}.jar
include name=org/omg/stub//
include name=com/ibm//
include name=**/_*.class/
include name=**/EJS*.class/
/zipfileset
/zip
 /tasks
/configuration
goals
 goalrun/goal
/goals
   /execution
  /executions
/plugin

and the was.home property is specified in a profile in settings.xml:

properties
  was.homeC:/Program Files/IBM/WebSphere 5.0/was.home
/properties

Regards,
Marcel
--- Malcolm Wong Ho [EMAIL PROTECTED] wrote:

 
 How would i go go about generating was5 ejb code using Maven2 as
 there is no plugin support for M2 and only for M1 ?
 
 
 DISCLAIMER:
 This message may contain information which is confidential, private
 or privileged in nature. If you are not the intended recipient, you
 may not peruse, use, disseminate, distribute or copy this message or
 file which is attached to this message. If you have received this
 message in error, please notify the sender immediately by e-mail,
 facsimile or telephone and thereafter return and/or destroy the
 original message. 
 
 Any views of this communication are those of the sender except where
 the sender specifically states them to be those of Faritec (Holdings)
  Limited (Faritec) and/or  any of its subsidiaries including (but not
 limited to) Faritec Enterprise Solutions (Proprietary) Limited,
 Faritec Strategic IT Services (Proprietary) Limited, Faritec
 Contracting (Proprietary) Limited, Ebis and/or any of its
 subsidiaries.
 
 Please note that the recipient must scan this e-mail and any attached
 files for viruses and the like. While we do everything possible to
 protect information from viruses, Faritec accepts no liability of
 whatever nature for any loss, liability, damage or expense resulting
 directly or indirectly from the access and/or downloading of any
 files which are attached to this e-mail message.
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: [M1.1b2] problem with site generation : missing dependency

2006-01-20 Thread Arnaud HERITIER
I didn't take notice of it.
There's a problem with the rewritting rules 
(http://www.ibiblio.org/maven/batik/jars/batik-1.5-fop-0.20-5.jar).
We'll fix it ASAP.
Brett, can you take a look at it ?

Arnaud

 

 -Message d'origine-
 De : Hervé BOUTEMY [mailto:[EMAIL PROTECTED] 
 Envoyé : vendredi 20 janvier 2006 08:37
 À : Maven Users List
 Objet : [M1.1b2] problem with site generation : missing dependency
 
 Maven site generation has been working well for a long time.
 But lately, I deleted my local repository, and now I can't 
 generate my site any more : a dependency is missing :
 
 $ maven site:site
  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
 
 Attempting to download batik-1.5-fop-0.20-5.jar.
 WARNING: Failed to download batik-1.5-fop-0.20-5.jar.
 The build cannot continue because of the following 
 unsatisfied dependency:
 
 batik-1.5-fop-0.20-5.jar (try downloading from 
 http://xml.apache.org/batik/)
 
 Total time   : 3 seconds
 Finished at  : Friday, January 20, 2006 8:32:09 AM CET
 
 
 Is anybody facing the same problem ?
 
 Hervé
 
 -
 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] Central repository in a standalone environment

2006-01-20 Thread Edwin Punzalan

hmmm...

where did you put your settings.xml ?  It should be in ~/.m2

COUVREUR jacques wrote:


Hi Edwin and thanks !...

But I have tried the following settings as you hinted me:

profiles
  profile
!--activationactiveByDefault //activation--
iddev-profile/id
repositories
  repository
idcentral/id
nameLocal repositoryname
!--urlfile://Z:\maven\repository/url--
!--urlfile:C:/Dev/tools/maven/repository-m2/url--
urlhttp://mon.cataweb.org/url
  /repository
/repositories
  /profile
/profiles
activeProfiles
  activeProfiledev-profile/activeProfile
/activeProfiles

And the following command line:

mvn -e -X -P dev-profile test

but I get the same error!

I have tried later to name my *local* central repository with the id 
central as I wrote in my first mail...

and I also get the same result!!!...

...

J.




-Message d'origine-
De : Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 09:13

À : Maven Users List
Objet : Re: [m2] Central repository in a standalone environment


From the error output, the configuration for the remote repository 
you've set did not take effect.


That is, because profiles need to be explicitly activated before it gets 
used.  You'll need a profile id, too.


To explicitly activate a profile, you need to put -P profileId with 
the mvn command, where profileId is the id in the profile you want to 
activate.


If you want to make a profile to be always implicitly activated (always 
active), you can put the profile id inside the activeProfiles of your 
settings.xml.


Hope these help.

^_^



COUVREUR jacques wrote:

 


Hello,

I am using m1 since 2004 on my projects : our remote repository (m1)
is on a network drive (z:/maven/repository). We manage a pool of
business libraries and we want to control the dependencies.

I have downloaded the m2.0.2 and I want to do the same thing (use only
our local central repository (m2) without any internet connection),
but it does not work.
I'm trying several configurations with the
document(settings.xml)/settings/profiles/profile/repositories and the
document(pom.xml)/project/repositories tags, but without success !

For example, the following sample, extracted from my settings.xml: 


profiles
 profile
   repositories
 repository
   idcentral/id
   nameLocal repository/name
   urlfile://Z:\maven\repository/url
 /repository
   /repositories
 /profile
/profiles

Generates the following error:
...
[INFO] Repository 'central' will be blacklisted
...
Caused by: java.net.UnknownHostException: repo1.maven.org
...


What is the good configuration???

Thanks.

Jacques




--
Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.

This message is protected by the secrecy of correspondence rules ; furthermore 
it may contain privileged or confidential information that is protected by law, 
notably by the secrecy of business relations rule ; it is intended solely for 
the attention of   the addressee . Any disclosure, use, dissemination or 
reproduction (either whole or  partial) of this message or the information 
contained herein is strictly prohibited without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can 
not be assured.  AGF declines any  responsibility for  this message in the 
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the sender of the wrong delivery and the mail deletion. 
--



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





--
Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son 

Re: [M1.1b2] problem with site generation : missing dependency

2006-01-20 Thread stéphane bouchet

Hi,

the jar is here : http://www.ibiblio.org/maven/batik/jars/

it seems your ${maven.repo.remote} property is missing or not configured, 
because maven is trying to download that jar from the URL you specified in your 
project.xml ...



Stéphane


Hervé BOUTEMY a écrit :

Maven site generation has been working well for a long time.
But lately, I deleted my local repository, and now I can't generate my site 
any more : a dependency is missing :


$ maven site:site
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

Attempting to download batik-1.5-fop-0.20-5.jar.
WARNING: Failed to download batik-1.5-fop-0.20-5.jar.
The build cannot continue because of the following unsatisfied dependency:

batik-1.5-fop-0.20-5.jar (try downloading from http://xml.apache.org/batik/)

Total time   : 3 seconds
Finished at  : Friday, January 20, 2006 8:32:09 AM CET


Is anybody facing the same problem ?

Hervé

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





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



Re: [m2] multiple project's component dependency declaration possible or too complex?

2006-01-20 Thread Edwin Punzalan


I think he means to use it at build time for mvn use.


dan tran wrote:


how about create one big zip file?? then use antrun to unpack.

I do that quite often

-Dan



On 1/19/06, Edwin Punzalan [EMAIL PROTECTED] wrote:
 


You mean you want a single pom to have several jars associated with it?
This doesn't comply with the one-artifact-one-jar philosophy of maven
and so is not possible.

Also, accdg to the maven gurus, such configuration you gave is possible
as long as the each jar you set as a dep is placed in the repository
(read: placed properly in the repository accdg to
groupId/artifacId/version).



Loïc Lefèvre wrote:

   


Hello,
After some time struggling with my local repository I wonder if it's
me doing mistakes or if
the declaration of multiple project's components is too complex.

Let's take my current example:

In my local repository, I want to add LWJGL which is compound of
multiple jar, dll, so, dylib and jnilib files; a total of 30 files!

What I whish to do is to declare my repository like that:

[local repo directory]\lwjgl\lwjgl\0.99\all the files + metadata.xml
+.pom + .md5 + .sha1

In the pom (packaging pom) I could declare ALL the files required to
use LWJGL 0.99 using dependencies.

And in my project pom.xml file I could just add:

  dependency
groupIdlwjgl/groupId
artifactIdlwjgl/artifactId
typepom/type
version0.99/version
  /dependency

so all the 30 files would directly be downloaded...

Moreover, (see a recent mail) LWJGL's dll/so files don't include the
version number in their name so that Java code doesn't have to be
modified with new versions...

Well is it a dream or is it possible?

TIA,
Loic

-
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] Central repository in a standalone environment

2006-01-20 Thread Jörg Schaible
COUVREUR jacques wrote on Friday, January 20, 2006 9:36 AM:

 Hi Edwin and thanks !...
 
 But I have tried the following settings as you hinted me:
 
 profiles
profile
   !--activationactiveByDefault //activation-- 
  iddev-profile/id repositories
repository
  idcentral/id
  nameLocal repositoryname
  !--urlfile://Z:\maven\repository/url--
  !--urlfile:C:/Dev/tools/maven/repository-m2/url--
  urlhttp://mon.cataweb.org/url
/repository
  /repositories
/profile
  /profiles
  activeProfiles
activeProfiledev-profile/activeProfile
  /activeProfiles

[snip]

IMHO you must set your repository as mirror for central.

- Jörg

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



Re: [m2] Central repository in a standalone environment

2006-01-20 Thread Edwin Punzalan


Oh yeah.  I think that's better.  ^_^


Jörg Schaible wrote:


COUVREUR jacques wrote on Friday, January 20, 2006 9:36 AM:

 


Hi Edwin and thanks !...

But I have tried the following settings as you hinted me:

profiles
  profile
  	!--activationactiveByDefault //activation-- 
iddev-profile/id repositories

  repository
idcentral/id
nameLocal repositoryname
!--urlfile://Z:\maven\repository/url--
!--urlfile:C:/Dev/tools/maven/repository-m2/url--
urlhttp://mon.cataweb.org/url
  /repository
/repositories
  /profile
/profiles
activeProfiles
  activeProfiledev-profile/activeProfile
/activeProfiles
   



[snip]

IMHO you must set your repository as mirror for central.

- Jörg

-
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: Dependency on hibernate

2006-01-20 Thread Ralph Pöllath

Hi,

I find it much more convenient to simply replace the dependencies on  
sun's jars with their equivalents from geronimo, as mentioned at

http://mavenbook.xwiki.com/xwiki/bin/view/Main/J2eeDependencies

Here's how my hibernate dependency looks like:

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.0.5/version
exclusions
exclusion
artifactIdjta/artifactId
groupIdjavax.transaction/groupId
/exclusion
exclusion
groupIdjavax.security/groupId
artifactIdjacc/artifactId
/exclusion
/exclusions
/dependency

!-- open source replacements for jta, jacc --
dependency
artifactIdgeronimo-spec-jta/artifactId
groupIdgeronimo-spec/groupId
version1.0.1B-rc4/version
/dependency

dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-j2ee-jacc/artifactId
version1.0-rc3/version
/dependency

Cheers,
-Ralph.



On 20.01.2006, at 09:26, Bengt-Erik Fröberg wrote:


Hi

You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party- 
jars.html

3) Replace path-to-file with the path to your download
4) group-id with javax.transaction
5) artifact-id with jta
6) version with 1.0.1B
7) packaging with jar
8) watch your desired transaction package get installed  
hopefully...


Yes, I know, there should be a tool for this, feels like the 80's  
entering

shitloads of command line arguments..

HTH

/B-E


-Ursprungligt meddelande-
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED]
Skickat: den 19 januari 2006 21:30
Till: Maven Users List
Ämne: Dependency on hibernate


Hello!

I added a dependency on hibernate in my pom.xml:


dependency
  groupIdhibernate/groupId
  artifactIdhibernate/artifactId
  version3.1rc2/version
  scopecompile/scope
/dependency

If I try to compile I get an error:

[INFO]
- 
---

[ERROR] BUILD ERROR
[INFO]
- 
---

[INFO] Failed to resolve artifact.

required artifacts missing:
  javax.transaction:jta:jar:1.0.1B


Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and  
search for

the jar-file. There is no JAR on this server. How can I resolve this
dependency?

Thanks in advance!

- Guenther


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



RE: [M1.1b2] problem with site generation : missing dependency

2006-01-20 Thread Arnaud HERITIER

 
 Hi,
 
 the jar is here : http://www.ibiblio.org/maven/batik/jars/

The link is broken.
Since we use rewritting rules over the m2 repository to create the m1 one, 
these directories listings are outdated.

arnaud

 
 it seems your ${maven.repo.remote} property is missing or not 
 configured, because maven is trying to download that jar from 
 the URL you specified in your project.xml ...
 
 
 Stéphane
 
 
 Hervé BOUTEMY a écrit :
  Maven site generation has been working well for a long time.
  But lately, I deleted my local repository, and now I can't 
 generate my 
  site any more : a dependency is missing :
  
  $ maven site:site
   __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2
  
  Attempting to download batik-1.5-fop-0.20-5.jar.
  WARNING: Failed to download batik-1.5-fop-0.20-5.jar.
  The build cannot continue because of the following 
 unsatisfied dependency:
  
  batik-1.5-fop-0.20-5.jar (try downloading from 
  http://xml.apache.org/batik/)
  
  Total time   : 3 seconds
  Finished at  : Friday, January 20, 2006 8:32:09 AM CET
  
  
  Is anybody facing the same problem ?
  
  Hervé
  
  
 -
  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 : release plugin removes sections in the pom.xml ???

2006-01-20 Thread Olivier Lamy
My bad only reporting section.
-Message d'origine-
De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 10:21
À : Maven Users List (users@maven.apache.org)
Objet : release plugin removes sections in the pom.xml ???


Hi,
I have some trouble with the release plugin.
I have released a company root pom.
Then I'm surprised to see that some sections have been removed in commit
made by mvn :
- reporting section
- profiles section

Is there any issue regarding this ??

- Olivier



This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après le message ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



release plugin removes sections in the pom.xml ???

2006-01-20 Thread Olivier Lamy
Hi,
I have some trouble with the release plugin.
I have released a company root pom.
Then I'm surprised to see that some sections have been removed in commit
made by mvn :
- reporting section
- profiles section
 
Is there any issue regarding this ??
 
- Olivier


This e-mail, any attachments and the information contained therein (this 
message) are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres le message ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 



[m2]Guide to Developing Ant Plugins error

2006-01-20 Thread Alexandre Russel

Hi,
I am following the Guide to Developing Ant Plugins, first example hello 
world plugin:
here is the error and at the end of the mail the exact file I 
used(cut/paste from the guide):



mvn install
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Hello Plugin
[INFO]task-segment: [install]
[INFO] 


[WARNING]
   Artifact org.apache.maven:maven-plugin-descriptor:jar:2.0-beta-3 
retains local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[WARNING]
   Artifact 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 retains 
local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[WARNING]
   Artifact org.apache.maven:maven-plugin-tools-api:jar:2.0-beta-3 
retains local scope 'runtime' overriding broader scope 'compile'
   given by a dependency. If this is not intended, modify or remove 
the local scope.


[INFO] [plugin:descriptor]
[INFO] 


[ERROR] FATAL ERROR
[INFO] 

[INFO] 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
[INFO] 


[INFO] Trace
java.lang.AbstractMethodError: 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
   at 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
   at 
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69)
   at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:95)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java: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:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 


[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jan 20 10:43:32 CET 2006
[INFO] Final Memory: 4M/8M
[INFO] 


/hello-plugin$ tree
.
|-- pom.xml
|-- pom.xml~
`-- src
   `-- main
   `-- script
   |-- hello.build.xml
   `-- hello.mojos.xml

3 directories, 4 files
/hello-plugin$ cat pom.xml
project
 modelVersion4.0.0/modelVersion

 groupIdtest/groupId
 artifactIdhello-plugin/artifactId
 version1.0-SNAPSHOT/version

 packagingmaven-plugin/packaging

 nameHello Plugin/name

 dependencies
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-script-ant/artifactId
 version2.0.1/version
   /dependency
 /dependencies

 build
   plugins
 plugin
   !-- NOTE: We don't need groupId if the plugin's groupId is
org.apache.maven.plugins OR org.codehaus.mojo.
We also don't have to specify a version, since Maven can
automatically resolve the newest one.
   

Re: [M1.1b2] problem with site generation : missing dependency

2006-01-20 Thread stéphane bouchet

Arnaud HERITIER a écrit :

Hi,

the jar is here : http://www.ibiblio.org/maven/batik/jars/


The link is broken.
Since we use rewritting rules over the m2 repository to create the m1 one, 
these directories listings are outdated.


Right !
I found the jar (working) on a mirror :
http://mirrors.sunsite.dk/maven/batik/jars/

this one is in my build.properties ..


Stéphane



arnaud

it seems your ${maven.repo.remote} property is missing or not 
configured, because maven is trying to download that jar from 
the URL you specified in your project.xml ...



Stéphane


Hervé BOUTEMY a écrit :

Maven site generation has been working well for a long time.
But lately, I deleted my local repository, and now I can't 
generate my 

site any more : a dependency is missing :

$ maven site:site
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-2

Attempting to download batik-1.5-fop-0.20-5.jar.
WARNING: Failed to download batik-1.5-fop-0.20-5.jar.
The build cannot continue because of the following 

unsatisfied dependency:
batik-1.5-fop-0.20-5.jar (try downloading from 
http://xml.apache.org/batik/)


Total time   : 3 seconds
Finished at  : Friday, January 20, 2006 8:32:09 AM CET


Is anybody facing the same problem ?

Hervé



-

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: SV: Dependency on hibernate

2006-01-20 Thread Christian Andersson

not sure if this has been suggested before..

Since this problem might exist not only for sun dependencies but for 
other dependencies also, could one sollution be to in the maven 
repository (on ibiblio,etc) create a pom for these dependencies but NOT 
include the dependency itself, but in the pom for the dependency have 
some sort of installation instruction so that when maven tries to 
download the dependency it will fail presenting the installation 
instructions, or if it even is possible, download the licens text for 
the dependency, display it to the user and if the user accepts license 
download the dependency from the real url (sjava.sun.com in this case)


the first part should not be that hard to implement I should think (I 
have not looked in the source of maven, but I suppose that it would 
require some changs in the code and perheps the pom also which might not 
be wanted..


/Christian Andersson

Bengt-Erik Fröberg wrote:

Hi

You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
3) Replace path-to-file with the path to your download
4) group-id with javax.transaction
5) artifact-id with jta
6) version with 1.0.1B
7) packaging with jar
8) watch your desired transaction package get installed hopefully...

Yes, I know, there should be a tool for this, feels like the 80's entering
shitloads of command line arguments..

HTH

/B-E


-Ursprungligt meddelande-
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] 
Skickat: den 19 januari 2006 21:30

Till: Maven Users List
Ämne: Dependency on hibernate

Hello!

I added a dependency on hibernate in my pom.xml:


dependency
  groupIdhibernate/groupId
  artifactIdhibernate/artifactId
  version3.1rc2/version
  scopecompile/scope
/dependency

If I try to compile I get an error:

[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

required artifacts missing:
  javax.transaction:jta:jar:1.0.1B


Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for 
the jar-file. There is no JAR on this server. How can I resolve this 
dependency?


Thanks in advance!

- Guenther



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



Re: Last : Keep my MANIFEST.MF and not use auto-generate ?

2006-01-20 Thread Olive
Nobody to How change manuely the classpath  of manifest.mf in WAR archive
. 


Because i can t give it my manifest to maven.

 manifestFile/META-INF/MANIFEST.MF/manifestFile
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.0
Cause: Cannot find setter nor field in
org.apache.maven.archiver.ManifestConfiguration for 'manifestFile'



2006/1/18, Olive [EMAIL PROTECTED]:

 I try but no results

 I still have maven's manifest

 my manifest has been delete





 2006/1/18, Gisbert Amm [EMAIL PROTECTED] :
 
  Have you tried to put your manifest into src/META-INF/MANIFEST.MF
  already? The docs say for maven.war.manifest:
 
  Location of the MANIFEST.MF file in the source tree. It defaults to
  ${maven.war.src}/META-INF/MANIFEST.MF
 
  http://maven.apache.org/maven-1.x/reference/plugins/war/properties.html
 
  Regards,
  Gisbert Amm
 
  Olive wrote:
   Hi
  
   When i generate my webapp (maven clean package), my manifest 's file
  is
   replace by maven
  
   How to stop generate manisfest in my WAR ...
  
   I put my file in src/resources/META-INF/MANIFEST.MF
  
   in target it's alright
  
   but in my war archive it is maven's manisfest.mf  and not mine.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Olivier C.




--
Olivier C.


[m2] Profile inheritance

2006-01-20 Thread Rubén Barroso
Is there any standard way or even if it's possible to get a profile be
inherited (some of its properties) from another one? (i.e. is profile
inheritance implemented?)

Thanks in advance.

rb


[m2] re-enabling a blacklisted repository [Virus checked]

2006-01-20 Thread gernot . eger

Hi,

during some tests with maven-proxy, i had my central repository
blacklisted. Is there a way to re-enable it? Where is this information
stored?

any help appreciated
regards,
gernot




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



Re: Dependency on hibernate

2006-01-20 Thread Ralph Pöllath

On 20.01.2006, at 11:05, Christian Andersson wrote:

not sure if this has been suggested before..

Since this problem might exist not only for sun dependencies but  
for other dependencies also, could one sollution be to in the maven  
repository (on ibiblio,etc) create a pom for these dependencies but  
NOT include the dependency itself, but in the pom for the  
dependency have some sort of installation instruction so that when  
maven tries to download the dependency it will fail presenting the  
installation instructions, or if it even is possible, download the  
licens text for the dependency, display it to the user and if the  
user accepts license download the dependency from the real url  
(sjava.sun.com in this case)


the first part should not be that hard to implement I should think  
(I have not looked in the source of maven, but I suppose that it  
would require some changs in the code and perheps the pom also  
which might not be wanted..


POMs with download URLs are already up there, e.g.
http://ibiblio.org/maven2/javax/jms/jms/1.1/jms-1.1.pom

I don't expect the automatic license agreement to happen.

But if sun's jars contained info about their possible replacements  
from geronimo..


Cheers,
-Ralph.



Bengt-Erik Fröberg wrote:

Hi
You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party- 
jars.html

3) Replace path-to-file with the path to your download
4) group-id with javax.transaction
5) artifact-id with jta
6) version with 1.0.1B
7) packaging with jar
8) watch your desired transaction package get installed  
hopefully...
Yes, I know, there should be a tool for this, feels like the 80's  
entering

shitloads of command line arguments..
HTH
/B-E
-Ursprungligt meddelande-
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] Skickat: den 19  
januari 2006 21:30

Till: Maven Users List
Ämne: Dependency on hibernate
Hello!
I added a dependency on hibernate in my pom.xml:
dependency
  groupIdhibernate/groupId
  artifactIdhibernate/artifactId
  version3.1rc2/version
  scopecompile/scope
/dependency
If I try to compile I get an error:
[INFO]  
- 
---

[ERROR] BUILD ERROR
[INFO]  
- 
---

[INFO] Failed to resolve artifact.
required artifacts missing:
  javax.transaction:jta:jar:1.0.1B
Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and  
search for the jar-file. There is no JAR on this server. How can I  
resolve this dependency?

Thanks in advance!
- Guenther


-
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] Where to place resources for unit tests?

2006-01-20 Thread david
I believed it too, but I have some problems with resources retrievedusing 
classpath in a multiproject application and discovered thatresources get added 
to the generated jar.

I searched maven documentation and found that it was the correct behaviour ???

I tried testResourceexcludes/, but then resources are not copied to 
test-classes directory (so not available in unit test).

Jeff Lowe wrote:
 I believe that the testResources get copied into the
 /target/test-classes directory and are therefore available to the unit
 tests (as resources) when they run. Unlike resources in
 /target/classes, they don't get added to the generated jar. 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 17, 2006 10:40 AM
 To: users@maven.apache.org
 Subject: [m2] Where to place resources for unit tests?
 
 Hello,
 
 I need some config files/resources for unit test, so I place them
 insrc/test/resources, but I don't want to include them in generated
 jar.
 
 The description of testResource element of pom.xml states
 thatresources are used to complete the jar or to run unit test.
 
 How can use this resources in test phase, but not include them in jar ?
 
 Thanks.
 
 
 
 ___
 Siebel
 IT'S ALL ABOUT THE CUSTOMER
 Visit www.siebel.com




Re: [m2] project-info-reports plugin fails (doxia-core-1.0-alpha-7 doesn't hold SiteRenderer anymore)

2006-01-20 Thread Orjan Austvold
Is it only me who has problems getting the maven-project-info-reports 
version 2.0-beta-3 on maven 2.0.2 work?


Isn't anybody using it on 2.0.2?


Ørjan



Orjan Austvold wrote:
The maven-project-info-reports plugin fails in maven 2.0.2 due to 
doxia-core no longer holding the 
org.codehaus.doxia.site.renderer.SiteRenderer class.


I've even tried with a clean local repository.

Am I missing something?



Thanks,
Ørjan



java.lang.NoClassDefFoundError: 
Lorg/codehaus/doxia/site/renderer/SiteRenderer;

at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
at java.lang.Class.getDeclaredField(Class.java:1852)
at 
org.codehaus.plexus.util.ReflectionUtils.getFieldByNameIncludingSuperclasses(ReflectionUtils.java:26) 

at 
org.codehaus.plexus.component.composition.FieldComponentComposer.getFieldByName(FieldComponentComposer.java:212) 

at 
org.codehaus.plexus.component.composition.FieldComponentComposer.findMatchingField(FieldComponentComposer.java:171) 

at 
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:62) 

at 
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) 

at 
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) 

at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) 

at 
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) 

at 
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) 

at 
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) 

at 
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) 

at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) 

at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) 

at 
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:527) 

at 
org.apache.maven.plugin.DefaultPluginManager.getReport(DefaultPluginManager.java:465) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:675) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:634) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:509) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) 

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) 


at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java: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:585)
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)



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



Problem in Installing Plug-in from a Remote repository

2006-01-20 Thread narayan dhumale
Hi,

I am trying to download the plugins from a Remote Repository.For this i have 
taken following steps:-
1added the the attribute in 
project.properties=http://maven-plugins.sf.net/maven
( i have tried by adding http://www.ibiblio.org also)
Still its not downloading


However the plugins are not getting Downloaded .

Please guide...
D:\dev\mavenbook\code\genapp\test-applicationmaven plugin:download
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

What is the artifactId of the plugin to download (e.g. maven-java-plugin)?
maven-axis-plugin
What is the groupId of the plugin to download? [maven]
maven-plugins
What is the version of the plugin to download?
0.7
build:start:

plugin:download-artifact:
[echo] repo is 'http://maven-plugins.sf.net/maven'
[echo] trying to download http://maven-plugins.sf.net/maven/maven-plugins/pl
ugins/maven-axis-plugin-0.7.jar
Response content length is not known

BUILD FAILED
File.. C:\Documents and Settings\Shailesh.Barde\.maven\cache\maven-plugin-pl
ugin-1.5.2\plugin.jelly
Element... ant:fail
Line.. 251
Column 52
Unable to find plug-in
Total time: 17 seconds
Finished at: Fri Jan 20 16:50:03 IST 2006

Re: [m2]Guide to Developing Ant Plugins error

2006-01-20 Thread Henrik Mejlgaard
Hi Alexandre,

I had the same problem. It seems there is a problem in the transitive
dependencies somewhere.
My very ugly hack to get past this error was to copy the 2.0.1
versions into the 2.0 versions of  maven-plugin-tools-api in my local
repository - renaming the version of the file of course. I then
created new sha1's for the files as well. Ugly, ugly, ugly :(

The path is 
USER_SETTINGS\.m2\repository\org\apache\maven\maven-plugin-tools-api

/Henrik

On 1/20/06, Alexandre Russel [EMAIL PROTECTED] wrote:
 Hi,
 I am following the Guide to Developing Ant Plugins, first example hello
 world plugin:
 here is the error and at the end of the mail the exact file I
 used(cut/paste from the guide):


 mvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building Hello Plugin
 [INFO]task-segment: [install]
 [INFO]
 
 [WARNING]
Artifact org.apache.maven:maven-plugin-descriptor:jar:2.0-beta-3
 retains local scope 'runtime' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove
 the local scope.

 [WARNING]
Artifact
 org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 retains
 local scope 'runtime' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove
 the local scope.

 [WARNING]
Artifact org.apache.maven:maven-plugin-tools-api:jar:2.0-beta-3
 retains local scope 'runtime' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove
 the local scope.

 [INFO] [plugin:descriptor]
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO]
 org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
 [INFO]
 
 [INFO] Trace
 java.lang.AbstractMethodError:
 org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.extractMojoDescriptors(Ljava/util/Map;Lorg/apache/maven/plugin/descriptor/PluginDescriptor;)Ljava/util/List;
at
 org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
at
 org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69)
at
 org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:95)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java: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:585)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 [INFO]
 
 [INFO] Total time: 3 seconds
 [INFO] Finished at: Fri Jan 20 10:43:32 CET 2006
 [INFO] Final Memory: 4M/8M
 [INFO] 


 /hello-plugin$ tree
 .
 |-- pom.xml
 |-- pom.xml~
 `-- src
`-- main
`-- script
|-- hello.build.xml
`-- hello.mojos.xml

 3 directories, 4 files
 /hello-plugin$ cat pom.xml
 project
  modelVersion4.0.0/modelVersion

  groupIdtest/groupId
  

Re: SV: Dependency on hibernate

2006-01-20 Thread Geoffrey De Smet

The JAXB jars are up java.net's repository.
Maybe if we poke them a bit more, they add activation, javamail etc too :)

http://weblogs.java.net/blog/kohsuke/archive/2006/01/jaxb_jars_are_a.html
http://blogs.sun.com/roller/page/theaquarium?entry=maven_repository_at_java_net

Bengt-Erik Fröberg wrote:

Hi

You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
3) Replace path-to-file with the path to your download
4) group-id with javax.transaction
5) artifact-id with jta
6) version with 1.0.1B
7) packaging with jar
8) watch your desired transaction package get installed hopefully...

Yes, I know, there should be a tool for this, feels like the 80's entering
shitloads of command line arguments..

HTH

/B-E


-Ursprungligt meddelande-
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] 
Skickat: den 19 januari 2006 21:30

Till: Maven Users List
Ämne: Dependency on hibernate

Hello!

I added a dependency on hibernate in my pom.xml:


dependency
  groupIdhibernate/groupId
  artifactIdhibernate/artifactId
  version3.1rc2/version
  scopecompile/scope
/dependency

If I try to compile I get an error:

[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

required artifacts missing:
  javax.transaction:jta:jar:1.0.1B


Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for 
the jar-file. There is no JAR on this server. How can I resolve this 
dependency?


Thanks in advance!

- Guenther



--
With kind regards,
Geoffrey De Smet


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



jdepend plugin does not work on maven 2.0.2

2006-01-20 Thread tony nys
Hi 

I try to generate a sample jdepend report on a new
default project generated by the archetype:create

I have added the report configuration as document on
codehaus website, but when I run site:site or
jdepend:generate, it cannot find the plugin. 
When I Look manually on the repository
http://www.ibiblio.org/maven2/org/codehaus/mojo/
I cannot find it either. 


error:

[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jdepend-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any
repository

 
org.codehaus.mojo:jdepend-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException:
Unable to build project for plugin 'org.codehaus.mojo:
jdepend-maven-plugin': POM
'org.codehaus.mojo:jdepend-maven-plugin' not found in
repository: Unable to downloa
d the artifact from any repository

 
org.codehaus.mojo:jdepend-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)




this is my pom
project...
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany.app/groupId
  artifactIdmy-app/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
build
/build
  reporting
  plugins
  plugin
 groupIdorg.codehaus.mojo/groupId

artifactIdjdepend-maven-plugin/artifactId
 version1.0-SNAPSHOT/version
  /plugin
  /plugins
  /reporting
/project


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Problem in Installing Plug-in from a Remote repository

2006-01-20 Thread Stephane Nicoll
Do you have a direct access to the Internet or do you need to use a
proxy server?

On 20 Jan 2006 11:30:05 -, narayan dhumale
[EMAIL PROTECTED] wrote:
 Hi,

 I am trying to download the plugins from a Remote Repository.For this i have 
 taken following steps:-
 1added the the attribute in 
 project.properties=http://maven-plugins.sf.net/maven
 ( i have tried by adding http://www.ibiblio.org also)
 Still its not downloading


 However the plugins are not getting Downloaded .

 Please guide...
 D:\dev\mavenbook\code\genapp\test-applicationmaven plugin:download
  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

 What is the artifactId of the plugin to download (e.g. maven-java-plugin)?
 maven-axis-plugin
 What is the groupId of the plugin to download? [maven]
 maven-plugins
 What is the version of the plugin to download?
 0.7
 build:start:

 plugin:download-artifact:
 [echo] repo is 'http://maven-plugins.sf.net/maven'
 [echo] trying to download 
 http://maven-plugins.sf.net/maven/maven-plugins/pl
 ugins/maven-axis-plugin-0.7.jar
 Response content length is not known

 BUILD FAILED
 File.. C:\Documents and 
 Settings\Shailesh.Barde\.maven\cache\maven-plugin-pl
 ugin-1.5.2\plugin.jelly
 Element... ant:fail
 Line.. 251
 Column 52
 Unable to find plug-in
 Total time: 17 seconds
 Finished at: Fri Jan 20 16:50:03 IST 2006



--
.::You're welcome ::.

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



RE: [m2] Central repository in a standalone environment

2006-01-20 Thread COUVREUR jacques
I have just tried this

It seems better... but it does not work yet!

I have:
(1) First played the mvn test in my project with the proxy settings to 
download the needed dependencies.

(2) Commented my proxy settings and put mirror settings (in my 
C:\Documents and Settings\LOGIN\.m2\settings.xml under Windows XP) as 
following:
settings
  localRepositoryC:/Dev/tools/maven/local-m2/localRepository
  !--proxiesproxy.../proxy/proxies--
  mirrors
   mirror
  idlocal-repository/id
  urlfile://Z:/maven/repository /url
  mirrorOfcentral/mirrorOf
/mirror
  /mirrors
/settings

(3) Moved the content of my localRepository to my local center repository.

(4) Retried the mvn test command.

And I get the following error:

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

It seems Maven not to try to connect to *MY* central repository!


Plese, help! (Leeloo)


-Message d'origine-
De : Jörg Schaible [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 10:22
À : Maven Users List
Objet : RE: [m2] Central repository in a standalone environment

COUVREUR jacques wrote on Friday, January 20, 2006 9:36 AM:

 Hi Edwin and thanks !...
 
 But I have tried the following settings as you hinted me:
 
 profiles
profile
   !--activationactiveByDefault //activation-- 
  iddev-profile/id repositories
repository
  idcentral/id
  nameLocal repositoryname
  !--urlfile://Z:\maven\repository/url--
  !--urlfile:C:/Dev/tools/maven/repository-m2/url--
  urlhttp://mon.cataweb.org/url
/repository
  /repositories
/profile
  /profiles
  activeProfiles
activeProfiledev-profile/activeProfile
  /activeProfiles

[snip]

IMHO you must set your repository as mirror for central.

- Jörg

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





--
Ce message est protege par les regles relatives au secret des correspondances ; 
il peut en outre contenir des informations a caractere confidentiel ou 
protegees par differentes regles et notamment le secret des affaires ; il est 
etabli a destination exclusive de son destinataire. Toute divulgation, 
utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou 
des informations qu'il contient, doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut 
etre assuree. Les AGF declinent toute responsabilite au titre de ce message 
s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire 
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la 
destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore 
it may contain privileged or confidential information that is protected by law, 
notably by the secrecy of business relations rule ; it is intended solely for 
the attention of   the addressee . Any disclosure, use, dissemination or 
reproduction (either whole or  partial) of this message or the information 
contained herein is strictly prohibited without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can 
not be assured.  AGF declines any  responsibility for  this message in the 
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  
notify the sender of the wrong delivery and the mail deletion. 
--


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



Is there some M1 documentation that is also interesting for M2?

2006-01-20 Thread softwarearchitekt
Hey all,
i don't know m1, and sometime i miss some docu for m2, is there some 
documentation from m1 that is already actuall? 

Fredy

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



RE: Maven Output Verbosity

2006-01-20 Thread Mike Lantink
I am using M2...-q does not seem to be a supported option. Is there a 
equivalent in M2 ? 

Michael Lantink
Software Engineer 
(519) 880-2400 ext 2765
www.sandvine.com


-Original Message-
From: Gisbert Amm [mailto:[EMAIL PROTECTED]
Sent: Friday, January 20, 2006 2:53 AM
To: Maven Users List
Subject: Re: Maven Output Verbosity


Have you tried the -q (--quiet) command line switch already?

Regards,
Gisbert Amm

Mike Lantink wrote:
 Is there a way to turn down the output produced during a maven 
 execution...goal specific or otherwise ?

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



Howto setup a maven project for eclipse plugin dev?

2006-01-20 Thread Kai Klesatschke
Hey,

anybody out there who can tell me howto setup a maven project for
eclipse plugin development?

The PDE-Tools expect the META-INF/MANIFEST.MF and the plugin.xml in the
root folder of a project but maven wants them in a resource directory.
If moving the files there deploying a plugin will work, but it will be
impossible to use the PDE-Tools.

Regars, Kai

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



Multiple Project Ant Dependencies

2006-01-20 Thread Taleswapper
It seems like if I have one pom with modules that  also has an ant task, if one 
of the modules has an ant task, then the  parent's ant task doesn't notice 
dependencies (resulting in not being  able to recognize regular expressions, 
say).
  
  I stripped down to an example with one parent pom.xml with a build.xml, and 
one module pom.xml file with a build.xml file. 
  
  - pom.xml
  - build.xml
  + -- tmp
   |- pom.xml
   |- build.xml
  
  The parent uses an anttask that uses the regexp filter.  When I  mvn install, 
I get this on the execution of the parent's ant task.
  
  Embedded error: The following error occurred while executing this line:
  C:\Views\tmp\build.xml:56: Could not create type regexpmapper due to No 
supported regular exp
  ression matcher found
  
  HOWEVER, if I comment out the tmp module, all works fine.
  
  
  
  the parent pom.xml looks like:
  
  packagingpom/packaging
  modules
   moduletmp/module 
  /modules 
  build
  
  plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
  executions
  execution
idant-install/id
phaseinstall/phase
configuration
tasks
ant antfile=build.xml  
inheritRefs=true
target  name=test-reg/
/ant
/tasks
/configuration
  goals
goalrun/goal
  /goals
  /execution
  /executions
  dependencies
  dependency
  groupIdregexp/groupId
  artifactIdregexp/artifactId
  version1.3/version
  scoperuntime/scope
  /dependency
  /dependencies
  
  /plugin
  /plugins
  /build
  
  the tmp module pom.xml looks like:
  
  artifactIdtmp/artifactId
  packagingjar/packaging
  version1.0/version
  
  build
  plugins
   plugin
artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
   executions
  execution
phaseprocess-classes/phase
configuration
  tasks   
  
ant target=test  inheritRefs=true
 antfile=build.xml/
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
  /executions
  /plugin
  /plugins
  resources
  resource
   directorysrc/main/resources/directory
  /resource
  resource
directorysrc/generated/resources/directory
  /resource
  /resources
  /build
  
  dependencies
  
  dependency
  groupIdregexp/groupId
  artifactIdregexp/artifactId
  version1.3/version
  scoperuntime/scope
  /dependency
  /dependencies

  
  


-
Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail 

[m2] How would I do the following in M2?

2006-01-20 Thread John Wells

From the same source files, I want to produce two jar files.  Here are
the requirements:

1.  One JAR file would contain all the sources compiled with J2SE 5.0
2.  One JAR file is for clients, and must be compiled with J2SE 1.4

Imagine the following packages:

org.whatever.common- These files are in both jars
org.whatever.server- These files are only on the server
org.whatever.client- These files are in both jars too

The trick here is that the files in the common and client packages
need to be compiled twice:  once for the client JAR (1.4) and once for
the server JAR (5.0).  However, they are the same sources in either
case.

The files in the server JAR can be compiled with 5.0 exclusively, and
hence can use all the new J2SE 5.0 features.

Is there a recommended way to do this using Maven 2?

Any help would be appreciated.

John Wells (Aziz)
[EMAIL PROTECTED]

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



[m2] Nightly build using assembly

2006-01-20 Thread Sean Schofield
I'm trying to publish our project's nightly builds using
assembly:assembly publish.  The resulting tarballs are published but
so are the poms and meta-data.xml.  Ideally this would not be
published as the end user does not care about such things.  They just
want to download the tarball.

Also, if possible I would like to omit the directory hiearchy when
publishing.  Its a pain to drill down through a fully qualified domain
name instead of just going directly to a nightly dir.  I thought
about giving a group id of just nightly but I would like to also use
the same assembly to publish the tarballs for official release.

Any Ideas?

Sean

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



RE: Worst documentation in the whole apache projects

2006-01-20 Thread Jeff Jensen
Examples are one thing, reference info is another.  I think anyone can
contribute both.  

Particularly, if even a small number of users would look at the pom:
http://maven.apache.org/maven-model/maven.html

read the description of each element, and submit patches to improve it to
this JIRA or different ones:
http://jira.codehaus.org/browse/MNG-1479

a lot of clarity would arrive for all of us.  Detailed explanations of
elements go a long way to answering what to do.

Many users have solid M2 experience in one or more facets of M2; many have
figured it out the hard way; a way to contribute to the product is via
that knowledge through doc improvements.  Even just adding a one sentence
clarification can save someone 2 hours of experimentation and/or emailing
this list.

This list spends more time writing and wading through the repeating large
email volume than updating docs for all to use and reduce the need for email
list questions.


-Original Message-
From: Ramin Farhanian [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 12:31 AM
To: Maven Users List
Subject: Re: Worst documentation in the whole apache projects

Afkham,
 We might contribute some examples to Maven team but It's better that we do
not expose it ourselves.
Because Most of maven users might have understood a version of truth about
Maven mechanism. I really like the team to give Maven aware people a
homework example. This way they dont start samples from the scratch. And
this way some people can help...

regards,
Ramin

--- Afkham Azeez [EMAIL PROTECTED] wrote:

 Hi Folks,
 I sincerely wish that everybody commenting on the bad documetation 
 will at least try to contribute some documentation.
 After all, most of
 you have figured out stuff the hard way. Why not share it with the 
 community? Why keep on blaming the developers for insufficient 
 documentation, and not do anything about it? Ask not what Maven can do 
 for you but what yu can do for Maven :) Long live Maven
 
 Regards
 Azeez
 
 On 1/20/06, Ramin Farhanian [EMAIL PROTECTED]
 wrote:
 
   The nature of an open souce project is not an
 excuse
  not to document. We are facing 50 different MVC frameworks. What if 
  they don't have documentation?
  Open source projects are there to let all of us
 live
  in a more harmonized, more peaceful, ever evolving world. You code 
  here today in Maven, I will code tomorrow in Facelet. We are all 
  interconnected.
   I should say to Maven team that if you see this thread is growing, 
  It's because you are creating a great tool and we all need it. It's 
  because We
 have
  tried to use it and to enjoy its great features
 but We
  faced problems. This documentation has been on our nerves. I wish 
  you all guys to continue evolving
 this
  tool and wish for all of us that you Maven team
 find a
  good one to document in a brain friendly way.
   I dont agree with yet another wiki. Unfortunately
 it
  should be done by a group of people that
 communicate
  eachother and are master in the tool
 
  Regards,
  Ramin
  ps, again I wish Kathy Sierra could help in documentation.
 
 
  --- Richard Allen [EMAIL PROTECTED]
  wrote:
 
   I'm amazed at the lack of appreciation some
 people
   have for getting
   something for nothing! Maven is FREE! The
 developers
   don't get paid to
   write the code, much less the documentation, or
 even
   to respond to lousy
   user email. They do it all in their free time.
   However, I bet Roberto is
   getting paid to work on his J2EE project. Maven
   hasn't been around as
   long as many other Apache open-source projects.
   Open-source projects
   typically have poor documentation while the code
 is
   maturing. Like all
   open-source projects, if you want to really get
 to
   know the product,
   then read the code! It'll make you a better
   programmer. If you don't
   have time to read the code, then you shouldn't
 be
   using open-source
   projects. At least not until the project has
   matured.
  
   I'm working on a build for a complex web
 application
   and I've found that
   Maven solves problems that Ant doesn't have a
   solution for. In
   particular, Maven handles transitive
 dependencies
   and is multiproject
   aware. If you are using Ant alone, then you have
 to
   write your own
   solution for these things. For things that Ant
 has
   but Maven is
   currently lacking, you can write your own
 plugin(s)
   or use the
   maven-antrun-plugin.
  
   Richard Allen
  
  
   Nanamura, Roberto wrote:
  
   Hi,
   
   Is there any way to improve all the
 documentation
   for the Maven.
   
   I will not use Maven anymore since there are a
   bunch of thing missing
   from the documentation (and a lot of things do
 not
   work like the J2EE
   archetype which is nowhere to be find and I am
 not
   the only one to
   complain about it).
   
   It is good for a simple project (then again,
 why
   should I need maven for
   a simple Hello World project?). But if you add
 a
   J2EE 

[m2] modularisation of projects

2006-01-20 Thread softwarearchitekt
Hey all,
i've a question about modularisation of projects. My project has a common 
module,
a database-base module, a module for each database and a service module for 
eacxh service:

common
db_base
db_1...
db_n
service_1...
service_n
app_1...
app_n

dependencies:
service_n  has 0..* service_n
service_n  has 0..* db_n
service_n  has 1 common
db_n 1 db_base
db_n has 1 common
db_base has 1 common

How should i organize this? each module a cvs Repository and a maven artefact??

So the Builds will be very expensive, if there are a lot changes all over the 
modules, 
i have to administer all the versions in the pom. ar ethere somewhere a best 
practice document?

How to work with SNAPSHOTS?

Fredy

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



Re: [m2] Nightly build using assembly

2006-01-20 Thread Sean Schofield
 I'm trying to publish our project's nightly builds using
 assembly:assembly publish.

Actually I'm using assembly:assembly deploy

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



[m2] Newbie question...

2006-01-20 Thread Paolo Perrucci

Hi all,

to experiment with m2 I'm trying to define the pom for a legacy 
project build with ant.

The existing ant build process create two jar: with and without debug infos.
How can I use m2 to create the same jars without using the old ant build?

Thanks
Paolo


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



Re: [m2] Multiprojects and inherited SCM URLs

2006-01-20 Thread Sean Schofield
 How about this:
 scm:svn:svn://host/PROJECT/${pom.artifactId}

 This should work if you use the same name for the part in your svn
 repository as their artifactIds.

This works.  Unfortunately in our case the svn module does not match
the artifactId.  It would be nice if they could deviate and still have
the SCM inheritance work.

 Dennis Lundberg

Sean

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



Ref : [m2] How would I do the following in M2?

2006-01-20 Thread adelie-lemoing . consultant
Try this :

- pom.xml - dependencies
+ src
+ client
- pom.xml - configured to produce the client jar with J2SE 1.4
+ server
- pom.xml - configured to produce the server jar with JSE 5.0


David LE MOING






John Wells [EMAIL PROTECTED]
20/01/2006 14:47
Veuillez répondre à Maven Users List

 
Pour :  Maven Users List users@maven.apache.org
cc : 
Objet : [m2] How would I do the following in M2?



From the same source files, I want to produce two jar files.  Here are
the requirements:

1.  One JAR file would contain all the sources compiled with J2SE 5.0
2.  One JAR file is for clients, and must be compiled with J2SE 1.4

Imagine the following packages:

org.whatever.common- These files are in both jars
org.whatever.server- These files are only on the server
org.whatever.client- These files are in both jars too

The trick here is that the files in the common and client packages
need to be compiled twice:  once for the client JAR (1.4) and once for
the server JAR (5.0).  However, they are the same sources in either
case.

The files in the server JAR can be compiled with 5.0 exclusively, and
hence can use all the new J2SE 5.0 features.

Is there a recommended way to do this using Maven 2?

Any help would be appreciated.

John Wells (Aziz)
[EMAIL PROTECTED]

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





Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Frank Russo
I'm trying to use wagon to deploy to an internal server. We use ssh2, so
I read that I'm supposed to use the sftp protocol. 
 
Here are my entries in pom.xml:

...
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-6/version
/extension
/extensions
...

distributionManagement
repository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/repository
snapshotRepository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/snapshotRepository
/distributionManagement

Entries in settings.xml:

server
  idinternal_repository/id
  usernameusername/username
  passwordpassword/password
/server

The error I get is:

[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
 
[INFO]


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159)
...
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact:
 Error occured while deploying 'com/fxall/my-war-1.5.war' to
remote repository: sftp://internalrepo/maven_repository/
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:91)
...
Caused by: org.apache.maven.wagon.TransferFailedException: Error
occured while deploying 'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:144)
...
Caused by: Failure
at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown
Source)
at com.jcraft.jsch.ChannelSftp.mkdir(Unknown Source)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.mkdir(SftpWagon.java:219)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:91)
... 22 more

Am I missing something or doing something wrong? 

Frank Russo
Senior Developer
FX Alliance, LLC



java.lang.VerifyError using maven 2

2006-01-20 Thread Shukla, Sanjay
Hey Guys,

 

I am in a terrible situation compiling my code with maven 2 produces a
java.lang.VerifyError when the code runs.

 

However using my previous ant build the code build fine. I am really
baffled at this, can anyone suggest a way to debug this situation.

 

Thanks,

 

Sanjay Shukla,

HPI Product Engineering, 2 Penn Plaza, NY.

 

 



RE: Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Frank Russo
Forgot to mention that I'm using version 2.0.2.


Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Friday, January 20, 2006 10:15 AM
To: users@maven.apache.org
Subject: Problem deploying to internal repository using ssh2/sftp

I'm trying to use wagon to deploy to an internal server. We use ssh2, so
I read that I'm supposed to use the sftp protocol. 
 
Here are my entries in pom.xml:

...
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-6/version
/extension
/extensions
...

distributionManagement
repository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/repository
snapshotRepository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/snapshotRepository
/distributionManagement

Entries in settings.xml:

server
  idinternal_repository/id
  usernameusername/username
  passwordpassword/password
/server

The error I get is:

[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
 
[INFO]


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159)
...
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact:
 Error occured while deploying 'com/fxall/my-war-1.5.war' to
remote repository: sftp://internalrepo/maven_repository/
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:91)
...
Caused by: org.apache.maven.wagon.TransferFailedException: Error
occured while deploying 'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:144)
...
Caused by: Failure
at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown
Source)
at com.jcraft.jsch.ChannelSftp.mkdir(Unknown Source)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.mkdir(SftpWagon.java:219)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:91)
... 22 more

Am I missing something or doing something wrong? 

Frank Russo
Senior Developer
FX Alliance, LLC




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



Release plugin completely breaks inheritance

2006-01-20 Thread Brian E. Fox
Hopefully I'm just doing something wrong:
 
I have a super parent where I control all my dependencyManagement and
pluginManagement etc. 
 
When I do release prepare, all the values from my super parent get
injected into my children poms and then checked in and tagged. I'm ok so
far. Then it rolls the version for the next development cycle but
doesn't remove all these injected values, _and_ checks it in. So now,
after doing a release, all my inheritance structure is completely
broken.
 
I tried the generateReleasePoms and it still does the same effect.
 
As it is, I'm completely hosed as it will be more work to undo what
release did to my poms, than to manually do a release.
 


functionnal testing

2006-01-20 Thread BURGHARD Éric
Hi,

Is there a standard way to do functionnal testing with m2 ?

I just wrote a quick and dirty mojo for that, but i think there should be a
better way: I just spawn a jetty6:run in a thread, wait until the container
is ready, run a set of tasks (mojos that effectively do html testing) with
the plugin manager, and at the end, interrupt the container.

AFAIK the lifecycle fork mode was unusable for that. What i need is a
parallel mode instead.

WDYT ?


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



[m2] Integrating an eclipse RCP app with maven

2006-01-20 Thread Duncan Krebs
As of now I have all of my projects under maven control with exception to a 
collection of eclipse plugins that compose an RCP app. I have one plugin that 
serves as a jar library and have a class in that plugin that manually goes into 
my local repository to update snapshot jars after I run over to the command 
line to install the snapshots for the maven projects in my workspace. I'm 
thinking there has to be a better way. 

I don't see how I could use the plug-in like a normal maven project though 
because I can only append actual jars to its classpath that are made available 
to other plugins, jars defined by the MAVEN_REPO classpath variable won't work. 
Not sure if there is a better approach to this, if anyone has some ideas it 
would be greatly appreciated. 


[1.0] How do you implement a moduleparent relationship in Maven 1.0

2006-01-20 Thread Osborne, Matthew
In my continuing quests, I am trying to create a Maven 1.0 builder for a
project I'm working on alongside a Maven 2.0 builder.  However, I've hit
a little issue and would appreciate some guidance on the matter:  

In the Maven 2.0 builder, the parent pom.xml referred to the child
pom.xml as a module, and the child pom referred back to the parent via
a parent decalration.  However, this approach does not work in 1.0.  I
have successfully got the child project.xml file to refer back to the
parent by a an extend parameter, but I cannot figure out how to get
the parent project.xml to refer to, and call the child file.  How would
I go about doing this?


Matthew Osborne

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



[m2] deploy:deploy-file deletes my local pom file before uploading it ...

2006-01-20 Thread Romain Rouvoy

Hello,

I'm trying to deploy a 3rd party jar using the deploy:deploy-file mvn  
command:


mvn deploy:deploy-file -Dfile=fractal-2.0.1.jar - 
DpomFile=fractal-2.0.1.pom -Durl=... -DrepositoryId=objectweb-release


These files have been previously successfully copied to my local  
repository using a mvn install:install-file command. I execute the  
deploy command from the local repository.


But I obdtain the following error:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]  
 


[INFO] Building Maven Default Project
[INFO]task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]  
 


[INFO] [deploy:deploy-file]
Uploading: scp://forge.objectweb.org/var/lib/gforge/chroot/home/ 
groups/maven/htdocs/maven2/org/objectweb/fractal/fractal/2.0.1/ 
fractal-2.0.1.jar

11K uploaded
[INFO] Retrieving previous metadata from objectweb-release
[INFO]  
 


[ERROR] BUILD ERROR
[INFO]  
 

[INFO] Error installing artifact's metadata: Error installing  
metadata: Error rewriting POM


/Users/rouvoy/.m2/repository/org/objectweb/fractal/fractal/2.0.1/ 
fractal-2.0.1.pom (No such file or directory)
[INFO]  
 


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


[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 20 17:09:51 CET 2006
[INFO] Final Memory: 3M/5M
[INFO]  
 



And my local pom file has been deleted by the mvn command :'-(

Any help ?

regards,
Romain

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



Re: [m2] deploy:deploy-file deletes my local pom file before uploading it ...

2006-01-20 Thread Romain Rouvoy

Ok, I found the solution

In fact I can not use the default pom file generated by install-file  
to deploy. I need to rename it before deploying ... otherwise the  
rewriting of the pom file will failed :-(


Sorry for the noise :-/
Romain

Le 20 janv. 06 à 17:22, Romain Rouvoy a écrit :


Hello,

I'm trying to deploy a 3rd party jar using the deploy:deploy-file  
mvn command:


mvn deploy:deploy-file -Dfile=fractal-2.0.1.jar - 
DpomFile=fractal-2.0.1.pom -Durl=... -DrepositoryId=objectweb-release


These files have been previously successfully copied to my local  
repository using a mvn install:install-file command. I execute the  
deploy command from the local repository.


But I obdtain the following error:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]  
-- 
--

[INFO] Building Maven Default Project
[INFO]task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]  
-- 
--

[INFO] [deploy:deploy-file]
Uploading: scp://forge.objectweb.org/var/lib/gforge/chroot/home/ 
groups/maven/htdocs/maven2/org/objectweb/fractal/fractal/2.0.1/ 
fractal-2.0.1.jar

11K uploaded
[INFO] Retrieving previous metadata from objectweb-release
[INFO]  
-- 
--

[ERROR] BUILD ERROR
[INFO]  
-- 
--
[INFO] Error installing artifact's metadata: Error installing  
metadata: Error rewriting POM


/Users/rouvoy/.m2/repository/org/objectweb/fractal/fractal/2.0.1/ 
fractal-2.0.1.pom (No such file or directory)
[INFO]  
-- 
--

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

[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 20 17:09:51 CET 2006
[INFO] Final Memory: 3M/5M
[INFO]  
-- 
--


And my local pom file has been deleted by the mvn command :'-(


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



RE: [m2] deploy:deploy-file deletes my local pom file before uploading it ...

2006-01-20 Thread Brian E. Fox
That seems like a bug. 

-Original Message-
From: Romain Rouvoy [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 11:31 AM
To: Maven Users List
Subject: Re: [m2] deploy:deploy-file deletes my local pom file before uploading 
it ...

Ok, I found the solution

In fact I can not use the default pom file generated by install-file to deploy. 
I need to rename it before deploying ... otherwise the rewriting of the pom 
file will failed :-(

Sorry for the noise :-/
Romain

Le 20 janv. 06 à 17:22, Romain Rouvoy a écrit :

 Hello,

 I'm trying to deploy a 3rd party jar using the deploy:deploy-file mvn 
 command:

 mvn deploy:deploy-file -Dfile=fractal-2.0.1.jar - 
 DpomFile=fractal-2.0.1.pom -Durl=... -DrepositoryId=objectweb-release

 These files have been previously successfully copied to my local 
 repository using a mvn install:install-file command. I execute the 
 deploy command from the local repository.

 But I obdtain the following error:
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'deploy'.
 [INFO]
 --
 --
 [INFO] Building Maven Default Project
 [INFO]task-segment: [deploy:deploy-file] (aggregator-style)
 [INFO]
 --
 --
 [INFO] [deploy:deploy-file]
 Uploading: scp://forge.objectweb.org/var/lib/gforge/chroot/home/
 groups/maven/htdocs/maven2/org/objectweb/fractal/fractal/2.0.1/
 fractal-2.0.1.jar
 11K uploaded
 [INFO] Retrieving previous metadata from objectweb-release [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 --
 [INFO] Error installing artifact's metadata: Error installing
 metadata: Error rewriting POM

 /Users/rouvoy/.m2/repository/org/objectweb/fractal/fractal/2.0.1/
 fractal-2.0.1.pom (No such file or directory) [INFO]
 --
 --
 [INFO] For more information, run Maven with the -e switch [INFO]
 --
 --
 [INFO] Total time: 7 seconds
 [INFO] Finished at: Fri Jan 20 17:09:51 CET 2006 [INFO] Final Memory: 
 3M/5M [INFO]
 --
 --

 And my local pom file has been deleted by the mvn command :'-(

-
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] axistools:wsdl2java

2006-01-20 Thread Nathan Sowatskey

Hi

I have come back to the plugin, did a svn update, and now I have:

[INFO]  
 


[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM  
'org.codehaus.mojo:mojo-sandbox' not found in repository: Unable to  
download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:2-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Any ideas please?

Many thanks

Nathan

Nathan Sowatskey - Technical Leader, NMTG CTO Engineering -  
+34-638-083-675, +34-91-201-2139 - AIM NathanCisco - [EMAIL PROTECTED]


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



RE: [m2] multiple project's component dependency declaration possible or too complex?

2006-01-20 Thread Jim Babka
Well, this is interesting.  I ran into the issue of needing multiple build 
artifacts from a single project, and even though I theorized that this was not 
possible, no one either agreed or disagreed with me at that time.  Now this 
posting agrees with my theory, and moreover, states that it is a basic 
philosophy of Maven.

Again, the problem is that in building an Eclipse plugin, I must have two 
artifacts:

1. The JAR containing the class files, so that other projects can depend upon 
the classes in this plugin.
2. A meta-JAR that contains the original JAR plus the plugin.xml file the 
Eclipse requires.  This is needed to build an update site, and it must also be 
an artifact because the feature and update site builds must depend upon it.

So, assuming that there is no way to have multiple JARs produced by a single 
project, then it will not be possible to create Eclipse features and update 
sites without resorting to hackery and not using the repository.

Jim Babka
Senior Software Engineer
Main: (512) 334 3200
Direct: (512) 334 3237
Email: [EMAIL PROTECTED]
 
Webify Solutions
Enabling the On Demand Enterprise(tm)
www.webifysolutions.com
-Original Message-
From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 2:57 AM
To: Maven Users List
Subject: Re: [m2] multiple project's component dependency declaration possible 
or too complex?


I think he means to use it at build time for mvn use.


dan tran wrote:

how about create one big zip file?? then use antrun to unpack.

I do that quite often

-Dan



On 1/19/06, Edwin Punzalan [EMAIL PROTECTED] wrote:
  

You mean you want a single pom to have several jars associated with it?
This doesn't comply with the one-artifact-one-jar philosophy of maven
and so is not possible.

Also, accdg to the maven gurus, such configuration you gave is possible
as long as the each jar you set as a dep is placed in the repository
(read: placed properly in the repository accdg to
groupId/artifacId/version).



Loïc Lefèvre wrote:



Hello,
After some time struggling with my local repository I wonder if it's
me doing mistakes or if
the declaration of multiple project's components is too complex.

Let's take my current example:

In my local repository, I want to add LWJGL which is compound of
multiple jar, dll, so, dylib and jnilib files; a total of 30 files!

What I whish to do is to declare my repository like that:

[local repo directory]\lwjgl\lwjgl\0.99\all the files + metadata.xml
+.pom + .md5 + .sha1

In the pom (packaging pom) I could declare ALL the files required to
use LWJGL 0.99 using dependencies.

And in my project pom.xml file I could just add:

   dependency
 groupIdlwjgl/groupId
 artifactIdlwjgl/artifactId
 typepom/type
 version0.99/version
   /dependency

so all the 30 files would directly be downloaded...

Moreover, (see a recent mail) LWJGL's dll/so files don't include the
version number in their name so that Java code doesn't have to be
modified with new versions...

Well is it a dream or is it possible?

TIA,
Loic

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




  

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





  


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



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



Re: [m2] Where to place resources for unit tests?

2006-01-20 Thread ZhiQiang He
Default is ${basedir}/src/test/resources

2006/1/20, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 I believed it too, but I have some problems with resources retrievedusing
 classpath in a multiproject application and discovered thatresources get
 added to the generated jar.

 I searched maven documentation and found that it was the correct behaviour
 ???

 I tried testResourceexcludes/, but then resources are not copied to
 test-classes directory (so not available in unit test).

 Jeff Lowe wrote:
  I believe that the testResources get copied into the
  /target/test-classes directory and are therefore available to the unit
  tests (as resources) when they run. Unlike resources in
  /target/classes, they don't get added to the generated jar.
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, January 17, 2006 10:40 AM
  To: users@maven.apache.org
  Subject: [m2] Where to place resources for unit tests?
 
  Hello,
 
  I need some config files/resources for unit test, so I place them
  insrc/test/resources, but I don't want to include them in generated
  jar.
 
  The description of testResource element of pom.xml states
  thatresources are used to complete the jar or to run unit test.
 
  How can use this resources in test phase, but not include them in jar ?
 
  Thanks.
 
 
 
  ___
  Siebel
  IT'S ALL ABOUT THE CUSTOMER
  Visit www.siebel.com






Where is the spring.jar for Spring 2.0 m1?

2006-01-20 Thread Chris Richardson
Hi,

I've started to migrate the example source code for my book to Spring 2.0M1.
However, http://www.ibiblio.org/maven2/org/springframework/spring/2.0-m1/ does
not contain a spring.jar.
I've had to replace the dependency on spring.jar with dependencies on the
smaller jars: spring-code.jar, spring-hibernate3.jar

Is there any plan to add spring.jar?

Chris


--
Enterprise POJO consulting - http://www.chrisrichardson.net
Author, POJOs in Action - http://www.manning.com/crichardson
Enterprise POJOs blog - http://chris-richardson.blog-city.com


Re: Where is the spring.jar for Spring 2.0 m1?

2006-01-20 Thread Carlos Sanchez
I missed it, it'll be added asap (although I strongly suggest not
using it and use the smaller ones)

On 1/20/06, Chris Richardson [EMAIL PROTECTED] wrote:
 Hi,

 I've started to migrate the example source code for my book to Spring 2.0M1.
 However, http://www.ibiblio.org/maven2/org/springframework/spring/2.0-m1/ does
 not contain a spring.jar.
 I've had to replace the dependency on spring.jar with dependencies on the
 smaller jars: spring-code.jar, spring-hibernate3.jar

 Is there any plan to add spring.jar?

 Chris


 --
 Enterprise POJO consulting - http://www.chrisrichardson.net
 Author, POJOs in Action - http://www.manning.com/crichardson
 Enterprise POJOs blog - http://chris-richardson.blog-city.com



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



[m2] XMLBeans Plugin and Surefire Reports

2006-01-20 Thread Kieran Brady

Hello list :)

We've recently moved from using XMLBeans 1 via the antrun plugin to using 
the codehaus xmlbeans plugin for m2 and it has introduced a small problem 
inside our JUnit XML reports in that they have two 'xml' declarations at the 
top of the file:


[EMAIL PROTECTED]:surefire-reports]$ head -2 
TEST-org.excelsior4gov.common.profile.consents.persistence.DataConsentsDAOTest.xml

?xml version=1.0 encoding=UTF-8 ?
?xml version=1.0?

Its not a showstopper so we have stopped trying to fix for now it but it 
causes problems for CruiseControl when aggregating test reports as its 
obviously not well formed XML. I suspect a parser on the test classpath has 
been introduced with XMLBeans 2. Has anyone else seen this before I raise an 
issue in jira?


Thanks,
Kieran
 




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



RE: [m2] Multiprojects and inherited SCM URLs

2006-01-20 Thread DELMOTTE Grégory
Yann, si t'es en ligne, c'est où sur RICFILED que tu précisent les options de 
compil Javac pour MAVEN ??
Greg



De : Yann Le Du [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 09:36
À : Maven Users List
Objet : Re: [m2] Multiprojects and inherited SCM URLs


Actually, yes, I use artifactId for directory names, and had thought of this 
solution. But I'd supposed it would give me :
scm:svn:svn://host/PROJECT/module/module
I can't try today, but will do on Monday and let you know. Thank you anyway. 

- Yann


2006/1/19, Dennis Lundberg  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : 

Yann Le Du wrote:
 Hi,

 In order to ease Continuum use, we want to have the following project
 structure :

 ~  PROJECT
 ~  +-- parent
 ~  +-- pom.xml
 ~  +-- module 
 ~  +-- pom.xml

 module has obviously parent for parent

 parent defines this SCM URL :
 scm:svn:svn://host/PROJECT/parent

 In module, this is inheirted as : 
 scm:svn:svn://host/PROJECT/parent/module
 ... which is not what we want

 Note that in parent the module is correctly defined :
 module../module/module

 Is there way to inherit correct URL ( e.g. through relativePath), or 
is the
 only solution to put correct URL directly in module ?

How about this:
scm:svn:svn://host/PROJECT/${pom.artifactId}

This should work if you use the same name for the part in your svn 
repository as their artifactIds.

--
Dennis Lundberg

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





Re: Where is the spring.jar for Spring 2.0 m1?

2006-01-20 Thread Chris Richardson
Carlos,

Thanks.
I certainly like the idea of using the smaller ones and I've updated by
pom.xml's to do that.
However, its a lot easier to just depend on spring.jar :-)

Chris


On 1/20/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 I missed it, it'll be added asap (although I strongly suggest not
 using it and use the smaller ones)

 On 1/20/06, Chris Richardson [EMAIL PROTECTED] wrote:
  Hi,
 
  I've started to migrate the example source code for my book to Spring
 2.0M1.
  However,
 http://www.ibiblio.org/maven2/org/springframework/spring/2.0-m1/ does
  not contain a spring.jar.
  I've had to replace the dependency on spring.jar with dependencies on
 the
  smaller jars: spring-code.jar, spring-hibernate3.jar
 
  Is there any plan to add spring.jar?
 
  Chris
 
 
  --
  Enterprise POJO consulting - http://www.chrisrichardson.net
  Author, POJOs in Action - http://www.manning.com/crichardson
  Enterprise POJOs blog - http://chris-richardson.blog-city.com
 
 

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




--
Enterprise POJO consulting - http://www.chrisrichardson.net
Author, POJOs in Action - http://www.manning.com/crichardson
Enterprise POJOs blog - http://chris-richardson.blog-city.com


Re: [m2] Multiprojects and inherited SCM URLs

2006-01-20 Thread Grégory Joseph
On 20/01/06, DELMOTTE Grégory [EMAIL PROTECTED] wrote:
 Yann, si t'es en ligne, c'est où sur RICFILED que tu précisent les options de 
 compil Javac pour MAVEN ??

DTC _

Ps: catherine, est-ce que tu peux prendre du pain en sortant du boulot, merci.


 Greg


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



Re: [1.0] How do you implement a moduleparent relationship in Maven 1.0

2006-01-20 Thread Doug Douglass

Matthew,

M1 doesn't carry such information in its POM, as you've found out.

Take a look at the M1 maven-multiproject-plugin:

http://maven.apache.org/maven-1.x/reference/plugins/multiproject/

Specifically read about the following properties on the properties page 
(http://maven.apache.org/maven-1.x/reference/plugins/multiproject/properties.html):


maven.multiproject.basedir
maven.multiproject.includes
maven.multiproject.excludes

HTH,
DD

Osborne, Matthew wrote:


In my continuing quests, I am trying to create a Maven 1.0 builder for a
project I'm working on alongside a Maven 2.0 builder.  However, I've hit
a little issue and would appreciate some guidance on the matter:  


In the Maven 2.0 builder, the parent pom.xml referred to the child
pom.xml as a module, and the child pom referred back to the parent via
a parent decalration.  However, this approach does not work in 1.0.  I
have successfully got the child project.xml file to refer back to the
parent by a an extend parameter, but I cannot figure out how to get
the parent project.xml to refer to, and call the child file.  How would
I go about doing this?


Matthew Osborne

 



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



Re: [m2] How would I do the following in M2?

2006-01-20 Thread Kathryn Huxtable
On 1/20/06 7:47 AM, John Wells [EMAIL PROTECTED] wrote:

 
 From the same source files, I want to produce two jar files.  Here are
 the requirements:
 
 1.  One JAR file would contain all the sources compiled with J2SE 5.0
 2.  One JAR file is for clients, and must be compiled with J2SE 1.4
 
 Imagine the following packages:
 
 org.whatever.common- These files are in both jars
 org.whatever.server- These files are only on the server
 org.whatever.client- These files are in both jars too
 
 The trick here is that the files in the common and client packages
 need to be compiled twice:  once for the client JAR (1.4) and once for
 the server JAR (5.0).  However, they are the same sources in either
 case.

You can load classes compiled with 1.4 in 5.0, so why not just compile the
common and client packages with 1.4 and the server packages with 5.0?

There's no real need for consistency, is there? You can't be using Java 5
features in your common or client packages or they wouldn't compile in 1.4.

(BTW, I *really* like Java 5. We've been doing all our new development using
it.)

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Ant Tasks: Can I call tasks like validate?

2006-01-20 Thread Rollo, Dan
I'm trying to use the Ant libs for Maven 2.0.2 to handle dependencies
(and to unpack some files needed during the ant build).
I'm using a pom.xml in which I've bound the maven dependency plugin to
the validate phase,using the unpack goal:

pom.xml:
...
plugin
groupIdorg.codehaus.mojo/groupId
artifactIddependency-maven-plugin/artifactId
executions
execution
idunpack/id
phasevalidate/phase
goals
goalunpack/goal
/goals
configuration
artifactItems
artifactItem
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
typejar/type
/artifactItem
/artifactItems
outputDirectoryunpacked/outputDirectory
/configuration
/execution
/executions
/plugin

/plugins


My ant file has:
build.xml:

project default=usage name=My App 2
xmlns:artifact=urn:maven-artifact-ant

 
property name=maven.ant.jar
value=/devtools/maven-artifact-ant-2.0.2-dep/maven-artifact-ant-2.0.2-d
ep.jar/

typedef resource=org/apache/maven/artifact/ant/antlib.xml
uri=urn:maven-artifact-ant
classpath
pathelement location=${maven.ant.jar}/
/classpath
/typedef

artifact:pom id=maven.project file=pom.xml /


target name=test
artifact:install
pom refid=maven.project/
/artifact:install
/target
/project


The dependency is fetched and unpacked as expected when I run maven
directly via :
mvn validate
or
mvn install

However, when I run ant (to try and trigger the fetch) via:
ant test

I get:
Buildfile: build.xml

test:

BUILD FAILED
C:\ibttest\my-app2\build.xml:41: java.lang.NullPointerException

Total time: 1 second

I've tried binding the unpack to the install phase also, but this
gives the same error.

Is there a better way to use the AntLib to pull down (and unpack)
dependencies at the start of an ant build process?

Related, but maybe off topic: Is it possible to the validate goal
directly using the AntLib?

Thanks,
Dan

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



Re: Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Kathryn Huxtable
On 1/20/06 9:15 AM, Frank Russo [EMAIL PROTECTED] wrote:

 I'm trying to use wagon to deploy to an internal server. We use ssh2, so
 I read that I'm supposed to use the sftp protocol.
  
 Here are my entries in pom.xml:
 
 ...
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-6/version
/extension
/extensions
 ...
 
distributionManagement
repository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
ftp://internalrepo/maven_repository/
/repository
snapshotRepository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
ftp://internalrepo/maven_repository/
/snapshotRepository
/distributionManagement
 
 Entries in settings.xml:
 
server
  idinternal_repository/id
  usernameusername/username
  passwordpassword/password
/server

Hmmm...I'm using Maven 2.0.2 as well and ssh2/sftp works for me, but I hate
putting my passphrase for my SSH key in a file. I prefer to use ssh-agent to
supply it. (I'm on Mac OSX, so it's basically UN*X.)

I'd prefer to use scpexe, and that works except that the g:w permission is
being stripped from my directories. My pom.xml and settings.xml are the same
as yours for sftp and the only changes for scpexe are to replace the sftp
with scpexe and in the server element in settings.xml I have the
following:

  filePermissions774/filePermissions
  directoryPermissions775/directoryPermissions

And of course, although I supply a username I don't supply a password.

Running mvn -X -e deploy gives me a lot of output, but I think the
relevant part is:

 [INFO] [deploy:deploy]
 [DEBUG] adding permissions to wagon connection: 774 775
 Uploading: 
 scpexe://myhost/mypathtorepo/edu/ku/middleware/argusfilter/2.5b1/argusfilter-2
 .5b1.jar 
 4096/?^M8192/?^M12288/?^M16384/?^M19350/?^M[INFO] Retrieving previous metadata
 from itcm-repository
 [INFO] Uploading repository metadata for: 'artifact
 edu.ku.middleware:argusfilter'
 [DEBUG] adding permissions to wagon connection: 774 775
 [INFO] Retrieving previous metadata from itcm-repository
 [INFO] Uploading project information for argusfilter 2.5b1
 [DEBUG] adding permissions to wagon connection: 774 775
 [INFO] 
 
 [INFO] BUILD SUCCESSFUL

So apparently, someone thinks the perms are getting added, but although the
file perms are 775 the created directories come out as 755, making it
difficult for anyone else on my team to deploy after me. I had already added
775 to the edu/ku/middleware path, but the newly created argusfilter, and
2.5b1 directories had 755.

Any ideas why there¹d be a difference here? I¹m assuming it has something to
do with the external ssh connection, but why?

And should I submit a bug report?

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas



[m2] deploy to weblogic 9

2006-01-20 Thread Mordo, Aviran (EXP N-NANNATEK)
Is there a plugin that lets you deploy a war file to weblogic 9 ?

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



Re: How to I migrate repositories?

2006-01-20 Thread Brett Porter
We are also building an application with built in conversion tools.

- Brett

On 1/20/06, Edwin Punzalan [EMAIL PROTECTED] wrote:

 There is a repo-clean tool the maven team uses to convert m1 to m2
 poms.  There are no docs on it for now, but you can look at the source
 here: https://svn.apache.org/repos/asf/maven/sandbox/repoclean.


 Helck, Christopher wrote:

 I have a large internal M1 repository and projects that continue to
 update it. How do I migrate it to M2. How do I keep the two repos in
 sync? I imagine that I will have projects using Maven1 and Maven2 for
 some time.
 
 How should I handle the case where a Maven1 project depends on an
 artifact produced by Maven2?
 
 Thanks,
 C. Helck
 
 
 
 Thank you for being part of it.
 
 The information contained in this e-mail is confidential. This e-mail is 
 intended only for the stated addressee.  If you are not an addressee, you 
 must not disclose, copy, circulate or in any other way use or rely on the 
 information contained in this e-mail. if you have received this e-mail in 
 error, please inform us immediately and delete it and all copies from your 
 system.
 
 EBS Dealing Resources International Limited. Registered address: 10 
 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 
 2669861.
 
 EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison 
 Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, 
 Building F - Floor 3, Parsippany, NJ 07054, USA.
 
 EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
 Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.
 
 
 
 

 -
 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: release plugin removes sections in the pom.xml ???

2006-01-20 Thread Brett Porter
There are some open issues about this already.

On 1/20/06, Olivier Lamy [EMAIL PROTECTED] wrote:
 Hi,
 I have some trouble with the release plugin.
 I have released a company root pom.
 Then I'm surprised to see that some sections have been removed in commit
 made by mvn :
 - reporting section
 - profiles section

 Is there any issue regarding this ??

 - Olivier


 This e-mail, any attachments and the information contained therein (this 
 message) are confidential and intended solely for the use of the 
 addressee(s). If you have received this message in error please send it back 
 to the sender and delete it. Unauthorized publication, use, dissemination or 
 disclosure of this message, either in whole or in part is strictly prohibited.
 **
 Ce message electronique et tous les fichiers joints ainsi que  les 
 informations contenues dans ce message ( ci apres le message ), sont 
 confidentiels et destines exclusivement a l'usage de la  personne a laquelle 
 ils sont adresses. Si vous avez recu ce message par erreur, merci  de le 
 renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, 
 totale ou partielle ou divulgation sous quelque forme que se soit non 
 expressement autorisees de ce message, sont interdites.
 **




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



Re: Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Kathryn Huxtable
On 1/20/06 2:20 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote:
 Running mvn -X -e deploy gives me a lot of output, but I think the
 relevant part is:
 
 [INFO] [deploy:deploy]
 [DEBUG] adding permissions to wagon connection: 774 775
 Uploading: 
 
scpexe://myhost/mypathtorepo/edu/ku/middleware/argusfilter/2.5b1/argusfilter-
2
 .5b1.jar 
 4096/?^M8192/?^M12288/?^M16384/?^M19350/?^M[INFO] Retrieving previous
 metadata
 from itcm-repository

I have a separate issue, which is that the progress report from scp above is
not flushed until finished using scpexe, but it *is* flushed when using the
internal sftp.

This, too, seems like a bug. Somewhere, something in the plugin isn't
flushing the output from the pipe to scp.

Especially when deploying something large over the internet it's nice to
actually see the progress so that you know it's not just hanging...

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Re: Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Kathryn Huxtable
On 1/20/06 2:20 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote:

 On 1/20/06 9:15 AM, Frank Russo [EMAIL PROTECTED] wrote:
 
 I'm trying to use wagon to deploy to an internal server. We use ssh2, so
 I read that I'm supposed to use the sftp protocol.
  
 Here are my entries in pom.xml:
 
 ...
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-6/version
/extension
/extensions
 ...
 
 I'd prefer to use scpexe, and that works except that the g:w permission is
 being stripped from my directories. My pom.xml and settings.xml are the same
 as yours for sftp and the only changes for scpexe are to replace the sftp
 with scpexe [...]

Oh, I'm actually using wagon-ssh-external...

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



RE: Problem deploying to internal repository using ssh2/sftp

2006-01-20 Thread Frank Russo
I've finally got it working. I was confused by the url of the repository
and the path to it. Basically to browse the repo using the url in a
browser, it's https://internalrepo/maven_respository since my apache
server is hosting, but the actual path using sftp is
sftp://internalrepo/opt/apache/htdocs/maven_repository. 

Sorry for the noise, but hopefully, it will help others...

Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo 
Sent: Friday, January 20, 2006 10:17 AM
To: Maven Users List
Subject: RE: Problem deploying to internal repository using ssh2/sftp

Forgot to mention that I'm using version 2.0.2.


Frank Russo
Senior Developer
FX Alliance, LLC


-Original Message-
From: Frank Russo
Sent: Friday, January 20, 2006 10:15 AM
To: users@maven.apache.org
Subject: Problem deploying to internal repository using ssh2/sftp

I'm trying to use wagon to deploy to an internal server. We use ssh2, so
I read that I'm supposed to use the sftp protocol. 
 
Here are my entries in pom.xml:

...
extensions
extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ssh/artifactId
version1.0-alpha-6/version
/extension
/extensions
...

distributionManagement
repository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/repository
snapshotRepository
idinternal_repository/id
nameInternal Repository/name
urlsftp://internalrepo/maven_repository//url
/snapshotRepository
/distributionManagement

Entries in settings.xml:

server
  idinternal_repository/id
  usernameusername/username
  passwordpassword/password
/server

The error I get is:

[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
 
[INFO]


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
...
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
deploying artifact: Error occured while deploying
'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159)
...
Caused by:
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact:
 Error occured while deploying 'com/fxall/my-war-1.5.war' to
remote repository: sftp://internalrepo/maven_repository/
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:91)
...
Caused by: org.apache.maven.wagon.TransferFailedException: Error
occured while deploying 'com/fxall/my-war-1.5.war' to remote repository:
sftp://internalrepo/maven_repository/
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:144)
...
Caused by: Failure
at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown
Source)
at com.jcraft.jsch.ChannelSftp.mkdir(Unknown Source)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.mkdir(SftpWagon.java:219)
at
org.apache.maven.wagon.providers.ssh.SftpWagon.put(SftpWagon.java:91)
... 22 more

Am I missing something or doing something wrong? 

Frank Russo
Senior Developer
FX Alliance, LLC




-
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: Is it possible?

2006-01-20 Thread Vincent Massol
Thanks! I'm happy to see that our effort in writing the cargo documentation
is useful :-)

If you find things to improve let us know on the cargo list or through a
Cargo jira issue.

-Vincent

 -Original Message-
 From: Bengt-Erik Fröberg [mailto:[EMAIL PROTECTED]
 Sent: jeudi 19 janvier 2006 16:31
 To: 'Maven Users List'
 Subject: SV: Is it possible?
 
 EXCELLENT documentation on cargo! Maybe to take as a rolemodel for
 other components of Maven2?
 
 Examples of minimal, small and full-fledged configuration, not just a
 cryptic html-table  with a intelligent No description in the column
 Description.
 Just check out deploy:deploy goal gets you goin'..
 
 Again:
   cargo;
 Bravissimo!
 
 /B-E
 
 -Ursprungligt meddelande-
 Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Skickat: den 17 januari 2006 19:12
 Till: Maven Users List
 Ämne: Re: Is it possible?
 
 Yes, you can use Maven for all of the tasks that you mentioned. In fact,
 it doesn't really require a lot, as long as you set the packaging entry
 in your pom.xml file to 'war', and as long as you have the sources and
 resources in the appropriate locations. (If you don't, then you simply
 add some extra properties to the pom.xml file.
 
 Deploying it to Tomcat is a little trickier, but with Cargo
 (http://cargo.codehaus.org/) it shouldn't be a problem.
 
  1. Get sources and ressources from a subversion repository.
 
 +/- yes, although I usually use svn or cvs commandline tools to check
 things out.
 
  2. Compile the sources.
 
 yes!
 
  3. Construct the web application. (Copy ressources and classes to the
  right place)
 
 yes!
 
  4. Build a war file. (Take the copied files and place them in a war
  file)
 
 yes!
 
  5. Deploy it on a tomcat server. (Copy the war file to the tomcat
  server)
 
 yes, using Cargo: http://cargo.codehaus.org/
 
 
  Is it possible - and how?
 
  Bye
 
  Lutz Fechner
 
 
 
 
  LEGAL DISCLAIMER
  The information in this transmission is privileged and/or contains
 confidential information intended solely for the addressee! If the
  reader of this message is not the intended recipient, you are hereby
 notified that any dissemination, distribution or copying of this
  communication is strictly prohibited. You must not copy, distribute,
 disclose or take any action in reliance on or in relation to it. If you
  have received this communication in error, please delete all copies of
 the
 message and its attachments and notify the sender immediately.
 
  VIRUS ADVICE
  E-mail transmission cannot be guaranteed to be secure or error-free as
 information could be intercepted, corrupted, lost, destroyed,
  arrive late or incomplete, or contain viruses. The sender therefore does
 not accept liability for any errors or omissions in the content of
  this message, which arise as a result of e-mail transmission. The
 contents
 of any attachment to this e-mail may contain software
  viruses wich could damage your own computer system. While we have taken
 every reasonable precaution to minimze this risk, we
  cannot rule out the possibility that attachments may contain software
 viruses. You should carry out your own virus check before
  opening the attachments.
 --
 _
 Wilfred SpringerPhone  : +31 (0)3 3451 5736
 Software Architect  Mobile : +31 (0)6 2295 7321
 Client SolutionsFax: +31 (0)3 3451 5734
 Enterprise Web Services Mail   : [EMAIL PROTECTED]
 Sun Microsystems NetherlandsAIM: wilfred springer
 http://blogs.sun.com/wilfred/
 
 
 NOTICE: This email message is for the sole use of the intended
 recipient(s) and may contain confidential and privileged
 information. Any unauthorized review, use, disclosure or distribution
 is prohibited. If you are not the intended recipient, please contact
 the sender by reply email and destroy all copies of the original
 message.
 
 
 -
 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]



maven-release-plugin / cannot access the SVN

2006-01-20 Thread softwarearchitekt
Hey all,
i would have a look to the maven-release-plugin, but i cannot connect to:

http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-release-plugin

Also the web access:

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-release-plugin


The WebAccess Exception:
---
An Exception Has Occurred

maven/components/trunk/maven-plugins/maven-release-plugin: unknown location

HTTP Response Status

404 Not Found

Python Traceback

Traceback (most recent call last):
  File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 3345, in main
request.run_viewcvs()
  File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 292, in run_viewcvs
% self.where, '404 Not Found')
ViewCVSException: 404 Not Found: 
maven/components/trunk/maven-plugins/maven-release-plugin: unknown location

---

What's the Proble? the access to 
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/; works fine!

Fredy


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



Re: maven-release-plugin / cannot access the SVN

2006-01-20 Thread Dennis Lundberg

The M2 plugins have moved in SVN. The new location is:
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-release-plugin/

--
Dennis Lundberg

[EMAIL PROTECTED] wrote:

Hey all,
i would have a look to the maven-release-plugin, but i cannot connect to:

http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-release-plugin

Also the web access:

http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-release-plugin


The WebAccess Exception:
---
An Exception Has Occurred

maven/components/trunk/maven-plugins/maven-release-plugin: unknown location

HTTP Response Status

404 Not Found

Python Traceback

Traceback (most recent call last):
  File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 3345, in main
request.run_viewcvs()
  File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 292, in run_viewcvs
% self.where, '404 Not Found')
ViewCVSException: 404 Not Found: 
maven/components/trunk/maven-plugins/maven-release-plugin: unknown location

---

What's the Proble? the access to 
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/; works fine!

Fredy


-
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] deploy to weblogic 9

2006-01-20 Thread Rinku

You might want to check out Cargo Maven2 plugin.

http://cargo.codehaus.org/

Cheers, 
Rahul



- Original Message - 
From: Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED]

To: Maven Users List users@maven.apache.org
Sent: Saturday, January 21, 2006 8:51 AM
Subject: [m2] deploy to weblogic 9



Is there a plugin that lets you deploy a war file to weblogic 9 ?

-
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] deploy to weblogic 9

2006-01-20 Thread Vincent Massol


 -Original Message-
 From: Rinku [mailto:[EMAIL PROTECTED]
 Sent: vendredi 20 janvier 2006 23:23
 To: Maven Users List
 Subject: Re: [m2] deploy to weblogic 9
 
 You might want to check out Cargo Maven2 plugin.
 
 http://cargo.codehaus.org/

One gotcha: We don't have support for WL 9.x yet. Scott said he's going to
commit it at some point but it's not there yet.

Aviran, you can check the weblogic plugin for m2 which has it I think. I
don't know where it's located but if not it should appear soon in the mojo
project.

-Vincent

 - Original Message -
 From: Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Sent: Saturday, January 21, 2006 8:51 AM
 Subject: [m2] deploy to weblogic 9
 
 
  Is there a plugin that lets you deploy a war file to weblogic 9 ?


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



RE: functionnal testing

2006-01-20 Thread Vincent Massol
Hi Eric,

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of BURGHARD Éric
 Sent: vendredi 20 janvier 2006 16:27
 To: users@maven.apache.org
 Subject: functionnal testing
 
 Hi,
 
 Is there a standard way to do functionnal testing with m2 ?
 
 I just wrote a quick and dirty mojo for that, but i think there should be
 a
 better way: I just spawn a jetty6:run in a thread, wait until the
 container
 is ready, run a set of tasks (mojos that effectively do html testing) with
 the plugin manager, and at the end, interrupt the container.
 
 AFAIK the lifecycle fork mode was unusable for that. What i need is a
 parallel mode instead.
 
 WDYT ?

Another solution would be to use Cargo and its m2 plugin
(http://cargo.codehaus.org/Maven2+plugin). It starts the container in a
separate thread so you can chain different actions after the container is
started (using the waitfalse/wait mode).

-Vincent


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



Re: maven-release-plugin / cannot access the SVN

2006-01-20 Thread softwarearchitekt
Thanks, it works!

Sombody should update the plugIn Site 
http://maven.apache.org/plugins/maven-release-plugin/source-repository.html

Fredy

Maven Users List users@maven.apache.org schrieb am 20.01.06 23:08:13:

The M2 plugins have moved in SVN. The new location is:
http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-release-plugin/

-- 
Dennis Lundberg

[EMAIL PROTECTED] wrote:
 Hey all,
 i would have a look to the maven-release-plugin, but i cannot connect to:
 
 http://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-release-plugin
 
 Also the web access:
 
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-release-plugin
 
 
 The WebAccess Exception:
 ---
 An Exception Has Occurred
 
 maven/components/trunk/maven-plugins/maven-release-plugin: unknown location
 
 HTTP Response Status
 
 404 Not Found
 
 Python Traceback
 
 Traceback (most recent call last):
   File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 3345, in main
 request.run_viewcvs()
   File /usr/local/viewcvs-1.0-dev/lib/viewcvs.py, line 292, in run_viewcvs
 % self.where, '404 Not Found')
 ViewCVSException: 404 Not Found: 
 maven/components/trunk/maven-plugins/maven-release-plugin: unknown location
 
 ---
 
 What's the Proble? the access to 
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/; works fine!
 
 Fredy
 
 
 -
 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]


-- 
Mit freundlichen Grüßen
Fred Robert Hauschel

http://www.Hauschel.de

Mobil:0179  - 6917092
Telefon:  07427 - 91179
Fax:  07427 - 91178



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



Re: [m2] deploy to weblogic 9

2006-01-20 Thread Ralf Quebbemann

The weblogic 9 plugin is attached in JIRA: 
http://jira.codehaus.org/browse/MOJO-179

Have fun

Ralf

Vincent Massol wrote:



-Original Message-
From: Rinku [mailto:[EMAIL PROTECTED]
Sent: vendredi 20 janvier 2006 23:23
To: Maven Users List
Subject: Re: [m2] deploy to weblogic 9

You might want to check out Cargo Maven2 plugin.

http://cargo.codehaus.org/


One gotcha: We don't have support for WL 9.x yet. Scott said he's going to
commit it at some point but it's not there yet.

Aviran, you can check the weblogic plugin for m2 which has it I think. I
don't know where it's located but if not it should appear soon in the mojo
project.

-Vincent


- Original Message -
From: Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Saturday, January 21, 2006 8:51 AM
Subject: [m2] deploy to weblogic 9



Is there a plugin that lets you deploy a war file to weblogic 9 ?



-
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: Is there some M1 documentation that is also interesting for M2?

2006-01-20 Thread Maria Odea Ching

Hi Fredy,

You can access Maven 1 documentation at http://maven.apache.org/maven-1.x/
Check out also this book - Maven: A Developer's Notebook

Thanks,
Odea

[EMAIL PROTECTED] wrote:


Hey all,
i don't know m1, and sometime i miss some docu for m2, is there some documentation from m1 that is already actuall? 


Fredy

-
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: java.lang.VerifyError using maven 2

2006-01-20 Thread Maria Odea Ching

Hi Sanjay,

Could you paste the stack trace here?

Thanks,
Odea

Shukla, Sanjay wrote:


Hey Guys,



I am in a terrible situation compiling my code with maven 2 produces a
java.lang.VerifyError when the code runs.



However using my previous ant build the code build fine. I am really
baffled at this, can anyone suggest a way to debug this situation.



Thanks,



Sanjay Shukla,

HPI Product Engineering, 2 Penn Plaza, NY.






 




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



Re: jdepend plugin does not work on maven 2.0.2

2006-01-20 Thread Maria Odea Ching

Hi  Tony,

The jdepend plugin is not yet in the central repo. It hasn't been 
released yet but you can download the source at 
https://svn.codehaus.org/mojo/trunk/mojo/jdepend-maven-plugin/,

build it yourself and install it in your local repo.

Thanks,
Odea

tony nys wrote:

Hi 


I try to generate a sample jdepend report on a new
default project generated by the archetype:create

I have added the report configuration as document on
codehaus website, but when I run site:site or
jdepend:generate, it cannot find the plugin. 
When I Look manually on the repository

http://www.ibiblio.org/maven2/org/codehaus/mojo/
I cannot find it either. 



error:

[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jdepend-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any
repository


org.codehaus.mojo:jdepend-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)


[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException:
Unable to build project for plugin 'org.codehaus.mojo:
jdepend-maven-plugin': POM
'org.codehaus.mojo:jdepend-maven-plugin' not found in
repository: Unable to downloa
d the artifact from any repository


org.codehaus.mojo:jdepend-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)




this is my pom
project...
 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany.app/groupId
 artifactIdmy-app/artifactId
 packagingjar/packaging
 version1.0-SNAPSHOT/version
 nameMaven Quick Start Archetype/name
 urlhttp://maven.apache.org/url
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
   /dependency
 /dependencies
build
/build
 reporting
 plugins
 plugin
groupIdorg.codehaus.mojo/groupId
   
artifactIdjdepend-maven-plugin/artifactId

version1.0-SNAPSHOT/version
 /plugin
 /plugins
 /reporting
/project


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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]



Best Practice - Maven with WSAD or RAD6

2006-01-20 Thread Sanjay Choudhary
I am able to build my projects and EAR in both WSAD and RAD6.  Now problem I
face is in third party jars.

in RAD6/WSAD project structure is like this

EAR Project
 contains application.xml for EAR
 contains all third party JAR required by application

JAR project

EJB Project

WAR Project
  contains JSPs
  contains third party JARs like struts etc in the LIB folder

Now when I used Maven in my development environment, I moved all the third
party JARS to maven repository and changed the dependencies accordingly.  My
java project, ejb projects and war project compiled fine. I am able to
create EAR too.

Now when I want to run/debug my application on built in Websphere
application server, server complains about the third party JARs.  Initially,
I thought of adding all the third party jars in server classpath - but this
is not a good idea.  Shall I explode my EAR into EAR project, so that I will
have all the third party jars there. Is there someother best practice that I
can follow?   I am sure someone may have resolved this issue, (maven is
around for long).

Please advice.

Thanks,
Sanjay


Re: Worst documentation in the whole apache projects

2006-01-20 Thread Eric Redmond
I've been digging into the bowels of Maven for months now, and really, the
documentation is ok. There are a few short-commings (the--more or less--lack
of comprehensive Plexus docs, for one), but considering the scope that this
project has (huge), the speed in which it has begun to mature (fast), and
the number of dedicated core developers (few), I'm amazed at the progress. I
know of two books in the works right now, and I'm certain that more will
come. Look at ant! Very few people understood it at the time, because it was
so far removed from Make. A few books came out, and viola! Now its the basis
for comparison.

Luckly, there is an active user community you can ask specific questions to,
in the mean time :)

Eric

On 1/20/06, Jeff Jensen [EMAIL PROTECTED] wrote:

 Examples are one thing, reference info is another.  I think anyone can
 contribute both.

 Particularly, if even a small number of users would look at the pom:
 http://maven.apache.org/maven-model/maven.html

 read the description of each element, and submit patches to improve it to
 this JIRA or different ones:
 http://jira.codehaus.org/browse/MNG-1479

 a lot of clarity would arrive for all of us.  Detailed explanations of
 elements go a long way to answering what to do.

 Many users have solid M2 experience in one or more facets of M2; many have
 figured it out the hard way; a way to contribute to the product is via
 that knowledge through doc improvements.  Even just adding a one sentence
 clarification can save someone 2 hours of experimentation and/or emailing
 this list.

 This list spends more time writing and wading through the repeating large
 email volume than updating docs for all to use and reduce the need for
 email
 list questions.


 -Original Message-
 From: Ramin Farhanian [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 20, 2006 12:31 AM
 To: Maven Users List
 Subject: Re: Worst documentation in the whole apache projects

 Afkham,
 We might contribute some examples to Maven team but It's better that we do
 not expose it ourselves.
 Because Most of maven users might have understood a version of truth about
 Maven mechanism. I really like the team to give Maven aware people a
 homework example. This way they dont start samples from the scratch. And
 this way some people can help...

 regards,
 Ramin

 --- Afkham Azeez [EMAIL PROTECTED] wrote:

  Hi Folks,
  I sincerely wish that everybody commenting on the bad documetation
  will at least try to contribute some documentation.
  After all, most of
  you have figured out stuff the hard way. Why not share it with the
  community? Why keep on blaming the developers for insufficient
  documentation, and not do anything about it? Ask not what Maven can do
  for you but what yu can do for Maven :) Long live Maven
 
  Regards
  Azeez
 
  On 1/20/06, Ramin Farhanian [EMAIL PROTECTED]
  wrote:
  
The nature of an open souce project is not an
  excuse
   not to document. We are facing 50 different MVC frameworks. What if
   they don't have documentation?
   Open source projects are there to let all of us
  live
   in a more harmonized, more peaceful, ever evolving world. You code
   here today in Maven, I will code tomorrow in Facelet. We are all
   interconnected.
I should say to Maven team that if you see this thread is growing,
   It's because you are creating a great tool and we all need it. It's
   because We
  have
   tried to use it and to enjoy its great features
  but We
   faced problems. This documentation has been on our nerves. I wish
   you all guys to continue evolving
  this
   tool and wish for all of us that you Maven team
  find a
   good one to document in a brain friendly way.
I dont agree with yet another wiki. Unfortunately
  it
   should be done by a group of people that
  communicate
   eachother and are master in the tool
  
   Regards,
   Ramin
   ps, again I wish Kathy Sierra could help in documentation.
  
  
   --- Richard Allen [EMAIL PROTECTED]
   wrote:
  
I'm amazed at the lack of appreciation some
  people
have for getting
something for nothing! Maven is FREE! The
  developers
don't get paid to
write the code, much less the documentation, or
  even
to respond to lousy
user email. They do it all in their free time.
However, I bet Roberto is
getting paid to work on his J2EE project. Maven
hasn't been around as
long as many other Apache open-source projects.
Open-source projects
typically have poor documentation while the code
  is
maturing. Like all
open-source projects, if you want to really get
  to
know the product,
then read the code! It'll make you a better
programmer. If you don't
have time to read the code, then you shouldn't
  be
using open-source
projects. At least not until the project has
matured.
   
I'm working on a build for a complex web
  application
and I've found that
Maven solves problems that Ant doesn't have a
  

Re: Worst documentation in the whole apache projects

2006-01-20 Thread Eric Redmond
As an ademdum, I'm not really a mvn zelot. I was actually so paranoid that
M2 would have a disasterous lack of documentation, I began my own document
wiki right when M2 was released (http://www.propellors.net/wiki/). After a
couple weeks, it was clear that the core team were focused on documenting,
and were making great progress... so I closed it down.


On 1/20/06, Eric Redmond [EMAIL PROTECTED] wrote:

 I've been digging into the bowels of Maven for months now, and really, the
 documentation is ok. There are a few short-commings (the--more or less--lack
 of comprehensive Plexus docs, for one), but considering the scope that this
 project has (huge), the speed in which it has begun to mature (fast), and
 the number of dedicated core developers (few), I'm amazed at the progress. I
 know of two books in the works right now, and I'm certain that more will
 come. Look at ant! Very few people understood it at the time, because it was
 so far removed from Make. A few books came out, and viola! Now its the basis
 for comparison.

 Luckly, there is an active user community you can ask specific questions
 to, in the mean time :)

 Eric

 On 1/20/06, Jeff Jensen  [EMAIL PROTECTED] wrote:
 
  Examples are one thing, reference info is another.  I think anyone can
  contribute both.
 
  Particularly, if even a small number of users would look at the pom:
  http://maven.apache.org/maven-model/maven.html
 
  read the description of each element, and submit patches to improve it
  to
  this JIRA or different ones:
  http://jira.codehaus.org/browse/MNG-1479
 
  a lot of clarity would arrive for all of us.  Detailed explanations of
  elements go a long way to answering what to do.
 
  Many users have solid M2 experience in one or more facets of M2; many
  have
  figured it out the hard way; a way to contribute to the product is via
  that knowledge through doc improvements.  Even just adding a one
  sentence
  clarification can save someone 2 hours of experimentation and/or
  emailing
  this list.
 
  This list spends more time writing and wading through the repeating
  large
  email volume than updating docs for all to use and reduce the need for
  email
  list questions.
 
 
  -Original Message-
  From: Ramin Farhanian [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 20, 2006 12:31 AM
  To: Maven Users List
  Subject: Re: Worst documentation in the whole apache projects
 
  Afkham,
  We might contribute some examples to Maven team but It's better that we
  do
  not expose it ourselves.
  Because Most of maven users might have understood a version of truth
  about
  Maven mechanism. I really like the team to give Maven aware people a
  homework example. This way they dont start samples from the scratch. And
  this way some people can help...
 
  regards,
  Ramin
 
  --- Afkham Azeez  [EMAIL PROTECTED] wrote:
 
   Hi Folks,
   I sincerely wish that everybody commenting on the bad documetation
   will at least try to contribute some documentation.
   After all, most of
   you have figured out stuff the hard way. Why not share it with the
   community? Why keep on blaming the developers for insufficient
   documentation, and not do anything about it? Ask not what Maven can do
 
   for you but what yu can do for Maven :) Long live Maven
  
   Regards
   Azeez
  
   On 1/20/06, Ramin Farhanian [EMAIL PROTECTED]
   wrote:
   
 The nature of an open souce project is not an
   excuse
not to document. We are facing 50 different MVC frameworks. What if
they don't have documentation?
Open source projects are there to let all of us
   live
in a more harmonized, more peaceful, ever evolving world. You code
here today in Maven, I will code tomorrow in Facelet. We are all
interconnected.
 I should say to Maven team that if you see this thread is growing,
It's because you are creating a great tool and we all need it. It's
because We
   have
tried to use it and to enjoy its great features
   but We
faced problems. This documentation has been on our nerves. I wish
you all guys to continue evolving
   this
tool and wish for all of us that you Maven team
   find a
good one to document in a brain friendly way.
 I dont agree with yet another wiki. Unfortunately
   it
should be done by a group of people that
   communicate
eachother and are master in the tool
   
Regards,
Ramin
ps, again I wish Kathy Sierra could help in documentation.
   
   
--- Richard Allen  [EMAIL PROTECTED]
wrote:
   
 I'm amazed at the lack of appreciation some
   people
 have for getting
 something for nothing! Maven is FREE! The
   developers
 don't get paid to
 write the code, much less the documentation, or
   even
 to respond to lousy
 user email. They do it all in their free time.
 However, I bet Roberto is
 getting paid to work on his J2EE project. Maven
 hasn't been around as
 long as many other Apache open-source