hibernate InstrumentTask

2007-01-30 Thread nicolas de loof

Hello,

Is there any plugin that support hibernate InstrumentTask ?
How to configure the antrun plugin to use it ?


RE: Is it possible to start a maven2 process in your code.

2007-01-30 Thread jelle.volckaert
Hi Petar,

You can always run a cmd command from in your java code.

- Runtime.getRuntim().exec(String[] cmdarray);

So your cmdarray could contain:
Index 0: mvn
Index 1: archetype:create
Index 2: -DgroupId=blabla
Index 3: -DartifactId=bla

I guess it works like that.
Haven't tried it myself, but you can give it a try.

Good luck !

Jelle


-Original Message-
From: Petar Tahchiev [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 30 januari 2007 8:16
To: Maven Users List
Subject: Is it possible to start a maven2 process in your code.

Hi guys,

Is there a way to instantiate a maven project process in the in my java
program? I mean is it possible to do something like this:



public static void main(String[] args) {

 MavenProject mavenProject = new MavenProject(new Model());

 ProjectExecutor executor = new ProjectExecutor();

 executor.execute(mavenProject); //this is supposed to start in a
separate thread.
}


Of course I know there's no such thing as the ProjectExecutor, what I am
asking is - what is the way to execute a MavenProject object in
my code?

Thank you.




-- 
Regards, Petar!
Karlovo, Bulgaria.


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re: Is it possible to start a maven2 process in your code.

2007-01-30 Thread Milos Kleint

google for maven embedder.

Milos

On 1/30/07, Petar Tahchiev [EMAIL PROTECTED] wrote:

Hi guys,

Is there a way to instantiate a maven project process in the in my java
program? I mean is it possible to do something like this:



public static void main(String[] args) {

 MavenProject mavenProject = new MavenProject(new Model());

 ProjectExecutor executor = new ProjectExecutor();

 executor.execute(mavenProject); //this is supposed to start in a
separate thread.
}


Of course I know there's no such thing as the ProjectExecutor, what I am
asking is - what is the way to execute a MavenProject object in
my code?

Thank you.




--
Regards, Petar!
Karlovo, Bulgaria.




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



Re: Scp an ear artifact on a server and running a remote command inside a phase

2007-01-30 Thread Benoît Clouet

On 1/30/07, Manuel Ledesma [EMAIL PROTECTED] wrote:

Benoît Clouet wrote:
 I'm trying to extend the maven build lifecycle in order to put an EAR
 on a remote server via scp and to run a command to install that EAR on
 a remote websphere server in order to test it.

 I managed to write a first mojo which does copy my EAR on a local dir
 but I would like now to transfer that EAR remotely.

 As I'm lazy, I tried to extend the wagon component mechanism in order
 to avoid developping everything.

 I tried to build a Mojo which uses a plexus component I wrote, copying
 various other components.xml but everytime I'm executing the plugin, I
 get a NullPointerException probably caused by the fact I can't manage
 to initialize the component correctly.

 1. Is there a dedicated phase in the build lifecycle to do such tasks
 ? I choosed deploy but I now hesitate between install (I'm trying to
 bind my plugin on this phase) and integration-tests.

 2. Is there a particular way to initialize a plexus component (My
 component reuses classes from the wagon and the artifact-manager
 components)

 3. Is there any documentation on writing such mojo + extending maven
 plexus components ?

You could use websphere deployment capabilities instead. No need to use
maven at all. You can easily call websphere deployment classes from maven.


In fact, in my organization, the only way to do so, is to transfer the
EAR on a machine and to execute deploy commands on the target machine.

I would like to automate this transfer and the execution of the command.

What would be the phase in the build lifecycle to do such action chain ?

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



Re: hibernate InstrumentTask

2007-01-30 Thread Marco Mistroni

Hi,
my 2 cents . don't know the issue but i went to check
what does that instrument task do..
i see no reason why you can't just use maven antrun plugin and execute it...
dont know if this might help...  here i configured a custom ant task
(wstools), like this

configuration
  tasks
 taskdef name=wstools classname=org.jboss.ws.tools.ant.wstools

 classpath refid=maven.dependency.classpath/

 classpath
 fileset dir=${jboss.libdir}\client
   include name=activation.jar/
   include name=javassist.jar/
   include name=jboss-common-client.jar/
   include name=jbossretro-rt.jar/
   include name=jboss-backport-concurrent.jar/
   include name=jbossws-client.jar/
   include name=jboss-xml-binding.jar/
   include name=concurrent.jar/
   include name=log4j.jar/
   include name=mail.jar/
   include name=wsdl4j.jar/

   /fileset
   fileset dir=${jboss.libdir}\lib\endorsed
   include name=*.jar/
   /fileset

   /classpath
   /taskdef
 /tasks
 wstools dest=${project.build.outputDirectory}/META-INF
  config=${workspace.dir}/middleware/jboss/wstools-
messenger-config.xml/

but i bet you knew that, i saw your name on this list since long

was that hte problem? if you just replace it the above code with the ant
code listed here

http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html


now. watching at that ant task for instrumentationTask it says
'depends=compile',
so you shoul dinvoke your maven-antrun-plugin in the process-classes phase

you might encounter problems of classpath...

pls let me know if this helps

rgds
marco





On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:


Hello,

Is there any plugin that support hibernate InstrumentTask ?
How to configure the antrun plugin to use it ?




Re: hibernate InstrumentTask

2007-01-30 Thread nicolas de loof

My issue is about building the classpath for the hibernate instrumentTask
using maven dependencies : your sample config uses ${jboss.libdir} to build
the task calsspath. I'd like to set a dependency for the plugin on
hibernate.

Thanks anyway.

2007/1/30, Marco Mistroni [EMAIL PROTECTED]:


Hi,
my 2 cents . don't know the issue but i went to check
what does that instrument task do..
i see no reason why you can't just use maven antrun plugin and execute
it...
dont know if this might help...  here i configured a custom ant task
(wstools), like this

configuration
   tasks
  taskdef name=wstools classname=
org.jboss.ws.tools.ant.wstools

  classpath refid=maven.dependency.classpath/

  classpath
  fileset dir=${jboss.libdir}\client
include name=activation.jar/
include name=javassist.jar/
include name=jboss-common-client.jar/
include name=jbossretro-rt.jar/
include name=jboss-backport-concurrent.jar/
include name=jbossws-client.jar/
include name=jboss-xml-binding.jar/
include name=concurrent.jar/
include name=log4j.jar/
include name=mail.jar/
include name=wsdl4j.jar/

/fileset
fileset dir=${jboss.libdir}\lib\endorsed
include name=*.jar/
/fileset

/classpath
/taskdef
  /tasks
  wstools dest=${project.build.outputDirectory}/META-INF
   config=${workspace.dir}/middleware/jboss/wstools-
messenger-config.xml/

but i bet you knew that, i saw your name on this list since long

was that hte problem? if you just replace it the above code with the ant
code listed here

http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html


now. watching at that ant task for instrumentationTask it says
'depends=compile',
so you shoul dinvoke your maven-antrun-plugin in the process-classes
phase

you might encounter problems of classpath...

pls let me know if this helps

rgds
marco





On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:

 Hello,

 Is there any plugin that support hibernate InstrumentTask ?
 How to configure the antrun plugin to use it ?






Re: hibernate InstrumentTask

2007-01-30 Thread Marco Mistroni

ah i see, i was betting that that could have been one of the problems

any reasons why the code below does not work using
phaseprocess-classes/phase?
i had to add extra classes 'manually' to classpath because i had problem
with some jboss versions that were screwing up the wstools task.. so i
couldn't import the whole  jboss-all-client, that's why you see all
include in sample i gave


classpath refid=maven.dependency.classpath/


there was a message i saw on this list which was talking about using maven
dependencies for classpath. i m sure is  than 1 month..

good luck

rgds
marco





On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:


My issue is about building the classpath for the hibernate instrumentTask
using maven dependencies : your sample config uses ${jboss.libdir} to
build
the task calsspath. I'd like to set a dependency for the plugin on
hibernate.

Thanks anyway.

2007/1/30, Marco Mistroni [EMAIL PROTECTED]:

 Hi,
 my 2 cents . don't know the issue but i went to check
 what does that instrument task do..
 i see no reason why you can't just use maven antrun plugin and execute
 it...
 dont know if this might help...  here i configured a custom ant task
 (wstools), like this

 configuration
tasks
   taskdef name=wstools classname=
 org.jboss.ws.tools.ant.wstools
 
   classpath refid=maven.dependency.classpath/

   classpath
   fileset dir=${jboss.libdir}\client
 include name=activation.jar/
 include name=javassist.jar/
 include name=jboss-common-client.jar /
 include name=jbossretro-rt.jar/
 include name=jboss-backport-concurrent.jar/
 include name= jbossws-client.jar/
 include name=jboss-xml-binding.jar/
 include name=concurrent.jar/
 include name= log4j.jar/
 include name=mail.jar/
 include name=wsdl4j.jar/

 /fileset
 fileset dir=${ jboss.libdir}\lib\endorsed
 include name=*.jar/
 /fileset

 /classpath
 /taskdef
   /tasks
   wstools dest=${project.build.outputDirectory}/META-INF
config=${workspace.dir}/middleware/jboss/wstools-
 messenger-config.xml /

 but i bet you knew that, i saw your name on this list since long

 was that hte problem? if you just replace it the above code with the ant
 code listed here

 http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html


 now. watching at that ant task for instrumentationTask it says
 'depends=compile',
 so you shoul dinvoke your maven-antrun-plugin in the process-classes
 phase

 you might encounter problems of classpath...

 pls let me know if this helps

 rgds
 marco





 On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Is there any plugin that support hibernate InstrumentTask ?
  How to configure the antrun plugin to use it ?
 
 






Re: hibernate InstrumentTask

2007-01-30 Thread Marco Mistroni

Nicholas, additional thing

if you make it work, would you mind write a wiki here

http://docs.codehaus.org/display/MAVENUSER/Examples

with your example pom.xml? it might help (me :)  or anyone that want to do
same
things later on

regards
marco

On 1/30/07, Marco Mistroni [EMAIL PROTECTED] wrote:


ah i see, i was betting that that could have been one of the problems

any reasons why the code below does not work using
phaseprocess-classes/phase?
i had to add extra classes 'manually' to classpath because i had problem
with some jboss versions that were screwing up the wstools task.. so i
couldn't import the whole  jboss-all-client, that's why you see all
include in sample i gave


classpath refid=maven.dependency.classpath/


there was a message i saw on this list which was talking about using maven
dependencies for classpath. i m sure is  than 1 month..

good luck

rgds
 marco





On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:

 My issue is about building the classpath for the hibernate
 instrumentTask
 using maven dependencies : your sample config uses ${jboss.libdir} to
 build
 the task calsspath. I'd like to set a dependency for the plugin on
 hibernate.

 Thanks anyway.

 2007/1/30, Marco Mistroni [EMAIL PROTECTED]:
 
  Hi,
  my 2 cents . don't know the issue but i went to check
  what does that instrument task do..
  i see no reason why you can't just use maven antrun plugin and execute
  it...
  dont know if this might help...  here i configured a custom ant task
  (wstools), like this
 
  configuration
 tasks
taskdef name=wstools classname=
  org.jboss.ws.tools.ant.wstools
  
classpath refid=maven.dependency.classpath/
 
classpath
fileset dir=${jboss.libdir}\client
  include name=activation.jar/
  include name=javassist.jar/
  include name=jboss-common-client.jar /
  include name=jbossretro-rt.jar/
  include name=jboss-backport-concurrent.jar/
  include name= jbossws-client.jar/
  include name=jboss-xml-binding.jar/
  include name=concurrent.jar/
  include name= log4j.jar/
  include name=mail.jar/
  include name=wsdl4j.jar/
 
  /fileset
  fileset dir=${ jboss.libdir}\lib\endorsed
  include name=*.jar/
  /fileset
 
  /classpath
  /taskdef
/tasks
wstools dest=${project.build.outputDirectory}/META-INF
 config=${workspace.dir}/middleware/jboss/wstools-
  messenger-config.xml /
 
  but i bet you knew that, i saw your name on this list since long
 
  was that hte problem? if you just replace it the above code with the
 ant
  code listed here
 
  http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html

 
 
  now. watching at that ant task for instrumentationTask it says
  'depends=compile',
  so you shoul dinvoke your maven-antrun-plugin in the process-classes
  phase
 
  you might encounter problems of classpath...
 
  pls let me know if this helps
 
  rgds
  marco
 
 
 
 
 
  On 1/30/07, nicolas de loof  [EMAIL PROTECTED] wrote:
  
   Hello,
  
   Is there any plugin that support hibernate InstrumentTask ?
   How to configure the antrun plugin to use it ?
  
  
 
 





Building struts application

2007-01-30 Thread Saravanan Ponnusamy, EAS-Chennai

Hi

How to build struts application using Maven 1.1?

Can you show me some guidance?

Thanks

Sarav



DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

maven site failing

2007-01-30 Thread Jeff Mutonho

maven site is failing with a NPE.I ran it in debug mode and here's
the output :


D:\MAVEN-WORKset MAVEN_OPTS=-Xmx512m -Xms512m -XX:MaxPermSize=512m
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'D:\Documents
and Settings\mutonhj\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'D:\M2\maven-2.0.4\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Pragmaticus ePortal
[INFO]   ePortal Exceptions
[INFO]   ePortal Webservices
[INFO]   ePortal Domain Objects
[INFO]   ePortal Webservices Wrappers
[INFO]   ePortal Messaging Support
[INFO]   ePortal Services
[INFO]   ePortal Messaging
[INFO]   ePortal Web Application
[INFO]   Pragmaticus ePortal Ear
[INFO]   Pragmaticus ePortal Messaging Ear
[INFO]   whizbang
[DEBUG] za.co.Pragmaticus.eportal:eportal-ear:ear:1.0.0 (selected for null)
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
null:wagon-ftp:jar:1.0-alpha-6 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon::1.0-alpha-6 for project:
null:wagon-providers:pom:1.0-alpha-6 from the repository.
[DEBUG]   org.apache.maven.wagon:wagon-ftp:jar:1.0-alpha-6:runtime
(selected for runtime)
[DEBUG] commons-net:commons-net:jar:1.4.1:runtime (selected for runtime)
[DEBUG]   oro:oro:jar:2.0.8:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon::1.0-alpha-6 for project:
null:wagon-provider-api:jar:1.0-alpha-6 from the repository.
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:runtime
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected for runtime)
[INFO] 

[INFO] Building Pragmaticus ePortal
[INFO]task-segment: [site]
[INFO] 

[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from
repository central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-site-plugin:maven-plugin:2.0-beta-5 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
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
null:maven-antrun-plugin:maven-plugin:1.0 from the repository.
[DEBUG] Skipping disabled repository apache.snapshots
[DEBUG] maven-surefire-report-plugin: resolved to version 2.0 from
repository central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-surefire-report-plugin:maven-plugin:2.0 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
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] 
org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0 for project:
null:maven-reporting-api:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven.reporting:maven-reporting:pom:2.0 from the
repository.
[DEBUG]   org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime
(selected for runtime)
[DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0 for project:
null:maven-reporting-impl:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven.reporting:maven-reporting:pom:2.0 from the
repository.
[DEBUG]   org.apache.maven.reporting:maven-reporting-impl:jar:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: null:maven-project:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(selected for runtime)
[DEBUG]   
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG]   

Re: Is it possible to start a maven2 process in your code.

2007-01-30 Thread Petar Tahchiev

On 30/01/07, Milos Kleint [EMAIL PROTECTED] wrote:


google for maven embedder.

Milos

On 1/30/07, Petar Tahchiev [EMAIL PROTECTED] wrote:
 Hi guys,

 Is there a way to instantiate a maven project process in the in my java
 program? I mean is it possible to do something like this:



 public static void main(String[] args) {

  MavenProject mavenProject = new MavenProject(new Model());

  ProjectExecutor executor = new ProjectExecutor();

  executor.execute(mavenProject); //this is supposed to start in a
 separate thread.
 }


 Of course I know there's no such thing as the ProjectExecutor, what I am
 asking is - what is the way to execute a MavenProject object in
 my code?

 Thank you.




 --
 Regards, Petar!
 Karlovo, Bulgaria.



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



Thenk you gyus. I think this is what I am looking for:

http://maven.apache.org/guides/mini/guide-embedding-m2.html

Also I will try with the plexus classloader.

--
Regards, Petar!
Karlovo, Bulgaria.


Re: hibernate InstrumentTask

2007-01-30 Thread nicolas de loof

My project is the domain model that has no dependency. This the reason I
want to set hibernate dependency as a plugin dependency.

I tried :
classpath refid=plugin.dependency.classpath/

But this isn't an valid refId

2007/1/30, Marco Mistroni [EMAIL PROTECTED]:


Nicholas, additional thing

if you make it work, would you mind write a wiki here

http://docs.codehaus.org/display/MAVENUSER/Examples

with your example pom.xml? it might help (me :)  or anyone that want to do
same
things later on

regards
marco

On 1/30/07, Marco Mistroni [EMAIL PROTECTED] wrote:

 ah i see, i was betting that that could have been one of the
problems

 any reasons why the code below does not work using
 phaseprocess-classes/phase?
 i had to add extra classes 'manually' to classpath because i had problem
 with some jboss versions that were screwing up the wstools task.. so i
 couldn't import the whole  jboss-all-client, that's why you see all
 include in sample i gave


 classpath refid=maven.dependency.classpath/


 there was a message i saw on this list which was talking about using
maven
 dependencies for classpath. i m sure is  than 1 month..

 good luck

 rgds
  marco





 On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:
 
  My issue is about building the classpath for the hibernate
  instrumentTask
  using maven dependencies : your sample config uses ${jboss.libdir} to
  build
  the task calsspath. I'd like to set a dependency for the plugin on
  hibernate.
 
  Thanks anyway.
 
  2007/1/30, Marco Mistroni [EMAIL PROTECTED]:
  
   Hi,
   my 2 cents . don't know the issue but i went to check
   what does that instrument task do..
   i see no reason why you can't just use maven antrun plugin and
execute
   it...
   dont know if this might help...  here i configured a custom ant task
   (wstools), like this
  
   configuration
  tasks
 taskdef name=wstools classname=
   org.jboss.ws.tools.ant.wstools
   
 classpath refid=maven.dependency.classpath/
  
 classpath
 fileset dir=${jboss.libdir}\client
   include name=activation.jar/
   include name=javassist.jar/
   include name=jboss-common-client.jar /
   include name=jbossretro-rt.jar/
   include name=jboss-backport-concurrent.jar/
   include name= jbossws-client.jar/
   include name=jboss-xml-binding.jar/
   include name=concurrent.jar/
   include name= log4j.jar/
   include name=mail.jar/
   include name=wsdl4j.jar/
  
   /fileset
   fileset dir=${ jboss.libdir}\lib\endorsed
   include name=*.jar/
   /fileset
  
   /classpath
   /taskdef
 /tasks
 wstools dest=${project.build.outputDirectory}/META-INF
  config=${workspace.dir}/middleware/jboss/wstools-
   messenger-config.xml /
  
   but i bet you knew that, i saw your name on this list since long
  
   was that hte problem? if you just replace it the above code with the
  ant
   code listed here
  
  
http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html
 
  
  
   now. watching at that ant task for instrumentationTask it says
   'depends=compile',
   so you shoul dinvoke your maven-antrun-plugin in the
process-classes
   phase
  
   you might encounter problems of classpath...
  
   pls let me know if this helps
  
   rgds
   marco
  
  
  
  
  
   On 1/30/07, nicolas de loof  [EMAIL PROTECTED] wrote:
   
Hello,
   
Is there any plugin that support hibernate InstrumentTask ?
How to configure the antrun plugin to use it ?
   
   
  
  
 
 





Re: hibernate InstrumentTask

2007-01-30 Thread nicolas de loof

I found the answer on
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

I've updated the wiki
http://docs.codehaus.org/display/MAVENUSER/Howto+instrument+domain+model+classes+using+hibernate

2007/1/30, nicolas de loof [EMAIL PROTECTED]:


My project is the domain model that has no dependency. This the reason I
want to set hibernate dependency as a plugin dependency.

I tried :
classpath refid=plugin.dependency.classpath/

But this isn't an valid refId

2007/1/30, Marco Mistroni [EMAIL PROTECTED]:

 Nicholas, additional thing

 if you make it work, would you mind write a wiki here

 http://docs.codehaus.org/display/MAVENUSER/Examples

 with your example pom.xml? it might help (me :)  or anyone that want to
 do
 same
 things later on

 regards
 marco

 On 1/30/07, Marco Mistroni [EMAIL PROTECTED] wrote:
 
  ah i see, i was betting that that could have been one of the
 problems
 
  any reasons why the code below does not work using
  phaseprocess-classes/phase?
  i had to add extra classes 'manually' to classpath because i had
 problem
  with some jboss versions that were screwing up the wstools task.. so i
  couldn't import the whole  jboss-all-client, that's why you see all
  include in sample i gave
 
 
  classpath refid=maven.dependency.classpath/
 
 
  there was a message i saw on this list which was talking about using
 maven
  dependencies for classpath. i m sure is  than 1 month..
 
  good luck
 
  rgds
   marco
 
 
 
 
 
  On 1/30/07, nicolas de loof [EMAIL PROTECTED] wrote:
  
   My issue is about building the classpath for the hibernate
   instrumentTask
   using maven dependencies : your sample config uses ${jboss.libdir}
 to
   build
   the task calsspath. I'd like to set a dependency for the plugin on
   hibernate.
  
   Thanks anyway.
  
   2007/1/30, Marco Mistroni [EMAIL PROTECTED]:
   
Hi,
my 2 cents . don't know the issue but i went to check
what does that instrument task do..
i see no reason why you can't just use maven antrun plugin and
 execute
it...
dont know if this might help...  here i configured a custom ant
 task
(wstools), like this
   
configuration
   tasks
  taskdef name=wstools classname=
org.jboss.ws.tools.ant.wstools

  classpath refid=maven.dependency.classpath /
   
  classpath
  fileset dir=${jboss.libdir}\client
include name= activation.jar/
include name=javassist.jar/
include name=jboss-common-client.jar /
include name= jbossretro-rt.jar/
include name=jboss-backport-concurrent.jar
 /
include name= jbossws-client.jar/
include name=jboss-xml-binding.jar/
include name=concurrent.jar/
include name= log4j.jar/
include name=mail.jar/
include name=wsdl4j.jar/
   
/fileset
fileset dir=${ jboss.libdir}\lib\endorsed
include name=*.jar/
/fileset
   
/classpath
/taskdef
  /tasks
  wstools dest=${project.build.outputDirectory }/META-INF
   config=${workspace.dir}/middleware/jboss/wstools-
messenger-config.xml /
   
but i bet you knew that, i saw your name on this list since long
   
was that hte problem? if you just replace it the above code with
 the
   ant
code listed here
   
   
 http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html
  
   
   
now. watching at that ant task for instrumentationTask it says
'depends=compile',
so you shoul dinvoke your maven-antrun-plugin in the
 process-classes
phase
   
you might encounter problems of classpath...
   
pls let me know if this helps
   
rgds
marco
   
   
   
   
   
On 1/30/07, nicolas de loof  [EMAIL PROTECTED] wrote:

 Hello,

 Is there any plugin that support hibernate InstrumentTask ?
 How to configure the antrun plugin to use it ?


   
   
  
  
 





Re: Building struts application

2007-01-30 Thread 秋秋

Hi
  I'm sorry to tell you I am not familiar with maven 1.0,I used maven 2 in
my project,you know,the maven 1 is very different from mven 2,maven 2 is
rewrite by the author base on maven 1, I suggest you  to use maven for your
project,and how to use maven 2 to build a project?I did it follow these
step:
1.install maven 2 on you computer.set the %MAVEN_HOME%/bin to the path.
2,build project direct follow the direct structure of maven's standard like
the following:

*src/main/java*

*Application/Library sources*

src/main/resources

Application/Library resources

src/main/filters

Resource filter files

src/main/assembly

Assembly descriptors

src/main/config

Configuration files

src/main/webapps

Web application sources

src/test/java

Test sources

src/test/resources

Test resources

src/test/filters

Test resource filter files

src/site

Site

LICENSE.txt

Project's license

README.txt

Project's readme

you can also user the maven commands to builder project auto like this:

   1.

 )WebApp

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

-DarchetypeArtifactId=maven-archetype-webapp

   1.

 )App

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

3.program
4.build jar or war package.
it is hard,and I can't package my project successful,It's very pleasure for
me to receive your mail,It's my fist time to send e_mail to maven org
today,and I am come from shenzhen china ,my english is very poor,I don't
know where you have see my e_mail,pleage tell me the site,thanks,and I hope
I can communicate with you since,so that I can improve my english level,OK?

sam

2007/1/30, Saravanan Ponnusamy, EAS-Chennai [EMAIL PROTECTED]:



Hi

How to build struts application using Maven 1.1?

Can you show me some guidance?

Thanks

Sarav



DISCLAIMER:

---

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.


---



Re: missing resources in .jnlp

2007-01-30 Thread Jerome Lacoste

On 1/16/07, Dmitry Beransky [EMAIL PROTECTED] wrote:

Hi,

Can't figure out what I'm doing wrong.  I've set up a project for
building a WebStart app.  Copied template.vm from the plugin's svn.
When I run webstart:jnlp goal, I get a zip containing all dependencies
properly signed, but the index.jnlp file only has the following:


?xml version=1.0 encoding=utf-8?
jnlp
codebase=$$codebase
href=$outputFile.name
  resources
  /resources
  application-desc main-class=${config.jnlp.mainClass}/
/jnlp

so, why is ther resources section empty (and why
${config.jnlp.mainClass} didn't get expanded)?

any thoughts?


Don't look at the
src/main/resources/org/codehaus/mojo/webstart/template/jnlp.vm  file.
This file is obsolete and was removed from the trunk. For examples on
template.vm files, look at the various template.vm files found under
src/test/projects/

E.g. look at:

http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/test/projects/

Try to use something like this in your template.vm:

[...]
 resources
$dependencies
 /resources
 application-desc main-class=$mainClass
  [...]
 /application-desc
[...]

As for resources, if you use the latest snapshot, they should be under:

src/main/jnlp/resources

Cf the documentation:
http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/site/apt/howto.apt?r=3014

If you still have problems, please open an issue in Jira.

J

PS: please use the mojo user mailing list for questions regarding a mojo plugin.

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



how to get jar for a parent project in Maven 2.x

2007-01-30 Thread ritesh_riv

In my project , suppose project A is parent for project B. 
In such a case, project A packaging should be of type pom.
Then how can i get a jar for project A if needed.
I need the jar to be installed in my local repository.
 Do i need to go and change pom.xml each and every time.
-- 
View this message in context: 
http://www.nabble.com/how-to-get-jar-for-a-parent-project-in-Maven-2.x-tf3141741s177.html#a8707580
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: Webstart and Upload

2007-01-30 Thread Jerome Lacoste

On 1/16/07, Massimiliano Amato [EMAIL PROTECTED] wrote:

Hello,

I ported my application into maven2 using Webstart plugin and i have the zip
file generated, but i have a couple question

1) I have the zip file produced, is there a way to upload to the ftp site
where my JWS runs automatically or i have to do it manually?


This is not something the webstart plugin will do for you, but you can
reuse any other file tranfer plugin (or write your own plugin) to do
so.

I would probably try to reuse the antplugin  to do something like that.



2) I have a complex system, basically i first use filtering to generate not
only template.vm but also all the sets of development/testing/production
html files that will ship to the site. All those files are put in
target/classes of course and then template.vm is used to generate app.jnlp
When the zip is generated i have to include, dependency, app.jnlp and all
other extra file that for me stays in the same directory as
template.vm(target/classes). Any way not to include it? Is not a big
dela just trying
to understand if this can be done


by default the plugin takes everything under the src/main/jnlp/resources dir

So change the mojo config to force the webstart plugin to use the
place where your processed resource files will be (e.g.
target/classes).

configuration
 jnlp
   resourcesHERE/resources

I think that should work.

J

PS: use the mojo user list to report problems on mojo project plugins.

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



RE: Activating a profile with settings.xml

2007-01-30 Thread David Jackman
In my case, there was no parent pom.  

My pom.xml contains:
  profiles
profile
  idmyProfile/id
  ...
/profile
  /profiles

My settings.xml contains:
  activeProfiles
activeProfilemyProfile/activeProfile
  /activeProfiles

The mvn help:active-profiles command shows: There are no active profiles.

Is this the correct behavior?


-Original Message-
From: Stephane Nicoll [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 28, 2007 2:31 AM
To: Maven Users List
Subject: Re: Activating a profile with settings.xml

The current version is buggy. It does not display profiles that are defined in 
the parent pom.

Stéphane

On 1/27/07, Eric Redmond [EMAIL PROTECTED] wrote:
 Profiles should be activated in this way.

 Try: mvn help:active-profiles
 See if your profile is active.

 Eric

 On 1/26/07, David Jackman [EMAIL PROTECTED] wrote:
 
  According to the documentation at http://maven.apache.org/settings.html:
  Any profile id defined as an activeProfile will be active, 
  reguardless of any environment settings. If no matching profile is 
  found nothing will happen. For example, if env-test is an 
  activeProfile, a profile in a pom.xml (or profile.xml with a 
  corrosponding id will be active. If no such profile is found then 
  execution will continue as normal.
 
  However, I cannot get Maven to behave this way.  Should profiles 
  defined in the pom be able to be activated in this way, or are the 
  docs incorrect?
 
  ..David..
 
 
 
  FASTforward '07
  The Industry's Largest Business 
  Technology Conference Focused on Search February 7th - 9th, San 
  Diego, CA www.fastforward07.com
 
 


 --
 Eric Redmond
 http://codehaus.org/~eredmond



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



FASTforward '07
The Industry's Largest Business 
Technology Conference Focused on Search
February 7th - 9th, San Diego, CA
www.fastforward07.com

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



Maven Webstart Plugin

2007-01-30 Thread Maruf Aytekin

Hi,

I am trying to build a jnlp project with maven 2. I am currently using 
mojo's Maven Webstart Plugin.


I have two questions:

1. Should I use this plug in or is there any plug in that can be 
configured easily?


2.  When I run mvn install webstart:jnlp I get following error:
[INFO] didn't find artifact with main class: 
com.mycompany.baydonhill.traderapp.Main. Did you specify it?


Any ideas would be appreciated.

Maruf


===
pom.xml as follows:



 packagingpom/packaging
.
.
 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
 source1.5/source
 target1.5/target
   /configuration
 /plugin
   plugin
   groupIdorg.codehaus.mojo/groupId
 artifactIdwebstart-maven-plugin/artifactId
   executions
 execution
   goals
 goaljnlp/goal
   /goals
 /execution
   /executions
   configuration
   !--outputDirectory/outputDirectory-- !-- not 
required?? --

 dependencies
!-- Note that only groupId and artifactId must be 
specified here. because of a limitation of the 
Include/ExcludesArtifactFilter --

includes
   includecommons-logging:commons-logging/include
   includecommons-cli:commons-cli/include
/includes
!-- excludes
   exclude/exclude
excludes--
  /dependencies
 
 !-- JNLP generation --

 jnlp
   !-- default values --
   
resources${project.basedir}/src/jnlp/resources/resources
   
!--inputTemplateResourcePath${project.basedir}/inputTemplateResourcePath--
   
!--inputTemplatesrc/jnlp/template.vm/inputTemplate-- !-- relative 
to inputTemplateResourcePath --
   outputFileTraderApp.jnlp/outputFile !-- 
defaults to launch.jnlp --


   
mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass

 /jnlp
 !-- SIGNING --
 !-- defining this will automatically sign the jar and 
its dependencies, if necessary --

 sign
keystoreselfmycompanyKeystore/keystore
keypasskeypass/keypass  !-- we need to 
override passwords easily from the command line. ${keypass} --

storepasskeypass/storepass !-- ${storepass} --
storetype/storetype
aliasmycompany/alias
validity3600/validity

dnameCn/dnameCn
dnameOu/dnameOu
dnameO/dnameO
dnameL/dnameL
dnameSt/dnameSt
dnameC/dnameC

verifytrue/verify
 /sign
 !-- KEYSTORE MANGEMENT --
 keystore
   deletetrue/delete !-- delete the keystore --
   gentrue/gen   !-- optional shortcut to 
generate the store. --

 /keystore
 pack200true/pack200
 gziptrue/gzip !-- default force when pack200 
false, true when pack200 selected ?? --

 verbosetrue/verbose
   /configuration
   /plugin
   plugin
   artifactIdmaven-jar-plugin/artifactId
   configuration
   archive
   manifest
   addClasspathtrue/addClasspath
   classpathPrefixlib/classpathPrefix
   
mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass

   /manifest
   /archive
   /configuration
   /plugin
   plugin
   artifactIdmaven-assembly-plugin/artifactId
   configuration
   archive
   manifest
   
mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass

   /manifest
   /archive
   /configuration
   /plugin   
   /plugins

 /build
 dependencies
   dependency
 groupIdcom.holub/groupId
 artifactIdholub/artifactId
 version${project.version}/version
   /dependency
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
 version1.2.14/version
 scopecompile/scope
   /dependency
   dependency
 groupIdcom.idds.clientapi4/groupId
 artifactIdclientapi4/artifactId
 version4.2-SNAPSHOT/version
 /dependency
 dependency
 groupIdcom.jgoodies/groupId
 artifactIdlooks/artifactId
 version2.1.1/version
 /dependency
 

Re: maven site failing

2007-01-30 Thread Jeff Mutonho

[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-javadoc-plugin:maven-plugin:2.0 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
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] null
[INFO] 
[DEBUG] Trace
java.lang.NullPointerException



I see a null in the line :

Retrieving parent-POM:

org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-javadoc-plugin:maven-plugin:2.0 from the repository.



Could this be the reason for an NPE? If so , what would be causing this?
I'm really desperate to get mvn site to run successfully

--

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



RE: Building struts application

2007-01-30 Thread Ran Zilber

Hi
I am not familiar with maven 1.x.

If you intend to use maven 2 you can use the war plugin

Please see the following link:
http://maven.apache.org/plugins/maven-war-plugin/usage.html
   

-Original Message-
From: Saravanan Ponnusamy, EAS-Chennai
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 11:27 AM
To: undisclosed-recipients:@gws03.hcl.in
Subject: Building struts application


Hi

How to build struts application using Maven 1.1?

Can you show me some guidance?

Thanks

Sarav



DISCLAIMER:

---

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.


---

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



Maven site problem

2007-01-30 Thread Gianfranco Oldani

Hi,
I don't understand why suddenly when I run : mvn site   there is no index 
file generated. Maven tell me that it's a successfull build but site is 
incomplete.


Thanks for help.

Gianfranco OLDANI
+41 78 7330350
www.hortis.ch
www.gfoldani.com

_
Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! 
http://search.msn.ch/



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



ZQ: How can I get a reference to a dependency jar

2007-01-30 Thread Rahamim, Zvi \(Zvi\)
Hi,
Suppose during the build, for example in the packaging phase, I want to
take a class from a jar that my project depend on, how can I do it?
Thanks!

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



Re: M2 dashboard plug-in found

2007-01-30 Thread Morgovsky, Alexander \(US - Glen Mills\)
I will try this.  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: Any plugin available to compile C# code?

2007-01-30 Thread JayBee

Thanks all, I think antrun is something that I could use in my project.

Happy Mavening,
JayBee

foamdino wrote:
 
 Hi,
 
 Is there any dot net plugin available ?
 
 You may be able to use the antrun plugin to compile C# code via the .net
 antlib
 
 Kev
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Any-plugin-available-to-compile-C--code--tf3137346s177.html#a8709188
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: Maven Webstart Plugin

2007-01-30 Thread Jerome Lacoste

On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:

Hi,

I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.

I have two questions:

1. Should I use this plug in or is there any plug in that can be
configured easily?


Can't this plugin be configured easily ?
It not, what are your problems with it ?



2.  When I run mvn install webstart:jnlp I get following error:
[INFO] didn't find artifact with main class:
com.mycompany.baydonhill.traderapp.Main. Did you specify it?

Any ideas would be appreciated.




You restricted the dependencies the plugin should look into:


 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes



That's wrong. Either remove this includes section or specify it
correctly. You probably can just remove it, specifying is to be used
as some form of optimization when the default list of dependencies
needs to be limited.



Maruf



PS: please use the MOJO user mailing list, not the MAVEN one.







===
pom.xml as follows:



  packagingpom/packaging
.
.
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
plugin
groupIdorg.codehaus.mojo/groupId
  artifactIdwebstart-maven-plugin/artifactId
executions
  execution
goals
  goaljnlp/goal
/goals
  /execution
/executions
configuration
!--outputDirectory/outputDirectory-- !-- not
required?? --
  dependencies
 !-- Note that only groupId and artifactId must be
specified here. because of a limitation of the
Include/ExcludesArtifactFilter --
 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes
 !-- excludes
exclude/exclude
 excludes--
   /dependencies

  !-- JNLP generation --
  jnlp
!-- default values --

resources${project.basedir}/src/jnlp/resources/resources

!--inputTemplateResourcePath${project.basedir}/inputTemplateResourcePath--

!--inputTemplatesrc/jnlp/template.vm/inputTemplate-- !-- relative
to inputTemplateResourcePath --
outputFileTraderApp.jnlp/outputFile !--
defaults to launch.jnlp --


mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass
  /jnlp
  !-- SIGNING --
  !-- defining this will automatically sign the jar and
its dependencies, if necessary --
  sign
 keystoreselfmycompanyKeystore/keystore
 keypasskeypass/keypass  !-- we need to
override passwords easily from the command line. ${keypass} --
 storepasskeypass/storepass !-- ${storepass} --
 storetype/storetype
 aliasmycompany/alias
 validity3600/validity

 dnameCn/dnameCn
 dnameOu/dnameOu
 dnameO/dnameO
 dnameL/dnameL
 dnameSt/dnameSt
 dnameC/dnameC

 verifytrue/verify
  /sign
  !-- KEYSTORE MANGEMENT --
  keystore
deletetrue/delete !-- delete the keystore --
gentrue/gen   !-- optional shortcut to
generate the store. --
  /keystore
  pack200true/pack200
  gziptrue/gzip !-- default force when pack200
false, true when pack200 selected ?? --
  verbosetrue/verbose
/configuration
/plugin
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
classpathPrefixlib/classpathPrefix

mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass
/manifest
/archive
/configuration
/plugin
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
archive
manifest

mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass
/manifest
/archive
/configuration
/plugin

Dependency

2007-01-30 Thread vojjala

Folks, I have 3 folders called A, B and C , each folder has pom.xml. B is
depended on A, C is depended on both A and B. What I want is, I should able
to run pom.xml from any folder not like A first then B and then C.  Is there
anyway, I can call the depended pom.xml.  I can able run in sequence(like A
then B then C).

Thanks a lot for your help.

RAM.
-- 
View this message in context: 
http://www.nabble.com/Dependency-tf3142320s177.html#a8709193
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Test source dependencies

2007-01-30 Thread Leo Freitas


How to fix dependencies among testing code?
That is, if I have a project B test code that
depends on project A test code.
That is, there is abstract/base testing source
code setup for A that B also uses.

The usual dependency tag (even for test scope)
would link to B/main/java with A/main/java but
would not link B/test/java with A/test/java.

That implies in a compilation error if I try to
run the test cases for B. I thought to use assemblies
to fix this, but it does not sound right.

Any suggestion?

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



Re: Dependency

2007-01-30 Thread Andrew Williams

Put them in a parent folder with a pom of type pom.
List these modules in there and then you can mvn clean install from the 
parent and it will build them all in order.


Andy

vojjala wrote:

Folks, I have 3 folders called A, B and C , each folder has pom.xml. B is
depended on A, C is depended on both A and B. What I want is, I should able
to run pom.xml from any folder not like A first then B and then C.  Is there
anyway, I can call the depended pom.xml.  I can able run in sequence(like A
then B then C).

Thanks a lot for your help.

RAM.
  



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



Re: Test source dependencies

2007-01-30 Thread Andrew Williams
Make a new project (T) and put all of the test code there in compile 
scope (src/main/java)


then project A and B can both depend on T in scope test.

Andy

Leo Freitas wrote:


How to fix dependencies among testing code?
That is, if I have a project B test code that
depends on project A test code.
That is, there is abstract/base testing source
code setup for A that B also uses.

The usual dependency tag (even for test scope)
would link to B/main/java with A/main/java but
would not link B/test/java with A/test/java.

That implies in a compilation error if I try to
run the test cases for B. I thought to use assemblies
to fix this, but it does not sound right.

Any suggestion?

-
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 Webstart Plugin

2007-01-30 Thread Maruf Aytekin

in red

Jerome Lacoste wrote:

On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:

Hi,

I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.

I have two questions:

1. Should I use this plug in or is there any plug in that can be
configured easily?


Can't this plugin be configured easily ?
It not, what are your problems with it ?
It seems easy to configure but I couldn't get it working. This is my 
first jnlp building with maven 2 maybe I couldn't find the right docs. I 
saw only 
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html. 
Is there an example usage or more docs I can find?






2.  When I run mvn install webstart:jnlp I get following error:
[INFO] didn't find artifact with main class:
com.mycompany.baydonhill.traderapp.Main. Did you specify it?

Any ideas would be appreciated.




You restricted the dependencies the plugin should look into:


 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes



That's wrong. Either remove this includes section or specify it
correctly. You probably can just remove it, specifying is to be used
as some form of optimization when the default list of dependencies
needs to be limited.

I have removed the includes section but i still have the same error; 
Here is the stack traces first few lines

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: didn't find 
artifact wit

h main class: com.aspone.baydonhill.traderapp.Main. Did you specify it?
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:559)
   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



Maruf



PS: please use the MOJO user mailing list, not the MAVEN one.

I have tried it but didn't get any response back.

Thanks for your help

Maruf









===
pom.xml as follows:



  packagingpom/packaging
.
.
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
plugin
groupIdorg.codehaus.mojo/groupId
  artifactIdwebstart-maven-plugin/artifactId
executions
  execution
goals
  goaljnlp/goal
/goals
  /execution
/executions
configuration
!--outputDirectory/outputDirectory-- !-- not
required?? --
  dependencies
 !-- Note that only groupId and artifactId must be
specified here. because of a limitation of the
Include/ExcludesArtifactFilter --
 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes
 !-- excludes
exclude/exclude
 excludes--
   /dependencies

  !-- JNLP generation --
  jnlp
!-- default values --

resources${project.basedir}/src/jnlp/resources/resources

!--inputTemplateResourcePath${project.basedir}/inputTemplateResourcePath-- 



!--inputTemplatesrc/jnlp/template.vm/inputTemplate-- !-- relative
to inputTemplateResourcePath --
outputFileTraderApp.jnlp/outputFile !--
defaults to launch.jnlp --


mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass
  /jnlp
  !-- SIGNING --
  !-- defining this will automatically sign the jar and
its dependencies, if necessary --
  sign
 keystoreselfmycompanyKeystore/keystore
 keypasskeypass/keypass  !-- we need to
override passwords easily from the command line. ${keypass} --
 storepasskeypass/storepass !-- ${storepass} 
--

 storetype/storetype
 aliasmycompany/alias
 validity3600/validity

 dnameCn/dnameCn
 dnameOu/dnameOu
 dnameO/dnameO
 dnameL/dnameL
 dnameSt/dnameSt
 

Re: Maven Webstart Plugin

2007-01-30 Thread Maruf Aytekin
When it says [INFO] didn't find *artifact *with main class: whicj 
artifact does it refer to?


Many Thanks

Maruf


Maruf Aytekin wrote:

in red

Jerome Lacoste wrote:

On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:

Hi,

I am trying to build a jnlp project with maven 2. I am currently using
mojo's Maven Webstart Plugin.

I have two questions:

1. Should I use this plug in or is there any plug in that can be
configured easily?


Can't this plugin be configured easily ?
It not, what are your problems with it ?
It seems easy to configure but I couldn't get it working. This is my 
first jnlp building with maven 2 maybe I couldn't find the right docs. 
I saw only 
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html. 
Is there an example usage or more docs I can find?






2.  When I run mvn install webstart:jnlp I get following error:
[INFO] didn't find artifact with main class:
com.mycompany.baydonhill.traderapp.Main. Did you specify it?

Any ideas would be appreciated.




You restricted the dependencies the plugin should look into:


 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes



That's wrong. Either remove this includes section or specify it
correctly. You probably can just remove it, specifying is to be used
as some form of optimization when the default list of dependencies
needs to be limited.

I have removed the includes section but i still have the same error; 
Here is the stack traces first few lines

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: didn't find 
artifact wit

h main class: com.aspone.baydonhill.traderapp.Main. Did you specify it?
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

ultLifecycleExecutor.java:559)
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



Maruf



PS: please use the MOJO user mailing list, not the MAVEN one.

I have tried it but didn't get any response back.

Thanks for your help

Maruf









===
pom.xml as follows:



  packagingpom/packaging
.
.
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin
plugin
groupIdorg.codehaus.mojo/groupId
  artifactIdwebstart-maven-plugin/artifactId
executions
  execution
goals
  goaljnlp/goal
/goals
  /execution
/executions
configuration
!--outputDirectory/outputDirectory-- !-- not
required?? --
  dependencies
 !-- Note that only groupId and artifactId must be
specified here. because of a limitation of the
Include/ExcludesArtifactFilter --
 includes
includecommons-logging:commons-logging/include
includecommons-cli:commons-cli/include
 /includes
 !-- excludes
exclude/exclude
 excludes--
   /dependencies

  !-- JNLP generation --
  jnlp
!-- default values --

resources${project.basedir}/src/jnlp/resources/resources

!--inputTemplateResourcePath${project.basedir}/inputTemplateResourcePath-- 



!--inputTemplatesrc/jnlp/template.vm/inputTemplate-- !-- relative
to inputTemplateResourcePath --
outputFileTraderApp.jnlp/outputFile !--
defaults to launch.jnlp --


mainClasscom.mycompany.baydonhill.traderapp.Main/mainClass
  /jnlp
  !-- SIGNING --
  !-- defining this will automatically sign the jar 
and

its dependencies, if necessary --
  sign
 keystoreselfmycompanyKeystore/keystore
 keypasskeypass/keypass  !-- we need to
override passwords easily from the command line. ${keypass} --
 storepasskeypass/storepass !-- 
${storepass} --

 storetype/storetype
 aliasmycompany/alias
 validity3600/validity

 dnameCn/dnameCn
   

Re: dependencyManagement does not work with war file

2007-01-30 Thread Thierry Lach

My understanding (according to Better Builds with Maven (BBwM) book among
other places) is that by putting the dependency and version in the
dependencyManagement of a parent pom that it is not necessary to put ANY
dependency version of the modules.  What I'm trying to do is almost
identical to what BBwM shows in section 3.4

On 1/29/07, Andi Anderson [EMAIL PROTECTED] wrote:


did you try putting
version[1.0,)/version in the dependancy section of
the ear pom for the war?


--- Thierry Lach [EMAIL PROTECTED] wrote:

 I'm working on a small example project and am
 trying to incorporate a lot
 of maven features into it.  It's got a main pom and
 modules for multiple
 jars, a war, and an ear.  I've just added
 dependencyManagement, but the ear
 pom does not seem to pick up the version from the
 dependencyManagement and
 still requires me to put in the version for the war
 dependency.  Is this by
 intent or is it a bug?



I ka 'olelo ke ola, i ka 'olelo ka make



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




Re: how to get jar for a parent project in Maven 2.x

2007-01-30 Thread Thierry Lach

I would suggest creating jar A in a subproject rather than in the parent.

On 1/30/07, ritesh_riv [EMAIL PROTECTED] wrote:



In my project , suppose project A is parent for project B.
In such a case, project A packaging should be of type pom.
Then how can i get a jar for project A if needed.
I need the jar to be installed in my local repository.
Do i need to go and change pom.xml each and every time.
--
View this message in context:
http://www.nabble.com/how-to-get-jar-for-a-parent-project-in-Maven-2.x-tf3141741s177.html#a8707580
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: dependencyManagement does not work with war file

2007-01-30 Thread Thierry Lach

I tried to send the whole project zipped up but got rejected as spam.  So
here goes - parent, ear pom and war pom (just in case).


On 1/29/07, Patrick Schneider [EMAIL PROTECTED] wrote:


Can you send your parent pom and the ear pom?

On 1/29/07, Andi Anderson [EMAIL PROTECTED] wrote:

 did you try putting
 version[1.0,)/version in the dependancy section of
 the ear pom for the war?


 --- Thierry Lach [EMAIL PROTECTED] wrote:

  I'm working on a small example project and am
  trying to incorporate a lot
  of maven features into it.  It's got a main pom and
  modules for multiple
  jars, a war, and an ear.  I've just added
  dependencyManagement, but the ear
  pom does not seem to pick up the version from the
  dependencyManagement and
  still requires me to put in the version for the war
  dependency.  Is this by
  intent or is it a bug?
 


 I ka 'olelo ke ola, i ka 'olelo ka make



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




?xml version=1.0 encoding=UTF-8?
project
  modelVersion4.0.0/modelVersion
  groupIdorg.example/groupId
  artifactIdexample/artifactId
  packagingpom/packaging  
  nameExample Parent/name
  version1.0-SNAPSHOT/version
  modules
moduleexample-war/module
moduleexample-om/module
moduleexample-taglib/module
moduleexample-ear/module
moduleexample-ug/module
  /modules
  build
sourceDirectorysrc/main/java/sourceDirectory
testSourceDirectorysrc/test/java/testSourceDirectory
plugins
  plugin
artifactIdmaven-clean-plugin/artifactId
configuration
  filesets
fileset
  directory${basedir}/directory
  includes
includevelocity.log/include
  /includes
  followSymlinksfalse/followSymlinks
/fileset
fileset
  directory${basedir}/bin/directory
  includes
include**/include
  /includes
  followSymlinksfalse/followSymlinks
/fileset
  /filesets
/configuration
  /plugin
/plugins
  /build
  repositories
repository
  idlocal-repository/id
  nameLocal Maven 2 Repository/name
  releases
updatePolicyinterval:1/updatePolicy
  /releases
  snapshots
!-- this can change very quickly so we check often --
updatePolicyinterval:1/updatePolicy
  /snapshots
  urlfile:///maven2/repository/url
/repository
repository
  idcodehaus-legacy/id
  urlhttp://dist.codehaus.org//url
  layoutlegacy/layout
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledtrue/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idlocal-plugin-repository/id
  nameLocal Maven 2 Repository/name
  urlfile:///maven2/repository/url
  snapshots
enabledtrue/enabled
  /snapshots
/pluginRepository
pluginRepository
  idcodehaus-plugins/id
  urlhttp://dist.codehaus.org//url
  layoutlegacy/layout
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledtrue/enabled
  /releases
/pluginRepository
pluginRepository
  idapache.snapshots/id
  urlhttp://people.apache.org/maven-snapshot-repository//url
/pluginRepository
  /pluginRepositories
  dependencies
  /dependencies
  dependencyManagement
dependencies
  dependency
groupIdorg.example/groupId
artifactIdexample-om/artifactId
version${project.version}/version
  /dependency
  dependency
groupIdorg.example/groupId
artifactIdexample-taglib/artifactId
version${project.version}/version
  /dependency
  dependency
groupIdorg.example/groupId
artifactIdexample-war/artifactId
version${project.version}/version
typewar/type
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.4/version
scopeprovided/scope
  /dependency
  dependency
groupIdjavax.servlet/groupId
artifactIdjsp-api/artifactId
version2.0/version
scopeprovided/scope
  /dependency
/dependencies
  /dependencyManagement
  reporting
plugins
  plugin
artifactIdmaven-project-info-reports-plugin/artifactId
reportSets
  reportSet
reports
  reportdependencies/report
  reportproject-team/report
  reportmailing-list/report
  reportcim/report
!--
  reportissue-tracking/report
--
  reportlicense/report
  reportscm/report
/reports
  /reportSet
/reportSets
  /plugin
!--
  plugin
groupIdorg.apache.maven.plugins/groupId

Re: Activating a profile with settings.xml

2007-01-30 Thread Eric Redmond

What version of Maven are you using?

On 1/30/07, David Jackman [EMAIL PROTECTED] wrote:


In my case, there was no parent pom.

My pom.xml contains:
  profiles
profile
  idmyProfile/id
  ...
/profile
  /profiles

My settings.xml contains:
  activeProfiles
activeProfilemyProfile/activeProfile
  /activeProfiles

The mvn help:active-profiles command shows: There are no active
profiles.

Is this the correct behavior?


-Original Message-
From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 28, 2007 2:31 AM
To: Maven Users List
Subject: Re: Activating a profile with settings.xml

The current version is buggy. It does not display profiles that are
defined in the parent pom.

Stéphane

On 1/27/07, Eric Redmond [EMAIL PROTECTED] wrote:
 Profiles should be activated in this way.

 Try: mvn help:active-profiles
 See if your profile is active.

 Eric

 On 1/26/07, David Jackman [EMAIL PROTECTED] wrote:
 
  According to the documentation at
http://maven.apache.org/settings.html:
  Any profile id defined as an activeProfile will be active,
  reguardless of any environment settings. If no matching profile is
  found nothing will happen. For example, if env-test is an
  activeProfile, a profile in a pom.xml (or profile.xml with a
  corrosponding id will be active. If no such profile is found then
  execution will continue as normal.
 
  However, I cannot get Maven to behave this way.  Should profiles
  defined in the pom be able to be activated in this way, or are the
  docs incorrect?
 
  ..David..
 
 
 
  FASTforward '07
  The Industry's Largest Business 
  Technology Conference Focused on Search February 7th - 9th, San
  Diego, CA www.fastforward07.com
 
 


 --
 Eric Redmond
 http://codehaus.org/~eredmond



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



FASTforward '07
The Industry's Largest Business 
Technology Conference Focused on Search
February 7th - 9th, San Diego, CA
www.fastforward07.com

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





--
Eric Redmond
http://codehaus.org/~eredmond


Re: Maven Webstart Plugin

2007-01-30 Thread Jerome Lacoste

On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:

When it says [INFO] didn't find *artifact *with main class: whicj
artifact does it refer to?


the one in which your main class is supposed to be.

It should be in the dependencies section of your POM.

Jerome

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



Re: Maven Webstart Plugin

2007-01-30 Thread Jerome Lacoste

On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:

in red

Jerome Lacoste wrote:
 On 1/30/07, Maruf Aytekin [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to build a jnlp project with maven 2. I am currently using
 mojo's Maven Webstart Plugin.

 I have two questions:

 1. Should I use this plug in or is there any plug in that can be
 configured easily?

 Can't this plugin be configured easily ?
 It not, what are your problems with it ?
It seems easy to configure but I couldn't get it working. This is my
first jnlp building with maven 2 maybe I couldn't find the right docs. I
saw only
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html.
Is there an example usage or more docs I can find?



example usage: look at the src/test/projects/

http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/webstart-maven-plugin/plugin/src/test/projects/

Hope that helps...



 2.  When I run mvn install webstart:jnlp I get following error:
 [INFO] didn't find artifact with main class:
 com.mycompany.baydonhill.traderapp.Main. Did you specify it?

 Any ideas would be appreciated.



 You restricted the dependencies the plugin should look into:

  includes
 includecommons-logging:commons-logging/include
 includecommons-cli:commons-cli/include
  /includes


 That's wrong. Either remove this includes section or specify it
 correctly. You probably can just remove it, specifying is to be used
 as some form of optimization when the default list of dependencies
 needs to be limited.

I have removed the includes section but i still have the same error;
Here is the stack traces first few lines
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: didn't find
artifact wit
h main class: com.aspone.baydonhill.traderapp.Main. Did you specify it?
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
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

 Maruf


This means that the com.aspone.baydonhill.traderapp.Main class isn't
found in the list of dependencies. Do you have this class in your
com.holub:holub package ? Or do you miss a dependency ?

If you class is not in a dependency, e.g. you are trying to use a
class present in the current project, i.e. under src/main/java, you
cannot use the 1.0-alpha-1 released version of the plugin but have to
use the latest 1.0-alpha-2-SNAPSHOT. The doc for that version is still
under SVN and has not been published online.



 PS: please use the MOJO user mailing list, not the MAVEN one.



I have tried it but didn't get any response back.


I couldn't find any mail from you in the mojo archive. Sorry if I missed it.

Cheers,

J

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



Re: Dependency

2007-01-30 Thread vojjala

Thanks a lot for the quick, 

These fodlers already part of the parent, in that way it is working very
fine, i need them run independently instead of running from the top level. 





Andrew Williams-5 wrote:
 
 Put them in a parent folder with a pom of type pom.
 List these modules in there and then you can mvn clean install from the 
 parent and it will build them all in order.
 
 Andy
 
 vojjala wrote:
 Folks, I have 3 folders called A, B and C , each folder has pom.xml. B is
 depended on A, C is depended on both A and B. What I want is, I should
 able
 to run pom.xml from any folder not like A first then B and then C.  Is
 there
 anyway, I can call the depended pom.xml.  I can able run in sequence(like
 A
 then B then C).

 Thanks a lot for your help.

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

-- 
View this message in context: 
http://www.nabble.com/Dependency-tf3142320s177.html#a8712288
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: Activating a profile with settings.xml

2007-01-30 Thread John Casey

It seems to me that we fixed that some time ago because of a logged issue,
such that only external profiles listed in the activeProfiles section will
be affected. Profiles in the POM are not included in that group.

-j

On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:


What version of Maven are you using?

On 1/30/07, David Jackman [EMAIL PROTECTED] wrote:

 In my case, there was no parent pom.

 My pom.xml contains:
   profiles
 profile
   idmyProfile/id
   ...
 /profile
   /profiles

 My settings.xml contains:
   activeProfiles
 activeProfilemyProfile/activeProfile
   /activeProfiles

 The mvn help:active-profiles command shows: There are no active
 profiles.

 Is this the correct behavior?


 -Original Message-
 From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
 Sent: Sunday, January 28, 2007 2:31 AM
 To: Maven Users List
 Subject: Re: Activating a profile with settings.xml

 The current version is buggy. It does not display profiles that are
 defined in the parent pom.

 Stéphane

 On 1/27/07, Eric Redmond [EMAIL PROTECTED] wrote:
  Profiles should be activated in this way.
 
  Try: mvn help:active-profiles
  See if your profile is active.
 
  Eric
 
  On 1/26/07, David Jackman [EMAIL PROTECTED] wrote:
  
   According to the documentation at
 http://maven.apache.org/settings.html:
   Any profile id defined as an activeProfile will be active,
   reguardless of any environment settings. If no matching profile is
   found nothing will happen. For example, if env-test is an
   activeProfile, a profile in a pom.xml (or profile.xml with a
   corrosponding id will be active. If no such profile is found then
   execution will continue as normal.
  
   However, I cannot get Maven to behave this way.  Should profiles
   defined in the pom be able to be activated in this way, or are the
   docs incorrect?
  
   ..David..
  
  
  
   FASTforward '07
   The Industry's Largest Business 
   Technology Conference Focused on Search February 7th - 9th, San
   Diego, CA www.fastforward07.com
  
  
 
 
  --
  Eric Redmond
  http://codehaus.org/~eredmond
 
 

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



 FASTforward '07
 The Industry's Largest Business 
 Technology Conference Focused on Search
 February 7th - 9th, San Diego, CA
 www.fastforward07.com

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




--
Eric Redmond
http://codehaus.org/~eredmond




How can I skip tests for a particular execution from the command line

2007-01-30 Thread Bashar Abdul Jawad
Hi,

 

I have 2 surefire executions in my POM file, one for the test phase and
one for the integration test phase. What I would like to do is to be able to
skip running the tests for either of the two executions from the command
line by passing a system property. The problem is passing
-Dmaven.test.skip=true will skip the main execution and not the child
executions. I know I can do this in the POM file but as I said I would like
to be able to do so from the command line. Is it possible to pass the id of
the execution, like this: -Dmaven.test.{execution_id}.skip=true?

 

I have the following in my POM:

 

  /plugin

  plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-surefire-plugin/artifactId

configuration

  forkModenone/forkMode

  childDelegationtrue/childDelegation

  skiptrue/skip

/configuration

executions

  execution

idtest-phase/id

phasetest/phase

goals

  goaltest/goal

/goals

configuration

  skipfalse/skip

  excludes

 
exclude**/selenium/**/exclude

  /excludes

/configuration

  /execution

  execution

idintegration-test-phase/id

phaseintegration-test/phase

goals

  goaltest/goal

/goals

configuration

  skipfalse/skip

  includes

 
include**/AllTestsSuite.java/include

  /includes

/configuration

  /execution

/executions

  /plugin

 

Thanks

 


Bashar

 



provided dependency packaged into war

2007-01-30 Thread Ivan Strohner
Hello,

I am packaging a war archive and list dependency in pom file:
dependency
groupIdjavax.servlet/groupId
artifactIdjsp-api/artifactId
version2.0/version
scopeprovided/scope
/dependency

the problem is that jsp-api-2.0.jar (and also servlet-api-2.4.jar) get
packaged into WEB-INF/lib even though that they are always mentioned as
provided dependencies.

Our project depends on multiple other our projects. One of them is another
war, which gets merged into our war. Other are simple jars. jsp-api is
mentioned as dependency in some of them, but always as provided.

My intention is to package only our jars into WEB-INF/lib. I want to keep the
third party ones in server lib. The primary project is called non_combustion.
It depends on our cms_classes and cms_web projects and some others, such as
dsutil_web. These depend on many other libraries, especially spring and
related.

Rough structure:

non_combustion (war)
  jsp-api (provided)
  dsutil_web (jar) (compile)
jsp-api (provided)
..
  cms_web (war) (compile)
depends on jsp-api (provided)
cms_classes (jar) (compile)
..
  ..

I did proper clean and install of all these project into local repository.
When I do mvn package -X on non_combustion I get a war file with jsp-api
in WEB-INF/lib. However other libraries (such as spring) are not packaged
(just as I wanted).

If I search the debug output for the package command for jsp-api I get the
parts below. From them it is clear that jsp-api is everywhere mentioned as
provided, but in the final step it is included in the WEB-INF/lib.

Could anyone help? Is this a bug? If some additional info is required I can
send it (the log below is 180KB long). I am just starting with maven so I ask
here first before submitting a bug report or other.

I am using maven 2.0.4 installed recently.

Thanks for any answers,
Ivan


...
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT (selected for 
null)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs_spring: using locally installed snapshot
[DEBUG]   sk.digitalsystems:perobs_spring:jar:1.1.4.0-SNAPSHOT:compile 
(selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs: using locally installed snapshot
[DEBUG] sk.digitalsystems:perobs:jar:1.1.9.0-SNAPSHOT:compile (selected for 
compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil: using locally installed snapshot
[DEBUG]   sk.digitalsystems:dsutil:jar:1.1.7.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] cms_classes: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms_classes:jar:1.1.0.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil_web: using locally installed snapshot
[DEBUG] sk.digitalsystems:dsutil_web:jar:1.1.2.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]   javax.servlet:jsp-api:jar:2.0:provided (selected for provided)
[DEBUG] javax.servlet:servlet-api:jar:2.4:provided (selected for provided)
[DEBUG] Skipping disabled repository central
[DEBUG] cms: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms:war:1.1.2.0-SNAPSHOT:compile (selected for 
compile)
[DEBUG] Retrieving parent-POM: org.acegisecurity:acegi-security-parent::1.0.3 
for project: null:acegi-security:jar:1.0.3 from the repository.
[DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:provided (selected for 
provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-support:jar:1.2.8 from the repository.
[DEBUG] org.springframework:spring-support:jar:1.2.8:provided (selected for 
provided)
[DEBUG] commons-codec:commons-codec:jar:1.3:provided (selected for provided)
[DEBUG] commons-logging:commons-logging:jar:1.0.4:provided (selected for 
provided)
[DEBUG] log4j:log4j:jar:1.2.9:provided (selected for provided)
[DEBUG] commons-lang:commons-lang:jar:2.1:provided (selected for provided)
[DEBUG] commons-collections:commons-collections:jar:3.1:provided (selected 
for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-remoting:jar:1.2.8 from the repository.
[DEBUG] org.springframework:spring-remoting:jar:1.2.8:provided (selected 
for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-webmvc:jar:1.2.8 from the repository.
[DEBUG]   org.springframework:spring-webmvc:jar:1.2.8:provided (selected 
for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-web:jar:1.2.8 from the repository.
[DEBUG] 

prepare-package phase doesn't exist?

2007-01-30 Thread Bashar Abdul Jawad
Hi,

 

Maven documentation mentions a prepare-package phase on
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
ml

 

However this phase doesn't seem to exist when running mvn prepare-package. I
get the error:

 

 

mvn prepare-package

[INFO] Scanning for projects...

[INFO]


[ERROR] BUILD FAILURE

[INFO]


[INFO] Invalid task 'prepare-package': you must specify a valid lifecycle
phase,

 or a goal in the format plugin:goal or
pluginGroupId:pluginArtifactId:pluginVer

sion:goal

[INFO]


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

[INFO]


[INFO] Total time:  1 second

[INFO] Finished at: Tue Jan 30 10:22:56 MST 2007

[INFO] Final Memory: 1M/2M

[INFO]


 

 

Also any plug-in execution bind to that phase never gets executed. Any
ideas?

 

 

Bashar



Are clovered files supposed to be deployed to the remote repo?

2007-01-30 Thread jp4

The first question I have is whether or not clovered artifacts are supposed
to be deployed to the remote repo when running mvn clean install deploy?  I
do not see these clovered artifacts being deployed and wonder if they should
be.

The reason I ask this is because I am running into a anomoly with my build. 
I run my build locally and it pulls clovered dependencies from the local
repo.  When I run it on our build server with the same exact configuration,
it attempts to find the clovered artifacts from our development repository
instead of the local repo?  As a result, the build fails since clovered
files are not deployed to the development repo.  

Any insight would be greatly appreciated.

Thanks,
jp4
-- 
View this message in context: 
http://www.nabble.com/Are-clovered-files-supposed-to-be-deployed-to-the-remote-repo--tf3143783s177.html#a8714082
Sent from the Maven - Users mailing list archive at Nabble.com.


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



plugin/dependencies question

2007-01-30 Thread Rebecca Searls

What is the intended use of project/build/plugins/plugin/dependencies
as compared to project/dependencies?

One would assume project/build/plugins/plugin/dependencies
are plugin specific in scope; that project/dependencies are
active project wide in scope.

And one would expect that if project/dependencies are
accessable as artifacts then project/build/plugins/plugin/dependencies
would be accessable as artifacts by some means as well but
where or how?

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



RE: Activating a profile with settings.xml

2007-01-30 Thread David Jackman
I'm using 2.0.4. 

-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 9:46 AM
To: Maven Users List
Subject: Re: Activating a profile with settings.xml

It seems to me that we fixed that some time ago because of a logged issue, 
such that only external profiles listed in the activeProfiles section will be 
affected. Profiles in the POM are not included in that group.

-j

On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:

 What version of Maven are you using?

 On 1/30/07, David Jackman [EMAIL PROTECTED] wrote:
 
  In my case, there was no parent pom.
 
  My pom.xml contains:
profiles
  profile
idmyProfile/id
...
  /profile
/profiles
 
  My settings.xml contains:
activeProfiles
  activeProfilemyProfile/activeProfile
/activeProfiles
 
  The mvn help:active-profiles command shows: There are no active 
  profiles.
 
  Is this the correct behavior?
 
 
  -Original Message-
  From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
  Sent: Sunday, January 28, 2007 2:31 AM
  To: Maven Users List
  Subject: Re: Activating a profile with settings.xml
 
  The current version is buggy. It does not display profiles that are 
  defined in the parent pom.
 
  Stéphane
 
  On 1/27/07, Eric Redmond [EMAIL PROTECTED] wrote:
   Profiles should be activated in this way.
  
   Try: mvn help:active-profiles
   See if your profile is active.
  
   Eric
  
   On 1/26/07, David Jackman [EMAIL PROTECTED] wrote:
   
According to the documentation at
  http://maven.apache.org/settings.html:
Any profile id defined as an activeProfile will be active, 
reguardless of any environment settings. If no matching profile 
is found nothing will happen. For example, if env-test is an 
activeProfile, a profile in a pom.xml (or profile.xml with a 
corrosponding id will be active. If no such profile is found 
then execution will continue as normal.
   
However, I cannot get Maven to behave this way.  Should profiles 
defined in the pom be able to be activated in this way, or are 
the docs incorrect?
   
..David..
   
   
   
FASTforward '07
The Industry's Largest Business  Technology Conference Focused 
on Search February 7th - 9th, San Diego, CA 
www.fastforward07.com
   
   
  
  
   --
   Eric Redmond
   http://codehaus.org/~eredmond
  
  
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  FASTforward '07
  The Industry's Largest Business 
  Technology Conference Focused on Search February 7th - 9th, San 
  Diego, CA www.fastforward07.com
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Eric Redmond
 http://codehaus.org/~eredmond




FASTforward '07
The Industry's Largest Business 
Technology Conference Focused on Search
February 7th - 9th, San Diego, CA
www.fastforward07.com

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



RE: Activating a profile with settings.xml

2007-01-30 Thread David Jackman
So, the behavior I'm seeing now is actually correct?  If so, the information on 
http://maven.apache.org/settings.html will need to change accordingly.

My problem is then how to activate a profile in the POM (it's in the POM 
because it lists repositories for distribution management, which can't be 
listed in settings.xml profiles).  I can activate the profile on the command 
line by setting a property (-D) or using the -P options, but this doesn't work 
when the SCM plugin does a release:perform or a deploy goal with scm:bootstrap 
(the plugin invokes Maven without the command line parameters).


-Original Message-
From: John Casey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 9:46 AM
To: Maven Users List
Subject: Re: Activating a profile with settings.xml

It seems to me that we fixed that some time ago because of a logged issue, 
such that only external profiles listed in the activeProfiles section will be 
affected. Profiles in the POM are not included in that group.

-j

On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:

 What version of Maven are you using?

 On 1/30/07, David Jackman [EMAIL PROTECTED] wrote:
 
  In my case, there was no parent pom.
 
  My pom.xml contains:
profiles
  profile
idmyProfile/id
...
  /profile
/profiles
 
  My settings.xml contains:
activeProfiles
  activeProfilemyProfile/activeProfile
/activeProfiles
 
  The mvn help:active-profiles command shows: There are no active 
  profiles.
 
  Is this the correct behavior?
 
 
  -Original Message-
  From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
  Sent: Sunday, January 28, 2007 2:31 AM
  To: Maven Users List
  Subject: Re: Activating a profile with settings.xml
 
  The current version is buggy. It does not display profiles that are 
  defined in the parent pom.
 
  Stéphane
 
  On 1/27/07, Eric Redmond [EMAIL PROTECTED] wrote:
   Profiles should be activated in this way.
  
   Try: mvn help:active-profiles
   See if your profile is active.
  
   Eric
  
   On 1/26/07, David Jackman [EMAIL PROTECTED] wrote:
   
According to the documentation at
  http://maven.apache.org/settings.html:
Any profile id defined as an activeProfile will be active, 
reguardless of any environment settings. If no matching profile 
is found nothing will happen. For example, if env-test is an 
activeProfile, a profile in a pom.xml (or profile.xml with a 
corrosponding id will be active. If no such profile is found 
then execution will continue as normal.
   
However, I cannot get Maven to behave this way.  Should profiles 
defined in the pom be able to be activated in this way, or are 
the docs incorrect?
   
..David..
   
   
   
FASTforward '07
The Industry's Largest Business  Technology Conference Focused 
on Search February 7th - 9th, San Diego, CA 
www.fastforward07.com
   
   
  
  
   --
   Eric Redmond
   http://codehaus.org/~eredmond
  
  
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  FASTforward '07
  The Industry's Largest Business 
  Technology Conference Focused on Search February 7th - 9th, San 
  Diego, CA www.fastforward07.com
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Eric Redmond
 http://codehaus.org/~eredmond




FASTforward '07
The Industry's Largest Business 
Technology Conference Focused on Search
February 7th - 9th, San Diego, CA
www.fastforward07.com

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



Maven support for WebLogic 9.2 EJBGen

2007-01-30 Thread Bhatia, Naresh \(IS Consultant\)
Is there a plugin for WebLogic 9.2 version of EJBGen? I found
http://www.codeczar.com/products/maven-ejbgen-plugin/ but not sure if it
supports WebLogic 9.2 and Maven 2.


Thanks.
Naresh


Re: native2ascii-maven-plugin is now in mojo's sandbox

2007-01-30 Thread mraible

Thanks Dan - this is just what I needed!  :-D

How would I configure this plugin to process multiple files?  Here's how I
did it with Ant:

native2ascii src=web/WEB-INF/classes
dest=${build.dir}/web/classes 
includes=ApplicationResources_zh*.properties
encoding=UTF-8/
native2ascii src=web/WEB-INF/classes
dest=${build.dir}/web/classes 
encoding=8859_1
include name=ApplicationResources_de.properties/
include name=ApplicationResources_fr.properties/
include name=ApplicationResources_nl.properties/
include name=ApplicationResources_pt*.properties/
/native2ascii

Here's a guess:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdnative2ascii-maven-plugin/artifactId
version1.0-beta-1-SNAPSHOT/version
configuration
desttarget/classes/dest
srcsrc/main/resources/src
/configuration
executions
execution
goals
goalnative2ascii/goal
/goals
configuration
encodingUTF8/encoding
includesApplicationResources_zh*/includes
/configuration
configuration
encoding8859_1/encoding
includes
   
ApplicationResources_de.properties,ApplicationResources_fr.properties
   
ApplicationResources_nl.properties,ApplicationResources_pt*.properties
/includes
/configuration
/execution
/executions
/plugin

But it doesn't work. Also, is it possible to change the lifecycle phase so
it processes after the regular copy resources phase?  It seems likely to me
that most folks will store their native resources in src/main/resources
rather than in a new directory.  It'd be nice if we didn't have to exclude
these files:

resources
resource
directorysrc/main/resources/directory
excludes
excludeApplicationResources_zh*/exclude
/excludes
filteringtrue/filtering
/resource
/resources

Thanks,

Matt



dan tran wrote:
 
 Hello every one,
 
 There seem to have a number of interests, including me, in a maven plugin
 version of ascii2native task,
 so I cooked up one and deployed a snapshot of
 native2ascii-maven-plugin-beta-1.
 
  The site is at http://mojo.codehaus.org/native2ascii-maven-plugin/
 
 Feedbacks are every welcomed.
 
 
 -D
 
 

-- 
View this message in context: 
http://www.nabble.com/native2ascii-maven-plugin-is-now-in-mojo%27s-sandbox-tf2944026s177.html#a8716097
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven Webstart Plugin - some remarks

2007-01-30 Thread Mark Donszelmann

Hi

I am using the 1.0-alpha-1 version of the Maven Webstart Plugin. It  
works for us, but I have some questions and remarks:


1. It seems odd to have to define the template.vm in src/jnlp and the  
resources in src/main/jnlp.
Should the locations not be src/main/jnlp (for template.vm) and src/ 
resources/jnlp for the resources?


2. It would be handy if the $version could be added to the jnlp  
parsed values.


3. We use jar references as jar href=... download=lazy  
part=.../ which can only be handled
at this time by hardcoding them into template.vm and not using  
$dependencies.


4. Is there a way to auto-unzip the generated webstart application  
into target/site so that the application

can be deployed with the site (for simple webstart apps only).

Let me know.

Regards
Mark Donszelmann
Stanford


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



RE: [M2] SCM support for sspi?

2007-01-30 Thread Siegmann Daniel, NY
I finally got around to implementing SSPI support in the Maven SCM project.
I have successfully tested snapshots of the scm plugin on my local machine.

The changes have been submitted on JIRA as a patch:
http://jira.codehaus.org/browse/SCM-277

~Daniel

-Original Message-
From: Siegmann Daniel, NY 
Sent: Tuesday, January 23, 2007 3:42 PM
To: 'Maven Users List'
Subject: RE: [M2] SCM support for sspi?

I plan to implement sspi support, hopefully this week (I have received
approval to spend up to four hours). If I am successful I will make my patch
available.

Of course, if you'd rather do the work, I wouldn't complain. ;)

~Daniel

-Original Message-
From: MarkC [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 11:35 AM
To: users@maven.apache.org
Subject: Re: [M2] SCM support for sspi?


Hi,
We're also looking at adopting Maven and would like to propose some
additions to the SCM support, including the CVS SSPI protocol. Daniel, is
this something you intend to start actively looking at? Just want to make
sure we don't duplicate work. 



dan tran wrote:
 
 Daniel, I'd like suggest that you go ahead and fix up 
 maven-cvs-provider to support sppi and send in the patch.
 
 -D
 
 
 On 1/22/07, Siegmann Daniel, NY [EMAIL PROTECTED] wrote:

 It isn't supported because it isn't a standard cvs protocol.
 If you have docs about the CVSROOT format for this protocol, file an 
 issue and we'll look at it.
 All docs about sspi are welcome.

 True, it's not supported in CVS. However, it is supported in CVSNT, 
 which is also licensed under the GPL. Does CVSNT not provide the 
 required documentation?

 Perhaps the plugin could simply allow for the use of an external cvs.exe?

 --
 Daniel Siegmann
 FJA-US, Inc.
 512 Seventh Ave., New York, NY  10018
 (212) 840-2618 ext. 139

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


 
 

--
View this message in context:
http://www.nabble.com/-M2--SCM-support-for-sspi--tf3040226s177.html#a8525117
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]

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



Maven-rdf plugin

2007-01-30 Thread Petar Tahchiev

Hi gyus,

I hust wanted to ask if anyone knows a maven rdf (Resource Description
Framework) plugin as I didn't find myself.
The problem is that when I use the xml plugin to transform my rdf files to
xdoc ones, I cannot explicitly set the name of the
outputted files(or can I?) and so they get transformed with rdf extension.
This is bad, because I put them in the
xdoc folder of my site and the site plugin does not transform them to htmls.

Thank you.

--
Regards, Petar!
Karlovo, Bulgaria.


Multi step build process for multi module project

2007-01-30 Thread Paul Edwards

Hi,

When running a M2 build over a set of modules within a profile within a parent project, 
is it possible to cause certain plugin goals to run only once while others run on each 
sub-project defined in the profile? What I am attempting to accomplish goes like this:


Step 1: cargo:stop
Step 2: module 1 clean package cargo:deploy
Step 3: module 2 clean package cargo:deploy
Step 4: module 3 clean package cargo:deploy
Step 5: cargo:start

What I am able to accomplish if I run the following:

mvn cargo:stop clean package cargo:deploy cargo:start

is the following sequence:

Step 1: cargo:stop module 1 clean package cargo:deploy cargo:start
Step 2: cargo:stop module 2 clean package cargo:deploy cargo:start
Step 3: cargo:stop module 3 clean package cargo:deploy cargo:start
Step 4: cargo:stop module 4 clean package cargo:deploy cargo:start

As you can imaging, all that starting and stopping of the web server is not only time 
consuming but tends to cause Windows to chuck a wanger. I have attempted to bind 
cargo:stop and cargo:start to lifecycle phases but the same phases iterate for each 
sub-project... no good.


Any ideas?

Thanks!
Paul


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



dependency of jar included in war?

2007-01-30 Thread Attila Ravai
Hi,

I have a war file which has a dependency on my project, which is a jar. The jar 
file itself has a lot of dependencies (like oracle classes.jar). When building 
the war file, all I get in the web-inf/lib is what I specified in the war 
dependency, which is myproject.jar. However the classes.jar it never is added 
to the war, so when trying to load the app, I get an classnotfound exception.

Is there a way to have the war include the jar files dependencies? I would hate 
to duplicate the dependencies in the war pom. I cannot create a parent module, 
as they are two different projects.

thanks
Atti

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: dependency of jar included in war?

2007-01-30 Thread Siegfried Goeschl

Hi Atti,

currently a WAR does not participate in the dependency inheritance 
mechanism. What you could do since your WAR depends on a single JAR is 
to add the JAR as additional dependency.


This is of course a hack but not too ugly.

Cheers,

Siegfried Goeschl

Attila Ravai wrote:

Hi,

I have a war file which has a dependency on my project, which is a jar. The jar 
file itself has a lot of dependencies (like oracle classes.jar). When building 
the war file, all I get in the web-inf/lib is what I specified in the war 
dependency, which is myproject.jar. However the classes.jar it never is added 
to the war, so when trying to load the app, I get an classnotfound exception.

Is there a way to have the war include the jar files dependencies? I would hate 
to duplicate the dependencies in the war pom. I cannot create a parent module, 
as they are two different projects.

thanks
Atti

 
-

It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.


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



maven-javadoc-plugin, generate javadoc using different jvm from w hat is set in java.home

2007-01-30 Thread Parikh, Pratik P.
Hi Everyone,

Is there a way to configure the javadoc.exe in the javadoc-plugin, I
have a java.home which is set to java 1.4 and I am using java 1.6 for a
given project. Is there a way to configure this in the pom.xml?

Thanks,
Pratik



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.



Maven is not downloading newer artifacts

2007-01-30 Thread Dave Hoffer
Some times maven refuses to download new released artifacts.  This seems
to occur when the lastUpdated value in the maven-metadata.xml is
similar, that is when the new release occurred soon after a prior
release.  However, we haven't been able to pinpoint an exact pattern to
this behavior.  In addition this may occur when we perform a maven
install or a when running idea:idea.

To resolve this we delete our local maven-metadata-inhouse.xml file,
which allows maven to download the correct version.

Old maven-metadata-inhouse.xml file:
?xml version=1.0 encoding=UTF-8?metadata
  groupIdcom.xrite/groupId
  artifactIdxrite-commons/artifactId
  version1.0/version
  versioning
release1.18/release
versions
  version1.0/version
  version1.2/version
  version1.3/version
  version1.4/version
  version1.5/version
  version1.6/version
  version1.7/version
  version1.8/version
  version1.9/version
  version1.10/version
  version1.11/version
  version1.12/version
  version1.14/version
  version1.15/version
  version1.16/version
  version1.17/version
  version1.18/version
/versions
lastUpdated20070130165948/lastUpdated
  /versioning
/metadata

With the old file it would not download the 1.20 version.  After
deleting the local file it would download version 1.20, here is the
resulting new file.

New maven-metadata-inhouse.xml file:
?xml version=1.0 encoding=UTF-8?metadata
  groupIdcom.xrite/groupId
  artifactIdxrite-commons/artifactId
  version1.0/version
  versioning
release1.20/release
versions
  version1.0/version
  version1.2/version
  version1.3/version
  version1.4/version
  version1.5/version
  version1.6/version
  version1.7/version
  version1.8/version
  version1.9/version
  version1.10/version
  version1.11/version
  version1.12/version
  version1.14/version
  version1.15/version
  version1.16/version
  version1.17/version
  version1.18/version
  version1.19/version
  version1.20/version
/versions
lastUpdated20070130200231/lastUpdated
  /versioning
/metadata

What may be causing this?

-dh


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



Re: Multi step build process for multi module project

2007-01-30 Thread Christian Goetze

Paul Edwards wrote:


Hi,

When running a M2 build over a set of modules within a profile within 
a parent project, is it possible to cause certain plugin goals to run 
only once while others run on each sub-project defined in the profile? 
What I am attempting to accomplish goes like this:


Step 1: cargo:stop
Step 2: module 1 clean package cargo:deploy
Step 3: module 2 clean package cargo:deploy
Step 4: module 3 clean package cargo:deploy
Step 5: cargo:start

What I am able to accomplish if I run the following:

mvn cargo:stop clean package cargo:deploy cargo:start

is the following sequence:

Step 1: cargo:stop module 1 clean package cargo:deploy cargo:start
Step 2: cargo:stop module 2 clean package cargo:deploy cargo:start
Step 3: cargo:stop module 3 clean package cargo:deploy cargo:start
Step 4: cargo:stop module 4 clean package cargo:deploy cargo:start

As you can imaging, all that starting and stopping of the web server 
is not only time consuming but tends to cause Windows to chuck a 
wanger. I have attempted to bind cargo:stop and cargo:start to 
lifecycle phases but the same phases iterate for each sub-project... 
no good.


Any ideas?

Maybe making a module stop and start, with packaging pom, with the 
appropriate plugin config entries for stopping and starting, then make 
start depend on all other modules, and make all of those other modules 
depend on stop. Then, the reactor build order will be as you desired.

--
cg

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



Is it possible to run cobertura with the eclipse plugin Maven 2.0 integration

2007-01-30 Thread Markus Baumgartner

Hi,

There was a problem running the cobertura from within Eclipse with the 
Maven 2.0 integration, version 0.0.10 and Cobertura 1.7


I can run mvn cobertura:cobertura and it runs. I tried to create a new 
m2 - configuration defining the goal cobertura:cobertura for doing the 
same, but I got an error messages


Do I have to define that'm2' configuration different? (is there any 
description or help for this on the net?

Or is this a know problem, maybe with a workaround?

Thanks for help

Markus


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


[INFO] Building Copine
[INFO]task-segment: [cobertura:cobertura]
[INFO] 


[INFO] Preparing cobertura:cobertura
[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
[INFO] Nothing to compile - all classes are up to date
[ERROR] project-execute : 
com.informationcontrol.backup:mybackupper:jar:1.0-SNAPSHOT (  
task-segment: [cobertura:cobertura] )
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin. 
Reason: Unable to parse the created DOM for plugin configuration

FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : 
D:\dev\eclipse_home\eclipse_home_3_2_1\copinemaven_2ndTry\copinemaven_SecondTry
Diagnosis: Error configuring: org.codehaus.mojo:cobertura-maven-plugin. 
Reason: Unable to parse the created DOM for plugin configuration

FATAL ERROR: Error executing Maven for a project
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to configure plugin parameters for: 
org.codehaus.mojo:cobertura-maven-plugin:2.0


on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using 
'implementation' attribute: 
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO] 


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


[INFO] Total time: 9 seconds
[INFO] Finished at: Tue Jan 30 22:20:57 PST 2007
[INFO] Final Memory: 3M/7M
[INFO] 


[INFO] Error for project: Copine (during cobertura:cobertura)
[INFO] 

[INFO] Failed to configure plugin parameters for: 
org.codehaus.mojo:cobertura-maven-plugin:2.0


on the command line, specify: '-Dcheck=VALUE'

Cause: Class name which was explicitly given in configuration using 
'implementation' attribute: 
'org.codehaus.mojo.cobertura.configuration.ConfigCheck' cannot be loaded
[INFO] 


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

[ERROR] reactor-execute : 
D:\dev\eclipse_home\eclipse_home_3_2_1\copinemaven_2ndTry\copinemaven_SecondTry

FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO] 


[INFO] Total time: 9 seconds
[INFO] Finished at: Tue Jan 30 22:20:57 PST 2007
[INFO] Final Memory: 3M/7M
[INFO] 








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



Re: Maven-rdf plugin

2007-01-30 Thread Siegfried Goeschl

Hi Petar,

you could use the maven-antrun-plugin to rename the files (*.rdf = 
*.xml) later on.


Cheers,

Siegfried Goeschl

Petar Tahchiev wrote:

Hi gyus,

I hust wanted to ask if anyone knows a maven rdf (Resource Description
Framework) plugin as I didn't find myself.
The problem is that when I use the xml plugin to transform my rdf files to
xdoc ones, I cannot explicitly set the name of the
outputted files(or can I?) and so they get transformed with rdf extension.
This is bad, because I put them in the
xdoc folder of my site and the site plugin does not transform them to 
htmls.


Thank you.



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



Re: prepare-package phase doesn't exist?

2007-01-30 Thread Mark Hobson

On 30/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:

Maven documentation mentions a prepare-package phase on
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
ml

...

Also any plug-in execution bind to that phase never gets executed. Any
ideas?


This was introduced in 2.0.5 - what version of maven are you running?

Mark

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



RE: prepare-package phase doesn't exist?

2007-01-30 Thread Bashar Abdul Jawad
2.0.4

The version on Maven's homepage (http://maven.apache.org/) is also still
2.0.4.

Bashar

-Original Message-
From: Mark Hobson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 2:42 PM
To: Maven Users List
Subject: Re: prepare-package phase doesn't exist?

On 30/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
 Maven documentation mentions a prepare-package phase on

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
 ml
...
 Also any plug-in execution bind to that phase never gets executed. Any
 ideas?

This was introduced in 2.0.5 - what version of maven are you running?

Mark

-
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: prepare-package phase doesn't exist?

2007-01-30 Thread Brett Porter

Apologies, I should have marked that in the documentation. Actually, it's 2.1+.

On 31/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:

2.0.4

The version on Maven's homepage (http://maven.apache.org/) is also still
2.0.4.

Bashar

-Original Message-
From: Mark Hobson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 2:42 PM
To: Maven Users List
Subject: Re: prepare-package phase doesn't exist?

On 30/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
 Maven documentation mentions a prepare-package phase on

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
 ml
...
 Also any plug-in execution bind to that phase never gets executed. Any
 ideas?

This was introduced in 2.0.5 - what version of maven are you running?

Mark

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





--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.com/

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



RE: prepare-package phase doesn't exist?

2007-01-30 Thread Bashar Abdul Jawad
OK, I just saw it on Jira:

http://jira.codehaus.org/browse/MNG-2097?page=com.atlassian.jira.plugin.syst
em.issuetabpanels:comment-tabpanel#action_63375

Bashar



-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 2:52 PM
To: Maven Users List
Subject: Re: prepare-package phase doesn't exist?

Apologies, I should have marked that in the documentation. Actually, it's
2.1+.

On 31/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
 2.0.4

 The version on Maven's homepage (http://maven.apache.org/) is also still
 2.0.4.

 Bashar

 -Original Message-
 From: Mark Hobson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 30, 2007 2:42 PM
 To: Maven Users List
 Subject: Re: prepare-package phase doesn't exist?

 On 30/01/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
  Maven documentation mentions a prepare-package phase on
 

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht
  ml
 ...
  Also any plug-in execution bind to that phase never gets executed. Any
  ideas?

 This was introduced in 2.0.5 - what version of maven are you running?

 Mark

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




-- 
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.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: authorization denied

2007-01-30 Thread Brett Porter

Yes - currently the repository access is secured by default.

You can either create a user/pass and grant them read access to the  
repository in question, or you can do that for the guest user (I  
think this will allow it to be used without credentials - if not I  
think it should be added).


- Brett

On 31/01/2007, at 9:16 AM, flyboy wrote:



How do I give myself authorization to download from my archiva  
manager?  Do I

have to enter my local username into the archiva user list?

I built archiva from trunk today (Jan 30).  And ran it using 'mvn
jetty:run'.

I setup a repository under archiva and changed my .m2/settings.xml  
file to
use it.  I cleared .m2/repository.  In return to a 'mvn compile', I  
get:



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

URL:
http://esm-build:9091/repository/mvn-repo/com/xxx/esm-pom/1.0.1/esm- 
pom-1.0.1.pom

...


esm-pom is the parent pom of all my projects.  Its the first  
artifact that

would be downloaded.


The window from which I started archiva, the following log messages  
appear:



-- request  
--

-- http://esm-build:9091/repository
GET /repository/mvn-repo/com/xxx/esm-pom/1.0.1/esm-pom-1.0.1.pom  
HTTP/1.1

Pragma: no-cache
User-Agent: Java/1.5.0_04
Host: esm-build:9091
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded

-- 
--
2007-01-30 17:07:28.763:/:INFO:  RepositoryServlet: Authorization  
Denied
[ip=172.24.0.156,isWriteRequest=false,permission=archiva-read- 
repository] :

no matching permissions
2007-01-30 17:09:17,562 [btpool0-15] WARN   
DefaultActionInvocation-

No result defined for action
org.codehaus.plexus.security.ui.web.action.admin.ReportAction and  
result

null


Thanks,

John

--
View this message in context: http://www.nabble.com/authorization- 
denied-tf3145308.html#a8719120

Sent from the archiva-users mailing list archive at Nabble.com.


Skipping Tests but Still Compiling

2007-01-30 Thread Kevan Dunsmore
So I just discovered that if I kick off a build using

 

mvn -Dmaven.test.skip=true install

 

then Maven will not even bother compiling the test classes. Is there any
way to force Maven to compile the test classes but not run the tests?

 

 

Thanks,

Kevan.

 

 

 

Kevan Dunsmore

Senior Software Engineer

SABRIX Inc

t: 503.924.4908

f: 503.620.5756

 


This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential and privileged information 
that is protected from disclosure. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message and any attachments.



RE: Skipping Tests but Still Compiling

2007-01-30 Thread Bashar Abdul Jawad
That is not true. Maven will still compile the test classes, but only if
they have changed since the last compilation. To force maven to compile even
if there were no changes run a clean first.

Bashar

-Original Message-
From: Kevan Dunsmore [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 3:46 PM
To: Maven Users List
Subject: Skipping Tests but Still Compiling

So I just discovered that if I kick off a build using

 

mvn -Dmaven.test.skip=true install

 

then Maven will not even bother compiling the test classes. Is there any
way to force Maven to compile the test classes but not run the tests?

 

 

Thanks,

Kevan.

 

 

 

Kevan Dunsmore

Senior Software Engineer

SABRIX Inc

t: 503.924.4908

f: 503.620.5756

 


This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information that is protected from disclosure. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies
of the original message and any attachments.



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



Execution order in pre-integration-test phase for Cargo/Antrun

2007-01-30 Thread Crossley, Jim
I'm using 2.0.4 with the most recent plugin versions.  I'm trying to
configure JBoss 4.0.5 prior to running an integration test from my
build.  I'm trying to run the following goals in these phases:

pre-integration-test:
  cargo:install
  antrun:run
  cargo:start
post-integration-test:
  cargo:stop

The cargo:install is configured with a ZipUrlInstaller that downloads an
archive of JBoss with an 'ejb3' configuration from an internal web
server.  The subsequent antrun:run task tailors that config with
settings specific to the build.

My problem is that I can't figure out how to mandate the order of the
goals in the pre-integration-test phase.  Depending on which plugin
comes first in the POM, I get either

  antrun:run
  cargo:install
  cargo:start

or:

  cargo:install
  cargo:start
  antrun:run

Neither of which works for me, of course.  What am I doing wrong?  Do I
have to list the cargo plugin twice, once before and after the antrun
plugin?  I'd rather not duplicate that much configuration, if I can help
it.

Thanks,
Jim

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



RE: Execution order in pre-integration-test phase for Cargo/Antrun

2007-01-30 Thread Bashar Abdul Jawad
Hi,

Did you try multiple executions with a different Id for each execution?
Place one goal in each execution and bind it to the appropriate phase.

Bashar

-Original Message-
From: Crossley, Jim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 3:59 PM
To: users@maven.apache.org
Subject: Execution order in pre-integration-test phase for Cargo/Antrun

I'm using 2.0.4 with the most recent plugin versions.  I'm trying to
configure JBoss 4.0.5 prior to running an integration test from my
build.  I'm trying to run the following goals in these phases:

pre-integration-test:
  cargo:install
  antrun:run
  cargo:start
post-integration-test:
  cargo:stop

The cargo:install is configured with a ZipUrlInstaller that downloads an
archive of JBoss with an 'ejb3' configuration from an internal web
server.  The subsequent antrun:run task tailors that config with
settings specific to the build.

My problem is that I can't figure out how to mandate the order of the
goals in the pre-integration-test phase.  Depending on which plugin
comes first in the POM, I get either

  antrun:run
  cargo:install
  cargo:start

or:

  cargo:install
  cargo:start
  antrun:run

Neither of which works for me, of course.  What am I doing wrong?  Do I
have to list the cargo plugin twice, once before and after the antrun
plugin?  I'd rather not duplicate that much configuration, if I can help
it.

Thanks,
Jim

-
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: Skipping Tests but Still Compiling

2007-01-30 Thread Mark Hewett

On 1/30/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:

That is not true. Maven will still compile the test classes, but only if
they have changed since the last compilation. To force maven to compile even
if there were no changes run a clean first.

Bashar


Doesn't seem to for me...


mvn -Dmaven.test.skip=true clean install

lines deleted
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
lines deleted

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



RE: Skipping Tests but Still Compiling

2007-01-30 Thread Bashar Abdul Jawad
Try to add the compile plugin if it isn't there already:

plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId
/plugin

Bashar


-Original Message-
From: Mark Hewett [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 4:13 PM
To: Maven Users List
Subject: Re: Skipping Tests but Still Compiling

On 1/30/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
 That is not true. Maven will still compile the test classes, but only if
 they have changed since the last compilation. To force maven to compile
even
 if there were no changes run a clean first.

 Bashar

Doesn't seem to for me...

mvn -Dmaven.test.skip=true clean install
lines deleted
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
lines deleted

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



Managing Dependent Jars

2007-01-30 Thread Jarret R

I have been trying to make a case for our development environment to
switch to using Maven for our build processes, however I am running
into some problems that I would like to see if anyone has answers too
:).

We want to be able to specify which version of which jar we want to
use. I can solve this by creating a maven proxy and an internal maven
repository, but this leads to my main problem.

Maven repositories are not consistent.

If I look at http://mirrors.ibiblio.org/pub/mirrors/maven2/, I can see
that under hibernate/hibernate the newest version listed is 3.1rc.
However this entry is invalid as it does not contain the dependencies.
This resource [http://mvnrepository.com/artifact/org.hibernate/hibernate]
specifies that 3.2.1ga is available. This is not obvious from looking
at Ibiblio, but when I put this entry into my pom, it almost downloads
(fails on a JTA dependency). What is the best way to determine what
jars are available in the repository?

The core issue is that this inconsistency is unacceptable for our
process. I need to be able to pick any version of a library (including
the newest) and have it 'just work'. How are others handling this? Are
you all writing your own poms for internal repositories? This seems
tedious since Hibernate can have 20+ dependencies that have to be hand
coded into the pom file. This problem also occurs for PostgreSQL since
the latest Maven definition I could find was for 7.x and we are on
8.1.

Another example is the Spring Framework. As far as I can tell, Spring is in:

spring/
springframework/
org/spring
org.springframework/

and so on. Each of these directories contain different collections of
the spring jars. Why are there so many? What is the right one?

Can anyone shed some light on how to manage Maven in a corporate
environment where I need to be able to specify any version of any jar?


Thanks,
Jarret Raim

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



Plugin to create source distribution?

2007-01-30 Thread Phillip Rhodes


I would like to create a distribution of my project.  I would like the 
distribution to include sources, maven files, etc...  Extra credit for 
zip and gz support!


Can someone point me to a plugin that would come close to this 
functionality?


Thanks!
Phillip


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



undefined Dependecy automatically downloaded

2007-01-30 Thread yuubouna

defining artifact needed in my project 
so I write dependencyManagement in parent pom.xml and so inherted by child
pom.

I am wonded, where does the undefined jar came from??
like the following:

M2_REPO/relaxngDatatype/relaxngDatatype
M2_REPO/icu4j/icu4j/3.2/icu4j-3.2.jar
M2_REPO/msv/msv/20020414/msv-20020414.jar

-I like to take this artifact in my dependency list, is the  
dependency
   exclusions  attribute, concerns?

-and how to know what is the dependency groupId (parent) where to write the
exclude attribute?

-- 
View this message in context: 
http://www.nabble.com/undefined-Dependecy-automatically-downloaded-tf3146370s177.html#a8722330
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: Plugin to create source distribution?

2007-01-30 Thread Tony Ambrozie

Have you tried the assembly plugin (maven-assembly-plugin, version 2.2 or
2.2-SNAPSHOT if you want whole project functionality)?

On 1/30/07, Phillip Rhodes [EMAIL PROTECTED] wrote:



I would like to create a distribution of my project.  I would like the
distribution to include sources, maven files, etc...  Extra credit for
zip and gz support!

Can someone point me to a plugin that would come close to this
functionality?

Thanks!
Phillip


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




RE: Plugin to create source distribution?

2007-01-30 Thread Greg Jones
Phillip,

Have a look at the assembly plugin:

http://maven.apache.org/plugins/maven-assembly-plugin/

In particular, take a look at the predefined descriptors:

http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html

The src descriptor should be what you're looking for.

Cheers,

Greg J.

-Original Message-
From: Phillip Rhodes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 31 January 2007 1:42 PM
To: Maven Users List
Subject: Plugin to create source distribution?


I would like to create a distribution of my project.  I would like the
distribution to include sources, maven files, etc...  Extra credit for zip
and gz support!

Can someone point me to a plugin that would come close to this
functionality?

Thanks!
Phillip


-
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: Are clovered files supposed to be deployed to the remote repo?

2007-01-30 Thread Eric Redmond

Firstly, I hope you're not ever running mvn clean install deploy since
mvn clean deploy is sufficient the first one runs the entire install
cycle twice.

Second, according to the Clover Plugin doc (
http://maven.apache.org/plugins/maven-clover-plugin/), one of its stated
features is Generation of Clovered artifacts into your local repository.
It looks like you have to instrument the project first... so, perhaps you
do not have the clover:instrament goal execution in the pom?
http://maven.apache.org/plugins/maven-clover-plugin/usage.html

Just a guess... I don't use clover.

Eric

On 1/30/07, jp4 [EMAIL PROTECTED] wrote:



The first question I have is whether or not clovered artifacts are
supposed
to be deployed to the remote repo when running mvn clean install
deploy?  I
do not see these clovered artifacts being deployed and wonder if they
should
be.

The reason I ask this is because I am running into a anomoly with my
build.
I run my build locally and it pulls clovered dependencies from the local
repo.  When I run it on our build server with the same exact
configuration,
it attempts to find the clovered artifacts from our development repository
instead of the local repo?  As a result, the build fails since clovered
files are not deployed to the development repo.

Any insight would be greatly appreciated.

Thanks,
jp4
--
View this message in context:
http://www.nabble.com/Are-clovered-files-supposed-to-be-deployed-to-the-remote-repo--tf3143783s177.html#a8714082
Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
Eric Redmond
http://codehaus.org/~eredmond


Re: Managing Dependent Jars

2007-01-30 Thread Eric Redmond

The official repository location is http://repo1.maven.org/maven2/ ... check
out the hibernate data there (upgrade to at least maven 2.0.4).

Also: you must set up an in-house repository[1]. This is not really optional
for an enterprise setup... where else can you put your own generated
artifacts for all to use? If you find discrepencies in public repository
setups, having your own repository is the best way to control that (in which
case, yes, you may have to put a hand-written pom w/ real dependencies in
there). It's also necessary when you require the ability to share a
closed-source or licensed artifact through-out the org. Luckly the cases of
this in practice are kind of rare. Once your repo is up, you won't have to
touch it too often. Plus, think of Ant... you have to manually grab the
dependencies for those - so it's not like you're doing MORE work.

A good proxy (about 8 months old) is Proximity[2]. If you want something
sanctified by the Maven team, check out Archiva[3][4] (still in development,
but usable).

[1] http://www.devx.com/Java/Article/32386
[2] http://proximity.abstracthorizon.org/
[3] http://maven.apache.org/archiva/
[4] http://coderoshi.blogspot.com/2006/12/apache-archiva-part-one.html

Eric

On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:


I have been trying to make a case for our development environment to
switch to using Maven for our build processes, however I am running
into some problems that I would like to see if anyone has answers too
:).

We want to be able to specify which version of which jar we want to
use. I can solve this by creating a maven proxy and an internal maven
repository, but this leads to my main problem.

Maven repositories are not consistent.

If I look at http://mirrors.ibiblio.org/pub/mirrors/maven2/, I can see
that under hibernate/hibernate the newest version listed is 3.1rc.
However this entry is invalid as it does not contain the dependencies.
This resource [http://mvnrepository.com/artifact/org.hibernate/hibernate]
specifies that 3.2.1ga is available. This is not obvious from looking
at Ibiblio, but when I put this entry into my pom, it almost downloads
(fails on a JTA dependency). What is the best way to determine what
jars are available in the repository?

The core issue is that this inconsistency is unacceptable for our
process. I need to be able to pick any version of a library (including
the newest) and have it 'just work'. How are others handling this? Are
you all writing your own poms for internal repositories? This seems
tedious since Hibernate can have 20+ dependencies that have to be hand
coded into the pom file. This problem also occurs for PostgreSQL since
the latest Maven definition I could find was for 7.x and we are on
8.1.

Another example is the Spring Framework. As far as I can tell, Spring is
in:

spring/
springframework/
org/spring
org.springframework/

and so on. Each of these directories contain different collections of
the spring jars. Why are there so many? What is the right one?

Can anyone shed some light on how to manage Maven in a corporate
environment where I need to be able to specify any version of any jar?


Thanks,
Jarret Raim

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





--
Eric Redmond
http://codehaus.org/~eredmond


Re: maven-javadoc-plugin, generate javadoc using different jvm from w hat is set in java.home

2007-01-30 Thread Maria Odea Ching

Hi Pratik,

I don't think the javadoc plugin supports this yet. Currently, the 
plugin uses the javadoc.exe version
based on the java version you specified in your JAVA_HOME environment 
variable.


Btw, there's already an open issue for this feature:
http://jira.codehaus.org/browse/MJAVADOC-98

Hope this helps! :-)

Thanks,
Deng

Parikh, Pratik P. wrote:


Hi Everyone,

   Is there a way to configure the javadoc.exe in the javadoc-plugin, I
have a java.home which is set to java 1.4 and I am using java 1.6 for a
given project. Is there a way to configure this in the pom.xml?

Thanks,
Pratik



-
Confidentiality Notice: This e-mail transmission 
may contain confidential or legally privileged 
information that is intended only for the individual 
or entity named in the e-mail address. If you are not 
the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. 

If you have received this e-mail transmission in error, 
please reply to the sender, so that we can arrange 
for proper delivery, and then please delete the message 
from your inbox. Thank you.



 




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



Re: plugin/dependencies question

2007-01-30 Thread Maria Odea Ching

Hi Rebecca,

Please refer to http://maven.apache.org/pom.html for details about this.
I think there's a brief explanation there (Build Settings -- The 
BaseBuild Element Set -- Plugins)

about the difference of those two dependencies elements :-)

Hope this helps!

Thanks,
Deng

Rebecca Searls wrote:


What is the intended use of project/build/plugins/plugin/dependencies
as compared to project/dependencies?

One would assume project/build/plugins/plugin/dependencies
are plugin specific in scope; that project/dependencies are
active project wide in scope.

And one would expect that if project/dependencies are
accessable as artifacts then project/build/plugins/plugin/dependencies
would be accessable as artifacts by some means as well but
where or how?

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



Using pom as a dependency

2007-01-30 Thread anita kulshreshtha
   Can a  pom be used as dependency? If yes, a compile scope will add
it to the classpath. Are maven utilities/plugins designed to ignore pom
files in the classpath? An example of such a pom is here:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/openejb/server/3.0-incubating-SNAPSHOT/server-3.0-incubating-20070127.005531-23.pom
   We at Geronimo are experiencing strange behaviors with this pom and
would appreciate any insight.

Thanks in Advance
Anita  


 

Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

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



Re: Managing Dependent Jars

2007-01-30 Thread Jarret R

Thanks for the reply. I am currently just testing this process out
locally to build a case to use Maven, so I haven't set everything up
yet, but I will take a look at the proxies.

I took a look at the main repository and it seems to have some of the
same issues I had mentioned earlier. I understand the requirement to
hand build some POMs, but I'm still seeing Spring in three or four
different places. Is there a standard version to use?

I do somewhat disagree with the statement that this would be harder
with ANT. In ANT, I can just drop the dependencies into my lib/ folder
and they are picked up. Tracking them down is usually not an issue
since most major projects come with their own dependencies. Converting
the 20+ libs references in Hibernate requires me to look up each one
in the Maven repository to get the correct references and I might have
to add those if they don't exist yet. All in all, it seems much more
painful than a standard ANT set up, at least in this respect.

I do still think that a Mavenized build has a lot to recommend even if
some of the dependencies need to be massaged :).

Thanks,
Jarret

On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:

The official repository location is http://repo1.maven.org/maven2/ ... check
out the hibernate data there (upgrade to at least maven 2.0.4).

Also: you must set up an in-house repository[1]. This is not really optional
for an enterprise setup... where else can you put your own generated
artifacts for all to use? If you find discrepencies in public repository
setups, having your own repository is the best way to control that (in which
case, yes, you may have to put a hand-written pom w/ real dependencies in
there). It's also necessary when you require the ability to share a
closed-source or licensed artifact through-out the org. Luckly the cases of
this in practice are kind of rare. Once your repo is up, you won't have to
touch it too often. Plus, think of Ant... you have to manually grab the
dependencies for those - so it's not like you're doing MORE work.

A good proxy (about 8 months old) is Proximity[2]. If you want something
sanctified by the Maven team, check out Archiva[3][4] (still in development,
but usable).

[1] http://www.devx.com/Java/Article/32386
[2] http://proximity.abstracthorizon.org/
[3] http://maven.apache.org/archiva/
[4] http://coderoshi.blogspot.com/2006/12/apache-archiva-part-one.html

Eric

On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:

 I have been trying to make a case for our development environment to
 switch to using Maven for our build processes, however I am running
 into some problems that I would like to see if anyone has answers too
 :).

 We want to be able to specify which version of which jar we want to
 use. I can solve this by creating a maven proxy and an internal maven
 repository, but this leads to my main problem.

 Maven repositories are not consistent.

 If I look at http://mirrors.ibiblio.org/pub/mirrors/maven2/, I can see
 that under hibernate/hibernate the newest version listed is 3.1rc.
 However this entry is invalid as it does not contain the dependencies.
 This resource [http://mvnrepository.com/artifact/org.hibernate/hibernate]
 specifies that 3.2.1ga is available. This is not obvious from looking
 at Ibiblio, but when I put this entry into my pom, it almost downloads
 (fails on a JTA dependency). What is the best way to determine what
 jars are available in the repository?

 The core issue is that this inconsistency is unacceptable for our
 process. I need to be able to pick any version of a library (including
 the newest) and have it 'just work'. How are others handling this? Are
 you all writing your own poms for internal repositories? This seems
 tedious since Hibernate can have 20+ dependencies that have to be hand
 coded into the pom file. This problem also occurs for PostgreSQL since
 the latest Maven definition I could find was for 7.x and we are on
 8.1.

 Another example is the Spring Framework. As far as I can tell, Spring is
 in:

 spring/
 springframework/
 org/spring
 org.springframework/

 and so on. Each of these directories contain different collections of
 the spring jars. Why are there so many? What is the right one?

 Can anyone shed some light on how to manage Maven in a corporate
 environment where I need to be able to specify any version of any jar?


 Thanks,
 Jarret Raim

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




--
Eric Redmond
http://codehaus.org/~eredmond




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



How to check value of a variable is numeric?

2007-01-30 Thread Nalaka Gamage
Hi All,

I am using Maven 1.o.

I there a way to check if the value of a variable is numeric in Maven?

 

If not is it possible to use Ant call (if any) ?

 

Quick response is highly appreciated.

 

Regards,

Nalaka

 



Re: Managing Dependent Jars

2007-01-30 Thread Wayne Fay

The problem with Spring being in multiple places etc is really not the
Maven team's fault, but rather the Spring group's responsibility.
Without looking too hard into the details, I'd guess they initially
picked groupId spring, then springframework, then org.spring, and
finally org.springframework for their groupIds. However, Maven has a
strict once published, never changed policy for artifacts etc so
they couldn't just consolidate all those old artifacts (under the old
groupIds) into the latest Spring groupId. Hopefully, going forward,
the Spring group (and other similar groups) will decide on one single
groupId (per group/product) to reduce confusion in the community.

Look for the most recent version of Spring in the various places you
mentioned -- in all likelihood, only one of those groupIds will have
the latest builds, and they have probably finally decided to use that
groupId rather than the others.

This is really not much of a problem once you start using Maven2 and
standardize on particular versions of various artifacts. I doubt
anyone will need to use Spring 1.2.1 for example when 2.0 is
available, so you won't need to ever access those older /spring etc
artifacts.

Wayne

On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:

Thanks for the reply. I am currently just testing this process out
locally to build a case to use Maven, so I haven't set everything up
yet, but I will take a look at the proxies.

I took a look at the main repository and it seems to have some of the
same issues I had mentioned earlier. I understand the requirement to
hand build some POMs, but I'm still seeing Spring in three or four
different places. Is there a standard version to use?

I do somewhat disagree with the statement that this would be harder
with ANT. In ANT, I can just drop the dependencies into my lib/ folder
and they are picked up. Tracking them down is usually not an issue
since most major projects come with their own dependencies. Converting
the 20+ libs references in Hibernate requires me to look up each one
in the Maven repository to get the correct references and I might have
to add those if they don't exist yet. All in all, it seems much more
painful than a standard ANT set up, at least in this respect.

I do still think that a Mavenized build has a lot to recommend even if
some of the dependencies need to be massaged :).

Thanks,
Jarret

On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:
 The official repository location is http://repo1.maven.org/maven2/ ... check
 out the hibernate data there (upgrade to at least maven 2.0.4).

 Also: you must set up an in-house repository[1]. This is not really optional
 for an enterprise setup... where else can you put your own generated
 artifacts for all to use? If you find discrepencies in public repository
 setups, having your own repository is the best way to control that (in which
 case, yes, you may have to put a hand-written pom w/ real dependencies in
 there). It's also necessary when you require the ability to share a
 closed-source or licensed artifact through-out the org. Luckly the cases of
 this in practice are kind of rare. Once your repo is up, you won't have to
 touch it too often. Plus, think of Ant... you have to manually grab the
 dependencies for those - so it's not like you're doing MORE work.

 A good proxy (about 8 months old) is Proximity[2]. If you want something
 sanctified by the Maven team, check out Archiva[3][4] (still in development,
 but usable).

 [1] http://www.devx.com/Java/Article/32386
 [2] http://proximity.abstracthorizon.org/
 [3] http://maven.apache.org/archiva/
 [4] http://coderoshi.blogspot.com/2006/12/apache-archiva-part-one.html

 Eric

 On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:
 
  I have been trying to make a case for our development environment to
  switch to using Maven for our build processes, however I am running
  into some problems that I would like to see if anyone has answers too
  :).
 
  We want to be able to specify which version of which jar we want to
  use. I can solve this by creating a maven proxy and an internal maven
  repository, but this leads to my main problem.
 
  Maven repositories are not consistent.
 
  If I look at http://mirrors.ibiblio.org/pub/mirrors/maven2/, I can see
  that under hibernate/hibernate the newest version listed is 3.1rc.
  However this entry is invalid as it does not contain the dependencies.
  This resource [http://mvnrepository.com/artifact/org.hibernate/hibernate]
  specifies that 3.2.1ga is available. This is not obvious from looking
  at Ibiblio, but when I put this entry into my pom, it almost downloads
  (fails on a JTA dependency). What is the best way to determine what
  jars are available in the repository?
 
  The core issue is that this inconsistency is unacceptable for our
  process. I need to be able to pick any version of a library (including
  the newest) and have it 'just work'. How are others handling this? Are
  you all writing your own poms for internal 

Re: Managing Dependent Jars

2007-01-30 Thread Wayne Fay

As for the comment regarding Hibernate, this is again not the Maven
team's fault, but rather entirely Hibernate's fault.

It is entirely the responsibility of the artifact owner to produce
proper poms. If they fail to do so, the users of those artifacts will
suffer (as you've experienced). The proper response to these troubles
is not to complain loudly about how much Maven sucks etc but rather to
file bugs with the various parties and do your part to help update the
incorrect pom files for the benefit of everyone.

Don't place the blame for these issues on the wrong party... When
Maven works as intended with proper artifacts and poms etc, it is
truly a great thing.

Wayne

On 1/30/07, Wayne Fay [EMAIL PROTECTED] wrote:

The problem with Spring being in multiple places etc is really not the
Maven team's fault, but rather the Spring group's responsibility.
Without looking too hard into the details, I'd guess they initially
picked groupId spring, then springframework, then org.spring, and
finally org.springframework for their groupIds. However, Maven has a
strict once published, never changed policy for artifacts etc so
they couldn't just consolidate all those old artifacts (under the old
groupIds) into the latest Spring groupId. Hopefully, going forward,
the Spring group (and other similar groups) will decide on one single
groupId (per group/product) to reduce confusion in the community.

Look for the most recent version of Spring in the various places you
mentioned -- in all likelihood, only one of those groupIds will have
the latest builds, and they have probably finally decided to use that
groupId rather than the others.

This is really not much of a problem once you start using Maven2 and
standardize on particular versions of various artifacts. I doubt
anyone will need to use Spring 1.2.1 for example when 2.0 is
available, so you won't need to ever access those older /spring etc
artifacts.

Wayne

On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:
 Thanks for the reply. I am currently just testing this process out
 locally to build a case to use Maven, so I haven't set everything up
 yet, but I will take a look at the proxies.

 I took a look at the main repository and it seems to have some of the
 same issues I had mentioned earlier. I understand the requirement to
 hand build some POMs, but I'm still seeing Spring in three or four
 different places. Is there a standard version to use?

 I do somewhat disagree with the statement that this would be harder
 with ANT. In ANT, I can just drop the dependencies into my lib/ folder
 and they are picked up. Tracking them down is usually not an issue
 since most major projects come with their own dependencies. Converting
 the 20+ libs references in Hibernate requires me to look up each one
 in the Maven repository to get the correct references and I might have
 to add those if they don't exist yet. All in all, it seems much more
 painful than a standard ANT set up, at least in this respect.

 I do still think that a Mavenized build has a lot to recommend even if
 some of the dependencies need to be massaged :).

 Thanks,
 Jarret

 On 1/30/07, Eric Redmond [EMAIL PROTECTED] wrote:
  The official repository location is http://repo1.maven.org/maven2/ ... check
  out the hibernate data there (upgrade to at least maven 2.0.4).
 
  Also: you must set up an in-house repository[1]. This is not really optional
  for an enterprise setup... where else can you put your own generated
  artifacts for all to use? If you find discrepencies in public repository
  setups, having your own repository is the best way to control that (in which
  case, yes, you may have to put a hand-written pom w/ real dependencies in
  there). It's also necessary when you require the ability to share a
  closed-source or licensed artifact through-out the org. Luckly the cases of
  this in practice are kind of rare. Once your repo is up, you won't have to
  touch it too often. Plus, think of Ant... you have to manually grab the
  dependencies for those - so it's not like you're doing MORE work.
 
  A good proxy (about 8 months old) is Proximity[2]. If you want something
  sanctified by the Maven team, check out Archiva[3][4] (still in development,
  but usable).
 
  [1] http://www.devx.com/Java/Article/32386
  [2] http://proximity.abstracthorizon.org/
  [3] http://maven.apache.org/archiva/
  [4] http://coderoshi.blogspot.com/2006/12/apache-archiva-part-one.html
 
  Eric
 
  On 1/30/07, Jarret R [EMAIL PROTECTED] wrote:
  
   I have been trying to make a case for our development environment to
   switch to using Maven for our build processes, however I am running
   into some problems that I would like to see if anyone has answers too
   :).
  
   We want to be able to specify which version of which jar we want to
   use. I can solve this by creating a maven proxy and an internal maven
   repository, but this leads to my main problem.
  
   Maven repositories are not consistent.
  
   If I look at 

Re: undefined Dependecy automatically downloaded

2007-01-30 Thread Maria Odea Ching

Hi Yuubouna,

These undefined jars that you were saying were probably the transitive 
dependencies (dependencies of your dependencies).
For more details about exclusions, please refer to 
http://maven.apache.org/pom.html (Pom Relationships -- Dependencies -- 
Exclusions)


Hope this helps! :-)

Thanks,
Deng

yuubouna wrote:

defining artifact needed in my project 
so I write dependencyManagement in parent pom.xml and so inherted by child

pom.

I am wonded, where does the undefined jar came from??
like the following:

M2_REPO/relaxngDatatype/relaxngDatatype
M2_REPO/icu4j/icu4j/3.2/icu4j-3.2.jar
M2_REPO/msv/msv/20020414/msv-20020414.jar

-I like to take this artifact in my dependency list, is the  
dependency

  exclusions  attribute, concerns?

-and how to know what is the dependency groupId (parent) where to write the
exclude attribute?

 




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



Custom packaging type

2007-01-30 Thread Rahamim, Zvi \(Zvi\)
Hi,
I have a new project type,
In this type I need to create a zip file that contain both directory
structure from version control and dependency files (e.g. jars/wars...)
(each file should be copied to a specific path - and this should be
configured in the pom.xml file)
It seems that I need to overwrite the prepare-sources and package and in
addition use the default install and deploy phases.

Can you give me a hint how to start with it?
Thanks!


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



Re: Skipping Tests but Still Compiling

2007-01-30 Thread Wayne Fay

This compile tests but don't run issue was covered just 2 weeks
ago... Please search the archive before posting next time.

from  jp4 [EMAIL PROTECTED]
to  users@maven.apache.org
date  Jan 15, 2007 11:34 AM
subject  Can you compile test cases without running them

Wayne

On 1/30/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:

Try to add the compile plugin if it isn't there already:

   plugin
   groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId
   /plugin

Bashar


-Original Message-
From: Mark Hewett [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 4:13 PM
To: Maven Users List
Subject: Re: Skipping Tests but Still Compiling

On 1/30/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote:
 That is not true. Maven will still compile the test classes, but only if
 they have changed since the last compilation. To force maven to compile
even
 if there were no changes run a clean first.

 Bashar

Doesn't seem to for me...

mvn -Dmaven.test.skip=true clean install
lines deleted
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
lines deleted

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


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




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



RE: Test source dependencies

2007-01-30 Thread Jörg Schaible
Leo Freitas wrote on Tuesday, January 30, 2007 4:24 PM:

 How to fix dependencies among testing code?
 That is, if I have a project B test code that
 depends on project A test code.
 That is, there is abstract/base testing source
 code setup for A that B also uses.
 
 The usual dependency tag (even for test scope)
 would link to B/main/java with A/main/java but
 would not link B/test/java with A/test/java.
 
 That implies in a compilation error if I try to
 run the test cases for B. I thought to use assemblies
 to fix this, but it does not sound right.
 
 Any suggestion?

Use a test-jar artifact: 
http://maven.apache.org/guides/mini/guide-attached-tests.html

- Jörg

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



Re: Custom packaging type

2007-01-30 Thread 秋秋

Hi,
  I think you have met with the same issue with me,I hope the following
configuration can help you:
--builder jar and war--
build
 sourceDirectorysrc/main/java/sourceDirectory
 testSourceDirectorysrc/test/testSourceDirectory
 outputDirectorytarget/classes/outputDirectory
 testOutputDirectorytarget/test-classes/testOutputDirectory
 resources
  resource
   directorysrc/main/java/directory
   includes

--this comfiguration can package the xml file which are distribute the
different directory with .java files together--


include**/*.xml/include
   /includes
  /resource
  resource

--directory  appoint the file's address--

   directorysrc/main/config/ejb/directory

--targetPathappoint the address where you want to package--

   targetPathMETA-INF//targetPath

--includeappoint whick files you want to  package--

   includes
include*.xml/include
   /includes
  /resource
  resource
   directorysrc/main/config/biz/directory
   includes
include*/include
   /includes
  /resource
  resource
   directorysrc/main/process/directory
   targetPath.//targetPath
  /resource
 /resources


2007/1/31, Rahamim, Zvi (Zvi) [EMAIL PROTECTED]:


Hi,
I have a new project type,
In this type I need to create a zip file that contain both directory
structure from version control and dependency files (e.g. jars/wars...)
(each file should be copied to a specific path - and this should be
configured in the pom.xml file)
It seems that I need to overwrite the prepare-sources and package and in
addition use the default install and deploy phases.

Can you give me a hint how to start with it?
Thanks!


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




[m2] using 3rdParty PlugIn

2007-01-30 Thread SoftwareEngineering Hauschel

Hi all,
how can I deploy a 3rdPartyPlugIn in my Repo?
I have a maven-xyz-plugin-1.0.jar .

Fredy


RE: provided dependency packaged into war

2007-01-30 Thread hermod.opstvedt
Hi

Don't use provided - Use :

optionaltrue/optional


This will add an entry in the claspath section of the meta-inf.xml file, but 
not add it to the web-inf/libdirectory

Hermod

-Original Message-
From: Ivan Strohner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 6:15 PM
To: users@maven.apache.org
Subject: provided dependency packaged into war


Hello,

I am packaging a war archive and list dependency in pom file:
dependency
groupIdjavax.servlet/groupId
artifactIdjsp-api/artifactId
version2.0/version
scopeprovided/scope
/dependency

the problem is that jsp-api-2.0.jar (and also servlet-api-2.4.jar) get
packaged into WEB-INF/lib even though that they are always mentioned as
provided dependencies.

Our project depends on multiple other our projects. One of them is another
war, which gets merged into our war. Other are simple jars. jsp-api is
mentioned as dependency in some of them, but always as provided.

My intention is to package only our jars into WEB-INF/lib. I want to keep the
third party ones in server lib. The primary project is called non_combustion.
It depends on our cms_classes and cms_web projects and some others, such as
dsutil_web. These depend on many other libraries, especially spring and
related.

Rough structure:

non_combustion (war)
  jsp-api (provided)
  dsutil_web (jar) (compile)
jsp-api (provided)
..
  cms_web (war) (compile)
depends on jsp-api (provided)
cms_classes (jar) (compile)
..
  ..

I did proper clean and install of all these project into local repository.
When I do mvn package -X on non_combustion I get a war file with jsp-api
in WEB-INF/lib. However other libraries (such as spring) are not packaged
(just as I wanted).

If I search the debug output for the package command for jsp-api I get the
parts below. From them it is clear that jsp-api is everywhere mentioned as
provided, but in the final step it is included in the WEB-INF/lib.

Could anyone help? Is this a bug? If some additional info is required I can
send it (the log below is 180KB long). I am just starting with maven so I ask
here first before submitting a bug report or other.

I am using maven 2.0.4 installed recently.

Thanks for any answers,
Ivan


...
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] sk.digitalsystems:non_combustion:war:1.1.2.0-SNAPSHOT (selected for 
null)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs_spring: using locally installed snapshot
[DEBUG]   sk.digitalsystems:perobs_spring:jar:1.1.4.0-SNAPSHOT:compile 
(selected for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] perobs: using locally installed snapshot
[DEBUG] sk.digitalsystems:perobs:jar:1.1.9.0-SNAPSHOT:compile (selected for 
compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil: using locally installed snapshot
[DEBUG]   sk.digitalsystems:dsutil:jar:1.1.7.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] cms_classes: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms_classes:jar:1.1.0.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG] Skipping disabled repository central
[DEBUG] dsutil_web: using locally installed snapshot
[DEBUG] sk.digitalsystems:dsutil_web:jar:1.1.2.0-SNAPSHOT:compile (selected 
for compile)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]   javax.servlet:jsp-api:jar:2.0:provided (selected for provided)
[DEBUG] javax.servlet:servlet-api:jar:2.4:provided (selected for provided)
[DEBUG] Skipping disabled repository central
[DEBUG] cms: using locally installed snapshot
[DEBUG]   sk.digitalsystems:cms:war:1.1.2.0-SNAPSHOT:compile (selected for 
compile)
[DEBUG] Retrieving parent-POM: org.acegisecurity:acegi-security-parent::1.0.3 
for project: null:acegi-security:jar:1.0.3 from the repository.
[DEBUG]   org.acegisecurity:acegi-security:jar:1.0.3:provided (selected for 
provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-support:jar:1.2.8 from the repository.
[DEBUG] org.springframework:spring-support:jar:1.2.8:provided (selected for 
provided)
[DEBUG] commons-codec:commons-codec:jar:1.3:provided (selected for provided)
[DEBUG] commons-logging:commons-logging:jar:1.0.4:provided (selected for 
provided)
[DEBUG] log4j:log4j:jar:1.2.9:provided (selected for provided)
[DEBUG] commons-lang:commons-lang:jar:2.1:provided (selected for provided)
[DEBUG] commons-collections:commons-collections:jar:3.1:provided (selected 
for provided)
[DEBUG] Retrieving parent-POM: org.springframework:spring-parent::1.2.8 for 
project: null:spring-remoting:jar:1.2.8 from the repository.
[DEBUG] org.springframework:spring-remoting:jar:1.2.8:provided (selected 
for provided)
[DEBUG] Retrieving parent-POM: 

Re: Maven Webstart Plugin - some remarks

2007-01-30 Thread Jerome Lacoste

Please use the MOJO mailing list for comments on a MOJO project plugin.

On 1/30/07, Mark Donszelmann [EMAIL PROTECTED] wrote:

Hi

I am using the 1.0-alpha-1 version of the Maven Webstart Plugin. It
works for us, but I have some questions and remarks:

1. It seems odd to have to define the template.vm in src/jnlp and the
resources in src/main/jnlp.
Should the locations not be src/main/jnlp (for template.vm) and src/
resources/jnlp for the resources?


this is fixed in 1.0-alpha-2-SNAPSHOT


2. It would be handy if the $version could be added to the jnlp
parsed values.


this is fixed in 1.0-alpha-2-SNAPSHOT


3. We use jar references as jar href=... download=lazy
part=.../ which can only be handled
at this time by hardcoding them into template.vm and not using
$dependencies.


You can probably hardcode them in template.vm and use an excludes

Let me know how this works out.


4. Is there a way to auto-unzip the generated webstart application
into target/site so that the application
can be deployed with the site (for simple webstart apps only).


Try with the dependency plugin.

http://maven.apache.org/plugins/maven-dependency-plugin/

J

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