RE: to include test jar dependencies not working
Hi Jörg, if i use test-jar it doesnt work.but classifier picks up the file from local repository and puts file into my web-inf/lib. Though test jar is identified by classifier and put in web-inf/lib ,non test jar gets ignored and not put in web-inf/lib because maven finds the test xyz-1.0-SNAPSHOTS-tests.jar based on classifier but puts it under web-inf/lib as xyz-1.0-SNAPSHOTS.jar and not with original name. Regards Raju Jörg Schaible wrote: > > > Hi Raju, > > use type "test-jar" and omit the classifier here. > > - Jörg > > raju wrote on Wednesday, April 04, 2007 11:08 AM: > >> Hi, >> >> I have to include 2 jars say xyz-1.0-SNAPSHOTS.jar and >> xyz-1.0-SNAPSHOTS-tests.jar as dependencies while building a war. >> As both are installed with the same groupid and artifact id in the >> local-repositorys as part of build that builds them,say: >> com.example xyz >> >> Now if i use the following as dependencies while building my >> war only the >> test jar gets included in web-inf/lib with the name >> xyz-1.0-SNAPSHOTS.jar and the orgininal non test jar >> xyz-1.0-SNAPSHOTS.jar gets ignored : >> com.example >> xyz >> 1.0-SNAPSHOT >> runtime >> >> >> com.example >> xyz >> 1.0-SNAPSHOT >> tests >> runtime >> >> >> Regards >> Raju > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/%3Ctype%3E-to-include-test-jar-dependencies-not-working-tf3524698s177.html#a9834827 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 include test jar dependencies not working
Hi, I have to include 2 jars say xyz-1.0-SNAPSHOTS.jar and xyz-1.0-SNAPSHOTS-tests.jar as dependencies while building a war. As both are installed with the same groupid and artifact id in the local-repositorys as part of build that builds them,say: com.example xyz Now if i use the following as dependencies while building my war only the test jar gets included in web-inf/lib with the name xyz-1.0-SNAPSHOTS.jar and the orgininal non test jar xyz-1.0-SNAPSHOTS.jar gets ignored : com.example xyz 1.0-SNAPSHOT runtime com.example xyz 1.0-SNAPSHOT tests runtime Regards Raju -- View this message in context: http://www.nabble.com/%3Ctype%3E-to-include-test-jar-dependencies-not-working-tf3524698s177.html#a9833516 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-clover-plugin not instrumenting test classes
Hi, I am trying to instrument code using maven-clover-plugin.But it seems to instrument code only under src/main and not under src/test even though i am specifying filter using src/test/java/**/*IntegrationTest.java. I wanted to package the instrumented test classes as part of web-application to check whether this could be helpful in achieving coverage for webapplications using clover and weblogic. Regards Raju -- View this message in context: http://www.nabble.com/maven-clover-plugin-not-instrumenting-test-classes-tf3512942s177.html#a9810621 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using maven-war-plug-in with clover
Hi, I am building a war with Maven 2 and deploying it to weblogic.The war contains junit tests for in-container testing and invoking the tests from a browser.How does one instrument the war with clover? Regards Raju -- View this message in context: http://www.nabble.com/Using-maven-war-plug-in-with-clover-tf3503771s177.html#a9785370 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-assembly-plugin to build simple jar
Hi martijn, I have my project pom.xml which has pacakaging as war.within this pom.xml i need to build a jar and place the file to a certain folder Raju Martijn Dashorst wrote: > > why don't you use a packaging of type 'jar'? > > Martijn > > On 4/1/07, raju <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I just need to build a jar file containing the class files from a >> directory. >> There are too many elements as part of the plugin. >> >> Please provide me a pom snippet to achieve just jarring of files based on >> a >> pattern-set.Currently i am using ant jar task for the same and calling >> that >> with antrun-plugin. >> >> Thanks in advance >> Raju >> -- >> View this message in context: >> http://www.nabble.com/Maven-assembly-plugin-to-build-simple-jar-tf3500378s177.html#a9775773 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Learn Wicket at ApacheCon Europe: http://apachecon.com > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.5 will keep your server alive. Download Wicket now! > http://wicketframework.org > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven-assembly-plugin-to-build-simple-jar-tf3500378s177.html#a9785164 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-assembly-plugin to build simple jar
Hi, I just need to build a jar file containing the class files from a directory. There are too many elements as part of the plugin. Please provide me a pom snippet to achieve just jarring of files based on a pattern-set.Currently i am using ant jar task for the same and calling that with antrun-plugin. Thanks in advance Raju -- View this message in context: http://www.nabble.com/Maven-assembly-plugin-to-build-simple-jar-tf3500378s177.html#a9775773 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 Cargo to build and deploy Junit Integration Tests
Hi Napolean, Thanks for the detailed reply and the additional links.It is a lot clearer to me now. I was able to run integration-phase(without using cargo for it) with clover. But i have some related queries: Will i be still be able to use clover reports with cargo for in-container testing to get reports for the tests after they are run inthe container? Any option to access the Integrations tests through web browser as cargo deploys the test war with certain web-context). Regards Raju Napoleon Esmundo Ramirez-2 wrote: > > Hello Raju, > > The cargo-maven2-plugin has the ability to start and stop the container, > and > it can also deploy the war to the container. This enables you to achieve > in-container testing using junit. The sample pom.xml Kalle provided us > shows that the cargo plugin starts the container at the > pre-integration-test > phase and stops the container at the post-integration-test phase. The > junit > test cases are executed in the integration-test phase (between the > start/stop of the container), giving you the container environment you > need > for the junit tests during their execution. An important thing to > consider > is that the junit test cases must be placed in a directory other than the > src/main/test in order to prevent maven2 executing them in the test phase > (when the container isn't started yet). > > Other examples include the web ui tests for archiva and continuum, > http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-webapp-test/pom.xmland > http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/pom.xmlrespectively. > > You can also read on the cargo-maven2-plugin at > http://cargo.codehaus.org/Maven2+plugin for more details. > > Cheers! > Nap > > On 3/28/07, raju <[EMAIL PROTECTED]> wrote: >> >> >> Hi Kalle, >> >> Thanks for the link.I have some doubts: >> >> Does cargo plug-ins actually run or has ability to run the integration >> tests >> or it just starts the servers,deploys the war containing the tests? >> Sorry if the question sounded out of context. >> >> I am asking the above question because i was trying to achieve >> in-container >> testing for junit tests.Thought of cactus initially but JunitEE seems to >> be >> better but that doesnt have a Maven plugin.Maybe need do an ant call from >> within Maven? >> >> Regards >> Raju >> >> >> Kalle Korhonen-2 wrote: >> > >> > http://svn.codehaus.org/trails/trunk/trails/examples/simple/pom.xml >> > >> > Kalle >> > >> > On 3/27/07, raju <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Hi, >> >> >> >> I need to build and deploy Junit Integration tests to weblogic and run >> >> the >> >> integration tests.I think cargo plug-in helps one achieve that. >> >> >> >> A sample pom file to achieve this would be of great help.Server could >> be >> >> anything. >> >> >> >> >> >> Once deployed as a war i need to invoke the tests using the webapp >> .Any >> >> suggestion on this. >> >> >> >> Has anyone tried out something on similar lines. >> >> >> >> Thanks in advance. >> >> >> >> Regards >> >> Raju >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9707277 >> >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9713129 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9715150 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 Cargo to build and deploy Junit Integration Tests
Hi Kalle, Thanks for the link.I have some doubts: Does cargo plug-ins actually run or has ability to run the integration tests or it just starts the servers,deploys the war containing the tests? Sorry if the question sounded out of context. I am asking the above question because i was trying to achieve in-container testing for junit tests.Thought of cactus initially but JunitEE seems to be better but that doesnt have a Maven plugin.Maybe need do an ant call from within Maven? Regards Raju Kalle Korhonen-2 wrote: > > http://svn.codehaus.org/trails/trunk/trails/examples/simple/pom.xml > > Kalle > > On 3/27/07, raju <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I need to build and deploy Junit Integration tests to weblogic and run >> the >> integration tests.I think cargo plug-in helps one achieve that. >> >> A sample pom file to achieve this would be of great help.Server could be >> anything. >> >> >> Once deployed as a war i need to invoke the tests using the webapp .Any >> suggestion on this. >> >> Has anyone tried out something on similar lines. >> >> Thanks in advance. >> >> Regards >> Raju >> >> -- >> View this message in context: >> http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9707277 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9713129 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 Cargo to build and deploy Junit Integration Tests
Hi, I need to build and deploy Junit Integration tests to weblogic and run the integration tests.I think cargo plug-in helps one achieve that. A sample pom file to achieve this would be of great help.Server could be anything. Once deployed as a war i need to invoke the tests using the webapp .Any suggestion on this. Has anyone tried out something on similar lines. Thanks in advance. Regards Raju -- View this message in context: http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9707277 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integration Testing With Maven
Hi, I am trying Integration testing for the first time in Maven. I need to write a profile to integrate test dependencies into build and deploy build locally and then run integration tests with Clover ON for code coverage. Any examples or ideas on achieving the same? Thanks and regards Raju -- View this message in context: http://www.nabble.com/Integration-Testing-With-Maven-tf3465352s177.html#a9668380 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 build to run Cactus test with clover
Hi, I am working on Using Maven and cactus along with Clover for Integration testing.Has anyone tried out something on similar lines. It could be great if someone could provide a simple example for the same or some useful links where i could find some examples. Regards Raju -- View this message in context: http://www.nabble.com/Maven-build-to-run-Cactus-test-with-clover-tf3412700s177.html#a9508994 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: Unjarring Jars declared as Maven Dpendencies
Hi dan, had a look at maven-dependency-plugin.can we unjar only based on exact groupid and artifactid or does it work in case i want to unpack say just jars with some *-source" in thier artifactid names. Regards Raju dan tran wrote: > > maven-dependency-plugin is your pal :-) > > -D > > > On 1/12/07, raju <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> Currently i am using ant unjar task to unjar all jar files in a given >> folder.I am invoking this from maven using maven-antrun-plugin.Its >> working >> fine.But i need to unjar specific jars in a repository. >> >> Is there any way i can refer to maven dependencies and unjar files based >> on >> group-id and artifactid combination for example.Suppose for example i >> want >> to unjar all maven dependencies say with combination >> "{groupid}-{*-source}.i.e all artifact ids ending with -source for >> example. >> >> >> Regards >> Raju >> -- >> View this message in context: >> http://www.nabble.com/Unjarring-Jars-declared-as-Maven-Dpendencies-tf2970512s177.html#a8312091 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Unjarring-Jars-declared-as-Maven-Dpendencies-tf2970512s177.html#a8317174 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unjarring Jars declared as Maven Dpendencies
Hi, Currently i am using ant unjar task to unjar all jar files in a given folder.I am invoking this from maven using maven-antrun-plugin.Its working fine.But i need to unjar specific jars in a repository. Is there any way i can refer to maven dependencies and unjar files based on group-id and artifactid combination for example.Suppose for example i want to unjar all maven dependencies say with combination "{groupid}-{*-source}.i.e all artifact ids ending with -source for example. Regards Raju -- View this message in context: http://www.nabble.com/Unjarring-Jars-declared-as-Maven-Dpendencies-tf2970512s177.html#a8312091 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 Compiler plugin
Hi , Thanks everybody for your suggestions. I was able to compile the same using ant-run-plugin and invoking javac task from within maven.Maybe i was not setting element properly in maven.Now i am able to compile using maven-compiler-plugin also. But is there a way i can chain life cycle phase.For example i am using generate-sources for ant-run-plugin with run goal and compile with goal as compile for maven-compiler-plugin . Regards Raju franz see wrote: > > Good day to you, Raju, > > I agree with Dawn. It is most likely a simple compilation error on your > java files ( and you probably used -X or --debug which would explain why > that stacktrace was shown. note: your code did not throw the exception, > maven did ). Check the output logs on your console again, you will see the > compilation error. > > Furthermore, AFAIK, using a non-existing parameter under the plugin's > configuration tag will not produce any error. But it will not warn you of > such as well. > > Anyway, just check the output log in your console again and you would most > probably see there the compilation error on your java files. > > Cheers, > Franz > > > raju wrote: >> >> Hi Wendy, >> >> I just wanted to compile some java files in a source folder and move >> compiled files to some destination directory.I have put this under build >> section of pom file only.I gave just after >> element.It says compiling n number of files then throws this compilation >> error. >> >> Regards >> Raju >> >> >> >> Wendy Smoak-3 wrote: >>> >>> On 1/11/07, raju <[EMAIL PROTECTED]> wrote: >>>> >>>> Hi, >>>> I am trying to compile files in a folder and move them to a directory. >>>> It >>>> gives the following error: >>>> Diagnosis: Compilation failure >>>> FATAL ERROR: Error executing Maven for a project >>>> org.apache.maven.BuildFailureException: Compilation failure >>>> at >>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) >>>> Read a lot of similar messages but am not clear what exactly causes >>>> this. >>>> >>>>maven-compiler-plugin >>>> >>>> >>>> >>>> >>>>compile >>>> >>>> compile >>>> >>>> >>>> wrappers >>> >>> I don't see 'sourceDirectory' as a configuration element for the compile >>> goal: >>> http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html >>> >>> It's actually a child element of : >>> http://maven.apache.org/ref/2.0.4/maven-model/maven.html >>> >>> In general, each module can have only one sourceDirectory and one >>> testSourceDirectory. >>> >>> What are you trying to do? >>> >>> -- >>> Wendy >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Maven-Compiler-plugin-tf2958588s177.html#a8292760 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 Compiler plugin
Hi Wendy, I just wanted to compile some java files in a source folder and move compiled files to some destination directory.I have put this under build section of pom file only.I gave just after element.It says compiling n number of files then throws this compilation error. Regards Raju Wendy Smoak-3 wrote: > > On 1/11/07, raju <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I am trying to compile files in a folder and move them to a directory. It >> gives the following error: >> Diagnosis: Compilation failure >> FATAL ERROR: Error executing Maven for a project >> org.apache.maven.BuildFailureException: Compilation failure >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) >> Read a lot of similar messages but am not clear what exactly causes this. >> >>maven-compiler-plugin >> >> >> >> >>compile >> >> compile >> >> >> wrappers > > I don't see 'sourceDirectory' as a configuration element for the compile > goal: > http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html > > It's actually a child element of : > http://maven.apache.org/ref/2.0.4/maven-model/maven.html > > In general, each module can have only one sourceDirectory and one > testSourceDirectory. > > What are you trying to do? > > -- > Wendy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Maven-Compiler-plugin-tf2958588s177.html#a8292724 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 Compiler plugin
Hi, I am trying to compile files in a folder and move them to a directory. It gives the following error: Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) Read a lot of similar messages but am not clear what exactly causes this. maven-compiler-plugin compile compile wrappers target/classes Regards Raju -- View this message in context: http://www.nabble.com/Maven-Compiler-plugin-tf2958588s177.html#a8276651 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoking ant java Task from Maven or similar approaches in MAVEN
Hi , Currently I am invoking java org.apache.xalan.xslt.Process using an ant build file in order to generate output based on XSL.IS there any way i can do the same in MAVEN or maybe call this ant script from within MAVEN POM. Regards Raju -- View this message in context: http://www.nabble.com/Invoking-ant-java-Task-from-Maven-or-similar-approaches-in-MAVEN-tf2924117s177.html#a8173529 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]