RE: How to get Maven to include "persistence.xml" into a web app??

2007-08-28 Thread Bram de Kruijff
Hi Julien,

you can configure aditional resources through the war plugin.

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filteri
ng-webresources.html 

So you need something like this

 
 
   org.apache.maven.plugins
maven-war-plugin

  

  false
  ${basedir}/src/main/config-flex
  
**/**
  

  

  

regards,
Bram

--
Bram de Kruijff
Product Architect

GX
open for business
 
t: 024 - 388 82 61
f: 024 - 388 86 21
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
www.gx.nl

KvK: 10044410 

> -Original Message-
> From: Julien Martin [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 28, 2007 1:30 PM
> To: Maven Users List
> Subject: Re: How to get Maven to include "persistence.xml" 
> into a web app??
> 
> The problem is that I have to use an existing path i.e.
> (MyProject\src\conf\persistence.xml) and cannot change that
> Is there not a way to modify the POM in order for it to 
> include my persistence.xml??
> Sorry I am a real beginner at Maven...
> Julien.
> 
> 2007/8/28, ben short <[EMAIL PROTECTED]>:
> >
> > I think you can just create /src/main/webapp/META-INF and 
> put it in there.
> >
> > On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> > > Thanks Ben,
> > > Is there not a way to put it (persistence.xml) into 
> meta-inf instead?
> > > Julien.
> > >
> > > 2007/8/28, ben short <[EMAIL PROTECTED]>:
> > > >
> > > > persistence.xml needs to be on the class path doesn't it?
> > > >
> > > > Create a directory src/main/java/resources and put it in there. 
> > > > When maven packages up your war it will put all files in the 
> > > > resources directory into your war file under the 
> WEB-INF/classes directory.
> > > >
> > > > Hope this helps.
> > > >
> > > > Ben
> > > >
> > > >
> > > > On 8/28/07, Julien Martin <[EMAIL PROTECTED]> wrote:
> > > > > Hello all,
> > > > > How do I get Maven to include "persistence.xml" into 
> a web app??
> > > > > Any clue welcome!
> > > > > Julien.
> > > > >
> > > > > Here is my POM:
> > > > >
> > > > >
> > > > > http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > > > > http://www.w3.org/2001/XMLSchema-instance
> > "  xsi:schemaLocation="
> > > > > http://maven.apache.org/POM/4.0.0
> > > > http://maven.apache.org/maven-v4_0_0.xsd";>
> > > > > 4.0.0
> > > > > com.calyonfinancial
> > > > > protide
> > > > > war
> > > > > 1.0-SNAPSHOT
> > > > > ProtideWeb
> > > > > 
> > > > > src
> > > > > build
> > > > > ProtideWeb
> > > > > 
> > > > > 
> > > > > maven-compiler-plugin
> > > > > 
> > > > > 1.5
> > > > > 1.5
> > > > > 
> > > > > 
> > > > > 
> > > > > org.apache.maven.plugins
> > > > > maven-war-plugin
> > > > > 2.0
> > > > > 
> > > > > 
> web
> > > > > 
> > > > > 
> > > > > 
> > > > > org.codehaus.mojo
> > > > > 
> hibernate3-maven-plugin
> > > > > 2.0-alpha-2
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > org.hibernate
> > > > > hibernate
> > > > > 3.2.1.ga
> > > > > 
> > > > > 
> > > > > org.hibernate
> > > > > hibernate-annotations
> > > > > 3.2.1.ga
> > > > > 
> > > > > 
> > > > > org.hibernate
> > > > > hibernate-entitymanager
> > > > >  

How to set parent version in archetype

2007-05-29 Thread Bram de Kruijff
Hi,

any ideas on how to solve this use-case?

In my project I have an archetype for plugins into my platform with
version x.y.z. When someone uses the archetype the resulting module
should have as parent my 'plugin base artifact' of the correct version.
Eg:

>> archetype-resource/pom.xml


  4.0.0
  
platform
platform-plugin
x.y.z
  
  ${groupId}
  ${artifactId} 


But I don't want to hardcode the platform version as it is always the
version of the archetype artifact itself eg. ${pom.version} and the
release plugin will not update it. But the maven-plugin packaging will
not filter it at build time (for obvious reasons) so ${pom.version} is
no good.

Now if I configure the archetype resources to filter the
archetype-resources/pom.xml it will filter all variables like groupId
which is obviously no good. Or can I escape these?

Unfortunaly also using ${archetypeVersion} or even ${what.ever} as
parameter and adding this with -D on the commandline when creating a
project based on this archetype doesn't seem te work. The variable
simply does not get replaced.

Any tips would be appriciated! :)

regards,
Bram


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



RE: How to run " rsync -v -t -l -r mirrors.ibiblio.org::maven2 /your/local/path "

2007-05-24 Thread Bram de Kruijff
> but when I run rsync -v -t -l -r mirrors.ibiblio.org::maven2 
> /your/local/path on commandline, it can't be execute,there is 
> no  " rsync " command,

It is not part of maven. You have to install it on your machine 1st.

http://samba.anu.edu.au/rsync/ 

regards,
Bram 

> -Original Message-
> From: sam [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 24, 2007 12:05 PM
> To: Maven Users List
> Subject: How to run " rsync -v -t -l -r 
> mirrors.ibiblio.org::maven2 /your/local/path "
> 
> Hi,
>  In maven's site:
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>  Creating your own mirror
> 
> The central repository requires around 10 GB and growing, and 
> it's updated every 4 hours.
> 
> You can mirror the central repository using rsync from 
> several mirrors, choose one
> 
> rsync -v -t -l -r mirrors.ibiblio.org::maven2 
> /your/local/path rsync -v -t -l -r 
> rsync://rsync.cica.es/maven2 /your/local/path
> 
> but when I run rsync -v -t -l -r mirrors.ibiblio.org::maven2 
> /your/local/path on commandline, it can't be execute,there is 
> no  " rsync " command,
> 


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



RE: Maven2 compiler out of memory error

2007-05-22 Thread Bram de Kruijff
 Hi Pier,

> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError

not sure about the mem settings for the compiler plugin, but my
OutOfMemoryError problems disappeared when I set the MAVEN_OPTS environment
variable.

eg.

MAVEN_OPTS="-Xmx1024m -Xms512m"
export MAVEN_OPTS


regards,
Bram

> -Original Message-
> From: Pier Mauro Vignati [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 22, 2007 3:36 PM
> To: users@maven.apache.org
> Subject: Maven2 compiler out of memory error
> 
> Hi,
>  I've a problem when I'm trying to compile a new version of 
> my application.
> 
> fooApp_1.0 has 1905 files, and Maven compiles it right
> dooApp_1.1 has 1985 files, and whenI try to compile it with 
> Maven (btw, when compiling with Eclipse works fine), I'm 
> receive  the following error:
> 
> org.apache.maven.BuildFailureException : Compilation failure 
> Failure executing javac,  but could not parse the error:
> 
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError
> 
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:5
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> lWithLifecycle
> (DefaultLifecycleExe
> or.java :480)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:45
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> lAndHandleFailures(DefaultLifecycl
> 
> ecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas
> kSegments
> (DefaultLifecycleExecutor
> va:278)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java :143)
> at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at 
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at org.codehaus.classworlds.Launcher.launch 
> (Launcher.java:255)
> at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
> :430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> 
> 
> In my pom.xml I'd configured the JDK as:
> 
> org.apache.maven.plugins
> maven-compiler-plugin
>  2.1-SNAPSHOT
> 
> 
> ${JAVA_1_4_HOME}/bin/javac
> true
>  1.4
> 1.4
> 128m
> 1024m
> false
> 
> 
> 
> (I got the same error with version 2.0.2 and 2.0.1)
> 
> 
> I've also an drt watson file, with
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> #  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x080c15d5, 
> pid=896, tid=3920 # # Java VM: Java HotSpot(TM) Client VM 
> (1.4.2_12-b03 mixed mode) # Problematic frame:
> # V  [jvm.dll+0xc15d5]
> #
> ..
> VM Arguments:
> jvm_args: -Dapplication.home=C:\Java\1.4.2_12 -Xms8m 
> -Xmx1224m -Xms512m
> java_command: 
> [EMAIL PROTECTED]:/Temp/org.codehaus.plexus.compiler.
> javac.JavacCompiler54296arguments
> Launcher Type: SUN_STANDARD
> .
> 
> Any idea ?
> 
> Regards
> Pier.
> 


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



RE: Howto enable 1.1 xml-rpc service in plexus application

2007-04-19 Thread Bram de Kruijff
Hi Emmanule,

thanks for your reply. I see now that it is trying to start xmpl-rpc but it
gets a bindException because the default port is in use.

But now when I try to config it in application.xml like before it breaks
during startup. Can you please explain how to configure it in? I use
continuum-20070419.03.tar.gz at this point.

I have this in the application.xml:


  xml-rpc
  

  19205


  
org.apache.maven.continuum.xmlrpc.ContinuumXmlRpc
continuum
  

  



The wrapper fails with this cause:

INFO   | jvm 1| 2007/04/19 10:41:12 | Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.codehaus.plexus.appserver.service.PlexusService [xml-rpc] (lookup realm:
ClassRealm[plexus.core, parent: null]).

thanks,
Bram


> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 19, 2007 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Howto enable 1.1 xml-rpc service in plexus application
> 
> It's always there and configured in application.xml
> 
> Bram de Kruijff a écrit :
> > Hi,
> > 
> > when I was running continuum-20070323.15 plexus application I 
> > noticed that my xml-rpc service was gone. Looking at the 
> trunk source 
> > it seems that it totally gone from the application.xml en the 
> > application doesnt contain the service either. So two questions...
> > 
> > Is it supposed to be gone and how do I get my xml-rpc 
> interface back?
> > 
> > thanks,
> > Bram
> > 
> > 
> > 



Howto enable 1.1 xml-rpc service in plexus application

2007-04-18 Thread Bram de Kruijff
Hi,

when I was running continuum-20070323.15 plexus application I
noticed that my xml-rpc service was gone. Looking at the trunk source it
seems that it totally gone from the application.xml en the application
doesnt contain the service either. So two questions...

Is it supposed to be gone and how do I get my xml-rpc interface back?

thanks,
Bram


Assembly descriptor format 2.1?

2007-03-21 Thread Bram de Kruijff
Hi all,

does anyone know a good assembly descriptor description and/or tutorial
and/or (non trivial) examples for version 2.1? I need to get rid of
SNAPSHOT deps so I'm trying to move back from 2.2-SNAPSHOT to 2.1 but
things fall apart :(

regards,
Bram

FYI


release

dir

false
false

   

mygroupId:myartifactId:war


/
false
false







[ERROR] BUILD ERROR
[INFO] 
[INFO] Error creating assembly: You must set at least one file.




--
Bram de Kruijff
 creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 

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



Force remove a project? / Continuum status?

2007-03-05 Thread Bram de Kruijff
Hello all,

while I'm waiting for a build that never seems the finish I thought I'd
join this list :)

First, I'd like to know how to force/kill/quit/rm this build.
Something's wrong, don't know what but as long as it is 'building'
Continuum wont let me remove it. I've tried stop/starting continuum but
it remains in the 'building' status :S What to do? Should I get myself a
new continuum or can I fix this? 

extra info: 
  1) Using Continuum 1.0.3 
  2) the project that is stuck is the root module of a multiproject
build
  3) scm connection is ok

Second, I was just wondering on the development status of Continuum. I
think it's a pretty cool tool but, as JIRA shows, there could be some
improvements. Is development still active? If so, when do you guys
expect to get to 1.1?

regards,
Bram

--
Bram de Kruijff
 creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 


unable to resolve artifact that is in local repo?

2007-02-22 Thread Bram de Kruijff
jectBuilder.findModelFromReposit
ory(DefaultMavenProjectBuilder.java:528)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
DefaultMavenProjectBuilder.java:228)
at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(D
efaultPluginManager.java:252)
... 20 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
System is offline.

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.2-SNAPSHOT


at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:172)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:73)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit
ory(DefaultMavenProjectBuilder.java:482)
... 22 more



--
Bram de Kruijff
 creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 

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



RE: how to include directory in my war

2007-01-18 Thread Bram de Kruijff
> I have made a portlet and want to inculde a FCKEditor in my 
> firstportlet.
> for this I have to copie a FCKEditor directory in my base dir.
>  
> what do I have to change to include this directory in my war?

Hi erik,

the war plugin lets you specify extra resources. Have a look at..

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-w
ebresources.html

regards,
Bram


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



RE: Assembly problem

2006-12-11 Thread Bram de Kruijff
Hi Bob,

http://www.nabble.com/Assembly-problem-tf2776265s177.html#a7744926

regards,
Bram
 

> -Original Message-
> From: Bob Arnott [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 11, 2006 11:39 AM
> To: Maven Users List
> Subject: Assembly problem
> 
> Hello list, I've got an issue with the assembly plugin, I'm 
> getting this
> error:
> 
> [INFO] [assembly:assembly]
> [INFO] 
> --
> --
> [ERROR] BUILD ERROR
> [INFO] 
> --
> --
> [INFO] Error reading descriptor
> 
> Embedded error: Unrecognised tag: 'dependencySets' (position: 
> START_TAG seen ...\r\n  >... @58:25)
> [INFO] 
> --
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error 
> reading descriptor
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> ls(DefaultLifecycleExecutor.java:559)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeSta
> ndaloneGoal(DefaultLifecycleExecutor.java:488)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> l(DefaultLifecycleExecutor.java:458)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> lAndHandleFailures(DefaultLifecycleExecutor.java:306)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas
> kSegments(DefaultLifecycleExecutor.java:219)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De
> faultLifecycleExecutor.java:140)
>  at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>  at 
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  at 
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: 
> Error reading descriptor
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:839)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:814)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.readAsse
> mblies(AbstractAssemblyMojo.java:742)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.execute(
> AbstractAssemblyMojo.java:233)
>  at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau
> ltPluginManager.java:412)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> ls(DefaultLifecycleExecutor.java:534)
>  ... 16 more
> Caused by: 
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: 
> Unrecognised tag: 'dependencySets' (position: START_TAG seen 
> ...\r\n... @58:25)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseModuleBinaries(AssemblyXpp3Reader.java:1022)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseModuleSet(AssemblyXpp3Reader.java:1103)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseAssembly(AssemblyXpp3Reader.java:393)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.read(AssemblyXpp3Reader.java:1717)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.read(AssemblyXpp3Reader.java:1728)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:829)
>  ... 21 more
> 
> Now 
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly
> .html says that I can have a  like:
> 
> 
>bin
>
>  tar.gz
>  zip
>
>
>  
>
>  ${groupId}:${artifactId}
>  ${groupId}:${artifactId}
>
>
>  
>  
>
>  libs
>  runtime
>  
>${groupId}:${artifactId}
>  
>
>  
>
>  
>
> 
> 
> Is the documentation wrong...? Basically I've got a multi 
> module build and I would like one binary and one source 
> assembly. I've got the source one, that was easy, but I would 
> like

RE: Assembly problem

2006-12-07 Thread Bram de Kruijff
Hi Bob,

may I suggest using an editor that understand/validates xml? Eg. eclipse,
jEdit or just good old vim ;) The assembly xml u posted below is not well
formed 

regards,
Bram

> -Original Message-
> From: Bob Arnott [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 07, 2006 6:36 PM
> To: Maven Users List
> Subject: Assembly problem
> 
> Hello list, I've got an issue with the assembly plugin, I'm 
> getting this
> error:
> 
> [INFO] [assembly:assembly]
> [INFO] 
> --
> --
> [ERROR] BUILD ERROR
> [INFO] 
> --
> --
> [INFO] Error reading descriptor
> 
> Embedded error: Unrecognised tag: 'dependencySets' (position: 
> START_TAG seen ...\r\n  >... @58:25)
> [INFO] 
> --
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error 
> reading descriptor
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> ls(DefaultLifecycleExecutor.java:559)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeSta
> ndaloneGoal(DefaultLifecycleExecutor.java:488)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> l(DefaultLifecycleExecutor.java:458)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> lAndHandleFailures(DefaultLifecycleExecutor.java:306)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas
> kSegments(DefaultLifecycleExecutor.java:219)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De
> faultLifecycleExecutor.java:140)
>  at 
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>  at 
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  at 
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: 
> Error reading descriptor
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:839)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:814)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.readAsse
> mblies(AbstractAssemblyMojo.java:742)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.execute(
> AbstractAssemblyMojo.java:233)
>  at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau
> ltPluginManager.java:412)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa
> ls(DefaultLifecycleExecutor.java:534)
>  ... 16 more
> Caused by: 
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: 
> Unrecognised tag: 'dependencySets' (position: START_TAG seen
>   ...\r\n... @58:25)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseModuleBinaries(AssemblyXpp3Reader.java:1022)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseModuleSet(AssemblyXpp3Reader.java:1103)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.parseAssembly(AssemblyXpp3Reader.java:393)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.read(AssemblyXpp3Reader.java:1717)
>  at 
> org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Re
> ader.read(AssemblyXpp3Reader.java:1728)
>  at 
> org.apache.maven.plugin.assembly.AbstractAssemblyMojo.getAssem
> bly(AbstractAssemblyMojo.java:829)
>  ... 21 more
> 
> Now 
> http://maven.apache.org/plugins/maven-assembly-plugin/assembly
> .html says that I can have a  like:
> 
> 
>bin
>
>  tar.gz
>  zip
>
>
>  
>
>  ${groupId}:${artifactId}
>  ${groupId}:${artifactId}
>
>
>  
>  
>
>  libs
>  runtime
>  
>${groupId}:${artifactId}
>  
>
>  
>
>  
>
> 
> 
> Is the documentation wrong...? Basically I've got a multi 
> module build and I would like one b

RE: mvn and JUnit 4.1

2006-12-07 Thread Bram de Kruijff
> Hi, we use JUnit 4.1 in eclipse, but when we run the tests 
> from the cmd line with mvn, it seems to fail and not use 
> JUnit 4.1 but it uses the old 3.8.1.
> 
> Is there some way to force mvn to use JUnit 4.1?
> 
> The mvn release is 2.0.4 we are using.

Hi Davis,

there is no support AFAIK. You can monitor this issue here:

http://jira.codehaus.org/browse/SUREFIRE-31

regards,
Bram



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



assembly: howto exclude basedirectory when unpacking binaries

2006-12-07 Thread Bram de Kruijff
Hello all,

in my assembly I want to include and unpack a war binary of a moduleset
in the root directory of the assembly. Unfortunaltly it always unpacks
the war in a subdirectory with the artifactId/finalName as name.

Is there anyway I can tell it not to do that?

Eg.
  
 
groupId:artifactId:war
 
 
/
false
true
 
  

  ... results in...

%assemblydir%/%artifactId%/WEB-INF/...

  ... but I need ...

%assemblydir%/WEB-INF/...


regards,
Bram

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



RE: How Do I Deploys The Sources To The Repository

2006-11-07 Thread Bram de Kruijff
Hi Yves,

try this : 

mvn clean source:jar install 

regards,
Bram


> -Original Message-
> From: Yves Van Steen [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 07, 2006 4:59 PM
> To: 'Maven Users List'
> Subject: How Do I Deploys The Sources To The Repository
> 
> Hey,
> 
>  
> 
> I can generate a jar containing the source files of a 
> project.  But how do I configure it to deploy the source jar 
> to the repo?
> 
> I need this because I would like to use the download sources 
> setting of the eclipse plugin for my own projects.
> 
> So far I have found nothing that would accomplish this task.
> 
>  
> 
> Thanks for any assistance.
> 
> Yves
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.13.30/521 - Release 
> Date: 7/11/2006
>  
> 


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



How to execute just one script?

2006-10-19 Thread Bram de Kruijff
Hello,

is it possible to execute just one script without going through the
build lifecycle? In my case I'd like to run and re-run an ant script
without building and certainly not installing and/or deploying(!) any
artifacts.

just something like 'mvn cleanmycachedir' or something like that :)

regards,
Bram

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



RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?

2006-08-30 Thread Bram de Kruijff
> Though it seems unusual to refer it as local, it did not 
> work. I am not sure If took right steps, may be someone else 
> give some pointers on this ?

Define 'did not work'. What seems to go wrong? I think Maven does not know
(or care) wether it's a local or mounted disk. So if it doesn't work
something is wrong in your sharing configuration or the env variable
substitution.

Still when you get this to work there may be some problem when using this
with multiple developers.

1) If a developer has read-only permission and builds a project that
requires an aditional artifact it fails because it can't save the file.
Effectively it's like running mvn in offline mode.

2) Alternatively when you give all developers write permission there may be
some funny race conditions when multiple clients add the same artifact to
the shared repository.

Anyway, just add a 'clean_respository.bat' if it bothers you I'd say ;)

cheers,
Bram


> -Original Message-
> From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 30, 2006 1:10 PM
> To: Maven Users List
> Subject: RE: How to disable creation of cache repository 
> under c:\Document s an d Settings\user\m2\.. ?
> 
> I created a network first to try it out instead of webserver, 
> but unfortunately it did not work :
> What I did was :
> 
>   - created a network share on server.
>   - assigned write permissions on that to me 
> only, everyone read.
>   - create a environment variable in OS - WinXP
>   - and refer that environment variable in settings.xml
> 
>   ${serverShareName}
> 
> On this share, I had already placed all repository contents.
> 
> Though it seems unusual to refer it as local, it did not 
> work. I am not sure If took right steps, may be someone else 
> give some pointers on this ?
> 
> Regards.  
> 
> -Original Message-
> From: Nick Stolwijk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 4:20 PM
> To: Maven Users List
> Subject: Re: How to disable creation of cache repository 
> under c:\Document s an d Settings\user\m2\.. ?
> 
> 
> I tried to say, that the programs run by Maven2 needs the jar files 
> locally. i.e. when you use Maven to compile something it calls javac 
> with a classpath set to the jar files specified in your POM. 
> Javac uses 
> the classpath to locate the jar files and as far as I know, 
> Javac can't 
> work with remote files.
> 
> What you can do is try to do create a network share and put 
> the "local" 
> repository there. I don't have any experience with this, but 
> I think it 
> may work.
> 
> HTH,
> 
> Nick Stolwijk
> 
> Sharma, Jaikumar wrote:
> > Does it mean that maven2 can not retrieve artifacts (jars etc) from 
> > remote repositories ? Or something else ? Regards.
> > 
> > -Original Message-
> > From: Nick Stolwijk [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 30, 2006 4:07 PM
> > To: Maven Users List
> > Subject: Re: How to disable creation of cache repository under
> > c:\Documents an d Settings\user\m2\.. ?
> > 
> > 
> > I don't think that the programs that are run by Maven2 
> (like javac and
> > java) can use remote jar files, so they have to be present on the
> local 
> > hard disk.
> > 
> > HTH,
> > 
> > Nick Stolwijk
> > 
> > Sharma, Jaikumar wrote:
> >> Is there a way to disable creation of cache repository under
> >> c:\documents and setting\user\m2\... ? I have configured local 
> >> intranet repository for plugins and dependencies.
> >>  
> >> I want this to be downloaded everytime user runs build and not to
> >> cumulate everything on every machine under C:\Documents and 
> >> Settings\user\m2\..
> >>  
> >> Thanks.
> >>  
> >> Regards.
> >>  
> >>  
> >>  
> >>  
> >> - - - - - - - DISCLAIMER- - - - - - - -
> >> Unless indicated otherwise, the information contained in 
> this message
> >> is privileged and confidential, and is intended only for 
> the use of 
> >> the
> >> addressee(s) named above and others who have been specifically
> > authorized to
> >> receive it. If you are not the intended recipient, you are hereby
> > notified
> >> that any dissemination, distribution or copying of this message 
> >> and/or attachments is strictly prohibited. The company accepts no 
> >> liability
> > for any
> >> damage caused by any virus transmitted by this email. Furthermore, 
> >> the company does not warrant a proper and complete transmission of 
> >> this information, nor does it accept liability for any 
> delays. If you
> 
> >> have received this message in error, please contact the sender and 
> >> delete
> > the
> >> message. Thank you.
> >>
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > - - - - - - - DISCLAIMER- - - - - - - -
> > Unless indicated otherwise, the information contained in 
> this message 
> > is privileged and 

RE: snapshots in local repository after install?

2006-07-27 Thread Bram de Kruijff
> Not sure why it would be different for your two environments, 
> but you need to specify unique version to false to avoid the 
> timestamp being appended, e.g.:
> 
>   
> 
>   ...
>   false
>   ...
> 
>   

That looks like what I want to do, but how to set this for the
localRepository as defined in my settings.xml?

> Looks like you might have different pom files since one is 
> version 9.0.0 and the other is -SNAPSHOT.

No, same pom. The version is 9.0.0-SNAPSHOT but in the latter case SNAPSHOT
is substituded with a real timestamp in the localRepository.

regards,
Bram


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



POM variable reference?

2006-07-27 Thread Bram de Kruijff
Hi,

can anyone direct me to a reference/tutorial on build-in parameters? I'm
hoping to find out how I can reference the root basedir of a
multiproject build. Didn't find it on the Maven site, Google or the
Better builds.. book :(

regards,
Bram

--
Bram de Kruijff
 creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 

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



snapshots in local repository after install?

2006-07-04 Thread Bram de Kruijff
Hi all,

on my continuum (linux) server I'm running out off diskspace fast
because each build (mvn clean install) produces an actual snapshot (eg
george-9.0.0-20060531.111546-5.jar) in the local repository.

This is not what happens on my (windows) workstation. Here each build
(mvn clean install) produces the same '-SNAPSHOT' extension so that it
overwrites the previous and doesn't waste any space.

Both machines build on the same code, both use maven 2.0.4 / continuum
1.0.3 / JDK1.5.0_x / Tomcat 5.5.17 So what is the difference, how can I
configure my ci not to produce real snapshots in my local repository?

regards,
Bram

--
Bram de Kruijff
 creative online development B.V.
 
t: 024 - 3888 261
f: 024 - 3888 621
e: [EMAIL PROTECTED]
 
Wijchenseweg 111
6538 SW Nijmegen
http://www.gx.nl/ 

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



RE: jarring non class files

2006-06-22 Thread Bram de Kruijff
> In some organizations its not as simple as that :).

rebel! :P ... but seriously how about this


  src/java
  

  src
  
  java/**/*.java
  

  


Note that you can always check what your 'effective pom' will look like by
running 'mvn help:effective-pom'

grz
Bram

> -Original Message-
> From: Jeff Mutonho [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 22, 2006 5:26 PM
> To: Maven Users List
> Subject: Re: jarring non class files
> 
> On 6/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > And moving the directories around is not possible... why not?? Most 
> > projects I'm using Maven with at this point were created before we 
> > started using Maven2, and we simply moved things around to 
> conform to 
> > Maven's expectations. Subversion is nice like that.
> >
> 
> In some organizations its not as simple as that :).
> 
> > Wayne
> >
> > On 6/22/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> > > On 6/22/06, Bram de Kruijff <[EMAIL PROTECTED]> wrote:
> > > > > Under  my src directory I have  2 other folders .One contains 
> > > > > other subfolders with my java code(src/java/com/blah blah
> > > > > blah) .The second subfolder (src/spring/context/blah blah
> > > > > blah...) contains some spring config files (xml) that I also 
> > > > > wish to be bundled in the jar file( keeping the directory 
> > > > > structure  intact).How do I specify this in my pom?
> > > >
> > > > Assuming you have /src/main/java/com/blah and default jar 
> > > > packaging. Just put the second directory under 
> src/main/resources 
> > > > and your done. No need to edit the pom.
> > > >
> > > > grz
> > >
> > > Nope.This an existing project that was created before adoption of 
> > > maven , hence the directory structure is different from the 
> > > /src/main/java format :(
> > >
> > > 
> 
> > > - 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]
> >
> >
> 
> 
> -- 
> 
> 
> Jeff  Mutonho
> 
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
> 
> -
> 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: jarring non class files

2006-06-22 Thread Bram de Kruijff
> Under  my src directory I have  2 other folders .One contains 
> other subfolders with my java code(src/java/com/blah blah 
> blah) .The second subfolder (src/spring/context/blah blah 
> blah...) contains some spring config files (xml) that I also 
> wish to be bundled in the jar file( keeping the directory 
> structure  intact).How do I specify this in my pom?

Assuming you have /src/main/java/com/blah and default jar packaging. Just
put the second directory under src/main/resources and your done. No need to
edit the pom.

grz
Bram

> -Original Message-
> From: Jeff Mutonho [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 22, 2006 4:35 PM
> To: Maven Users List
> Subject: jarring non class files
> 
> Under  my src directory I have  2 other folders .One contains 
> other subfolders with my java code(src/java/com/blah blah 
> blah) .The second subfolder (src/spring/context/blah blah 
> blah...) contains some spring config files (xml) that I also 
> wish to be bundled in the jar file( keeping the directory 
> structure  intact).How do I specify this in my pom?
> 
> -- 
> 
> 
> Jeff  Mutonho
> 
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



howto constrain available repositories for specific artifacts?

2006-06-05 Thread Bram de Kruijff
Hi,

is it possible to prevent mvn from checking all (active) repositories
for specific artifacts? For example when I build Apache Felix there is
an aditional repository (apache.snapshots) defined by the project. When
I build it mvn will hit central for each felix artifact (and visa versa)
allthough it will obviously never find anything. Seems like a lot of
senseless trafic/load/time wasting :S Any tips?

best regards,
Bram

ps. Same goes for maven-proxy. It seems to always check all upstream
repositories?

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