Re: mvn test phase out of memery issue

2008-10-03 Thread Jinyuan Zhou
I believe that the parameters like heap size is only read at JVM initalizing phase. I guess one cannot change the heap size at run time. This prevents JVM from using up all of system's memories. -Xmx1050m -XX:MaxPermSize=128M is obviously ONLY for the forked JVM related spawned for surefire plugin

maven filtering component usage

2008-10-03 Thread Dan Tran
Hello all, I am current using maven-filtering-beta-1 & 2 to interpolate @{variable} so here is the codesnip // support @{} izpack ant format mavenResourcesExecution.addFilerWrapper( new MavenProjectValueSource( project, true ), "\\@", "(.+?)\\}", "@{", "}" ); The real source is at http://svn.cod

Version conflict resolution and stable builds

2008-10-03 Thread Keith Branton
I've been spending some time trying to get my head around the way version resolution works in 2.0.9. I'm trying to get a sense for the best way to use maven to achieve our objectives: 1. Builds on our CI server that were working should not break unless someone commits a change - in particular ne

RE: mvn test phase out of memery issue

2008-10-03 Thread Martin Gainty
Good Evening Zhou- fairly intuitive to see the new params acting as an initial configuration for forked jvm's but admittedly cannot see how the jvm parameters such as what is identified here -Xmx1050m -XX:MaxPermSize=128Mbeing used in the current VM would be used to 'reconfigure' the current jv

Re: AW: Release fails during SVN commit

2008-10-03 Thread mzgubin
I've discovered one solution that worked for me. I don't know if I have a different problem than was mentioned here, but it was the same error. I did have the same issues mentioned in this thread and tried all sorts of subversion client's. Try fixing the scm configuration first to point to the co

Re: mvn test phase out of memery issue

2008-10-03 Thread Jinyuan Zhou
Thanks, I will try that. Currently I am trying always. It works. But very very slow. We have over a thousand tests. Regards, Jack On Fri, Oct 3, 2008 at 4:15 PM, Matthew McCullough < [EMAIL PROTECTED]> wrote: > > You may need to increase the memory used by the surefire jvm if it is set > to > fo

Re: Migrating non-maven project. Adding dependencies

2008-10-03 Thread Wayne Fay
In short, no. Wayne On Fri, Oct 3, 2008 at 4:25 PM, emma.sender <[EMAIL PROTECTED]> wrote: > > Hi, I'm trying to migrate a project to maven that has all the .jars in a lib > folder relative to the project root folder, and I don't want to have to > specify every .jar in a element... Is there a wa

Migrating project to Maven. Adding dependencies.

2008-10-03 Thread emma.sender
Hi, I'm trying to migrate a project to maven that has all the .jars in a lib folder relative to the project root folder, and I don't want to have to specify every .jar in a element... Is there a way to include lib/*.jar in the classpath? -- View this message in context: http://www.nabble.com/M

Migrating non-maven project. Adding dependencies

2008-10-03 Thread emma.sender
Hi, I'm trying to migrate a project to maven that has all the .jars in a lib folder relative to the project root folder, and I don't want to have to specify every .jar in a element... Is there a way to include lib/*.jar in the classpath? -- View this message in context: http://www.nabble.com/M

Re: mysterious assembly-plugin

2008-10-03 Thread Lee Meador
Try filling in a bit more in your xml file. Also use the information at http://maven.apache.org/plugins/maven-assembly-plugin/usage.html and go down to the example below the heading "Normal Assemblies" to see how the pom should look. Your parts should look like this: src/m

Re: How to aggregate License info

2008-10-03 Thread Matthew McCullough
I think the following might get you on the right track, though they may not be precisely what you are seeking: 1) http://code.google.com/p/maven-license-plugin/ 2) http://mojo.codehaus.org/rat-maven-plugin/ -Matthew McCullough bshepherd wrote: > > I have a requirement to determine all depende

Re: mvn test phase out of memery issue

2008-10-03 Thread Matthew McCullough
You may need to increase the memory used by the surefire jvm if it is set to fork. Here's a config example: org.apache.maven.plugins maven-surefire-plugin 2.3 **/*Test.java once

Assembly Tar: How to exclude directories

2008-10-03 Thread gotama
I'm curious if the Assembly plugin is capable of creating a tar file similar to the following command: find * ! -type d | tar zcvfT $TARFILE - if you exec 'tar ztvf myAssembly.tar.gz' you will see that directories are listed in the tar file. if you create a tar w/ the above command, you will no

mvn test phase out of memery issue

2008-10-03 Thread Jinyuan Zhou
Hello, When I run a test, (mvn test) out of memory happens when run one of the unit test case methed : java.lang.OutOfMemoryError: Java heap space [INFO] [INFO] Total time: 1 minute 20 seconds [INFO] Finished at: Fri Oct 03 1

Re: Dependency licenses

2008-10-03 Thread Wayne Fay
The reply from James @ Atlassian provided the SVN trunk url: https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-licenses-plugin/trunk/ I haven't done it, but I imagine you can check out the code and build/install/use it pretty easily. Wayne On Fri, Oct 3, 2008 at 11:47 AM, bsheph

Re: maven ant tasks and the provided scope

2008-10-03 Thread will vuong
i've managed to work around by hardcoding in the three or four provided scope deps. should i create a jira issue for this? will vuong wrote: > > yes, i've tried changing it to use the runtime scope and it looks like > everything in the runtime scope is copied to the directory. > > > > Brett

Re: Dependency licenses

2008-10-03 Thread bshepherd
I can follow the link in my browser, but how do you check out the code so I can build it. It sounds exactly what I need. Thanks Keith Bonawitz-2 wrote: > > Is there a way to create an assembly that includes a license file for > each dependency (including transitive dependencies)? > > Thanks, >

Re: exec:java arguments vs. commandLineArgs

2008-10-03 Thread Simone Gianni
Hi Trevor, documentation lacks a lot of explanations, but looking at the code it seems like : - If commandLineArgs is specified, it will be used as is, except for replacing %classpath with proper classpath using dependencies - Otherwise if the property exec.args is specified, it will be used - Othe

How to aggregate License info

2008-10-03 Thread bshepherd
I have a requirement to determine all dependencies used in our project and determine what licenses are used. When I use the site:site/site:deploy goals I can select the Dependencies link for reports and get a License section that looks like the following: Licenses SILENTWIRE License 1.0: Sil

Re: scope-import and dependencyManagement

2008-10-03 Thread Stephen Connolly
Nahhh much easier mvn -N install in the directory where your root pom is... that will restrict the build to the current pom only and not build the child modules 2008/10/3 webhiker <[EMAIL PROTECTED]>: > > OK, so that's not the issue I was trying to discuss then. > But for those who had the same

Dependencies without version tag

2008-10-03 Thread Simon Trudeau
I would like to add a dependency to my maven project but have it included WITHOUT the version tag. I am currently running into problems where the comm.jar (javax.comm) library needs to be exactly named that way and cannot be named comm-2.0.3.jar or some other thing because otherwise it fails. This

Re: scope-import and dependencyManagement

2008-10-03 Thread webhiker
OK, so that's not the issue I was trying to discuss then. But for those who had the same problem as I did, I have a solution : if you have the following structure : pom.xml child-project1\pom.xml child-project2\pom.xml If you add in the depManagement to the root pom, the others will not work (i

Re: Determining jar groupId ArtifactId for deploy-file

2008-10-03 Thread solo1970
Thanks Stephen for explaining! Makes lots of sense!!! Sonia Stephen Connolly-2 wrote: > > you are working for ericsson... so com.ericsson.what.ever.you.want > > Or if you are working on a project hosted on dev.java.net you'd use > net.java.dev.projectname > > It's just like package names i

Re: scope-import and dependencyManagement

2008-10-03 Thread Stephen Connolly
I think you are mis-interpreting what I said. You have the following structure /pom.xml (agregator) +suite/pom.xml (the suite dependencies) +client/pom.xml (the client thing we are building) +web/pom.xml (the web ting we are building) If you have only one corporate pom (not shown on the tree)

exec:java arguments vs. commandLineArgs

2008-10-03 Thread Trevor Harmon
In the exec:java goal, what is the difference between and ? The documentation says: arguments: The class arguments commandlineArgs: Arguments for the executed program The difference still isn't clear to me. Trevor - To uns

RE: DependencyManagement to force scope

2008-10-03 Thread softwarepills
I have just remeber my problems with this: in many cases you define the versions with DepencyManagement in a parent POM to align them in all the modules, but, for one child (or via import scope) module you want them to be provided beacause other module provides them. Then, in your child pom you do

Re: scope-import and dependencyManagement

2008-10-03 Thread webhiker
Here's an excerpt from Maven docs about how it should work : dependencyManagement: is used by POMs to help manage dependency information across all of its children. If the my-parent project uses dependencyManagement to define a dependency on junit:junit:4.0, then POMs inheriting from this one can

Re: scope-import and dependencyManagement

2008-10-03 Thread webhiker
Stephen, I don't think you are correct, it IS supposed to be used that way, and that's what all the Maven documentation lists as examples and operating behaviour : http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html I'm having the exact same issue. Using identic

Re: Calling maven.xml from maven.xml (top level dir to several sub dirs)

2008-10-03 Thread Lukas Theussl
Check out the multiproject plugin: http://maven.apache.org/maven-1.x/using/multiproject.html http://maven.apache.org/maven-1.x/plugins/multiproject/ HTH, -Lukas [EMAIL PROTECTED] wrote: I am trying to run maven.xml from another maven.xml - is it possible? Here is the directory structure that

Re: Can't Maven handle dependendies recursively?

2008-10-03 Thread Jörg Schaible
youhaodeyi wrote: > > I didn't define the scope. It should be the default value. Then something is wrong with your POM for P2 ... > > Wendy Smoak-3 wrote: >> >> On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi <[EMAIL PROTECTED]> wrote: >>> I set up a maven project "P1" which depends on the project

Re: Can't Maven handle dependendies recursively?

2008-10-03 Thread youhaodeyi
I didn't define the scope. It should be the default value. Wendy Smoak-3 wrote: > > On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi <[EMAIL PROTECTED]> wrote: >> I set up a maven project "P1" which depends on the project "P2". P2 >> includes >> several dependencies which are used in P1. In this case,