Re: [Spam] - SpamAssassin=5,61 - Re: Error retrieving artifact from file

2006-09-27 Thread Javier . Sagrado . Collantes
Thanks for your answer but I tried it and I am still having the same 
problem...Do you know about another thing I can be doing wrong?
AVISO DE CONFIDENCIALIDAD.  Este correo y la información contenida o adjunta al 
mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. 
DMR Consulting informa a quien pueda haber recibido este correo por error que 
contiene información confidencial cuyo uso, copia, reproducción o distribución 
está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe 
este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda 
a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.  
CONFIDENTIALITY WARNING. This message and the information contained in or 
attached to it are private and confidential and intended exclusively for the 
addressee. DMR Consulting informs to whom it may receive it in error that it 
contains privileged information and its use, copy, reproduction or distribution 
is prohibited. If you are not an intended recipient of this E-mail, please 
notify the sender, delete it and do not read, act upon, print, disclose, copy, 
retain or redistribute any portion of this E-mail.   

Re: Java system properties not set?

2006-09-27 Thread Hilco Wijbenga

Hi all,

I kinda worked around it for the user.home property by doing (in pom.xml)


   


This makes the user.home property available to Ant. Doesn't anyone no
a better solution?

I also tried to add a simple  in my build.xml but running the
build now gives a very unpleasant error:


:
[INFO] Executing tasks
[echo] JAVA_HOME="/home/userid/bin/jdk/current"

all:
   [javac] Compiling 1 source file to /home/userid/maven_puzzle/target/classes
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/userid/maven_puzzle/build.xml:12: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
:


Obviously, JAVA_HOME is just fine. And the Ant build works like a
charm outside of Maven. Running with --debug doesn't reveal anything
useful.

I'd *really* appreciate some help. I'm sure I'm forgetting something
obvious as this should be really simple. I get the impression that my
classpath is incomplete (tools.jar is missing?) but I would expect the
antrun plugin to take care of that? And that still leaves the missing
Java system properties.

And here I was thinking that just wrapping the Maven build around the
existing Ant build wouldn't take much longer than a few minutes. :-)

Cheers,
Hilco

On 9/26/06, Hilco Wijbenga <[EMAIL PROTECTED]> wrote:

Hi all,

I ran into something funny. I created a very simple Ant build:

build.xml:


${user.home}


Running 'ant' yields lots of properties and it prints my home
directory, as expected.

Buildfile: build.xml
[echoproperties] #Ant properties
[echoproperties] #Tue Sep 26 17:45:52 PDT 2006
[echoproperties] java.runtime.name=Java(TM) 2 Runtime Environment,
Standard Edition
:

:
[echoproperties] user.home=/home/userid
:

:
[echoproperties] sun.cpu.isalist=
 [echo] /home/userid

BUILD SUCCESSFUL
Total time: 0 seconds

I then tried to set up Maven2 as a wrapper around this Ant build.

pom.xml:

4.0.0
a
a
1



maven-antrun-plugin


package






run





ant
optional
1.5.4







Running 'mvn package' yields surprisingly little output:
[INFO] Scanning for projects...
:

:
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echoproperties] #Ant properties
[echoproperties] #Tue Sep 26 17:42:31 PDT 2006
[echoproperties] ant.file=/home/userid/maven_puzzle/build.xml
[echoproperties] ant.file.null=/home/userid/maven_puzzle/build.xml
[echoproperties] ant.project.name=DummyProject
[echoproperties] ant.java.version=1.4
[echoproperties] basedir=/home/userid/maven_puzzle
 [echo] ${user.home}
[INFO] Executed tasks
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Sep 26 17:42:31 PDT 2006
[INFO] Final Memory: 4M/8M
[INFO] 

None of the Java system properties are available! Does anyone know why
this is happening? Am I missing an Ant dependency (I thought this was
core Ant functionality)?

Very puzzled,
Hilco


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



Re: Error retrieving artifact from file

2006-09-27 Thread Wayne Fay

I am always suspicious of spaces in paths, especially on Windows, and
especially on a non-English Windows install.

Move your repo to a folder with no spaces in it ie c:\m2repo and try
again. Or if you can't move it, use "subst" DOS command to map a drive
to the repository folder, which might work.

Wayne

On 9/28/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

Error retrieving artifact from [file://C:\Archivos de programa\Hotsip\M2CE
SCE/repository/m2ce-core/jars/serviceframework-3.2.0-87.jar

This jar exists in the route. ¿What can I do? Thank you. Javi.

MAVEN VERSION:
 __  __
|\/   |__ _Apache__ ___
|   |\/|   / _`   \ V /   -_)' \  ~ intelligent projects ~
|_ |   |_ \__,_|\_/\___  |_||_|  v. 1.0.2

ECLIPSE SDK VERSION:
3.1.2

BUILD.PROPERTIES:
sce.repo.remote=file:///C:\\Archivos\ de\ programa\\Hotsip\\M2CE\
SCE/repository

maven.repo.remote=${sce.repo.remote},http://www.ibiblio.org/maven/

maven.compile.debug=true
maven.compile.target=1.5
maven.compile.source=1.5

SO
Windows XP Profesional 2002 service pack2
AVISO DE CONFIDENCIALIDAD.  Este correo y la información contenida o adjunta al 
mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. 
DMR Consulting informa a quien pueda haber recibido este correo por error que 
contiene información confidencial cuyo uso, copia, reproducción o distribución 
está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe 
este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda 
a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.  
CONFIDENTIALITY WARNING. This message and the information contained in or 
attached to it are private and confidential and intended exclusively for the 
addressee. DMR Consulting informs to whom it may receive it in error that it 
contains privileged information and its use, copy, reproduction or distribution 
is prohibited. If you are not an intended recipient of this E-mail, please 
notify the sender, delete it and do not read, act upon, print, disclose, copy, 
retain or redistribute any portion of this E-mail.



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



Re: BUILD FAILED.../maven-java-plugin-1.5/plugin.jelly

2006-09-27 Thread Dion Gillard

"error: error reading
/home/clasie/.maven/repository/jboss/jars/jboss-aop-1.0b2.jar; error in
opening zip file"

Can you delete that file and get maven to download a new one?

On 9/28/06, charles magnes <[EMAIL PROTECTED]> wrote:

Hello,
Could anybody help me about some troubles I encountered when I tried to run:
'maven buildall' on an Ubuntu os.
I received the following message:

**
[EMAIL PROTECTED]:~/agila/trunk/modules/bpel$ maven buildall
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Tag library requested that is not present: 'maven' in plugin: 'null'
Starting the reactor...
Our processing order:
Agila Common
Agila Engine Common
Agila Engine Client
Agila User/Group/Role Manager
Agila WorkList Manager
Agila Engine
Agila Deployer
Agila Distro
Agila Web Services
Agila Web Applications
+
| Building Agila Common
| Memory: 3M/6M
+
Tag library requested that is not present: 'maven' in plugin: 'null'
build:start:

buildall:
build:start:

clean:clean:
[delete] Deleting directory
/home/clasie/agila/trunk/modules/bpel/common/target
Tag library requested that is not present: 'maven' in plugin: 'null'

clean:

buildmodule:
java:prepare-filesystem:
[mkdir] Created dir:
/home/clasie/agila/trunk/modules/bpel/common/target/classes

java:compile:
[copy] Copying 1 file to
/home/clasie/agila/trunk/modules/bpel/common/target/classes
[echo] Compiling to
/home/clasie/agila/trunk/modules/bpel/./common/target/classes
[echo]
==

  NOTE: Targetting JVM 1.5, classes
  will not run on earlier JVMs

==

[javac] Compiling 12 source files to
/home/clasie/agila/trunk/modules/bpel/common/target/classes
error: error reading
/home/clasie/.maven/repository/jboss/jars/jboss-aop-1.0b2.jar; error in
opening zip file
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:18:
package org.jboss.aop.advice does not exist
import org.jboss.aop.advice.Interceptor;
^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:19:
package org.jboss.aop.joinpoint does not exist
import org.jboss.aop.joinpoint.Invocation;
   ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:20:
package org.jboss.aop.joinpoint does not exist
import org.jboss.aop.joinpoint.MethodInvocation;
   ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:28:
cannot find symbol
symbol: class Interceptor
public class LoggingInterceptor implements Interceptor {
   ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:36:
cannot find symbol
symbol  : class Invocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
public Object invoke(Invocation invocation) throws Throwable {
 ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:37:
cannot find symbol
symbol  : class MethodInvocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
MethodInvocation mi = (MethodInvocation) invocation;
^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:37:
cannot find symbol
symbol  : class MethodInvocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
MethodInvocation mi = (MethodInvocation) invocation;
   ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors

BUILD FAILED
File.. /home/clasie/agila/trunk/modules/bpel/maven.xml
Element... maven:reactor
Line.. 16
Column 78
Unable to obtain goal [buildmodule] --
/home/clasie/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48:
 Compile failed; see the compiler error output for details.
Total time: 27 seconds
Finished at: Wed Sep 27 15:55:10 CEST 2006
*

Many thanks for any help.

Claude
[EMAIL PROTECTED]

_
Ping… Pong… Ping… Pong… 4 mails déjà ! Arrêtez de perdre votre temps grâce à
Windows Live Messenger ! http://get.live.com/messenger/overview


-
To unsubscribe, e-mail: 

Continuum behind Apache Proxy

2006-09-27 Thread Vivian Stelller

Hello at all,
I want to setup continuum in a subdomain of my Apache 2.0.x managed 
domain. It should appear on

   http://continuum.eecoo.net

As far as I know can be done using Apache's mod_rewrite, this is my site 
configuration that will be included into httpd.conf:


   ServerName continuum.eecoo.net

   RewriteEngine on
   RewriteRule ^/$ http://eecoo.net:/continuum/servlet/continuum [P]
   RewriteRule ^/(.*)$ 
http://eecoo.net:/continuum/servlet/continuum/$1 [P]

   RewriteLog  "/var/log/apache2/rewrite.log"
   RewriteLogLevel 3


The logs say that proxiing is done well. Anyway I get some "Forbidden" 
error when trying to access the url http://continuum.eecoo.net.


In addition to the configuration above I just uncommented the proxy 
configuration in

   [continuum-dir]/apps/continuum/conf/application.xml

It now looks like:
...
 
   ${plexus.home}/lib/continuum-web-1.0.3.jar
   /continuum
   ${plexus.home}/webapp
   
 
   
 

 
   8090
   localhost
   80
 

   
 
...

Any ideas why I'm getting a Forbidden response?
Many thanks in advance.

Vivian Steller

  


Error retrieving artifact from file

2006-09-27 Thread Javier . Sagrado . Collantes
Error retrieving artifact from [file://C:\Archivos de programa\Hotsip\M2CE 
SCE/repository/m2ce-core/jars/serviceframework-3.2.0-87.jar

This jar exists in the route. ¿What can I do? Thank you. Javi.

MAVEN VERSION:
 __  __
|\/   |__ _Apache__ ___
|   |\/|   / _`   \ V /   -_)' \  ~ intelligent projects ~
|_ |   |_ \__,_|\_/\___  |_||_|  v. 1.0.2

ECLIPSE SDK VERSION:
3.1.2

BUILD.PROPERTIES:
sce.repo.remote=file:///C:\\Archivos\ de\ programa\\Hotsip\\M2CE\ 
SCE/repository

maven.repo.remote=${sce.repo.remote},http://www.ibiblio.org/maven/

maven.compile.debug=true
maven.compile.target=1.5
maven.compile.source=1.5

SO
Windows XP Profesional 2002 service pack2
AVISO DE CONFIDENCIALIDAD.  Este correo y la información contenida o adjunta al 
mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. 
DMR Consulting informa a quien pueda haber recibido este correo por error que 
contiene información confidencial cuyo uso, copia, reproducción o distribución 
está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe 
este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda 
a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.  
CONFIDENTIALITY WARNING. This message and the information contained in or 
attached to it are private and confidential and intended exclusively for the 
addressee. DMR Consulting informs to whom it may receive it in error that it 
contains privileged information and its use, copy, reproduction or distribution 
is prohibited. If you are not an intended recipient of this E-mail, please 
notify the sender, delete it and do not read, act upon, print, disclose, copy, 
retain or redistribute any portion of this E-mail. 
  

Re: Getting error in running maven

2006-09-27 Thread Chris Novak

I noticed that I had the same error when by mistake putting the 
 tag twice inside of , and trying to point to a path using the 
instrpathref attrib instead of instrpath :






  
  



  


Once I fixed those errors, the problem went away.

antonyarund wrote:
> 
> Hi, 
> I have integerated maven-1.0.2 plugin to "IBM Rational Software
> Development Platform". When I try to run maven from the IDE for a project
> I am getting the following message. 
> 
> 
> emma:instr:
> [echo] Performing Emma instrumentation
> processing instrumentation path ...
> 
> BUILD FAILED
> File.. C:\Documents and
> Settings\d.antonyarun\.maven\cache\maven-emma-plugin-0.6\plugin.jelly
> Element... ant:emma
> Line.. 189
> Column 15
> SECURITY_RESTRICTION:
> 
> Can any one help me in solving this. 
> 
> Thanks & Regards, 
> Antony Arun D
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-error-in-running-maven-tf1442468.html#a6540352
Sent from the Maven - Users mailing list archive at Nabble.com.


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



BUILD FAILED.../maven-java-plugin-1.5/plugin.jelly

2006-09-27 Thread charles magnes

Hello,
Could anybody help me about some troubles I encountered when I tried to run:
'maven buildall' on an Ubuntu os.
I received the following message:

**
[EMAIL PROTECTED]:~/agila/trunk/modules/bpel$ maven buildall
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Tag library requested that is not present: 'maven' in plugin: 'null'
Starting the reactor...
Our processing order:
Agila Common
Agila Engine Common
Agila Engine Client
Agila User/Group/Role Manager
Agila WorkList Manager
Agila Engine
Agila Deployer
Agila Distro
Agila Web Services
Agila Web Applications
+
| Building Agila Common
| Memory: 3M/6M
+
Tag library requested that is not present: 'maven' in plugin: 'null'
build:start:

buildall:
build:start:

clean:clean:
   [delete] Deleting directory 
/home/clasie/agila/trunk/modules/bpel/common/target

Tag library requested that is not present: 'maven' in plugin: 'null'

clean:

buildmodule:
java:prepare-filesystem:
   [mkdir] Created dir: 
/home/clasie/agila/trunk/modules/bpel/common/target/classes


java:compile:
   [copy] Copying 1 file to 
/home/clasie/agila/trunk/modules/bpel/common/target/classes
   [echo] Compiling to 
/home/clasie/agila/trunk/modules/bpel/./common/target/classes

   [echo]
==

 NOTE: Targetting JVM 1.5, classes
 will not run on earlier JVMs

==

   [javac] Compiling 12 source files to 
/home/clasie/agila/trunk/modules/bpel/common/target/classes
error: error reading 
/home/clasie/.maven/repository/jboss/jars/jboss-aop-1.0b2.jar; error in 
opening zip file
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:18: 
package org.jboss.aop.advice does not exist

import org.jboss.aop.advice.Interceptor;
   ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:19: 
package org.jboss.aop.joinpoint does not exist

import org.jboss.aop.joinpoint.Invocation;
  ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:20: 
package org.jboss.aop.joinpoint does not exist

import org.jboss.aop.joinpoint.MethodInvocation;
  ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:28: 
cannot find symbol

symbol: class Interceptor
public class LoggingInterceptor implements Interceptor {
  ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:36: 
cannot find symbol

symbol  : class Invocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
   public Object invoke(Invocation invocation) throws Throwable {
^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:37: 
cannot find symbol

symbol  : class MethodInvocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
   MethodInvocation mi = (MethodInvocation) invocation;
   ^
/home/clasie/agila/trunk/modules/bpel/common/src/java/org/apache/agila/bpel/common/aspect/LoggingInterceptor.java:37: 
cannot find symbol

symbol  : class MethodInvocation
location: class org.apache.agila.bpel.common.aspect.LoggingInterceptor
   MethodInvocation mi = (MethodInvocation) invocation;
  ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors

BUILD FAILED
File.. /home/clasie/agila/trunk/modules/bpel/maven.xml
Element... maven:reactor
Line.. 16
Column 78
Unable to obtain goal [buildmodule] -- 
/home/clasie/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48: 
 Compile failed; see the compiler error output for details.

Total time: 27 seconds
Finished at: Wed Sep 27 15:55:10 CEST 2006
*

Many thanks for any help.

Claude
[EMAIL PROTECTED]

_
Ping… Pong… Ping… Pong… 4 mails déjà ! Arrêtez de perdre votre temps grâce à 
Windows Live Messenger ! http://get.live.com/messenger/overview



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



RE: Dependency management

2006-09-27 Thread Adrian Shum
I think that's exactly what Yann said  :)

if it is only a dependency but not a module, maven will NOT build it.
It will download from repository (either local or remote) instead.

Adrian Shum

-Original Message-
From: Lakshman Srilakshmanan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 11:13 AM
To: Maven Users List
Subject: RE: Dependency management


Hi Alexander & Yann

I believe if you declare a dependency and don't have it specified as a
module, maven will try and download it from the repository.

Thanks
Lakshman


> -Original Message-
> From: Yann Le Du [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 28 September 2006 3:05 AM
> To: Maven Users List
> Subject: Re: Dependency management
> 
> Hi Alexander,
> 
> 2006/9/27, Morgovsky, Alexander (US - Glen Mills)
<[EMAIL PROTECTED]>:
> >
> > Hi, I have a few questions about modules and dependencies.  Does the
> > order of modules listed in the parent pom.xml matter?  For example,
if C
> > depends on A and B depends on C, then the correct order would be:A,
C  B
> > A
> > C
> > B
> >
> > If I specify instead
> > A
> > B
> > C, will Maven pick up the right dependency order
and
> > build as if I had written A,C,B?
> 
> 
> Order doesn't matter, Maven does well. But you could simply try. ^_^
> 
> As for my second question, if I declare a dependency in a project,
will
> > that artifact be automatically built and deployed to maven repo so
that
> > it would be picked up for build?  For example, if I declare:
> >
> > 
> > b
> > a
> > 1.0
> > 
> >
> > Will Maven go and build a for me or do I need to include a as a
> > submodule?  Thanks.
> 
> 
> Maven won't build it - if your dependency was Spring, Maven wouldn't
build
> Spring. So, yes, you need to include a as a submodule.
> 
> HTH,
> - Yann
> 
> This message (including any attachments) contains confidential
information
> > intended for a specific individual and purpose, and is protected by
law.  If
> > you are not the intended recipient, you should delete this message.
> >
> >
> > Any disclosure, copying, or distribution of this message, or the
taking of
> > any action based on it, is strictly prohibited. [v.E.1]
> >
> >


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



This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parites do not accept 
liability for any damage caused by this email.


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



RE: Dependency management

2006-09-27 Thread Lakshman Srilakshmanan
Hi Alexander & Yann

I believe if you declare a dependency and don't have it specified as a
module, maven will try and download it from the repository.

Thanks
Lakshman


> -Original Message-
> From: Yann Le Du [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 28 September 2006 3:05 AM
> To: Maven Users List
> Subject: Re: Dependency management
> 
> Hi Alexander,
> 
> 2006/9/27, Morgovsky, Alexander (US - Glen Mills)
<[EMAIL PROTECTED]>:
> >
> > Hi, I have a few questions about modules and dependencies.  Does the
> > order of modules listed in the parent pom.xml matter?  For example,
if C
> > depends on A and B depends on C, then the correct order would be:A,
C  B
> > A
> > C
> > B
> >
> > If I specify instead
> > A
> > B
> > C, will Maven pick up the right dependency order
and
> > build as if I had written A,C,B?
> 
> 
> Order doesn't matter, Maven does well. But you could simply try. ^_^
> 
> As for my second question, if I declare a dependency in a project,
will
> > that artifact be automatically built and deployed to maven repo so
that
> > it would be picked up for build?  For example, if I declare:
> >
> > 
> > b
> > a
> > 1.0
> > 
> >
> > Will Maven go and build a for me or do I need to include a as a
> > submodule?  Thanks.
> 
> 
> Maven won't build it - if your dependency was Spring, Maven wouldn't
build
> Spring. So, yes, you need to include a as a submodule.
> 
> HTH,
> - Yann
> 
> This message (including any attachments) contains confidential
information
> > intended for a specific individual and purpose, and is protected by
law.  If
> > you are not the intended recipient, you should delete this message.
> >
> >
> > Any disclosure, copying, or distribution of this message, or the
taking of
> > any action based on it, is strictly prohibited. [v.E.1]
> >
> >


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



RE: [M2] Mirror

2006-09-27 Thread Lakshman Srilakshmanan
Hi Remy,

I would seriously question the need to get a mirror of central. 

For one thing, it's 5GB.
Secondly you would never use it all. You would probably use a small fraction 
(ie at most 10%).

As suggested by Tamás Cservenák, you should consider using proximity. It works 
like central and will hold only what you require. 

Thanks
Lakshman


> -Original Message-
> From: Tamás Cservenák [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 28 September 2006 3:10 AM
> To: Maven Users List
> Subject: Re: [M2] Mirror
> 
> Or as an alternative, you can look for Proximity:
> http://proximity.abstracthorizon.org/
> 
> ~t~
> 
> On 9/26/06, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:
> > Hi Johan,
> >
> >
> > Try
> > > rsync -rlHtSv [EMAIL PROTECTED]::maven2 /var/www/maven2
> > > where /var/www/maven2 is the location where you want to put the files.
> > > You would then have to make the location available over HTTP.
> >
> >
> > I am trying this command but I have some trouble with the corporate security
> > and proxy.
> > I will also try archiva (
> > http://maven.apache.org/archiva/maven-repository-utils/index.html)
> >
> > Many thanks,
> >
> > Rémy
> >
> >


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



Re: Repository configuration

2006-09-27 Thread Todd Nine

Unfortunately I don't think this exists, I receive the following error

Caused by: java.io.IOException: Server returned HTTP response code: 500 for
URL:

http://maven.nineconsulting.net/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.pom
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpURLConnection.java:814)
   at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(
LightweightHttpWagon.java:85)
   ... 28 more

with the following in my settings.xml


   maven2
   maven
   foo
   

   
   
   true
   
   
   true
   
   maven2
   Maven Nineconsulting repository
   
   http://maven.nineconsulting.net
   
   default

   
   

It looks like I'll need to submit a jira request. I think this is a bug.  If
you take a look at the source for the lightweight http wagon here

http://svn.apache.org/viewvc/maven/wagon/tags/wagon-1.0-alpha-6/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java?revision=368228&view=markup

You can see that "authenticationInfo" should not be null, and it should be
used in the "openConnection" method.  I'm guessing its not being set from
settings.xml.

Toodd

On 9/27/06, Bravo, Kris <[EMAIL PROTECTED]> wrote:


I think you cross reference by the , although I've never done this
before. If this isn't implemented, it's definitely a good idea and
worthy of a JIRA ticket.


-->  extranet.repo
  snapshots
  Project Snapshots
  http://./maven2/



-->  extranet.repo
  name
  pass


kris bravo


-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 27, 2006 1:43 PM
To: users@maven.apache.org
Subject: Repository configuration

Hi all,
  I have a security question.  I would like to set up a repository on
the net for a side project some friends and I are working on.  However I
don't want the uploaded artifacts to be available to the public.  Is it
possible to secure the repository with a .htaccess file, and enter the
user name and password into settings.xml?

Thanks,
Todd

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




Re: All files not being copied when deploying

2006-09-27 Thread Wendy Smoak

On 9/27/06, Tom Hurley <[EMAIL PROTECTED]> wrote:

I have a web application and when I deploy, only some of my files are being
copied from my webapp directory to the target directory. I get the following
error which makes sense as the files are not being copied.

...

[INFO] Error assembling WAR: Deployment descriptor:
D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal\
-INF\web.xml does not exist.

Why are some and not all of the files being copied? I am new to maven and
would appreciate any help in understanding why this is happening.


Where is the web.xml file in your source code for your project?

Normally, it would be in project/src/main/webapp/WEB-INF/web.xml .

If it's somewhere else, you'll have to tell Maven where that is,
probably by configuring the war plugin.

--
Wendy

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



All files not being copied when deploying

2006-09-27 Thread Tom Hurley
Hi,

I have a web application and when I deploy, only some of my files are being
copied from my webapp directory to the target directory. I get the following
error which makes sense as the files are not being copied.

[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal
[INFO] Assembling webapp ManagementPortal in
D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal
[INFO] Generating war
D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal.war
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling WAR: Deployment descriptor:
D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal\
-INF\web.xml does not exist.

Why are some and not all of the files being copied? I am new to maven and
would appreciate any help in understanding why this is happening.

Thanks in advance.

Tom.

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



Re: Creating a Java application

2006-09-27 Thread Kaare Nilsen

On 26/09/06, Xavier Toth <[EMAIL PROTECTED]> wrote:

Great, do you have a url for appassembler?


http://mojo.codehaus.org/appassembler-maven-plugin/



On 9/25/06, Kaare Nilsen <[EMAIL PROTECTED]> wrote:
> check out the appassembler plugin in the mojo project, works great
>
> /Kaare
>
> On 25/09/06, Xavier Toth <[EMAIL PROTECTED]> wrote:
> > I want to do the same thing so I'm looking at using
> > http://one-jar.sourceforge.net/ and building a jar as per its' docs.
> > However, I'm looking for more extensive docs for the jar plugin
> > version 2.1 inorder to do this job.
> >
> > On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Thanks Alexandre!
> > > POMStrap is great. I'll sure use it a lot for development purposes.
> > >
> > > However, what I'd like is to package an application and then distribute
> > > it (without requiring users to have Maven installed).
> > > Let's say I've written a cool application. You download it. You have
> > > Java on your machine. You unzip and run it.
> > >
> > > -Original Message-
> > > From: Alexandre Russel [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, September 21, 2006 5:14 PM
> > > To: Maven Users List
> > > Subject: Re: Creating a Java application
> > >
> > > Do you know POMStrap ?
> > > http://pomstrap.prefetch.com/en/index.xml
> > >
> > > Commande Line Interface
> > >
> > > POMStrap can work as an application bootstrap. It just requires a pom
> > > file
> > > (Maven 2 project file) and a class/method to fetch all required
> > > dependencies
> > > and launch the application using a command line syntax such as:
> > >
> > > java -jar pomstrap-1.0.4.jar groupId:artifact:version classname[:method]
> > >
> > > [method args]
> > >
> > > for example:
> > >
> > > java -jar pomstrap-1.0.4.jar pomstrap:testApp:1.0
> > > com.prefetch.pomstrap.App:run
> > >
> > > If no method is provided it will try to start the classical java static
> > > main
> > > method.
> > > On Thursday 21 September 2006 10:44, [EMAIL PROTECTED] wrote:
> > > > 10x Martin.
> > > >
> > > > The assembly plugin just bundles binaries and (optionally) sources.
> > > > What I'd like is something that I can open and execute.
> > > > For example, uberjar bundles the java application, along with all its
> > > > dependencies into one executable jar (you need only to specify in your
> > > > project properties what is the main class). When you execute the jar -
> > > > the application opens.
> > > >
> > > > As I understood from the assembly plugin site, it is not built to do
> > > > such things.
> > > >
> > > > Please inform me if I missed something.
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > From: Martin Gilday [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, September 21, 2006 11:32 AM
> > > > To: Maven Users List
> > > > Subject: Re: Creating a Java application
> > > >
> > > >
> > > > I think you need the Assembly plugin
> > > >
> > > http://maven.apache.org/plugins/maven-assembly-plugin/introduction.html
> > > >
> > > > HTH,
> > > > Martin.
> > > >
> > > > - Original message -
> > > > From: [EMAIL PROTECTED]
> > > > To: users@maven.apache.org
> > > > Date: Thu, 21 Sep 2006 04:22:57 -0400
> > > > Subject: Creating a Java application
> > > >
> > > > I know of two plugins for the purpose of creating a Java application
> > > > (i.e. something that packages an application along with it's
> > > > dependencies):
> > > >
> > > >
> > > >
> > > > 1.  uberjar
> > > > 2.  javaapp
> > > >
> > > >
> > > >
> > > > However, both of them look like history.
> > > >
> > > >
> > > >
> > > > Does anyone know of such a plugin that works with Maven2 ?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thanks ...
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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

Re: for projects that do not produce artifacts

2006-09-27 Thread dan tran

configure the project's packaging as "pom", then only pom is deployed.

-D


On 9/27/06, Janos Mucsi <[EMAIL PROTECTED]> wrote:


Hi

I am not sure whether this question is in agreement with the Maven
paradigm. I want to have a Maven project that only deploys an application.
Therefore, I can create a plugin that does the job. But  still
has to be set to something even if the output (an empty jar) is thrown
away.

What is the best way to set up such projects?

Thanks.

Janos Mucsi
415-422-1692



for projects that do not produce artifacts

2006-09-27 Thread Janos Mucsi
Hi

I am not sure whether this question is in agreement with the Maven 
paradigm. I want to have a Maven project that only deploys an application. 
Therefore, I can create a plugin that does the job. But  still 
has to be set to something even if the output (an empty jar) is thrown 
away.

What is the best way to set up such projects?

Thanks.

Janos Mucsi
415-422-1692

Re: War: Exclude A Transitive Dependency

2006-09-27 Thread Max Cooper

I think you are right:
* exclude from project-that-depends-on-j2ee
* add dependency for j2ee.jar with 'provided' scope to local project

and maybe:
* contact the project-that-depends-on-j2ee team to ask if they will use 
scope=provided for their j2ee dependency in future releases


I wonder if you need the exclude if you have a local dependency on j2ee 
with scope = provided? It might be worth a test if you wish to avoid the 
exclude.


-Max

Douglas Ferguson wrote:
That only works for war overlay right? 


This is a war with jar deps. I am picking up the j2ee.jar through a jar dep.
I want it at compile time but I don't want it in my war.

I think the only solution is to duplicate the transitivbe dependency in the 
local project and mark it provided.

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 10:16 PM

To: users@maven.apache.org
Subject: Re: War: Exclude A Transitive Dependency




Douglas Ferguson wrote:

I have a project that generates a war file, the j2ee jar is inheritented
as a transitive dependency, however if the j2ee jar is included, then
tomcat prints a warning but websphere refuses to deploy.

 


Is there anyway to tell the war plugin not to include this lib?  I know
I could mark the dependency as provided but I thought I would see if
there is a more elegant way to do this without having to specify a
version that I could obtain transitively.

 


D-






Good day to you, Douglas,

You can try and add the paths (relative paths), of those jars that you don't
want to get included to your warDependencyExcludes (comma separated). For
more info, please see [1] "Configuring the war-overlay" section. However,
[1] is not yet released. But please feel free to let us know what you think
so that we can improve it. 


Thanks,
Franz

[1]
http://people.apache.org/~vsiveton/maven-war-plugin/examples/war-overlay.html


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



Re: Uploading multiproject to central repo: Packaging cannot be POM when creating an upload bundle.

2006-09-27 Thread Geoffrey De Smet

We 'll wait with pushing Spring-richclient to Ibiblio till
http://jira.codehaus.org/browse/MREPOSITORY-3
is fixed. (Anyone else is free to push it up there though)

With kind regards,
Geoffrey De Smet


Geoffrey De Smet wrote:
We 'd like to get spring-richclient 0.2.1 (build with m2) on the central 
repo.


We have it deployed in our repo:
http://spring-rich-c.sourceforge.net/maven2repository/org/springframework/richclient/ 



and we have the source here:
https://svn.sourceforge.net/svnroot/spring-rich-c/tags/spring-richclient-0.2.1/ 




So I followed "Guide to uploading artifacts to Ibiblio" from
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

but as soon as I did
mvn source:jar javadoc:jar repository:bundle-create

I got this error:
Packaging cannot be POM when creating an upload bundle.

which is probably related to this bug:
http://jira.codehaus.org/browse/MREPOSITORY-3


so what's the easiest way to get spring-richclient on the central repo?
- ask for a sync from our repo? is that possible?
- mess around with manually doing each module (which are a lot...) and 
do the parent pom's also manually?
- Just wait till MREPOSITORY-3 is fixed and then do it (even it's just a 
snapshot)?

- Will Archiva help in this in any way in the future?

Thanks for any and all help.




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



RE: War: Exclude A Transitive Dependency

2006-09-27 Thread Douglas Ferguson
That only works for war overlay right? 

This is a war with jar deps. I am picking up the j2ee.jar through a jar dep.
I want it at compile time but I don't want it in my war.

I think the only solution is to duplicate the transitivbe dependency in the 
local project and mark it provided.

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 10:16 PM
To: users@maven.apache.org
Subject: Re: War: Exclude A Transitive Dependency




Douglas Ferguson wrote:
> 
> I have a project that generates a war file, the j2ee jar is inheritented
> as a transitive dependency, however if the j2ee jar is included, then
> tomcat prints a warning but websphere refuses to deploy.
> 
>  
> 
> Is there anyway to tell the war plugin not to include this lib?  I know
> I could mark the dependency as provided but I thought I would see if
> there is a more elegant way to do this without having to specify a
> version that I could obtain transitively.
> 
>  
> 
> D-
> 
> 
> 
> 

Good day to you, Douglas,

You can try and add the paths (relative paths), of those jars that you don't
want to get included to your warDependencyExcludes (comma separated). For
more info, please see [1] "Configuring the war-overlay" section. However,
[1] is not yet released. But please feel free to let us know what you think
so that we can improve it. 

Thanks,
Franz

[1]
http://people.apache.org/~vsiveton/maven-war-plugin/examples/war-overlay.html
-- 
View this message in context: 
http://www.nabble.com/War%3A-Exclude-A-Transitive-Dependency-tf2340250.html#a6519812
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



RE: Repository configuration

2006-09-27 Thread Bravo, Kris
I think you cross reference by the , although I've never done this
before. If this isn't implemented, it's definitely a good idea and
worthy of a JIRA ticket. 


-->  extranet.repo
  snapshots
  Project Snapshots
  http://./maven2/



-->  extranet.repo
  name
  pass


kris bravo


-Original Message-
From: Todd Nine [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 1:43 PM
To: users@maven.apache.org
Subject: Repository configuration

Hi all,
  I have a security question.  I would like to set up a repository on
the net for a side project some friends and I are working on.  However I
don't want the uploaded artifacts to be available to the public.  Is it
possible to secure the repository with a .htaccess file, and enter the
user name and password into settings.xml?

Thanks,
Todd

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



Re: Multimodule builds with same-named sub-modules

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

Hi Alexander

Your problem does not belong to where are exactly located your
projects on your filesystem.

Your problem is that you have define two projects with the same
groupId and artifactId.

In maven there must be unicity between a project and it name
which is composed on groupId, artifactId and version.
(not sure for the version)

To correct your problem, please modify the sub-sub-projects artifactIds.

Hope this helps.


Raphaël


Morgovsky, Alexander (US - Glen Mills) a écrit :

Hi everyone.  I have two projects which are modules of a parent project.
These projects have modules that are named the same.  When run separate,
the builds for the projects work fine.  However, when run from the
parent, "[INFO] Project 'a:a' is duplicated in the reactor" is produced.
Here is what I have
-Parent
-pom.xml
A
B
-A
-pom.xml
a
-a
-pom.xml
-B
-pom.xml
a
-a
-pom.xml

I tried defining the modules with relative references to the parent to
avoid duplicate module definitions, but this did not solve the problem.
Please suggest what I can do.  Thanks. 



This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 



Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

  



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



Multimodule builds with same-named sub-modules

2006-09-27 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi everyone.  I have two projects which are modules of a parent project.
These projects have modules that are named the same.  When run separate,
the builds for the projects work fine.  However, when run from the
parent, "[INFO] Project 'a:a' is duplicated in the reactor" is produced.
Here is what I have
-Parent
-pom.xml
A
B
-A
-pom.xml
a
-a
-pom.xml
-B
-pom.xml
a
-a
-pom.xml

I tried defining the modules with relative references to the parent to
avoid duplicate module definitions, but this did not solve the problem.
Please suggest what I can do.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


RE: M2 EJB plugin

2006-09-27 Thread Daryl.Dwyer
Which version of the plugin?  I think you have to use 2.1 which I
believe is still a SNAPSHOT.


-Original Message-
From: alonso [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 4:23 AM
To: users@maven.apache.org
Subject: M2 EJB plugin

Hi there, 

 

I'm trying to package an EJB 3.0 module using the maven-ejb-plugin for
Maven 2.x. The  problem is that when the plugin tries to package the jar
archive, it fails because it can't find the META-INF/ejb-jar.xml file.
The point is that I'm using EJB 3.0 and I don't need that file. 

 

Here is an extract from my pom.xml file:

 

  ERS Platform - Model Layer

  

  ersplatform-model

  com.social_labs.ers.platform

  

  ejb

 

.

 







  maven-ejb-plugin

  org.apache.maven.plugins

  

3.0

  





  

 

The mvn's output when I run "mvn install" is as follows:

 

[INFO] [ejb:ejb]

[INFO] Building ejb ersplatform-model-1.0-SNAPSHOT

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error assembling EJB

 

Embedded error:
C:\fuentes\projects\ERS\platform\model\target\classes\META-INF\e

jb-jar.xml isn't a file.

[INFO]


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

[INFO]


[INFO] Total time: 9 seconds

[INFO] Finished at: Wed Sep 27 10:50:42 CEST 2006

[INFO] Final Memory: 5M/11M

[INFO]


 

Does anyone know where is the problem?

 

Regards,

Alonso


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



Re: archetype plugin can't fetch archetype from my own repository

2006-09-27 Thread Cheng-Yang.Tang
Hi Wendy,

Thanks very much for your explanation.

Louis

On Wed, 2006-09-27 at 07:44 -0700, Wendy Smoak wrote:
> On 9/27/06, Cheng-Yang.Tang <[EMAIL PROTECTED]> wrote:
> 
> > I create my own artifacts and archetypes, and deploy them into my own
> > repository.  The repository is specified in settings.xml.  Maven can get
> > artifacts from the repository, but not the archetype:
> ...
> > However, when I specified
> > -DremorteRepositories="http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot";
> > It works properly.  I think it's because maven does not use the
> > repositories specified in settings.xml when fetching archetypes.
> 
> Correct.  The 'remoteRepositories' attribute was added in response to
> this issue:
>http://jira.codehaus.org/browse/ARCHETYPE-1
> 
> If you search the list archives for posts from Jason van Zyl, I'm
> pretty sure he explained why Archetype does not use settings.xml.  I
> don't remember if this is something that will be changed in the future
> or if it's like that for a reason.
> 


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



Re: the default central repository for maven 2 is not ibiblio?

2006-09-27 Thread Cheng-Yang.Tang
Hi Yann,

Thanks very much for your explanation.

Louis
On Wed, 2006-09-27 at 18:56 +0200, Yann Le Du wrote:
> Hi Louis,
> 
> http://repo1.maven.org/maven2/ is the official URL, but was once redirected
> to www.ibiblio.org/maven2/ . AFAIK, both repos are identical, so you don't
> need  to specify any mirror. Though, if you want to use mirrors, you can
> check those : http://maven.apache.org/guides/mini/guide-mirror-settings.html
> 
> - Yann
> 
> 2006/9/27, Cheng-Yang.Tang < [EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I thought the major central repository for maven 2 is
> > http://www.ibiblio.org/maven2
> > but in fact the hard-coded central repository is
> > http://repo1.maven.org/maven2.  And I have to specify the ibiblio one as
> > a mirror if I want to use it.  Is it meant to be like that? or is it a
> > bug to fix?
> >
> > Cheers,
> >
> > Louis
> >
> >
> > -
> > 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]



Repository configuration

2006-09-27 Thread Todd Nine

Hi all,
 I have a security question.  I would like to set up a repository on the
net for a side project some friends and I are working on.  However I don't
want the uploaded artifacts to be available to the public.  Is it possible
to secure the repository with a .htaccess file, and enter the user name and
password into settings.xml?

Thanks,
Todd


Re: maven-native-plugin always re-runs native:link

2006-09-27 Thread dan tran

Feel free to file jira, but i dont think you gain much performance on this
feature.

-D


On 9/27/06, dan tran <[EMAIL PROTECTED]> wrote:


yes, the link state always relink, just like java( jar )  packaging.

-D


 On 9/27/06, Brad Harper <[EMAIL PROTECTED]> wrote:
>
> Have I mis-configured the native:link goal?
>
> The maven-native-plugin /always/ re-links even when all of
> the .o files are up to date.
>
> Brad
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: [M2] Mirror

2006-09-27 Thread Tamás Cservenák

Or as an alternative, you can look for Proximity:
http://proximity.abstracthorizon.org/

~t~

On 9/26/06, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:

Hi Johan,


Try
> rsync -rlHtSv [EMAIL PROTECTED]::maven2 /var/www/maven2
> where /var/www/maven2 is the location where you want to put the files.
> You would then have to make the location available over HTTP.


I am trying this command but I have some trouble with the corporate security
and proxy.
I will also try archiva (
http://maven.apache.org/archiva/maven-repository-utils/index.html)

Many thanks,

Rémy




Re: Dependency management

2006-09-27 Thread Yann Le Du

Hi Alexander,

2006/9/27, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>:


Hi, I have a few questions about modules and dependencies.  Does the
order of modules listed in the parent pom.xml matter?  For example, if C
depends on A and B depends on C, then the correct order would be:A, C  B
A
C
B

If I specify instead
A
B
C, will Maven pick up the right dependency order and
build as if I had written A,C,B?



Order doesn't matter, Maven does well. But you could simply try. ^_^

As for my second question, if I declare a dependency in a project, will

that artifact be automatically built and deployed to maven repo so that
it would be picked up for build?  For example, if I declare:


b
a
1.0


Will Maven go and build a for me or do I need to include a as a
submodule?  Thanks.



Maven won't build it - if your dependency was Spring, Maven wouldn't build
Spring. So, yes, you need to include a as a submodule.

HTH,
- Yann

This message (including any attachments) contains confidential information

intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of
any action based on it, is strictly prohibited. [v.E.1]




RE: passing along maven built classpath to ant plugin

2006-09-27 Thread EJ Ciramella
Nvm - I realized only after I sent this that the  needs to be
settings.localRepository, not localRepository.

Ok, I'm moving along now... 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 12:55 PM
To: Maven Users List
Subject: RE: passing along maven built classpath to ant plugin

I keep getting this:

E:\work\up-svcs\lty\proj\LTY-P39\${settings.localRepository} not
found.

How come this isn't getting expanded?  I'm trying to write a findbugs
ant plugin and attempting to load some stuff out of there.  I have the
following in my mojo:


  localRepository 
  localRepository 
  true 
  ${settings.localRepository}
  java.lang.String
  This is the location of your local
repository


And the following in my findbugs.build.xml:

...
 
...

And finally the following in my pom.xml where I have this plugin
configured:


${findbugs.home}
${settings.localRepository}
 

Thanks for the quick response!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 12:45 PM
To: Maven Users List
Cc: Maven Users List
Subject: RE: passing along maven built classpath to ant plugin

you can use ${settings.localRepository}


Thanks,
Raghurajan Gurunathan





"EJ Ciramella" <[EMAIL PROTECTED]>
09/27/2006 11:36 AM
Please respond to "Maven Users List"
 
To: "Maven Users List" 
cc: 
Subject:RE: passing along maven built classpath to ant 
plugin


Can I get access to the localRepository variable in the same fashion?
Is there something like project.localRepository or
maven.localRepository?

We're using a different location for the repository as configured in our
settings.xml file. }

-Original Message-
From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:36 PM
To: Maven Users List
Subject: Re: passing along maven built classpath to ant plugin

Yup, you can use these classpaths:

* maven.dependency.classpath
* maven.compile.classpath
* maven.runtime.classpath
* maven.test.classpath
* maven.plugin.classpath

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Zarar

On 9/26/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there some easy way to do something like ${project.classpath} and
> have that passed along to my plugin?
>
>

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





-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

-
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: the default central repository for maven 2 is not ibiblio?

2006-09-27 Thread Yann Le Du

Hi Louis,

http://repo1.maven.org/maven2/ is the official URL, but was once redirected
to www.ibiblio.org/maven2/ . AFAIK, both repos are identical, so you don't
need  to specify any mirror. Though, if you want to use mirrors, you can
check those : http://maven.apache.org/guides/mini/guide-mirror-settings.html

- Yann

2006/9/27, Cheng-Yang.Tang < [EMAIL PROTECTED]>:


Hi,

I thought the major central repository for maven 2 is
http://www.ibiblio.org/maven2
but in fact the hard-coded central repository is
http://repo1.maven.org/maven2.  And I have to specify the ibiblio one as
a mirror if I want to use it.  Is it meant to be like that? or is it a
bug to fix?

Cheers,

Louis


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




RE: passing along maven built classpath to ant plugin

2006-09-27 Thread EJ Ciramella
I keep getting this:

E:\work\up-svcs\lty\proj\LTY-P39\${settings.localRepository} not
found.

How come this isn't getting expanded?  I'm trying to write a findbugs
ant plugin and attempting to load some stuff out of there.  I have the
following in my mojo:


  localRepository 
  localRepository 
  true 
  ${settings.localRepository}
  java.lang.String
  This is the location of your local
repository


And the following in my findbugs.build.xml:

...
 
...

And finally the following in my pom.xml where I have this plugin
configured:


${findbugs.home}
${settings.localRepository}
 

Thanks for the quick response!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 12:45 PM
To: Maven Users List
Cc: Maven Users List
Subject: RE: passing along maven built classpath to ant plugin

you can use ${settings.localRepository}


Thanks,
Raghurajan Gurunathan





"EJ Ciramella" <[EMAIL PROTECTED]>
09/27/2006 11:36 AM
Please respond to "Maven Users List"
 
To: "Maven Users List" 
cc: 
Subject:RE: passing along maven built classpath to ant 
plugin


Can I get access to the localRepository variable in the same fashion?
Is there something like project.localRepository or
maven.localRepository?

We're using a different location for the repository as configured in our
settings.xml file. }

-Original Message-
From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:36 PM
To: Maven Users List
Subject: Re: passing along maven built classpath to ant plugin

Yup, you can use these classpaths:

* maven.dependency.classpath
* maven.compile.classpath
* maven.runtime.classpath
* maven.test.classpath
* maven.plugin.classpath

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Zarar

On 9/26/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there some easy way to do something like ${project.classpath} and
> have that passed along to my plugin?
>
>

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





-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

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



Re: maven-native-plugin always re-runs native:link

2006-09-27 Thread dan tran

yes, the link state always relink, just like java( jar )  packaging.

-D


On 9/27/06, Brad Harper <[EMAIL PROTECTED]> wrote:


Have I mis-configured the native:link goal?

The maven-native-plugin /always/ re-links even when all of
the .o files are up to date.

Brad

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




RE: passing along maven built classpath to ant plugin

2006-09-27 Thread raghurajan . x . gurunathan
you can use ${settings.localRepository}


Thanks,
Raghurajan Gurunathan





"EJ Ciramella" <[EMAIL PROTECTED]>
09/27/2006 11:36 AM
Please respond to "Maven Users List"
 
To: "Maven Users List" 
cc: 
Subject:RE: passing along maven built classpath to ant 
plugin


Can I get access to the localRepository variable in the same fashion?
Is there something like project.localRepository or
maven.localRepository?

We're using a different location for the repository as configured in our
settings.xml file. }

-Original Message-
From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:36 PM
To: Maven Users List
Subject: Re: passing along maven built classpath to ant plugin

Yup, you can use these classpaths:

* maven.dependency.classpath
* maven.compile.classpath
* maven.runtime.classpath
* maven.test.classpath
* maven.plugin.classpath

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Zarar

On 9/26/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there some easy way to do something like ${project.classpath} and
> have that passed along to my plugin?
>
>

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





-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


Create an aggregate jar merging XML descriptor files?

2006-09-27 Thread Don Brown

In Maven 2, how do I create an aggregate jar of a given number of
dependencies, but merge their XML configuration files?  For the merge,
I was thinking of using chained N-1 XSLT transformations.

The single jar I understand through an assembly and unpack, but how do
I run code to process the unpacked files before they are combined into
the single jar?

Thanks,

Don

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



RE: passing along maven built classpath to ant plugin

2006-09-27 Thread EJ Ciramella
Can I get access to the localRepository variable in the same fashion?
Is there something like project.localRepository or
maven.localRepository?

We're using a different location for the repository as configured in our
settings.xml file. 

-Original Message-
From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:36 PM
To: Maven Users List
Subject: Re: passing along maven built classpath to ant plugin

Yup, you can use these classpaths:

* maven.dependency.classpath
* maven.compile.classpath
* maven.runtime.classpath
* maven.test.classpath
* maven.plugin.classpath

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Zarar

On 9/26/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there some easy way to do something like ${project.classpath} and
> have that passed along to my plugin?
>
>

-
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-native-plugin always re-runs native:link

2006-09-27 Thread Brad Harper
Have I mis-configured the native:link goal?

The maven-native-plugin /always/ re-links even when all of
the .o files are up to date.

Brad

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



release:perform using clearcase-scm

2006-09-27 Thread ulli . brennenstuhl

Hello,
I'm experimenting with the release-plugin of maven using scm:clearcase at
the moment. I finally got to a point, where the snapshot view is
successfully created,
and the originally started "mvn release:perform"  calls "mvn deploy
site-deploy --no-plugin-updates -DperformRelease=true" which fails (Error
stacktraces at the end of this message)
If I run "mvn deploy site-deploy -no-plugin-updates" in the snapshot view
that maven creates directly in the right path, it works without any
problem, so I guess the problem is that mvn release:perform executes mvn
deploy site-deploy  in the wrong place/path.
I would be glad if anyone could help me with this.
Greets,
Ulli Brennenstuhl


[INFO] Executing: mvn deploy site-deploy --no-plugin-updates
-DperformRelease=true
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente
und Einstellungen\brennenu\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'C:\Programme\Maven\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [deploy, site-deploy]
[INFO]

[DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-resources-plugin:maven-plugin:2.2 from
the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from
repository central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-compiler-plugin:maven-plugin:2.0.1 from
 the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-surefire-plugin:maven-plugin:2.2 from t
he repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-jar-plugin: resolved to version 2.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::3 for project:
null:maven-jar-plugin:maven-plugin:2.1 from the re
pository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for
project: org.apache.maven.plugins:maven-plugins:pom:3 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:4 from the repository.
[DEBUG] maven-install-plugin: resolved to version 2.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-install-plugin:maven-plugin:2.1
 from the repository.
[DEBUG] maven-deploy-plugin: resolved to version 2.2.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-deploy-plugin:maven-plugin:2.2.1 from t
he repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-javadoc-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-javadoc-plugin:maven-plugin:2.0 from th
e repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-source-plugin: resolved to version 2.0.1 from repository
central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-source-plugin:maven-plugin:2.0.1 from t
he repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-pare

Dependency management

2006-09-27 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi, I have a few questions about modules and dependencies.  Does the
order of modules listed in the parent pom.xml matter?  For example, if C
depends on A and B depends on C, then the correct order would be:A, C  B
A
C
B

If I specify instead
A
B
C, will Maven pick up the right dependency order and
build as if I had written A,C,B?

As for my second question, if I declare a dependency in a project, will
that artifact be automatically built and deployed to maven repo so that
it would be picked up for build?  For example, if I declare:


b
a
1.0


Will Maven go and build a for me or do I need to include a as a
submodule?  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: archetype plugin can't fetch archetype from my own repository

2006-09-27 Thread Wendy Smoak

On 9/27/06, Cheng-Yang.Tang <[EMAIL PROTECTED]> wrote:


I create my own artifacts and archetypes, and deploy them into my own
repository.  The repository is specified in settings.xml.  Maven can get
artifacts from the repository, but not the archetype:

...

However, when I specified
-DremorteRepositories="http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot";
It works properly.  I think it's because maven does not use the
repositories specified in settings.xml when fetching archetypes.


Correct.  The 'remoteRepositories' attribute was added in response to
this issue:
  http://jira.codehaus.org/browse/ARCHETYPE-1

If you search the list archives for posts from Jason van Zyl, I'm
pretty sure he explained why Archetype does not use settings.xml.  I
don't remember if this is something that will be changed in the future
or if it's like that for a reason.

--
Wendy

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



archetype plugin can't fetch archetype from my own repository

2006-09-27 Thread Cheng-Yang.Tang
Hi, 

I create my own artifacts and archetypes, and deploy them into my own
repository.  The repository is specified in settings.xml.  Maven can get
artifacts from the repository, but not the archetype: 

mvn archetype:create -DgroupId=helloworld -DartifactId=helloworld
-DarchetypeGroupId=uk.ac.ncl.cs.instantsoap
-DarchetypeArtifactId=archetype-escience-tool
-DarchetypeVersion=1.0-SNAPSHOT


the error message is as follows:
===
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: uk.ac.ncl.cs.instantsoap
ArtifactId: archetype-escience-tool
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=uk.ac.ncl.cs.instantsoap
-DartifactId=archetype-escience-tool \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file


  uk.ac.ncl.cs.instantsoap:archetype-escience-tool:jar:1.0-SNAPSHOT

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


However, when I specified
-DremorteRepositories="http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot"; 
It works properly.  I think it's because maven does not use the
repositories specified in settings.xml when fetching archetypes.  


My settings.xml is as follows:
===
  

  instantsoap
  
true
  
  

  codehaus
  Codehaus maven repository
  http://repository.codehaus.org/


  instantsoap-snapshot
  http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot


  instantsoap
  http://deanmoor.ncl.ac.uk/fluxions/repo

  

  
==


Cheers,

Louis


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



Re: JavaCC plug-in and multiple grammar files

2006-09-27 Thread Mark Donszelmann

Hi

did not find your attached pom.

You can however run the javacc plugin multiple times with different
configurations (output dir/package).

Regards
Mark Donszelmann

On Sep 27, 2006, at 4:10 AM, Stefano Fornari wrote:


Hi All,
I have multiple grammar files, each going into a different package.
Therefore, I cannot specify either the output directory nor the
package. I created the attached pom, but when maven generates the
parser, all source codes go in the same generated-files directory.
Looking at the code of the plug-in, it looks like it is a limitation
in the plug-in (please forgive me if I am saying an heresy, it is the
first time I see a mojo... :) ).
Has anyone ever encountered the same problem? How did you fix it?

Thanks in advance.
Ste

--  
Stefano Fornari - Funambol Chief Architect / Funambol CTO

===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215 (sync4j- 
users)

http://sourceforge.net/mailarchive/forum.php?forum_id=48877
(funambol-dev)

-
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: Wrong artifactHandler

2006-09-27 Thread Clement Escoffier

dan tran a écrit :

add your vote  to this jira http://jira.codehaus.org/browse/MNG-1682

in the mean while, have you tried setting your packaging extension as 
jar?

Yes I do, but it does not work.




-D

On 9/27/06, Clement Escoffier <[EMAIL PROTECTED]> wrote:


Hello,

I am a strange problem with a plugin that I develop. This plugin do a
bytecode manipulation of java classes during the packaging of the
artifact. It works with "simple" project (non multi-module).

Nevertheless, when I use my plugin inside a multi-module project, Maven
does not use the good artifact handler. To trace the problem, I modify
the install-plugin to display some info after the installation. To check
the ArtifactHandler, I set the language to "foo" inside my plugin :

 org.apache.maven.artifact.handler.ArtifactHandler
 ipojo-bundle

org.apache.maven.artifact.handler.DefaultArtifactHandler

 
   ipojo-bundle
   true
   foo
   jar
   true
 


When I launch mvn clean install on the single project I have the
following result :
...
[INFO] [install:install]
[INFO] Installing
F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to

F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 


0.6.0-SNAPSHOT.jar
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : foo
Artifact Handler Extension : jar
Artifact Handler Packaging : ipojo-bundle

So, it works in this case.

But when I launch mvn clean install on the multi module project, the I
have the following (strange) result :
[INFO] Installing
f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to

F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 


0.6.0-SNAPSHOT.ipojo-bundle
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : none
Artifact Handler Extension : ipojo-bundle
Artifact Handler Packaging : ipojo-bundle

So, I think that when used in multi-module Maven does not use the good
artifact handler. But how I can solve this problem ?

Thank you very much for all ideas

Clement Escoffier

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







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



Re: maven-native-plugin & long command lines and individual files ...

2006-09-27 Thread dan tran

that portion of unused code has been removed

-D


On 9/26/06, Brad Harper <[EMAIL PROTECTED]> wrote:


Anyone:

Was this question (below) ever addressed? It didn't appear so.

I looked at the source at


http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/maven-native/maven-native-api/src/main/java/org/codehaus/mojo/natives/NativeSources.java?r=435

and noted the method

  public static File [] getAllSourceFilesWithExtensionTranslation(
   NativeSources [] sources, String extension
) { ... }

but it isn't clear what the plugin  element would
look like.

Thanks.

Brad

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 01, 2006 1:58 AM
> To: Maven Users List
> Subject: maven-native-plugin & long command lines and individual files
> ...
>
>
> does the native plugin always want files specified individually?
> AFAICT I have to do this ...
>
> 
> ${generated.native.source.dir}
> 
> devices.c
> errors.c
> 
> 
> 
> ${basedir}/src/main/c
> 
> avrprog.c
> hpl_bootloader.c
>
> etc etc rather than *.c
>
> The end result is that my final link line end up being too
> long for the
> Windows command processor after it has passed each file with a fully
> qualified path name to the linker
>
> Error is :
>
> The following character string is too long:
>  -mmcu=atmega128 -gstabs
> -Wl,-T,C:\projects\linkages\avr\ExeStatic/src/main/conf/avr5_ext.x
> -Wl,-Map,ExeStatic.map -Wl,--defsym=__heap_start=0x804000
> -Wl,--defsym=__heap_end=0x80-Wl,--section-start=.jumptable=0x1efe8
> -o
> C:\projects\linkages\avr\ExeStatic\ges\avr\ExeStatic\target\hp
> l_coreio.objC:\projects\linkages\avr\ExeStatic\target\hpl_debu
> gprot.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_ds1602.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_eeprom.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_flash.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_meminit.objC:\pr
> ojects\linkages\avr\ExeStatic\target\hpl_misc.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_power.objC:\proj
> ects\linkages\avr\ExeStatic\target\hpl_radio.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_radioctl.objC:\p
> rojects\linkages\avr\ExeStatic\target\hpl_reset.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_serial.objC:\pro
> jects\linkages\avr\ExeStatic\target\hpl_spi.obj
> C:\projects\linkages\avr\ExeStatic\target\hpl_timer.obj
>
> [snip]
>
> Is there any way to avoid this, I'd rather not have to beak it up into
> separate libraries just to get it to link
>
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




the default central repository for maven 2 is not ibiblio?

2006-09-27 Thread Cheng-Yang.Tang
Hi,

I thought the major central repository for maven 2 is
http://www.ibiblio.org/maven2
but in fact the hard-coded central repository is
http://repo1.maven.org/maven2.  And I have to specify the ibiblio one as
a mirror if I want to use it.  Is it meant to be like that? or is it a
bug to fix?

Cheers,   

Louis


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



Re: Wrong artifactHandler

2006-09-27 Thread dan tran

add your vote  to this jira http://jira.codehaus.org/browse/MNG-1682

in the mean while, have you tried setting your packaging extension as jar?

-D

On 9/27/06, Clement Escoffier <[EMAIL PROTECTED]> wrote:


Hello,

I am a strange problem with a plugin that I develop. This plugin do a
bytecode manipulation of java classes during the packaging of the
artifact. It works with "simple" project (non multi-module).

Nevertheless, when I use my plugin inside a multi-module project, Maven
does not use the good artifact handler. To trace the problem, I modify
the install-plugin to display some info after the installation. To check
the ArtifactHandler, I set the language to "foo" inside my plugin :

 org.apache.maven.artifact.handler.ArtifactHandler
 ipojo-bundle

org.apache.maven.artifact.handler.DefaultArtifactHandler

 
   ipojo-bundle
   true
   foo
   jar
   true
 


When I launch mvn clean install on the single project I have the
following result :
...
[INFO] [install:install]
[INFO] Installing
F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to

F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : foo
Artifact Handler Extension : jar
Artifact Handler Packaging : ipojo-bundle

So, it works in this case.

But when I launch mvn clean install on the multi module project, the I
have the following (strange) result :
[INFO] Installing
f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to

F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.ipojo-bundle
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : none
Artifact Handler Extension : ipojo-bundle
Artifact Handler Packaging : ipojo-bundle

So, I think that when used in multi-module Maven does not use the good
artifact handler. But how I can solve this problem ?

Thank you very much for all ideas

Clement Escoffier

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




proxying multiple repositories

2006-09-27 Thread Mohni, Daniel
Hello

Archiva is now running fine for the default repository.
I have configured 2 different repositories one for the
internal artefacts and one for thirdparty artefacts that
are currently not available in a maven repository.

I have configured a profile in my settings.xml like this


  Repository Proxy

  
 true
  

  

  maven-release
  http://archiva:8080/archiva/proxy/maven_release


  internal-release
  http://archiva:8080/archiva/proxy/internal_release


  3p-release
  http://archiva:8080/archiva/proxy/3p_release

  


the first repository added after creating the admin was 'maven_release',
and this is proxied to http://repo1.maven.org/maven2/ 
Artefacts in this repository will be found and can be accessed using 
the ../archiva/proxy/maven_release/..

but the artefacts in the other repositories are not delivered,
does someone has a similar working setup ?

tnx

Daniel

 


SV: Build errors

2006-09-27 Thread Naess, Ronny
I bypassed the problem, replaced the two database.properties with two
datasource-context.xml (imported into commons-config.xml) and typed the
properties in for both test and main.

It works well now and continuum gave me a big smile :-)

Sure, why PropertyPlaceholderConfigurator fails I still do not know.

-Ronny 

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 27. september 2006 12:17
Til: Maven Users List
Emne: SV: Build errors

Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--



database.properties
toolbox.properties






${jdbc.driverClassName}


${jdbc.url} 


${jdbc.username}


${jdbc.password}





Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED]
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install -> failure
mvn clean   -> success
mvn test-> success
mvn install -> failure
mvn install -> failure
mvn install -> failure
mvn test-> failure
mvn test-> failure
mvn clean test  -> failure
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean test  -> failure
mvn clean test  -> failure
mvn clean test  -> failure
mvn test-> failure
mvn test-> failure
mvn clean   -> success
mvn test-> success
mvn test-> failure
mvn test-> failure
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> success
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> success
mvn clean   -> success
mvn test-> success
mvn test-> success


What I can see so far. 

'mvn clean test' always failure
'mvn clean'  followed by 'mvn test'  always success (however
failed several times on my Win XP laptop)
'mvn test'   followed by 'mvn test'  sometimes success and
sometimes failure
'mvn clean'  followed by 'mvn install'   sometimes success and
sometimes failure

Could it be that my pom has something that could give me the unstable
pattern that is shown here? 

My pom.xml


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

ansattportal
no.avinor
1.0-SNAPSHOT

4.0.0
no.avinor
ansattportal-jdbcDao
ansattportal

Problems in command line arguments - internationalization?

2006-09-27 Thread Leo L

Hi guys,

I have this problem in Maven 2.0.4:


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

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Invalid task 'com.mycompany.app': you must specify a valid lifecycle
phas
e, or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginV
ersion:goal
[INFO]

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

[INFO] Total time: < 1 second
[INFO] Finished at: Wed Sep 27 10:18:45 BRT 2006
[INFO] Final Memory: 1M/3M
[INFO]


This machine use a Windows XP Professional SP2 Portuguese Brazilian. In the
same machine, if i use this comand line:

*mvn archetype:create "-DgroupId=com.mycompany.app" "-DartifactId=my-app"*

*
*[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-
---
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]
-
---
[INFO] Setting property: classpath.resource.loader.class => '
org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates

[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: com.mycompany.app
[INFO]
-
---
[INFO] Using following parameters for creating Archetype:
maven-archetype-quicks
tart:RELEASE
[INFO]
-
---
[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: basedir, Value: C:\projetos
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: my-app
[INFO] * End of debug info from resources from generated
POM
***
[INFO] Archetype created in dir: C:\projetos\my-app
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Sep 27 10:21:01 BRT 2006
[INFO] Final Memory: 4M/8M
[INFO]

Re: [m2] install4j plugin

2006-09-27 Thread Siegfried Goeschl

Hi Ben,

if not you can wrap the install4j thingie within an Maven build using

+) maven-antrun-plugin
+) build-helper-maven-plugin

Cheers,

Siegfried Goeschl

ben short wrote:

Hi,

Anyone know if there is such a beast as an install4j plugin for maven?

Regards

Ben

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



JavaCC plug-in and multiple grammar files

2006-09-27 Thread Stefano Fornari

Hi All,
I have multiple grammar files, each going into a different package.
Therefore, I cannot specify either the output directory nor the
package. I created the attached pom, but when maven generates the
parser, all source codes go in the same generated-files directory.
Looking at the code of the plug-in, it looks like it is a limitation
in the plug-in (please forgive me if I am saying an heresy, it is the
first time I see a mojo... :) ).
Has anyone ever encountered the same problem? How did you fix it?

Thanks in advance.
Ste

--
Stefano Fornari - Funambol Chief Architect / Funambol CTO
===
Home:
http://www.funambol.org

Documents:
http://www.funambol.org/documentation/documents.html

FAQ:
http://www.funambol.org/support/faq.html

WIKI:
https://wiki.objectweb.org/sync4j/

Mailinglist archives:
http://groups.yahoo.com/group/Sync4j (login required)
http://sourceforge.net/mailarchive/forum.php?forum_id=215 (sync4j-users)
http://sourceforge.net/mailarchive/forum.php?forum_id=48877
(funambol-dev)

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



Excluding the unit tests from Javadocs in Maven 2.x

2006-09-27 Thread Pavan

Hi All,

I am currently using Maven 2.0.
Can anyone please let me know how to exclude unit tests while generating
Javadocs report?
I have tried by adding the following in my pom.xml file but it didn?t work.
  
org.apache.maven.plugins
maven-javadoc-plugin
2.0


${basedir}/src/test/*.*


  
Please note that the java files and unit test files are in the same package.
Please let me know the necessary changes required in pom.xml to exclude unit
tests.

Thanks in advance,
Pavan.

-- 
View this message in context: 
http://www.nabble.com/Excluding-the-unit-tests-from-Javadocs-in-Maven-2.x-tf2344021.html#a6524500
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: M2 EJB plugin

2006-09-27 Thread Marco Mistroni

hELLO,
found same error when i tried..
i m deploying on jboss4.0.4
i made project as a jar project

that won't create ejb client though...   beside that, with EJB3 using POJO i
m not exactly sure why would you need an ejb-client..

hth
marco


Maven2 & JUnit4

2006-09-27 Thread Severin Ecker

Hi,

i just wanted to ask if there are any news on the JUnit4 front. I've
tried that unofficial plugin but it didn't work, so i was wondering if
JUnit4 support is somewhere soon on the roadmap.

thanks in advance!

cheers,
severin


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



SV: Build errors

2006-09-27 Thread Naess, Ronny
Anyone got any tips for me about this issue? It is starting to become a
showstopper.

Continuum almost never have a successfully build anymore. The failure is
always the same where the exception is:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'dataSource' defined in class path resource
[commons-context.xml]: Could not resolve placeholder
'jdbc.driverClassName' 

My common-context.xml (spring config) is located in common artifact.
Other artifacts depends on this common artifact. 

Common-context.xml
--



database.properties
toolbox.properties






${jdbc.driverClassName}


${jdbc.url} 


${jdbc.username}


${jdbc.password}





Common artifact has two (2) resources named database.propeties. These
files is located in main/resources and test/resources, where the one
under test is the one used when testing (you did'nt see that comming did
ya?). 

Database.properties (in test/resourses)
---
jdbc.driverClassName=org.hsqldb.jdbcDriver
jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal
jdbc.username=sa
jdbc.password=


The commons pom.xml has test-jar goal so the dependent artifacts can
include this test-jar file when running tests (scope=test).

Now, when I try to test or install some of my artifacts that depend on
common artifact I recive the error mentioned above. An as you can se a
from my earlier posts its more or less random. Sometime it works
sometime not.

I am very much stuck on this matter and I could need a good tips in how
to solve this problem.

I am thinking that I might maybe hardcode two spring configs only
containing the datasource part. One for test and one for main and that
way skip the whole PropertyPlaceHolderConfigurer part that creates all
this frustration.

-Ronny

-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 25. september 2006 13:00
Til: Maven Users List
Emne: SV: Build errors

I have tried different things but no pattern is discovered.

I am logged on the unix server that Continuum is running on. I then
change directory to the artifact that fails. 

Things I have tried:

mvn install -> failure
mvn clean   -> success
mvn test-> success
mvn install -> failure
mvn install -> failure
mvn install -> failure
mvn test-> failure
mvn test-> failure
mvn clean test  -> failure
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean   -> success
mvn test-> success
mvn clean test  -> failure
mvn clean test  -> failure
mvn clean test  -> failure
mvn test-> failure
mvn test-> failure
mvn clean   -> success
mvn test-> success
mvn test-> failure
mvn test-> failure
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> success
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> failure
mvn clean   -> success
mvn install -> success
mvn clean   -> success
mvn test-> success
mvn test-> success


What I can see so far. 

'mvn clean test' always failure
'mvn clean'  followed by 'mvn test'  always success (however
failed several times on my Win XP laptop)
'mvn test'   followed by 'mvn test'  sometimes success and
sometimes failure
'mvn clean'  followed by 'mvn install'   sometimes success and
sometimes failure

Could it be that my pom has something that could give me the unstable
pattern that is shown here? 

My pom.xml


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

ansattportal
no.avinor
1.0-SNAPSHOT

4.0.0
no.avinor
ansattportal-jdbcDao
ansattportal-jdbcDao
Data Access Objects (Implementation)
1.0-SNAPSHOT


no.avinor
ansattportal-dao
1.0-SNAPSHOT 


no.avinor
ansattportal-commons
1.0-SNAPSHOT 


no.avinor
ansattpo

maven-war-plugin error /

2006-09-27 Thread Marco Mistroni

hi all
i m experiencing some errors with Maven2 war plugin
situationis like this

i am trying to use maven2 with an existing project (developed in RAD)
heres' the project structure

webProject
 | JavaSource
|com ...
|mw
 |___resources
| appresources.properties
 |___configurations
| myPopulator.xml
 |___ WebContent
|__ WEB-INF
...misc jsp files

now, my problem is that , in the mw directory,  the   'resources' directory
files should go under  WEB-INF\classes and the
 configurations/myPopulator.xml should go under WEB-INF
i m tyring to use maven2 filtering, i want to avoid use ant tasks..
here's the excerpt


 org.apache.maven.plugins
 maven-war-plugin
 
   ${basedir}/WebContent
   
  
${basedir}/JavaSource/ngenmw

   **/dataSourcePopulator.xml

  
  

${basedir}/JavaSource/ngenmw/configurations
WEB-INF
true
  
   
 
 

according ot docs of maven war plugin, i can do the above... but when i
launch mvn it results in the following exception

[INFO] Executed tasks
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
D:\Sw\step-by-step\middleware\ngenMiddlewareW
eb\target\ngenMiddlewareWeb-1.0-SNAPSHOT
[INFO] Copy webapp webResources to
D:\Sw\step-by-step\middleware\ngenMiddlewareW
eb\target\ngenMiddlewareWeb-1.0-SNAPSHOT
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] org.apache.maven.project.MavenProject
[INFO]

[INFO] Trace
java.lang.ClassCastException: org.apache.maven.project.MavenProject
   at org.codehaus.plexus.util.InterpolationFilterReader.read
(Interpolation
FilterReader.java:269)
   at org.codehaus.plexus.util.InterpolationFilterReader.read
(Interpolation
FilterReader.java:201)
   at org.codehaus.plexus.util.InterpolationFilterReader.read
(Interpolation
FilterReader.java:162)
   at java.io.Reader.read(Reader.java:122)
   at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
   at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
   at org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile
(Abstract
WarMojo.java:907)
   at org.apache.maven.plugin.war.AbstractWarMojo.copyResources
(AbstractWar
Mojo.java:442)
   at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp
(Abstr
actWarMojo.java:355)
   at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java
:161
)
   at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:412)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:534)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.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]



anyone could hlep me out?  thanks in advance and regards
marco


[m2] install4j plugin

2006-09-27 Thread ben short

Hi,

Anyone know if there is such a beast as an install4j plugin for maven?

Regards

Ben

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



Wrong artifactHandler

2006-09-27 Thread Clement Escoffier

Hello,

I am a strange problem with a plugin that I develop. This plugin do a 
bytecode manipulation of java classes during the packaging of the 
artifact. It works with "simple" project (non multi-module).


Nevertheless, when I use my plugin inside a multi-module project, Maven 
does not use the good artifact handler. To trace the problem, I modify 
the install-plugin to display some info after the installation. To check 
the ArtifactHandler, I set the language to "foo" inside my plugin :


 org.apache.maven.artifact.handler.ArtifactHandler
 ipojo-bundle
 
org.apache.maven.artifact.handler.DefaultArtifactHandler

 
   ipojo-bundle
   true
   foo
   jar
   true
 


When I launch mvn clean install on the single project I have the 
following result :

...
[INFO] [install:install]
[INFO] Installing 
F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar 
to 
F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar

Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : foo
Artifact Handler Extension : jar
Artifact Handler Packaging : ipojo-bundle

So, it works in this case.

But when I launch mvn clean install on the multi module project, the I 
have the following (strange) result :
[INFO] Installing 
f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar 
to 
F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.ipojo-bundle

Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : none
Artifact Handler Extension : ipojo-bundle
Artifact Handler Packaging : ipojo-bundle

So, I think that when used in multi-module Maven does not use the good 
artifact handler. But how I can solve this problem ?


Thank you very much for all ideas

Clement Escoffier

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



M2 EJB plugin

2006-09-27 Thread alonso
Hi there, 

 

I'm trying to package an EJB 3.0 module using the maven-ejb-plugin for Maven
2.x. The  problem is that when the plugin tries to package the jar archive,
it fails because it can't find the META-INF/ejb-jar.xml file. The point is
that I'm using EJB 3.0 and I don't need that file. 

 

Here is an extract from my pom.xml file:

 

  ERS Platform - Model Layer

  

  ersplatform-model

  com.social_labs.ers.platform

  

  ejb

 

.

 







  maven-ejb-plugin

  org.apache.maven.plugins

  

3.0

  





  

 

The mvn's output when I run "mvn install" is as follows:

 

[INFO] [ejb:ejb]

[INFO] Building ejb ersplatform-model-1.0-SNAPSHOT

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error assembling EJB

 

Embedded error:
C:\fuentes\projects\ERS\platform\model\target\classes\META-INF\e

jb-jar.xml isn't a file.

[INFO]


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

[INFO]


[INFO] Total time: 9 seconds

[INFO] Finished at: Wed Sep 27 10:50:42 CEST 2006

[INFO] Final Memory: 5M/11M

[INFO]


 

Does anyone know where is the problem?

 

Regards,

Alonso



Error retrieving artifact from file

2006-09-27 Thread Javier . Sagrado . Collantes
Hi! I have Maven integrate into Eclipse, when i try to build my project it 
crashes. The console of Eclipse shows this messages:

Error retrieving artifact from [file://C:\Archivos de programa\Hotsip\M2CE 
SCE/repository/m2ce-core/jars/serviceframework-3.2.0-87.jar

This jar exists in the route. ¿What can I do? Thank you. Javi.

MAVEN VERSION:
 __  __
|\/   |__ _Apache__ ___
|   |\/|   / _`   \ V /   -_)' \  ~ intelligent projects ~
|_ |   |_ \__,_|\_/\___  |_||_|  v. 1.0.2

ECLIPSE SDK VERSION:
3.1.2

BUILD.PROPERTIES:
sce.repo.remote=file:///C:\\Archivos\ de\ programa\\Hotsip\\M2CE\ 
SCE/repository

maven.repo.remote=${sce.repo.remote},http://www.ibiblio.org/maven/

maven.compile.debug=true
maven.compile.target=1.5
maven.compile.source=1.5



AVISO DE CONFIDENCIALIDAD.  Este correo y la información contenida o adjunta al 
mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. 
DMR Consulting informa a quien pueda haber recibido este correo por error que 
contiene información confidencial cuyo uso, copia, reproducción o distribución 
está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe 
este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda 
a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.  
CONFIDENTIALITY WARNING. This message and the information contained in or 
attached to it are private and confidential and intended exclusively for the 
addressee. DMR Consulting informs to whom it may receive it in error that it 
contains privileged information and its use, copy, reproduction or distribution 
is prohibited. If you are not an intended recipient of this E-mail, please 
notify the sender, delete it and do not read, act upon, print, disclose, copy, 
retain or redistribute any portion of this E-mail. 
  

RE: Maven+Checkstyle - Configuration file location

2006-09-27 Thread Lakshman Srilakshmanan
Hi Stephen / Roy,

I would like to include a LICENSE.txt file as part of the jar
(checkstyle-1.0-SNAPSHOT.jar) as listed below.

 0 Wed Sep 27 02:05:48 EST 2006 META-INF/
   127 Wed Sep 27 02:05:46 EST 2006 META-INF/MANIFEST.MF
26 Wed Sep 27 02:05:46 EST 2006 LICENSE.txt
   433 Wed Sep 27 02:05:46 EST 2006 CheckstyleSuppressions.xml
 14230 Wed Sep 27 02:05:46 EST 2006 CustomisedCheckstyle.xml
 0 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/
 0 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/customised/
 0 Wed Sep 27 02:05:48 EST 2006
META-INF/maven/customised/checkstyle/
  1310 Wed Sep 27 02:05:40 EST 2006
META-INF/maven/customised/checkstyle/pom.xml
   112 Wed Sep 27 02:05:48 EST 2006
META-INF/maven/customised/checkstyle/pom.properties


When I reference it within CustomisedCheckstyle.xml as follows it is
unable to find it.






Could you please let me know what I should be putting in the value field
to get checkstyle to find it.

Thanks
Lakshman


> -Original Message-
> From: Lakshman Srilakshmanan
> Sent: Wednesday, 20 September 2006 4:23 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Maven+Checkstyle - Configuration file location
> 
> Hi Stephen,
> 
> Thanks, it works well now.
> 
> Lakshman
> > -Original Message-
> > From: Stephen Duncan [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 20 September 2006 1:48 AM
> > To: Maven Users List
> > Subject: Re: Maven+Checkstyle - Configuration file location
> >
> > You need to set up your dependency as an extension, not as a plugin
> > dependency.  I'm not 100% clear on whether this is because of a bug,
> > or if this is how things are intended to be, but it should work if
you
> > move the dependency and declare it as an extension, like in the
> > example a the bottom of this page:
> >
http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html
> >
> > -Stephen
> >
> > On 9/19/06, Lakshman Srilakshmanan
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Roy,
> > >
> > > I was trying to implement the checkstyle configuration as you have
done
> > > without much success. I was hoping you could help me.
> > >
> > > I created a project that builds a jar file containing my
checkstyle and
> > > suppression and installed it in my local repository. The contents
of
> > > this jar file (checkstyle-1.0-SNAPSHOT.jar) is listed below.
> > >
> > >  0 Tue Sep 19 14:32:08 EST 2006 META-INF/
> > >127 Tue Sep 19 14:32:06 EST 2006 META-INF/MANIFEST.MF
> > >433 Tue Sep 19 14:32:06 EST 2006 CheckstyleSuppressions.xml
> > >  14161 Tue Sep 19 14:32:06 EST 2006 CustomisedCheckstyle.xml
> > >  0 Tue Sep 19 14:32:08 EST 2006 META-INF/maven/
> > >  0 Tue Sep 19 14:32:08 EST 2006 META-INF/maven/customised/
> > >  0 Tue Sep 19 14:32:08 EST 2006
> > > META-INF/maven/customised/checkstyle/
> > >678 Mon Sep 18 15:03:24 EST 2006
> > > META-INF/maven/customised/checkstyle/pom.xml
> > >112 Tue Sep 19 14:32:06 EST 2006
> > > META-INF/maven/customised/checkstyle/pom.properties
> > >
> > >
> > >
> > > I then included the above file under pluginManagement in my POM as
> > > follows.
> > >
> > > 
> > >   
> > >   
> > >   org.apache.maven.plugins
> > >   maven-checkstyle-plugin
> > >   
> > > 
> > >   customised.checkstyle
> > >   checkstyle
> > >   1.0-SNAPSHOT
> > > 
> > >   
> > >   
> > > 
> > >
> > >
> > >
> > > I then included the above definition of the plugin under reports
as
> > > follows.
> > >
> > >   
> > >   
> > >   
> > >   maven-checkstyle-plugin
> > >   
> > >
> > > CustomisedCheckstyle.xml
> > >
> > >
CheckstyleSuppressions.xml
> > >   
> > >   
> > >   
> > >   
> > >
> > >
> > > When I run mvn clean site I get the following error
> > >
> > > Embedded error: Error rendering Maven report: Unable to find
> > > configuration file location.
> > > Unable to find location 'CustomisedCheckstyle.xml' as URL, File or
> > > Resource.
> > >
> > >
> > > The funny thing is, when I ran it first I forgot to install the
> > > checkstyle-1.0-SNAPSHOT.jar and maven did not complain about not
finding
> > > the jar file.
> > >
> > > Not sure what I am doing wrong, but your assistance is greatly
> > > appreciated.
> > >
> > > Thanks
> > > Lakshman
> > >
> > >
> > > > -Original Message-
> > > > From: Roy van der Kuil [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, 4 September 2006 10:10 PM
> > > > To: Maven Users List
> > > > Subject: Re: Maven+Checkstyle - Configuration file location
> > > >
> > > > Hi,
> > > >
> > > > We have a similar setup and have created a 'project' with only a
> > > couple of
> > > > resources. (our own version of the checkstyle xml and
suppressions).
> > > >
> > > > We deployed this 'jar' and made the maven-checkstyle-plugin
dependant
> > > on
> > > > that dependancy:
> > > >   
> > > >   

RE: [solved] missing Administration tasks in daily build

2006-09-27 Thread Mohni, Daniel
just for the records, this is a stupid error of my configuration
behind a Apache webserver using a vhost

working vhost-config:

NameVirtualHost archiva.your-domain:*


   ServerName archiva.your-domain
   ServerAlias archiva

   RewriteEngine On
   RewriteRule ^/archiva/(.*) http://your-server:8080/archiva/$1 [P,L]
   RewriteRule ^/(.*) http://your-server:8080/archiva/$1 [P,L]

   ProxyPreserveHost On
   ProxyPassReverse / http://your-server:8080/archiva/

   ErrorLog logs/archiva.your-domain-error.log
   CustomLog logs/archiva.your-domain-access.log common


if you disable 'ProxyPreserveHost On' the cookie can
not be identified.

- Daniel
 

> -Original Message-
> From: Mohni, Daniel [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 27, 2006 10:07 AM
> To: archiva-users@maven.apache.org
> Subject: missing Administration tasks in daily build
> 
> Hello
> 
> after I have a nice looking WebApp, going thru the first steps
> (eg. registered the administrator, repository and index)
> 
> now i can login, and get redirected to the browse window,
> but i miss the administrator menu on the left.
> 
> Looking at the tomcat log, tells that the admin logged in 
> succesfully, but there must be a problem with detecting
> the login in the menu tree...
> 
> Any hints ?
> 
> -Daniel 
> 


missing Administration tasks in daily build

2006-09-27 Thread Mohni, Daniel
Hello

after I have a nice looking WebApp, going thru the first steps
(eg. registered the administrator, repository and index)

now i can login, and get redirected to the browse window,
but i miss the administrator menu on the left.

Looking at the tomcat log, tells that the admin logged in 
succesfully, but there must be a problem with detecting
the login in the menu tree...

Any hints ?

-Daniel 


Re: java version for all plugins

2006-09-27 Thread Trent Rosenbaum

Yeah this makes complete sense and I think I will start to following this
process as well.
Cheers for the examples

Trent

On 27/09/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:


See the top of

http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/core/pom.xml?view=markup

It inherits from

http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/pom.xml?view=markup

Trent Rosenbaum wrote, On 2006-09-26 5:30 PM:
> So you have a pom.xml file that represents your company/organisation.
> Within this file you define the plugin versions.
> Then do you make this the parent to all of your projects?
>
>
> Trent
>
> On 26/09/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>>
>> I always lock down the plugin versions in my parent project's
>> pluginManagement.
>> That way all childprojects inherit those version and it is shared to
the
>>   other people of my team. If you do in it your home dir, it's not
>> shared with your team (but it is shared for all your projects).
>>
>> alexsun wrote, On 2006-09-26 12:19 PM:
>> > Is it posible to set up java version for all maven plugins, that
>> used in
>> > project, in one place?
>> > And forget about it? ))
>>
>> --
>> With kind regards,
>> Geoffrey De Smet
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

--
With kind regards,
Geoffrey De Smet


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




RE: Surefires test order

2006-09-27 Thread christophe blin

Is no one interested by that question ? Or maybe I should not reply to a so
old question ?

chris

christophe blin wrote:
> 
> Hi,
> 
> searching into the nabble archives, I found a thread which talks about my
> problem. I quote the relevant part at the end of my message.
> 
> First, I'd like to know if there is finally a possibility to run the JUnit
> tests in a specific order when they are executed with surefire ?
> 
> Second, I perfectly agree with David : surefire should run the tests in
> the order they are written in the file.
> While this is not important for unit tests, this is really important for
> integration tests.
> The reality is that you do not want to write a integration test that is
> 200 lines so you split up the test in various functions.
> Then, you'd like that each function is a separate test case to have a
> report that indicates precisely at which moment the test fail (it is
> easier to know that the 3rd test case failed whereas to read the
> stacktrace of the testcase to find where it crashes).
> 
> So my question is : who do not care about the order of integration tests
> (i.e how do you do integration testing with surefire not executing the
> test cases in the 'right' order) ?
> 
> Best regards,
> chris
> 
> 
> David Jackman wrote:
>> 
>> Actually, JUnit tests do run in a simple and predictable order
>> (especially when a test class provides its own suite).  I agree that
>> it's a bad idea to write tests that depend on their ordering, but it
>> should not be the build system that enforces this (especially when the
>> XML report is the only way to determine what order surefire used) unless
>> it's through a property that explicitly tells it to do so.
>>  
>> ..David..
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Surefires-test-order-tf734875.html#a6521850
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: java version for all plugins

2006-09-27 Thread Geoffrey De Smet

See the top of
http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/core/pom.xml?view=markup

It inherits from
http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/pom.xml?view=markup

Trent Rosenbaum wrote, On 2006-09-26 5:30 PM:

So you have a pom.xml file that represents your company/organisation.
Within this file you define the plugin versions.
Then do you make this the parent to all of your projects?


Trent

On 26/09/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:


I always lock down the plugin versions in my parent project's
pluginManagement.
That way all childprojects inherit those version and it is shared to the
  other people of my team. If you do in it your home dir, it's not
shared with your team (but it is shared for all your projects).

alexsun wrote, On 2006-09-26 12:19 PM:
> Is it posible to set up java version for all maven plugins, that 
used in

> project, in one place?
> And forget about it? ))

--
With kind regards,
Geoffrey De Smet


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






--
With kind regards,
Geoffrey De Smet


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



Retrieving all the modules for a prent project

2006-09-27 Thread VENTURI Rémy
Hi all,

 

I have a parent project, composed of several modules.

I would like to programatically get all the artifacts build from these modules, 
in order to package my parent's project delivery.

I tried to do this trought the following ant file, but, this retrieves only the 
dependencies of my parent project, whereas i wanted to retrieve the modules.

 

Do you any idea of how to do this ?

 

 

Thanks in advance for your help,

 

Rémy.

 

 

 





 

  

  http://ricfiled.as.asd.asf/maven/repository"; />

  

  

  http://ricfiled.as.asd.asf/maven/repository/fr/as/ric/ric"/>