Maven Ant's dependencies task supports version range?

2010-01-12 Thread hezjing
Hi May I know if the Maven Ant's dependencies task supports version range? For example instead of artifact:dependencies pathId=dependency.classpath dependency groupId=junit artifactId=junit version=3.8.2 scope=test/ /artifact:dependencies I would like to specify version 3.0 or greater,

Javascript zip dependency management

2010-01-12 Thread John Ericksen
Hello, I have what might be a basic question, but I haven't been able to find a way to accomplish it using Maven. The project I am working on (Braintrain: http://code.google.com/p/braintrain/) uses Maven as the build framework. What I want to do is basically unzip 2 zip files and move the

Re: Maven shade plugin: behavior change from 1.2.2 to 1.3?

2010-01-12 Thread Mat Johns
I think you maybe having the same problem as me. It looks like when specifying a particular set of artifacts to include in the shaded jar ... artifactSet includes includegroupId:artifactId/include /includes /artifactSet ... it excludes the current package from the final shaded jar

Re: m2eclipse plugin does not resolve properties from settings.xml

2010-01-12 Thread Maruf Aytekin
Hi Jeff Thanks for the details. Our projetc is a multi module project and system scoped dependencies defined in parent pom.xml. When I followed your steps plugin imported all sub projects as independent eclipse projects. Is this the way it is suppossed to import multi module projects? The

Re: Javascript zip dependency management

2010-01-12 Thread Stephen Connolly
dependency:unpack or dependency:unpack-dependencies depending on how you reference the artifact 2010/1/12 John Ericksen johncar...@comcast.net: Hello, I have what might be a basic question, but I haven't been able to find a way to accomplish it using Maven.  The project I am working on

Re: m2eclipse plugin does not resolve properties from settings.xml

2010-01-12 Thread Stephen Connolly
FYI scopesystem/scope is deprecated You should really use a maven repository manager and deploy the artifacts there rather than use system scope 2010/1/12 Maruf Aytekin aayte...@gmail.com: Hi Jeff Thanks for the details. Our projetc is a multi module project and system scoped dependencies

Configure compiler plugin to compile at integration-test phase??

2010-01-12 Thread subir.sasikumar
Hi, As part of automating Integration Tests for my project using, I am generating some source codes. To be specific i am using axistools wsdl2java goal to generated stubs. I want to compile those and my client which references these stubs before running integration tests. But now i dont know how

Re: Configure compiler plugin to compile at integration-test phase??

2010-01-12 Thread Stephen Connolly
what's wrong with compiling in the test-compile phase? 2010/1/12 subir.sasiku...@wipro.com: Hi, As part of automating Integration Tests for my project using, I am generating some source codes. To be specific i am using axistools wsdl2java goal to generated stubs. I want to compile those

RE: Configure compiler plugin to compile at integration-test phase??

2010-01-12 Thread subir.sasikumar
I am actually having a war project. Steps I am doing are: A.) process-resources phase unpack the war file and make all configurations for its deployment. B.) using cargo deploy it to tomcat C.) using axistools generate wsdl2java. It uses http urls which can be invoked once the war is deployed

Maven Depolyment Tomcat Java Heap Space

2010-01-12 Thread thobos
Hi i want to deploy my application on Tomcat with Maven 2.0. I think my pom.xml is correct. When i enter mvn tomcat:deploy in the console, the deployment starts but i get an Java Heap Space. view plaincopy to clipboardprint? 1. 2. [INFO] Scanning for projects... 3. [INFO]

Re: Maven Depolyment Tomcat Java Heap Space

2010-01-12 Thread Olivier Lamy
Please use mojo user list. Two questions : - what is the size of your war file ? - what is the content of your env var MAVEN_OPTS ? (if not defined try to increase memory : MAVEN_OPTS=-Xms512m -Xmx512m) HTH, -- Olivier 2010/1/12 thobos boss_tho...@web.de: Hi i want to deploy my application on

Re: Javascript zip dependency management

2010-01-12 Thread Siegfried Goeschl
Hi John, you might have a look at the dependency plugin (and there was a similar question on the mailing list maybe two or three weeks ago) Cheers, Siegfried Goeschl John Ericksen wrote: Hello, I have what might be a basic question, but I haven't been able to find a way to accomplish it

Re: maven-ear-plugin: MEAR-85 patch

2010-01-12 Thread Aleksey Shipilev
All right, the tests and patch is right there in JIRA [1]. Can anybody take a look? Thanks, Aleksey. [1] http://jira.codehaus.org/browse/MEAR-85 On Mon, Jan 11, 2010 at 7:37 PM, Aleksey Shipilev aleksey.shipi...@gmail.com wrote: Hi Wayne, On Mon, Jan 11, 2010 at 7:26 PM, Wayne Fay

Re: Maven Depolyment Tomcat Java Heap Space

2010-01-12 Thread thobos
My war file has a size of 287 mb. set maven_opts: MAVEN_OPTS=-Xms512m -Xmx512m doesn't solve the problem Thanks -- View this message in context: http://old.nabble.com/Maven-Depolyment-Tomcat-Java-Heap-Space-tp27125609p27126424.html Sent from the Maven - Users mailing list archive at

Re: Maven Depolyment Tomcat Java Heap Space

2010-01-12 Thread Jeff MAURY
As you WAR file will be loaded in memory, you should increase to 1Gb. Regards Jeff MAURY On Tue, Jan 12, 2010 at 12:48 PM, thobos boss_tho...@web.de wrote: My war file has a size of 287 mb. set maven_opts: MAVEN_OPTS=-Xms512m -Xmx512m doesn't solve the problem Thanks -- View this

Re: m2eclipse plugin does not resolve properties from settings.xml

2010-01-12 Thread Maruf Aytekin
Thanks for the warning. I will try it. Maruf On Tue, Jan 12, 2010 at 10:48 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: FYI scopesystem/scope is deprecated You should really use a maven repository manager and deploy the artifacts there rather than use system scope

Ordered plugin execution on build phase

2010-01-12 Thread Roman
Hello, I wonder what is the correct way to specify/customize the order for different plugins to execute their goals during a build phase? I want the following order of execution during pre-integration-test phase: plugin1.goal1, plugin2.goal1, plugin1.goal2. What is a correct way to achieve this?

Re: Ordered plugin execution on build phase

2010-01-12 Thread Anders Hammar
You need to use two phases for this. Phase 1: plugin1.goal1 plugin2.goal1 Phase 2: plugin1.goal2 Two goals of the same plugin can't be split but has to be configured together. Related JIRAs: http://jira.codehaus.org/browse/MNG-2258 http://jira.codehaus.org/browse/MNG-2784 /Anders On Tue, Jan

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Ron Wheeler
The grouping of dependencies partially works. I have not found the magic key to getting the dependencies in the dependency group to be provided. Since the jars in the dependency group are shared between all of the war files and will be provided in in a shared Tomcat directory, I do not want

RE: m2eclipse plugin does not resolve properties from settings.xml

2010-01-12 Thread Jeff Jensen
Yes, each POM/project becomes a separate Eclipse project. Did you try using internal? You should really follow on with the m2eclipse user list: http://m2eclipse.sonatype.org/project-information.html -Original Message- From: Maruf Aytekin [mailto:aayte...@gmail.com] Sent: Tuesday,

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Anders Hammar
It should work if you specify scope of 'provided' on the grouping pom dependency. /Anders On Tue, Jan 12, 2010 at 14:00, Ron Wheeler rwhee...@artifact-software.comwrote: The grouping of dependencies partially works. I have not found the magic key to getting the dependencies in the dependency

copy resources does not overwrite existing files

2010-01-12 Thread skanatiker
Hi, i want to copy a resource. That works fine, as long as the file does not exist in the target directory. But in this case the file has to exist in the target directory and has to be overwritten. Here are the two relevant parts of my pom.xml: Integration of Resources-Plugin: plugin

RE : No more com.oracle.ojdbc14-10.2.0.2.0.jar ?

2010-01-12 Thread HARDION Vincent
I'm confident of seeing this jar in a mirror of central. We use a repository Manager (Nexus) which is managed only by myself, the local repositories have never contained this jar I check it from backup I don't know when it has been erased perhaps December 2009. We see it now because we clean

AW: copy resources does not overwrite existing files

2010-01-12 Thread Entner Harald
Hi, try to set the ${maven.resources.overwrite} property. Eg. properties maven.resources.overwritetrue/maven.resources.overwrite /properties Even this means that all resources are overwritten. I haven't tested the solution, so it is not sure that it is working that way (even i'm

Re: Maven Depolyment Tomcat Java Heap Space

2010-01-12 Thread Olivier Lamy
287 mb OUCH !! :-) 2010/1/12 thobos boss_tho...@web.de: My war file has a size of 287 mb. set maven_opts: MAVEN_OPTS=-Xms512m -Xmx512m doesn't solve the problem Thanks -- View this message in context:

Re: AW: copy resources does not overwrite existing files

2010-01-12 Thread skanatiker
Thanks a lot for your quick reply, but unfortunately the file is still not being overwritten. Any other ideas? Entner Harald wrote: Hi, try to set the ${maven.resources.overwrite} property. Eg. properties maven.resources.overwritetrue/maven.resources.overwrite /properties

profile to include different files in jar.

2010-01-12 Thread jeroend
Hi, I assume it's a basic question but I haven't found an suitable answer yet on google/bing and the mail archive so maybe I'm completely on the wrong track. I hope to receive some feedback. Problem is: I have a war which should run Websphere and I also on jetty or tomcat. The war contains a

Re: AW: copy resources does not overwrite existing files

2010-01-12 Thread Olivier Lamy
Hi, Did you put this plugin configuration in pluginManagement section ? 2010/1/12 skanatiker stefan.t...@ipsways.com: Thanks a lot for your quick reply, but unfortunately the file is still not being overwritten. Any other ideas? Entner Harald wrote: Hi, try to set the

Re: AW: copy resources does not overwrite existing files

2010-01-12 Thread skanatiker
Yes, it is located in the pluginManagement section: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId

RE : RE : No more com.oracle.ojdbc14-10.2.0.2.0.jar ?

2010-01-12 Thread HARDION Vincent
Just another thing: The fingerprint sha from central doesn't correspond to the jar I freshly deploy. I had to change the order of repositories in public group in Nexus to shadow central fingerprint. Best Regards, Vincent Hardion Synchrotron Soleil L'Orme des merisiers - Saint Aubin BP48 - 91192

copy resources does not overwrite existing files

2010-01-12 Thread Tomm, Stefan
Hi, i want to copy a resource. That works fine, as long as the file does not exist in the target directory. But in this case the file has to exist in the target directory and has to be overwritten. Here are the two relevant parts of my pom.xml: Integration of Resources-Plugin: plugin

Re: Javascript zip dependency management

2010-01-12 Thread Manos Batsis
John Ericksen wrote: I have what might be a basic question, but I haven't been able to find a way to accomplish it using Maven. The project I am working on (Braintrain: http://code.google.com/p/braintrain/) uses Maven as the build framework. What I want to do is basically unzip 2 zip files

Re: profile to include different files in jar.

2010-01-12 Thread Wayne Fay
Problem is: I have a war which should run Websphere and I also on jetty or tomcat. The war contains a business.jar, which holds Spring configuration, beans etc. Instead of 2 profiles, I would make a few projects. One would be a common WAR with the common elements. Then another WAR depending on

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Ron Wheeler
Anders Hammar wrote: It should work if you specify scope of 'provided' on the grouping pom dependency. /Anders To clarify your point, I understand that I should do the following: In the project pom.xml that creates the war file, I should reference the shared pom as dependency

Re: Configure compiler plugin to compile at integration-test phase??

2010-01-12 Thread Justin Edelson
Is the problem that compiler:testCompile isn't running or that it doesn't find your source files? Justin On Tue, Jan 12, 2010 at 4:21 AM, subir.sasiku...@wipro.com wrote: Hi, As part of automating Integration Tests for my project using, I am generating some source codes. To be specific i

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Anders Hammar
Nope, you define scope as 'provided' for the lms-pom-shared pom. All those transient dependencies will then become 'provided' as well. (However, they should be declared as 'compile' in the actual pom.) This matrix explains it all:

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Justin Edelson
On Tue, Jan 12, 2010 at 10:32 AM, Ron Wheeler rwhee...@artifact-software.com wrote: Anders Hammar wrote: It should work if you specify scope of 'provided' on the grouping pom dependency. /Anders To clarify your point, I understand that I should do the following: In the project pom.xml

Best Practice META-INF

2010-01-12 Thread Sessizlik
Hi all, I want to add version information and a few other timestamps such as latest build number and so on... IMHO it should reside in META-INF folder of the my root web application like this: /META-INF /META-INF/build.xml But when I put that file in my resource folder, it is becoming so

Re: Mojo properties inheritance

2010-01-12 Thread Stefano Fornari
Thanks Wayne, you put me on the right path. I had to specify the dependency with scope provided. In such way, inheritance works. Hope this helps others Ste On Sat, Jan 9, 2010 at 1:45 AM, Wayne Fay wayne...@gmail.com wrote: it looks like it works if the two classes are inside the same project,

Re: Maven POM dependencies in a portal project - provided not enough at compile time

2010-01-12 Thread Ron Wheeler
Once you know the answer, the matrix is accurate but it is too convoluted to be read by someone who does not know the answer already. Each of the scopes (except for import) affects transitive dependencies in different ways, as is demonstrated in the table below. If a dependency is set to the

Re: Best Practice META-INF

2010-01-12 Thread Wayne Fay
1 ) I do not know where my build.xml file should reside? How could we possibly know where it should reside? What do you need to do with that file? 2 ) If /META-INF/build.xml is correct, how can I configure my war plugin to put this file in right location. /WEB-INF/classes/ will be on the

Re: Best Practice META-INF

2010-01-12 Thread Sessizlik
Ok sorry for mistake, Actually I wanted write build.properties. It is nothing than a normal property file. 1 ) I believe that such files should be in /META-INF path. But I want to be sure about this. Is it right path for it? 2 ) If it is right directory, how can I configure my war plugin to

Re: Best Practice META-INF

2010-01-12 Thread Justin Edelson
On Tue, Jan 12, 2010 at 2:18 PM, Sessizlik cem.koc@gmail.com wrote: Ok sorry for mistake, Actually I wanted write build.properties. It is nothing than a normal property file. 1 ) I believe that such files should be in /META-INF path. But I want to be sure about this. Is it right path

Assembly as dependency of the same project

2010-01-12 Thread Cecchi Sandrone
Hi all, I have the following issue... The pom of my project is the following: artifactId: it.mega groupId: streamer version: 1.0.1 1) First of all I generate an Apache CXF web service client into folder target/generated 2) Then I create an assembly (jar) containing the .class files 3) Next the

Re: Assembly as dependency of the same project

2010-01-12 Thread Justin Edelson
Why do you want to do this? It seems like it'd be much simpler to have a separate project to produce the web service client. Justin On Tue, Jan 12, 2010 at 4:24 PM, Cecchi Sandrone cecchisandr...@gmail.comwrote: Hi all, I have the following issue... The pom of my project is the following:

Re: Assembly as dependency of the same project

2010-01-12 Thread Cecchi Sandrone
Just to maintain the things not too complex. Furthermore, the same behavior I described is needed for XmlBeans class generation. I have a set of classes generated from XSDs and I want to package them into a jar and put it as a dependency of the project. justinedelson wrote: Why do you want

Re: Assembly as dependency of the same project

2010-01-12 Thread Stephen Connolly
sounds like by not drinking the coolaid and doing thinks the maven way (separate project) you are making things more complex than necessary Sent from my [rhymes with tryPod] ;-) On 12 Jan 2010, at 21:34, Cecchi Sandrone cecchisandr...@gmail.com wrote: Just to maintain the things not too

RE: Assembly as dependency of the same project

2010-01-12 Thread Lacoste, Dana (EB Software San Diego)
I understand your desire for not wanting things too complex but, in maven, it's important to follow one simple rule: Every pom.xml (maven project) _should_ produce exactly one file as a resulting artifact If you need two files (a .jar and a .war) then you need two pom.xml (maven projects)

Re: Assembly as dependency of the same project

2010-01-12 Thread Justin Edelson
You realize that Drink the Kool-Aid has a negative connotation, right? Although now I'm going to be imagining a young Powers Booth playing Jason in Maven: The Movie. On Tue, Jan 12, 2010 at 4:46 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: sounds like by not drinking the coolaid

RE: Assembly as dependency of the same project

2010-01-12 Thread Cecchi Sandrone
Ok I understand your answers. For this kind of problem you recommend a module or a subproject (parent-child)? Maybe I don't have clear the difference between the two... Dana Lacoste wrote: I understand your desire for not wanting things too complex but, in maven, it's important to follow

Maven compile puts javax.servlet.* in target/classes

2010-01-12 Thread Ryan Stewart
I have a maven project that depends on the servlet-api jar. For some reason, in the compile phase, it's putting the javax.servlet.* classes into target/classes. That is, after mvn process-resources, target/classes/javax doesn't exist, but after mvn compile, it does. There is no javax package in

Re: Assembly as dependency of the same project

2010-01-12 Thread Stephen Connolly
yes, but it's an ironic reference Sent from my [rhymes with tryPod] ;-) On 12 Jan 2010, at 21:52, Justin Edelson justinedel...@gmail.com wrote: You realize that Drink the Kool-Aid has a negative connotation, right? Although now I'm going to be imagining a young Powers Booth playing

Re: Maven compile puts javax.servlet.* in target/classes

2010-01-12 Thread Dennis Lundberg
The servlet-api should have scopeprovided/scope in your dependency declaration. Ryan Stewart wrote: I have a maven project that depends on the servlet-api jar. For some reason, in the compile phase, it's putting the javax.servlet.* classes into target/classes. That is, after mvn

Re: Maven compile puts javax.servlet.* in target/classes

2010-01-12 Thread Wayne Fay
I haven't been able to narrow it down much further than this yet. I'm just completely baffled by this, and I wanted to see if anyone had heard of anything like this before. This is a fun bug that we see on this list a couple times a year. It happens when you've got the javax.servlet.* source

Maven and AspectJ

2010-01-12 Thread Wendy Smoak
A project team has a set of classes that need to be instrumented two different ways with AspectJ, one to work within a webapp and the second to work standalone. The classes are kept inside the webapp module, so processing them during the build to produce the war works okay. What's the best way

Re: Maven and AspectJ

2010-01-12 Thread Kalle Korhonen
Do you mean that you want to weave in compiled aspects to two different modules? If so, that's certainly possible. You are not using aspect terminology which makes it a bit difficult to understand what you actually want to achieve. But assuming I understood you correctly, you'd be using