Maven pom xml schema
Hello, I just got maven and expected to find the schema in the distribution or in lib/maven-core-2.0.7-uber.jar. Instead I found it on the http://maven.apache.org/general.html. I also expected to see the header in a comment at the top of the xsd file. Could the schema be included in future please? Regards, Warren. This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How can we replace the artifact created by Maven by another artifact created by antrun ?
Nobody have this kind of problem? Regards Gerald Reinhart On 24/08/2007, Gerald Reinhart [EMAIL PROTECTED] wrote: Hi, Hypothesis: - in a multi-modules project managed by Maven2 - an specific artifact can't be created by Maven2 [1] - this artifact is created by an antrun call [2] - another antrun call replace the fake artifact created by Maven by the right artifact created antrun [2] - the install goal is OK: the right artifact is installed in my repository - another module depends of the artifact of the first module Problem: - when I do an install of the first artifact in my repository and a compile the other module = BUILD SUCCESSFUL [3] - when I do a global build from the parent = BUILD FAILURE [4] On the first build, it's OK because maven resolve the dependency by the local repository. On the second build, it's KO because maven takes the artifact it has created during the global build, so the fake artifact I don't know what to do with that... an idea ? Regards Gerald Reinhart [1] In my context, I have a split weblogic directory, some ant weblogic targets generate EJBs, EJBs Client, WebService and an EAR. It would be a nightmare to transform those ant weblogic target in Maven ( http://edocs.bea.com/wls/docs92/programming/splitcreate.html). The only artifact that other modules of the project needs is a EJB Client Jar. [2] My antrun call create a target/service-ant-client.jar file. my pom.xml: [...] groupIdmyproject/groupId artifactIdservice/artifactId version1.0/version packagingejb/packaging [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient clientExcludes clientExclude**/ejb/*Bean.class/clientExclude /clientExcludes /configuration /plugin [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idantrun_compile/id phasecompile/phase configuration tasks [...] !-- weblogic ant call =target/service- ant-client.jar -- [...] /tasks /configuration goalsgoalrun/goal/goals /execution execution idantrun_package/id phasepackage/phase configuration tasks echoReplace the fake target/service-1.0-client.jargenerated by maven by the service-ant-client.jar generated by weblogic ant targets./echo delete file=target/service- 1.0-client.jar/ copy file=target/service-ant-client.jar tofile= service-1.0-client.jar / /tasks /configuration goalsgoalrun/goal/goals /execution /executions /plugin [...] /project Targets : target/service- 1.0.jar (fake EJB Jar) target/service-1.0-client.jar (fake EJB Client Jar) target/service-ant-client.jar (generated by weblogic ant targets) the pom dependency from another module: dependency groupIdmyproject/groupId artifactIdservice/artifactId version1.0/version typeejb-client/type /dependency [3] mvn -f service\pom.xml clean install mvn -f othermodule\pom.xml clean install = BUILD SUCESSFULL [4] parent pom.xml [...] modules moduleservice/module moduleothermodule/module /modules [...] mvn -f pom.xml clean install
Releasing without running tests
We have a module that requires it to be released, while it does compile fine and works correctly the test cases fail. We just want to release it without running the tests. When I try 'mvn -Dmaven.test.skip=true release:prepare' the tests still run. It seems that the release plugin does some sort of fork or something that doesn't take into account this property. Am I missing something, or will I have to delete the tests from our SCM just to get this release out? Steve Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. http://au.docs.yahoo.com/mail/unlimitedstorage.html
Re: Problemw ith site generation on continuum
I don't see why some reports works and not others. Continuum launch mvn lilke you do it from the command line. Do you use the same user to run continuum and the mvn command line? Emmanuel Marco Mistroni a écrit : hi all, i have a simple mvn2 project that i decided to put on continuum i have configured continuum to run clean install and site targets problem is that when the site is generated, and i go to check the generated reports (By selecting working copy and drilling down to target/site directory), i have following results: - Surefire report works fine - CPD report works fine -PMD report works fine but Cobertura, Javadoc , Source Xref and TestSource Xref ends up with big exception like ClassNOtFoundException here's detail of exception INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: allclasses-frame.html INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154) INFO | jvm 1| 2007/09/17 21:01:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:294) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:525) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) INFO | jvm 1| 2007/09/17 21:01:20 | INFO | jvm 1| 2007/09/17 21:01:20 | 21:01:20.432 WARN!! Exception for /continuum/servlet/TestApp/package-summary.html INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: TestApp INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154) INFO | jvm 1| 2007/09/17 21:01:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:294) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:525) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) INFO | jvm 1| 2007/09/17 21:01:20 | INFO | jvm 1| 2007/09/17 21:01:20 | 21:01:20.873 WARN!! Exception for /continuum/servlet/file=2/target/site/apidocs/index.html INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: file=2 INFO | jvm 1|
Re: Releasing without running tests
I seem to remember doing this myself: mvn release:prepare -Dmaven.test.skip=true -Darguments=- Dmaven.test.skip=true hope that helps, Andy On 17 Sep 2007, at 04:40, Steve Mactaggart wrote: We have a module that requires it to be released, while it does compile fine and works correctly the test cases fail. We just want to release it without running the tests. When I try 'mvn -Dmaven.test.skip=true release:prepare' the tests still run. It seems that the release plugin does some sort of fork or something that doesn't take into account this property. Am I missing something, or will I have to delete the tests from our SCM just to get this release out? Steve __ __ Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. http://au.docs.yahoo.com/mail/unlimitedstorage.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven-dependency-plugin] v 2.0-alpha-4 : include/exclude scopes
Wayne, I'm using Maven for a commercial project and I'm making a release build. I believe our test dependencies should be excluded from the release build, since the customer will/should never run the tests. So this is why I would need the all but test scope. In the source of the maven-dependency-plugin, I saw that you cannot exclude the test scope, as ScopeArtifactFilter does not support it. When I tried to work around it, I got a stack trace with the given pom. (please see link). http://www.nabble.com/file/p12752781/stack_trace.txt stack_trace.txt Regards, Clara Wayne Fay wrote: I don't believe all but test as a possible scope makes much sense when you're thinking about valid use/business cases. Can you think of such a real-life situation? Also, it might be helpful to review the Maven Dependency Scope section on this page: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Wayne On 7/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello ! I'd like to talk about the behaviour of the dependency:copy-depedencies plugin, when I add some include/exclude scopes parameters. I noticed that these parameters' types were just Strings, which means you can set only one include scope and one exclude scope in the config tag. After a few tests, I could establish a link between the parameter value and the dependencies selected. The array below describes these links : --- param value - dependencies scope --- compile - compile + provided runtime - compile + runtime provided - provided test - compile + provided + runtime + test --- Fortunately, I need to get only compile and runtime, which corresponds to a runtime value in the includeScope parameter. But imagine you need compile + provided + runtime, which is an equivalent of all but test. How can you configure the plugin to do that ? If I set excludeScope to test, the build fails because I've excluded * all * the dependencies. If I set 2 include scopes (compile and runtime), it only takes the last one, and doesn't work much better... Perhaps you could change the mojo's parameters to give the user more possibilities ? Thanks ! Isabelle Guimiot - 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] -- View this message in context: http://www.nabble.com/-maven-dependency-plugin--v-2.0-alpha-4-%3A-include-exclude-scopes-tf4177712s177.html#a12752781 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: Eclipse and Maven best practice
I use Eclipse and the External Tools configuration to run mvn from within eclipse if needed. I used to have Eclipse compiling to a different classes directory and that worked fine for many projects, but recently I use 'mvn jetty:run' all the time so that when I save a java file in Eclipse it gets compiled immediately by Eclipse and the change will be instantly visible in Jetty. Working this way eclipse and mvn must compile to same place, as jetty start up using the classpath that mvn is using. On 17/09/2007, Jim Sellers [EMAIL PROTECTED] wrote: I'd take a look at what files are generated when you create a new project using SAP. Are there other folders / files that are created? (starting with a dot). Are there project natures / builders that are not being included (in the .project file)? It sounds like there is *something* missing that SAP is reading / looking at. Jim On 9/17/07, Wayne Fay [EMAIL PROTECTED] wrote: Since we're talking about Eclipse... As I said before, I'm using SAP NWDS (2.0.14) which is based on Eclipse v2.1. I'm using eclipse:eclipse to generate metadata and added the proper perspectives etc. When I create a new project (J2EE, EJB Module Project or Web Module Project) then it shows up in the J2EE Explorer and things are good. When I use mvn e:e and then import the project, it comes in as a standard Java project. I've tried editing metadata files manually but its still not coming up the way I was hoping. The EJB project shows up in J2EE Explorer but the beans don't show up since I'm not using the default ejbModule directory etc. Any ideas? I might try upgrading to the latest NWDS build which is based on Eclipse 3, apparently. Wayne On 9/16/07, Thierry Lach [EMAIL PROTECTED] wrote: There can be problems caused with a single build destination caused by the Eclipse incremental compiler that would sometimes require doing a clean in both maven and eclipse. - 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]
pom.xml read settings.xml location
Hi I want to know that is it possible to specify settings.xml path location in pom.xml. I dont want to store my settings.xml in default location (user home\.m2 or maven\conf) and also i dont want that user needs to sepcify the path at command line using -Dorg.apache.mave.global-settings. Thanks in advance Prabodh Mitra -- View this message in context: http://www.nabble.com/pom.xml-read-settings.xml-location-tf4473286s177.html#a12754247 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: Eclipse and Maven best practice
I don't currently use any of the Maven Eclipse IDE integration plugins and just use Eclipse's external tools facility to run mvn for any selected folder in Eclipse's 'Package Explorer' pane. At least this way you know Maven is behaving as it does from the command line, for new dependency I add to pom.xml and run eclipse:eclipse, but this can be done from inside Eclipse aswell. e.g. Set up a new External Tool as follows : Name: mvn clean install Location: ${env_var:M2_HOME}/bin/mvn.bat Working Directory: ${resource_loc} Arguments: clean install Then just select the folder or project in the Eclipse Java Tree (folder must have a pom.xml in it) then select this external tool 'mvn clean install' - once run once it will be on the drop down. You can set up the common maven goals like this, then share the External tools configuration by using the 'Common' tab and specifying a folder that is under SCM. Also can set up an 'General Project' in Eclipse that points to your local repo folder, this allows you to search this area and open pom files if necessary. I would gladly swap to a Plugin but there always seems to be unexpected side effects. On 18/09/2007, Pete [EMAIL PROTECTED] wrote: I use Eclipse and the External Tools configuration to run mvn from within eclipse if needed. I used to have Eclipse compiling to a different classes directory and that worked fine for many projects, but recently I use 'mvn jetty:run' all the time so that when I save a java file in Eclipse it gets compiled immediately by Eclipse and the change will be instantly visible in Jetty. Working this way eclipse and mvn must compile to same place, as jetty start up using the classpath that mvn is using. On 17/09/2007, Jim Sellers [EMAIL PROTECTED] wrote: I'd take a look at what files are generated when you create a new project using SAP. Are there other folders / files that are created? (starting with a dot). Are there project natures / builders that are not being included (in the .project file)? It sounds like there is *something* missing that SAP is reading / looking at. Jim On 9/17/07, Wayne Fay [EMAIL PROTECTED] wrote: Since we're talking about Eclipse... As I said before, I'm using SAP NWDS (2.0.14) which is based on Eclipse v2.1. I'm using eclipse:eclipse to generate metadata and added the proper perspectives etc. When I create a new project (J2EE, EJB Module Project or Web Module Project) then it shows up in the J2EE Explorer and things are good. When I use mvn e:e and then import the project, it comes in as a standard Java project. I've tried editing metadata files manually but its still not coming up the way I was hoping. The EJB project shows up in J2EE Explorer but the beans don't show up since I'm not using the default ejbModule directory etc. Any ideas? I might try upgrading to the latest NWDS build which is based on Eclipse 3, apparently. Wayne On 9/16/07, Thierry Lach [EMAIL PROTECTED] wrote: There can be problems caused with a single build destination caused by the Eclipse incremental compiler that would sometimes require doing a clean in both maven and eclipse. - 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]
How to package final complex multi language distribution with Maven?
Hi all, we are trying to understand if we can take advantage of maven to totally replace our mega ANT script which produces the release of our multi language and multi module project. Our project is a mix of Java and C++ code and it is a very complex system composed by sub systems running on different machines. Our final release(which is done for example each six months), is a directory containing other directory of jar, dll, sql script, installer of other external applications and other kind of resources. Some of those directory will be put to a machine, some other to another machine etc... At this time, all the necessary steps to create that release are accomplished through an ANT script very very big, it does many many different things in one shot, that is, I execute the setup.xml, and after some time I obtain my maxy installable folder which I pass to the sysadmin who take care to copy each folder in the right place. Finally, the release of my project is not only deploy a jar containing one hundred sub-modules jars, but it is a big assembly of many projects (some Java and some C++ and in early future .NET). I took a look at the assembly plugin (http://maven.apache.org/plugins/maven-assembly-plugin/) but I need a tool not bound to a project (bound to a single pom.xml) like assembly plugin. In your experience, is it possibile replace that ANT script with maven? In your projects, how do you perform the creation of the installable items? Thanks, I hope to have benn quite understandable! Regards, Raffaele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn test : surefire dependency problem
i'm probably the nth guy to ask this, but I'm totally new to maven and barely understand it: i cannot 'mvn test', I get: [INFO] Error to resolving surefire provider dependency: Missing: -- 1) classworlds:classworlds:jar:1.1-alpha-2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 5) classworlds:classworlds:jar:1.1-alpha-2 2) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Fair enough, I've been looking for them myself. These versions don't exist yet or anymore: classworks only have a 1.1-alpha2-NO_SYSTEM_EXIT and plexus-container-default alphas gose from v9 to v32. What the hell? Isn't this the most basic lyfecycle step of maven? How come this is not working? Am I entitled to modify the POMs myself? I'm probably missing the point somewhere but this is this just a very hard to start with maven... thanks for any help! -- View this message in context: http://www.nabble.com/mvn-test-%3A-surefire-dependency-problem-tf4473898s177.html#a12755760 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: How to extend the clean task
Thanks Wendy, that works great! Wendy Smoak wrote: On 9/17/07, Gordon Dickens [EMAIL PROTECTED] wrote: I am fairly new to Maven 2 and I need help understanding how to extend the clean task. I want to delete some files/directories during the clean phase. If you can, make the build put them under 'target' where they will be deleted naturally by 'mvn clean'. If that's not possible, then you can configure the clean plugin to delete additional files: http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html -- Wendy - 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]
Webdav error
Hi all, when I request http://localhost:8080/archiva/repository/jdk/distributions/jre-1.5.0_05.zip/jdk/distributions/jre-1.5.0_05.zip, I have an http 404 error with RequestURI=/archiva/repository/jdk/distributions/jre-1.5.0_05.zip/jdk/distributions/jre-1.5.0_05.zip I use the archiva-1.0-beta-2 and this type of request works well with archiva-1.0-beta-1. Is there any modification that may explain this error? Regards. -- View this message in context: http://www.nabble.com/Webdav-error-tf4473901.html#a12755763 Sent from the archiva-users mailing list archive at Nabble.com.
Re: pom.xml read settings.xml location
Hi, setting the settings.xml location in the pom is not possible and not advisable IMHO. Are you sure the system property is recognized at all. Doing a quick test, it doesn't seem so. If the property is working for you, you can set the environment variable MAVEN_OPTS and maven will pick it up automatically. If the property is not working for you, too. The best option would be (at least in my opinion) to just patch the maven start script and hardcode the settings option (-s ...) or introduce a new environment variable MAVEN_ARGS and use that. -Tim prabodh schrieb: Hi I want to know that is it possible to specify settings.xml path location in pom.xml. I dont want to store my settings.xml in default location (user home\.m2 or maven\conf) and also i dont want that user needs to sepcify the path at command line using -Dorg.apache.mave.global-settings. Thanks in advance Prabodh Mitra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn test : surefire dependency problem
In which remote repository are you looking? As fas as I can see classworlds:clasworlds:jar:1.1.-alpha-2 still exists [1] as does the other one [2] Hth, Nick Stolwijk [1] http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/ [2] http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/ nodje nodje wrote: i'm probably the nth guy to ask this, but I'm totally new to maven and barely understand it: i cannot 'mvn test', I get: [INFO] Error to resolving surefire provider dependency: Missing: -- 1) classworlds:classworlds:jar:1.1-alpha-2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 5) classworlds:classworlds:jar:1.1-alpha-2 2) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Fair enough, I've been looking for them myself. These versions don't exist yet or anymore: classworks only have a 1.1-alpha2-NO_SYSTEM_EXIT and plexus-container-default alphas gose from v9 to v32. What the hell? Isn't this the most basic lyfecycle step of maven? How come this is not working? Am I entitled to modify the POMs myself? I'm probably missing the point somewhere but this is this just a very hard to start with maven... thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse/Maven2 integration info
Pete: Yea, you can do that way but I find it more cumbersome. Also, there are certain things I needed ANT for before the Maven build (like I needed to use Ant's native2ascii due to a platform issue as well as some preprocessing before our builds). The other thing is that ANT unlike Eclipse is cross platform compatible and we have developers on both UNIX and Windows systems who are familiar with ant, not maven (including me at one point who has to switch back to and fro), the ANT build file works like a champ (I can do the same preprocessingand build from the command line easily). I can also change maven options and profiles a little bit more easier through my process (I have a build.properties file that passes whether to skip test phase and what profiles to activate). IMO, the Ant view is nicer than the External application view and gives you more options (you are doing the samething in the end). Sidenote: Carlos mentioned that Q4E will have something like what I described where you can execute various plugin goals similar to the ant view. -aps PS I never have to use Maven eclipse:eclipse at this point due to Q4E/m2eclipse . On 9/18/07, Pete [EMAIL PROTECTED] wrote: Alexander, Not quite sure why you need an Ant build wrapper it is far easier to just use Eclipse's external tools facility to run mvn for any selected folder e.g. Set up a new External Tool as follows : Name: mvn clean install Location: ${env_var:M2_HOME}/bin/mvn.bat Working Directory: ${resource_loc} Arguments: clean install Then just select the folder or project in the Eclipse Java Tree (folder must have a pom.xml in it) then select this external tool 'mvn clean install' - once run once it will be on the drop down. You can set up the common maven goals like this, then share the External tools configuration by using the 'Common' tab and specifying a folder that is under SCM. At least this way you know Maven is behaving as it does from the command line, periodically you need to run eclipse:eclipse, but this can be done as above. Also can set up an 'General Project' in Eclipse that points to your local repo folder, this allows you to search this area and open pom files if necessary. On 17/09/2007, Carlos Sanchez [EMAIL PROTECTED] wrote: what eclipse plugin are you using? you should ask in its mailing list though dependeing on which one you use On 9/15/07, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, sorry to hijack this hteread.. but i have a questionr egarding mvn eclipse integration somehow, even after i enable a maven project iva eclipse, the classpath in eclipse is screwed up big time i hav dfined a m2_repo variable, but still i am getting errors from all import i do, like eclipse does not know where to look for external packages i import (such as spring, log4j etc..) i ws wondering how i can enable eclipse to have same classpath as maven. any help would be appreciated thanks and regards marco On 9/15/07, Carlos Sanchez [EMAIL PROTECTED] wrote: most of your steps can be done in Q4E by going to the New project wizard, Ne Maven 2 project, choose the archetype and fill in the blanks On 9/14/07, Alexander Sack [EMAIL PROTECTED] wrote: Hi Everybody: You know Eclipse/Maven2 integration at this point can be very confusing. You have three plugins, two of which are ECLIPSE plugins that integrate Maven2 while the other is a Maven2 plugin that happens to auto-generate files for Eclipse. I wrote this below and I figured I would share to see if it helps anyone else. The main advantages of Codehaus and Q4E (which I plan to try very soon but I will assume it does similar things that Codehaus does) is that they integrate the POM dependency graph as part of your Eclipse project's Build Path, i.e. it autoupdates dependencies as you add them to the POM. The maven-eclipse-plugin relies on creating a separate CLASSPATH CONTAINER variable referenced in your .classpath file to use your local maven2 repository (the M2_REPO variable in the directions - btw this is typical for other plugins like the JBoss tools). Unfortunately the latter is not as dynamic when it comes to adding and deleting dependencies in your project. Codehaus installs on 3.1.x and up (I've used it with 3.1.1specifically and with 3.3 though for some reason its buggy under 3.3). What I do to setup a project is the following: - Use mvn archetype to setup the basic structure - Create a new Java project with Maven2 nature enabled - Import archetype directory structure into this project - Edit the Build Path within Eclipse - Use ant build file to execute mvn from within Eclipse Here is an example (I'm using Eclipse 3.1.1 w/Codehaus m2eclipse plugin):
mvn site doesn't run JUnits configured to run during 'integration-test' phase
Just wanted to ask whether there is any plan for supporting 'Integration Tests' in Maven Site Reporting. Currently although there is a well know 'integration-test' phase in Maven, if Surefire JUnits are configured to run during this phase, they are not executed during a 'mvn site-deploy'. We have our Junits with different suffixes :- *Test.java - for normal JUnits *ITTest.java - for Integration Test Junits (selenium etc) The former get run during 'test' phase, the latter during 'integration-test' phase. All works great for a normal mvn install / deploy, but when we do mvn site-deploy the integration tests don't get run. There was a thread about this a while ago. It seems the site plugin only expects tests to be run in 'test' phase. What I found was it doesn't matter what is put in the reporting section of the pom regarding configuring the 'maven-surefire-plugin' itself (i.e. configuration) . Instead Maven seems to use the 'maven-surefire-plugin' configuration from the build section's 'test' phase configuration EVEN when doing a 'site' goal. We really need some of the JUnits run during 'integration-test' phase as 'pre-integration-test' phase needs to occur to start container using cargo. Is this a simple fix to the site or reporting plugins ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running heavy tests in the build lifecycle
Just wanted to ask on the back of this whether any of you have got the Maven Site Reporting working when you have some JUnit tests running in the 'Integration-test' phase. I posted this recently http://www.nabble.com/mvn-site-doesn%27t-run-JUnits-configured-to-run-during-%27integration-test%27-phase-tf4474278s177.html On 06/09/2007, Kjetil Kjernsmo [EMAIL PROTECTED] wrote: OK, my thanks to Arnaud, Dave and Wendy! I'm going to try it out over the next couple of days, I feel that I have a good direction now. Thanks! Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 IMPORTANT NOTICE: This message may contain confidential information. If you have received this e-mail in error, do not use, copy or distribute it. Do not open any attachments. Delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - 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: mvn test : surefire dependency problem
Are you behind a firewall? If so you'll have to configure maven to use your proxy. http://maven.apache.org/guides/mini/guide-proxies.html Jim On 9/18/07, Nick Stolwijk [EMAIL PROTECTED] wrote: In which remote repository are you looking? As fas as I can see classworlds:clasworlds:jar:1.1.-alpha-2 still exists [1] as does the other one [2] Hth, Nick Stolwijk [1] http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/ [2] http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/ nodje nodje wrote: i'm probably the nth guy to ask this, but I'm totally new to maven and barely understand it: i cannot 'mvn test', I get: [INFO] Error to resolving surefire provider dependency: Missing: -- 1) classworlds:classworlds:jar:1.1-alpha-2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=classworlds -DartifactId=classworlds \ -Dversion=1.1-alpha-2 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 5) classworlds:classworlds:jar:1.1-alpha-2 2) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-container-default \ -Dversion=1.0-alpha-8 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) dummy:dummy:jar:1.0 2) org.apache.maven.surefire:surefire-booter:jar:2.3 3) org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 4) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 Fair enough, I've been looking for them myself. These versions don't exist yet or anymore: classworks only have a 1.1-alpha2-NO_SYSTEM_EXIT and plexus-container-default alphas gose from v9 to v32. What the hell? Isn't this the most basic lyfecycle step of maven? How come this is not working? Am I entitled to modify the POMs myself? I'm probably missing the point somewhere but this is this just a very hard to start with maven... thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven pom xml schema
Please post bugs in JIRA. This message will be lost into the void otherwise. Wayne On 9/17/07, CROSSING Warren [EMAIL PROTECTED] wrote: Hello, I just got maven and expected to find the schema in the distribution or in lib/maven-core-2.0.7-uber.jar. Instead I found it on the http://maven.apache.org/general.html. I also expected to see the header in a comment at the top of the xsd file. Could the schema be included in future please? Regards, Warren. This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. - 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: How to package final complex multi language distribution with Maven?
I have generally found that Maven is able to handle most if not all of my packaging requirements. The only way to find out if it will work for you is to do some reading (free pdf ebooks from devzuz and sonatype) and then try it out yourself. In general, if you're just replacing Ant scripts with Maven, I'd expect that it should be a success. Though I'm certain there will be some pains along the way. So you need to weigh the costs vs the benefits etc and make a decision once you've gotten to the point where you are comfortable with Maven. You may also find it helpful to convert one or two of your modules to Maven to see how that feels and how the process works, and then decide to continue or stop there. If you decide to stick with Ant, the Maven Ant Tasks may be helpful: http://maven.apache.org/ant-tasks.html Wayne On 9/18/07, GAMBELLI Raffaele [EMAIL PROTECTED] wrote: Hi all, we are trying to understand if we can take advantage of maven to totally replace our mega ANT script which produces the release of our multi language and multi module project. Our project is a mix of Java and C++ code and it is a very complex system composed by sub systems running on different machines. Our final release(which is done for example each six months), is a directory containing other directory of jar, dll, sql script, installer of other external applications and other kind of resources. Some of those directory will be put to a machine, some other to another machine etc... At this time, all the necessary steps to create that release are accomplished through an ANT script very very big, it does many many different things in one shot, that is, I execute the setup.xml, and after some time I obtain my maxy installable folder which I pass to the sysadmin who take care to copy each folder in the right place. Finally, the release of my project is not only deploy a jar containing one hundred sub-modules jars, but it is a big assembly of many projects (some Java and some C++ and in early future .NET). I took a look at the assembly plugin (http://maven.apache.org/plugins/maven-assembly-plugin/) but I need a tool not bound to a project (bound to a single pom.xml) like assembly plugin. In your experience, is it possibile replace that ANT script with maven? In your projects, how do you perform the creation of the installable items? Thanks, I hope to have benn quite understandable! Regards, Raffaele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [maven-dependency-plugin] v 2.0-alpha-4 : include/exclude scopes
Clara, The dependency plugin uses the core scope filter to decide if something is included in a scope. This is not the same as filtering on the declared scope of a dependency, rather the effective scope. Everything is needed for the test scope, so if I ask the filter Is this in the test scope? the answer is always yes. The net effect of this is that you would exclude everything, which is why it throws that exception to tell you that you have misconfigured. There easiest solution is to make include scope a comma separated list so you can specify the ones to include so you could do compile,runtime. This would need to be added in the next version. In the meantime you could use the artifact or groupid filters to exclude the items you don't want. These do currently support a comma separated list. --Brian -Original Message- From: clarako [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 4:56 AM To: users@maven.apache.org Subject: Re: [maven-dependency-plugin] v 2.0-alpha-4 : include/exclude scopes Wayne, I'm using Maven for a commercial project and I'm making a release build. I believe our test dependencies should be excluded from the release build, since the customer will/should never run the tests. So this is why I would need the all but test scope. In the source of the maven-dependency-plugin, I saw that you cannot exclude the test scope, as ScopeArtifactFilter does not support it. When I tried to work around it, I got a stack trace with the given pom. (please see link). http://www.nabble.com/file/p12752781/stack_trace.txt stack_trace.txt Regards, Clara Wayne Fay wrote: I don't believe all but test as a possible scope makes much sense when you're thinking about valid use/business cases. Can you think of such a real-life situation? Also, it might be helpful to review the Maven Dependency Scope section on this page: http://maven.apache.org/guides/introduction/introduction-to-dependency-m echanism.html Wayne On 7/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello ! I'd like to talk about the behaviour of the dependency:copy-depedencies plugin, when I add some include/exclude scopes parameters. I noticed that these parameters' types were just Strings, which means you can set only one include scope and one exclude scope in the config tag. After a few tests, I could establish a link between the parameter value and the dependencies selected. The array below describes these links : --- param value - dependencies scope --- compile - compile + provided runtime - compile + runtime provided - provided test - compile + provided + runtime + test --- Fortunately, I need to get only compile and runtime, which corresponds to a runtime value in the includeScope parameter. But imagine you need compile + provided + runtime, which is an equivalent of all but test. How can you configure the plugin to do that ? If I set excludeScope to test, the build fails because I've excluded * all * the dependencies. If I set 2 include scopes (compile and runtime), it only takes the last one, and doesn't work much better... Perhaps you could change the mojo's parameters to give the user more possibilities ? Thanks ! Isabelle Guimiot - 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] -- View this message in context: http://www.nabble.com/-maven-dependency-plugin--v-2.0-alpha-4-%3A-includ e-exclude-scopes-tf4177712s177.html#a12752781 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding Maven war - Build error
Hi I am getting this error , when i tried to build war using maven. When i tried to build jar, i didn't face issues. It was successful. Is it something to do with Maven war plugin. If i manually create the target classes folder, it works. Any help on this will be much appreciated. BUILD FAILED File.. /home/aledev/development/campaignmanager2/maven.xml Element... copy Line.. 4 Column 83 /home/aledev/development/campaignmanager2/target/classes not found. Total time: 9 seconds Regards Rajiv Ericsson Services Limited Registered Office: Unit 4, Midleton Gate, Guildford Business Park, Guildford, Surrey, GU2 8SG Registered Number in England and Wales: 3709800 This communication is confidential and intended solely for the addressee(s). Any unauthorised review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. Ericsson Services Limited does not enter into contracts or contractual obligations via electronic mail, unless otherwise agreed in writing between the parties concerned. E-mail including attachments is susceptible to data corruption, interruption, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Removing a report in a child project
Hello list, I got an issue with our current maven project. This is something I think is not regular to do so it is probably why I haven't found anything interesting in documentation. I got a parent pom with many module associated to it. Most of them are code centric and most produce report on the code (cobertura, pmd, etc). One of the module is a simple one that have the only task to grab everything that is around him a build a specific war out of it. (no source code in here, just assembling) Now, what I want to do is not running all the report in this specific project. It does not make sense to remove all the report from the parent and add it to all the children. for my understanding, it would be more interesting to only disable report that you don't want in an inherited project. What I have tried : -reconfiguring the reporting section. -use the excludeDefaultstrue/excludeDefaults flag in reporting. None of them have work for now. so I don't really know what to do about it. Is it possible? Thanks in advance. Marc -- View this message in context: http://www.nabble.com/Removing-a-report-in-a-child-project-tf4474762s177.html#a12758393 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom archetype parameters for the prototype pom.xml
If I have a simple prototype pom.xml that has an issueManagement section templated out like such: issueManagement systemCollabNet/system urlhttps://${my.projectName}.dev.java.net/servlets/Issues/url /issueManagement Why doesn't mvn archetype:create ... -Dmy.projectName=new-project correctly substitute the template parameter? What is the correct method to inject custom archetype parameters? The archetype trace shows: [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 7,column 9] : ${my.projectName} is not a valid reference. There were several questions around this topic, but the answers were not specific as to the resolution. Jeff -- View this message in context: http://www.nabble.com/Custom-archetype-parameters-for-the-prototype-pom.xml-tf4474881s177.html#a12758766 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn2 structure design for a software product
Hi, I have a general design question on mvn2's project (directory) structure. I'm starting on a project which involves creating a software product to be used by a few clients, with each client having particular customizations on top of the product. I'm thinking of a structure design where I separate the generic/reusable product in its own project, and any client-specific customizations in their own root-level projects... something like this: -- product (uses mvn2 subprojects) pom.xml product-core pom.xml product-service pom.xml ... client1 (which has classes that depend on the product project) pom.xml product-core pom.xml ... client2 (which has classes that depend on the product project) ... clientN. ... --- I know I can set this structure up physically. Not sure how mvn2 will work with this. Basically if I'm building/deploying this product to client 1, I would like to just do invoke the mvn command, with maybe a profile attribute or similar specifying that its for client1, that will build the product project and then just the client1 project. If there is another better option that will facilitate this product/customization package scenario, I would appreciate any suggestions. Thanks in advance! -los -- View this message in context: http://www.nabble.com/mvn2-structure-design-for-a-software-product-tf4474879s177.html#a12758764 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: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace?
Hi, warSourceExcludesWEB-INF/lib/*.jar,...,.../warSourceExcludes [1] -Tim [1] http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html mraible schrieb: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace? I'd like to stop JARs from getting put in this directory (if I remove it, jetty:run still works fine), as well as exclude some files from src/main/resources (because Jetty picks those up too). Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing a report in a child project
Hi, you can use generateReportsfalse/generateReports in the configuration of the site-plugin. But that will disable the generation all reports. Don't know if that really is what you want. -Tim Marc-Andre Houle schrieb: Hello list, I got an issue with our current maven project. This is something I think is not regular to do so it is probably why I haven't found anything interesting in documentation. I got a parent pom with many module associated to it. Most of them are code centric and most produce report on the code (cobertura, pmd, etc). One of the module is a simple one that have the only task to grab everything that is around him a build a specific war out of it. (no source code in here, just assembling) Now, what I want to do is not running all the report in this specific project. It does not make sense to remove all the report from the parent and add it to all the children. for my understanding, it would be more interesting to only disable report that you don't want in an inherited project. What I have tried : -reconfiguring the reporting section. -use the excludeDefaultstrue/excludeDefaults flag in reporting. None of them have work for now. so I don't really know what to do about it. Is it possible? Thanks in advance. Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how NOT to include any lib (dependencies) in the WAR ?
Hi, try to configure SCOPE dependency. scopeprovided/scope Marcelo. -Original Message- From: Sonar, Nishant [mailto:[EMAIL PROTECTED] Sent: 18 September 2007 17:18 To: Maven Users List Subject: how NOT to include any lib (dependencies) in the WAR ? Whenever I create a WAR , it creates a WEB-INF/lib inside the war and adds all the dependencies in the WAR . What can I do NOT to include any lib (dependencies) in the WAR , and exclude the lib folder to be in war, here's my POM project xmlns=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; modelVersion4.0.0/modelVersion parent groupId workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdworkspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name${project.artifactId} module for ${project.parent.artifactId}/name description${project.artifactId} module for ${project.parent.artifactId}/description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions !-- for AnnotationProcessorFactory -- dependencies dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_11/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version /dependency /dependencies /plugin Thanks, Nishant - 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: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace?
I tried this and it doesn't work. warSourceExcludesWEB-INF/lib/**,WEB-INF/classes/struts.xml/warSourceExcludes I also tried customizing it just for the war:inplace goal: executions execution idwar-inplace/id goals goalinplace/goal /goals configuration warSourceExcludesWEB-INF/lib/**,WEB-INF/classes/struts.xml/warSourceExcludes /configuration /execution /executions I'm using maven-war-plugin version 2.0.2. Thanks, Matt Tim Kettler wrote: Hi, warSourceExcludesWEB-INF/lib/*.jar,...,.../warSourceExcludes [1] -Tim [1] http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html mraible schrieb: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace? I'd like to stop JARs from getting put in this directory (if I remove it, jetty:run still works fine), as well as exclude some files from src/main/resources (because Jetty picks those up too). Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-it-possible-to-customize-maven-war-plugin-so-JARs-aren%27t-put-in-src-main-webapp-WEB-INF-lib-when-using-war%3Ainplace--tf4466701s177.html#a12759424 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: Including an assembly in another assembly
As promised here is how I got it working, although I still don't see why it would not just be a lot easier if I could include the following in my assembly dependencySet outputDirectory/outputDirectory unpacktrue/unpack scoperuntime/scope includes includeorg.openjump:openjump-core:1.2-SNAPSHOT:zip:bin/include /includes /dependencySet So here it is. First in the pom.xml for A attach the bin assembly to project A with the classifier bin build : plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId executions execution idattach-artifacts/id phasepackage/phase goals goalattach-artifact/goal /goals configuration artifacts artifact filetarget/A-1.0-SNAPSHOT-bin.zip/file typezip/type classifierbin/classifier /artifact /artifacts /configuration /execution /executions /plugin /plugins /build Second in the pom.xml for B extract the bin from A (note when making builds do a clean first to ensure you don't have any old files) build : plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdA/groupId artifactIdA/artifactId version1.0-SNAPSHOT/version typezip/type classifierbin/classifier overWritetrue/overWrite outputDirectorytarget/A/outputDirectory /artifactItem /artifactItems overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin /build Then in the assembly for B add the files to the output. fileSets fileSet outputDirectory/outputDirectory directorytarget/A/directory /fileSet : /fileSets Paul Paul Austin wrote: Say I have two projects A and B. Project A has a custom bin.xml assembly generating A-1.0-bin.zip. Project B is an enhancement to A with some extra jar files and also has a custom bin.xml assembly which takes the whole of the unpacked A-1.0-bin.zip file and adds in the extra jar files into B-1.0-bin.zip. What would I need to include in the assembly for B to include all the contents of A-1.0-bin.zip? Cheers, Paul - 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]
how NOT to include any lib (dependencies) in the WAR ?
Whenever I create a WAR , it creates a WEB-INF/lib inside the war and adds all the dependencies in the WAR . What can I do NOT to include any lib (dependencies) in the WAR , and exclude the lib folder to be in war, here's my POM project xmlns=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; modelVersion4.0.0/modelVersion parent groupId workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdworkspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name${project.artifactId} module for ${project.parent.artifactId}/name description${project.artifactId} module for ${project.parent.artifactId}/description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions !-- for AnnotationProcessorFactory -- dependencies dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_11/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version /dependency /dependencies /plugin Thanks, Nishant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Inclusions or exclusions in an assembly
Looking at the schema for an assembly it looks as if in a single dependencySet you can have many include/exclude items, but the plugin (2.2-beta-1) seems to only process the first one in the list. Has anyone been able to get this to work? Also for exclusions I'd like to be able to exclude a project and all it's dependencies so that I can put say all of Project A's libs into the lib/ folder in the output and put all dependencies from other projects (exlcuding A's dependencies) into lib/ext/ Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace?
Seems to be a bug. war:war with excludes is working, war:inplace and war:exploded don't honor the excludes. -Tim mraible schrieb: I tried this and it doesn't work. warSourceExcludesWEB-INF/lib/**,WEB-INF/classes/struts.xml/warSourceExcludes I also tried customizing it just for the war:inplace goal: executions execution idwar-inplace/id goals goalinplace/goal /goals configuration warSourceExcludesWEB-INF/lib/**,WEB-INF/classes/struts.xml/warSourceExcludes /configuration /execution /executions I'm using maven-war-plugin version 2.0.2. Thanks, Matt Tim Kettler wrote: Hi, warSourceExcludesWEB-INF/lib/*.jar,...,.../warSourceExcludes [1] -Tim [1] http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html mraible schrieb: Is it possible to customize maven-war-plugin so JARs aren't put in src/main/webapp/WEB-INF/lib when using war:inplace? I'd like to stop JARs from getting put in this directory (if I remove it, jetty:run still works fine), as well as exclude some files from src/main/resources (because Jetty picks those up too). Thanks, Matt - 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: Custom archetype parameters for the prototype pom.xml
A little more investigation on my part shows that this is not possible, currently. If there is interest in this functionality, let me know at the filed issue: http://jira.codehaus.org/browse/ARCHETYPE-70 Jeff jblack wrote: If I have a simple prototype pom.xml that has an issueManagement section templated out like such: issueManagement systemCollabNet/system urlhttps://${my.projectName}.dev.java.net/servlets/Issues/url /issueManagement Why doesn't mvn archetype:create ... -Dmy.projectName=new-project correctly substitute the template parameter? What is the correct method to inject custom archetype parameters? The archetype trace shows: [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 7,column 9] : ${my.projectName} is not a valid reference. There were several questions around this topic, but the answers were not specific as to the resolution. Jeff -- View this message in context: http://www.nabble.com/Custom-archetype-parameters-for-the-prototype-pom.xml-tf4474881s177.html#a12760218 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Snapshot Browse Failure: *-beta-2 release
Hey everyone. I seem to be having issues with the beta-2 release involving SNAPSHOT browsing. This was resolved in beta-1 (http://jira.codehaus.org/browse/MRM-426) but now doesn't seem to be working. Anyone else having the same issue? I first tried to view snapshot version 53 and was successful, but every subsequent request failed. It seems to be stuck on the first version I browse to? org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Project Model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:24 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:24 | version = '1.0-20070803.040704-53' version: 1.0-20070803.040704-53 does not match the pom file's version: 1.0-20070522.040811-4 INFO | jvm 1| 2007/09/17 16:51:25 | 2007-09-17 16:51:25,051 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Invalid or corrupt pom. Project model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:25 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:25 | version = '1.0-20070803.040704-53' was not added in the database. INFO | jvm 1| 2007/09/17 16:51:29 | 2007-09-17 16:51:28,926 [SocketListener0-0] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Project Model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:29 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:29 | version = '1.0-20070803.040704-53' version: 1.0-20070803.040704-53 does not match the pom file's version: 1.0-20070524.040509-5 INFO | jvm 1| 2007/09/17 16:51:29 | 2007-09-17 16:51:28,942 [SocketListener0-0] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Invalid or corrupt pom. Project model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:29 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:29 | version = '1.0-20070803.040704-53' was not added in the database. INFO | jvm 1| 2007/09/17 16:51:31 | 2007-09-17 16:51:31,911 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Project Model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:31 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:31 | version = '1.0-20070803.040704-53' version: 1.0-20070803.040704-53 does not match the pom file's version: 1.0-20070519.040909-3 INFO | jvm 1| 2007/09/17 16:51:31 | 2007-09-17 16:51:31,927 [SocketListener0-1] WARN org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:u pdate-db-project - Invalid or corrupt pom. Project model groupId = 'com.dhsnet.service' INFO | jvm 1| 2007/09/17 16:51:31 | artifactId = 'serverprocessconversion-lib' INFO | jvm 1| 2007/09/17 16:51:31 | version = '1.0-20070803.040704-53' was not added in the database. Appreciate any insight. - Troy Ronning
Cargo fails for Jboss remote deploy
Hello, Has anyone been able to produce a workaround (or seen a patch) for this issue http://jira.codehaus.org/browse/CARGO-416 in which remote deploy to Jboss server fails because Jboss is trying to deploy a path which doesn't exist. Here is the server side error: 08:04:57,934 ERROR [[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor thr ew exception org.jboss.deployment.DeploymentException: url file:/usr/local/jboss-4.2.1.GA/bin /C:\Documents and Settings\sjohnck\.m2\repository\com\garmin\connect\connect\0.5 -SNAPSHOT\connect-0.5-SNAPSHOT.war could not be opened, does it exist? Thanks in advance! Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing a report in a child project
It seem's that the only thing this flag is doing is to disable the html report exporting. All the other step for the report are done (Javadoc is still trying to instrument generated java code (which I don't really want!) Thanks for the hint, but the flag is not doing what it is call for in the documentation. Elsewhere, I would be glad to disable all reporting for this module. Thanks for your time. Marc Tim Kettler wrote: Hi, you can use generateReportsfalse/generateReports in the configuration of the site-plugin. But that will disable the generation all reports. Don't know if that really is what you want. -Tim Marc-Andre Houle schrieb: Hello list, I got an issue with our current maven project. This is something I think is not regular to do so it is probably why I haven't found anything interesting in documentation. I got a parent pom with many module associated to it. Most of them are code centric and most produce report on the code (cobertura, pmd, etc). One of the module is a simple one that have the only task to grab everything that is around him a build a specific war out of it. (no source code in here, just assembling) Now, what I want to do is not running all the report in this specific project. It does not make sense to remove all the report from the parent and add it to all the children. for my understanding, it would be more interesting to only disable report that you don't want in an inherited project. What I have tried : -reconfiguring the reporting section. -use the excludeDefaultstrue/excludeDefaults flag in reporting. None of them have work for now. so I don't really know what to do about it. Is it possible? Thanks in advance. Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Removing-a-report-in-a-child-project-tf4474762s177.html#a12760251 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Confused about doxia/reporting APIs
Hello, Creating basic report plugins is rather easy; I've patched up a couple of custom Maven report Mojos within a day. Now i would like to move those to the next level and integrate them with the look and feel of the generated site (follow the skin used etc). My problem is i really cannot figure out what API i should use. There's Mavens reporting APIs and Impl, the Doxia stuff etc. Is there a best practices or other helpful doc that goes beyond [1]? Is [1] doing things the proper way for that matter? [1] http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin Cheers, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how NOT to include any lib (dependencies) in the WAR ?
Nishant: Adding excludes**/lib/*/excludes to the maven-war-plugin configuration will forcibly exclude all libraries. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html We typically call these Skinny WARs. Note on that page, it says that it's decidedly broken with the 2.0 release of the war-plugin. That might be your problem. Barrett :: Barrett Nuzum Sr. Consultant Direct: 918.640.4414 Fax: 972.789.1340 Valtech Technologies, Inc. 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 www.valtech.us http://www.valtech.us/ Delivering Business Agility From: Sonar, Nishant [mailto:[EMAIL PROTECTED] Sent: Tue 9/18/2007 10:18 AM To: Maven Users List Subject: how NOT to include any lib (dependencies) in the WAR ? Whenever I create a WAR , it creates a WEB-INF/lib inside the war and adds all the dependencies in the WAR . What can I do NOT to include any lib (dependencies) in the WAR , and exclude the lib folder to be in war, here's my POM project xmlns=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; modelVersion4.0.0/modelVersion parent groupId workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdworkspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name${project.artifactId} module for ${project.parent.artifactId}/name description${project.artifactId} module for ${project.parent.artifactId}/description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions !-- for AnnotationProcessorFactory -- dependencies dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_11/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-tools/artifactId
confused with clover
All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111.
RE: how NOT to include any lib (dependencies) in the WAR ?
Hi Marcelo Well I changed all but one of the dependency. project xmlns=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; modelVersion4.0.0/modelVersion parent groupIdjasre.workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdjasre.workspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name ${project.artifactId} module for ${project.parent.artifactId} /name description ${project.artifactId} module for ${project.parent.artifactId} /description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope !--scopeprovided/scope-- /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version scopeprovided/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version scopeprovided/scope /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions !-- for AnnotationProcessorFactory -- dependencies dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_11/version scopeprovided/scope /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version scopeprovided/scope !-- gives error if use 'provided' ,if given compile creates lib folders-- /dependency /dependencies /plugin When I specify 'provided' for jaxws-rt it throws following error
RE: how NOT to include any lib (dependencies) in the WAR ?
Looks to me like a bug in the way the jaxws-maven-plugin is forming its classpath. If you use the ant task wsgen, you'd be able to manipulate the classpath yourself. --- Sonar, Nishant [EMAIL PROTECTED] wrote: Hi Marcelo Well I changed all but one of the dependency. project xmlns=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; modelVersion4.0.0/modelVersion parent groupIdjasre.workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdjasre.workspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name ${project.artifactId} module for ${project.parent.artifactId} /name description ${project.artifactId} module for ${project.parent.artifactId} /description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope !--scopeprovided/scope-- /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version scopeprovided/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version scopeprovided/scope /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions !-- for AnnotationProcessorFactory -- dependencies dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_11/version scopeprovided/scope /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version scopeprovided/scope /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version scopeprovided/scope !-- gives error if use 'provided' ,ifgiven compile creates lib folders-- /dependency
Setting VM argument in command line in Maven 2.x
I have seen similar threads about this from before, but regarding maven 1.x, I was hoping to get an answer for maven 2.x. In Eclipse, I can run testcases with properties that I set using -Dmyproperty=myvalue in the VM arguments section. I am wondering if there is a way of achieving this in maven through command line. I have tried two approaches and neither of them seems work properly: Mvn -Dmyproperty=myvalue test Mvn -Dmyproperty=myvalue -Dmaven.junit.sysproperties=myproperty test Thanks. -Jon This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately.
RE: how NOT to include any lib (dependencies) in the WAR ?
Thanks a ton Barrett , I think I didn't do my homework on the WAR plug-in , thank again for helping me out . Hey Marcelo thanks to you too for helping me , I thin what Barrett has told has solved my problem for now. Regards, Nishant Sonar Synechron Technologies -Original Message- From: Barrett Nuzum [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 1:24 PM To: Maven Users List Subject: RE: how NOT to include any lib (dependencies) in the WAR ? Nishant: Adding excludes**/lib/*/excludes to the maven-war-plugin configuration will forcibly exclude all libraries. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht ml http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.h tml We typically call these Skinny WARs. Note on that page, it says that it's decidedly broken with the 2.0 release of the war-plugin. That might be your problem. Barrett :: Barrett Nuzum Sr. Consultant Direct: 918.640.4414 Fax: 972.789.1340 Valtech Technologies, Inc. 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 www.valtech.us http://www.valtech.us/ Delivering Business Agility From: Sonar, Nishant [mailto:[EMAIL PROTECTED] Sent: Tue 9/18/2007 10:18 AM To: Maven Users List Subject: how NOT to include any lib (dependencies) in the WAR ? Whenever I create a WAR , it creates a WEB-INF/lib inside the war and adds all the dependencies in the WAR . What can I do NOT to include any lib (dependencies) in the WAR , and exclude the lib folder to be in war, here's my POM project xmlns=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; modelVersion4.0.0/modelVersion parent groupId workspace.samples/groupId artifactIdsimpleWebService/artifactId version1.0/version /parent groupIdworkspace.samples.simpleWebService/groupId artifactIdwebService/artifactId name${project.artifactId} module for ${project.parent.artifactId}/name description${project.artifactId} module for ${project.parent.artifactId}/description packagingwar/packaging dependencies dependency groupIdjavax.jws/groupId artifactIdjsr181/artifactId version1.0/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxb-api/artifactId version2.1.1/version /dependency dependency groupIdjaxws-ri/groupId artifactIdjaxws-api/artifactId version2.1.1/version /dependency dependency groupIdeasymock/groupId artifactIdeasymock/artifactId version2.0/version /dependency dependency groupIdeasymock/groupId artifactIdeasymockclassextension/artifactId version2.2/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging-api/artifactId version1.0.4/version /dependency dependency groupIdcom.sun.xml.ws/groupId artifactIdjaxws-rt/artifactId version2.1.1/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId version1.2/version configuration verbosefalse/verbose seicom.service.DateServiceImpl/sei genWsdlfalse/genWsdl keepfalse/keep destDirtarget\classes/destDir /configuration executions execution goals goalwsgen/goal /goals phasecompile/phase /execution /executions
Re: confused with maven clover
Please don't resend emails!! You just sent this an hour ago. Wayne On 9/18/07, Choudhary, Jay [EMAIL PROTECTED] wrote: All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting VM argument in command line in Maven 2.x
Please search the archives before sending emails in the future. Many questions have been asked and answered, frequently in the last week or month. This was just discussed in the last couple days: http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-tests-tf4427748s177.html#a12630944 Wayne On 9/18/07, Yu, Jonathan T [EMAIL PROTECTED] wrote: I have seen similar threads about this from before, but regarding maven 1.x, I was hoping to get an answer for maven 2.x. In Eclipse, I can run testcases with properties that I set using -Dmyproperty=myvalue in the VM arguments section. I am wondering if there is a way of achieving this in maven through command line. I have tried two approaches and neither of them seems work properly: Mvn -Dmyproperty=myvalue test Mvn -Dmyproperty=myvalue -Dmaven.junit.sysproperties=myproperty test Thanks. -Jon This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confused with maven clover
Srry thought it was never sent -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: 18 September 2007 19:08 To: Maven Users List Subject: Re: confused with maven clover Please don't resend emails!! You just sent this an hour ago. Wayne On 9/18/07, Choudhary, Jay [EMAIL PROTECTED] wrote: All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confused with maven clover
All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111.
Re: confused with maven clover
For some reason, this is not uncommon. In the future, if you're not sure if your message made it to the list, check Nabble: http://www.nabble.com/Maven---Users-f178.html Also, you should wait longer than 1hr before resending. Give it at least 12hrs to show up. There are numerous reasons why emails might be delayed. Wayne On 9/18/07, Choudhary, Jay [EMAIL PROTECTED] wrote: Srry thought it was never sent -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: 18 September 2007 19:08 To: Maven Users List Subject: Re: confused with maven clover Please don't resend emails!! You just sent this an hour ago. Wayne On 9/18/07, Choudhary, Jay [EMAIL PROTECTED] wrote: All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - 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: problem setting up servlet and jsp api dependencies as provided scope
Google for maven exclusion. Wayne On 9/18/07, thebugslayer [EMAIL PROTECTED] wrote: Max, How would I exclude the javax.servlet:jsp-api one? I tried provided scope, but it's still not working. -Z On 9/15/07, Max Bowsher [EMAIL PROTECTED] wrote: thebugslayer wrote: Hi, I understand this problem is more of Eclipse related, but it also involves Maven setup, so I thought maybe one of users here would have come across the same problem and give me some help. I have a webapp project setup in Eclipse Europa with Tomcat6.0, and I am using m2eclipse plugin. In my part of my pom.xml I have the following: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version scopeprovided/scope /dependency dependency groupIdjavax.servlet.jsp/groupId artifactIdjsp-api/artifactId version2.1/version scopeprovided/scope /dependency When I run it inside eclipse, the webapp startup fine, but when I hit any jsp page I get the following: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Part of the issue may be that the 2.0 jsp-api is erroneously published under two different names in the central Maven2 repository: * javax.servlet.jsp:jsp-api * javax.servlet:jsp-api thus causing Maven to potentially put one of each name on the classpath. It would be necessary to add a dependency exclusion for the javax.servlet:jsp-api version to any dependencies which are transitively pulling it in. Max. -- /bugslayer - 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: problem setting up servlet and jsp api dependencies as provided scope
Max, How would I exclude the javax.servlet:jsp-api one? I tried provided scope, but it's still not working. -Z On 9/15/07, Max Bowsher [EMAIL PROTECTED] wrote: thebugslayer wrote: Hi, I understand this problem is more of Eclipse related, but it also involves Maven setup, so I thought maybe one of users here would have come across the same problem and give me some help. I have a webapp project setup in Eclipse Europa with Tomcat6.0, and I am using m2eclipse plugin. In my part of my pom.xml I have the following: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version scopeprovided/scope /dependency dependency groupIdjavax.servlet.jsp/groupId artifactIdjsp-api/artifactId version2.1/version scopeprovided/scope /dependency When I run it inside eclipse, the webapp startup fine, but when I hit any jsp page I get the following: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Part of the issue may be that the 2.0 jsp-api is erroneously published under two different names in the central Maven2 repository: * javax.servlet.jsp:jsp-api * javax.servlet:jsp-api thus causing Maven to potentially put one of each name on the classpath. It would be necessary to add a dependency exclusion for the javax.servlet:jsp-api version to any dependencies which are transitively pulling it in. Max. -- /bugslayer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problemw ith site generation on continuum
hELLO, mm now that i think about it, mayb not as i have scheduled an automatic startup task in Linux.. i will try to startup continuum from command line and launch a build to see what happens.. i'll try and let youknow thanks and regards Marco On 9/18/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: I don't see why some reports works and not others. Continuum launch mvn lilke you do it from the command line. Do you use the same user to run continuum and the mvn command line? Emmanuel Marco Mistroni a écrit : hi all, i have a simple mvn2 project that i decided to put on continuum i have configured continuum to run clean install and site targets problem is that when the site is generated, and i go to check the generated reports (By selecting working copy and drilling down to target/site directory), i have following results: - Surefire report works fine - CPD report works fine -PMD report works fine but Cobertura, Javadoc , Source Xref and TestSource Xref ends up with big exception like ClassNOtFoundException here's detail of exception INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: allclasses-frame.html INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154) INFO | jvm 1| 2007/09/17 21:01:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:294) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:525) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java :218) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) INFO | jvm 1| 2007/09/17 21:01:20 | INFO | jvm 1| 2007/09/17 21:01:20 | 21:01:20.432 WARN!! Exception for /continuum/servlet/TestApp/package-summary.html INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: TestApp INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154) INFO | jvm 1| 2007/09/17 21:01:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:294) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:525) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java :218) INFO | jvm 1| 2007/09/17 21:01:20 | at
m2 torque plugin
I just moved m1 to m2, but could not get torque plugin work. with m1, I used command, maven torque:om, which will build db object from *schema.xml. I could not find instructions on doing this. Is there anybody who has done it and like to offer some helps? I really appreciate. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting VM argument in command line in Maven 2.x
I apologize. I saw some other ones, but this particular post didn't turn up in my search. I failed to mention this in my previous email, but the property I need to set has an URL value. In the maven surefire plugin page regarding using system properties, it says that only Strings may be passed in as system properties, not other maven variable types. Is there a way to get around this? There was something similar here (http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-th e-tests-tf2600462s177.html#a7356447), but to no conclusion. -jon -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 11:15 AM To: Maven Users List Subject: Re: Setting VM argument in command line in Maven 2.x Please search the archives before sending emails in the future. Many questions have been asked and answered, frequently in the last week or month. This was just discussed in the last couple days: http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-t ests-tf4427748s177.html#a12630944 Wayne On 9/18/07, Yu, Jonathan T [EMAIL PROTECTED] wrote: I have seen similar threads about this from before, but regarding maven 1.x, I was hoping to get an answer for maven 2.x. In Eclipse, I can run testcases with properties that I set using -Dmyproperty=myvalue in the VM arguments section. I am wondering if there is a way of achieving this in maven through command line. I have tried two approaches and neither of them seems work properly: Mvn -Dmyproperty=myvalue test Mvn -Dmyproperty=myvalue -Dmaven.junit.sysproperties=myproperty test Thanks. -Jon This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Determining top-level parent pom directory
In a multi-module pom hierarchy, what is the best way to determine/reference the top-level pom directory? Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problemw ith site generation on continuum
Emmanual, got no luck Well let me explain what i did first, i might be doing something wrong i started continuum with my username, and laucnhed a build (whic includes the target site) continuum generated the directory site in following place opt/continuum-1.0.3 /apps/continuum/working-directory/2/target/site/cobertura/index.html if i go there ((by browsing directories on linux file system) and click on index.html, then everything is working fine, i can see every report etc. HOWEVER if i try to look at the same directory via continuum (i can do by clicking on my appplication, then click on 'Working Copy tab'... (which will show the directory structure of my application, here's the URL http://localhost:8080/continuum/servlet/continuum/target/WorkingCopy.vm/view/WorkingCopy/id/2 ) then i will see the same structure i see in th working-directory dir under continuum from here (in the browser), if i drill down to index.html and then choose for example cobertura report i will get this URL from browser http://localhost:8080/continuum/servlet/browse?file=2/target/site/cobertura/index.html and this will result in an exception displayed in the page RequestURI=/continuum/servlet/frame-summary.html so, yes the site gets generated properly, but i cannot see it via continuum console, that's all problem i got. i thought it was possible, probably i am missing some settings. could you give me some help? thanks and regards marco On 9/18/07, Marco Mistroni [EMAIL PROTECTED] wrote: hELLO, mm now that i think about it, mayb not as i have scheduled an automatic startup task in Linux.. i will try to startup continuum from command line and launch a build to see what happens.. i'll try and let youknow thanks and regards Marco On 9/18/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: I don't see why some reports works and not others. Continuum launch mvn lilke you do it from the command line. Do you use the same user to run continuum and the mvn command line? Emmanuel Marco Mistroni a écrit : hi all, i have a simple mvn2 project that i decided to put on continuum i have configured continuum to run clean install and site targets problem is that when the site is generated, and i go to check the generated reports (By selecting working copy and drilling down to target/site directory), i have following results: - Surefire report works fine - CPD report works fine -PMD report works fine but Cobertura, Javadoc , Source Xref and TestSource Xref ends up with big exception like ClassNOtFoundException here's detail of exception INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException: java.lang.ClassNotFoundException: allclasses-frame.html INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:154) INFO | jvm 1| 2007/09/17 21:01:20 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java :358) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch( WebApplicationHandler.java:294) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java :567) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.jetty.servlet.WebApplicationContext.handle( WebApplicationContext.java:525) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpContext.handle(HttpContext.java :1757) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.service (HttpConnection.java:789) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java :218) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2007/09/17 21:01:20 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) INFO | jvm 1| 2007/09/17 21:01:20 | INFO | jvm 1| 2007/09/17 21:01:20 | 21:01:20.432 WARN!! Exception for /continuum/servlet/TestApp/package-summary.html INFO | jvm 1| 2007/09/17 21:01:20 | javax.servlet.UnavailableException : java.lang.ClassNotFoundException: TestApp INFO | jvm 1|
Re: Setting VM argument in command line in Maven 2.x
Pass a string and convert to URL type in the test (??). Wayne On 9/18/07, Yu, Jonathan T [EMAIL PROTECTED] wrote: I apologize. I saw some other ones, but this particular post didn't turn up in my search. I failed to mention this in my previous email, but the property I need to set has an URL value. In the maven surefire plugin page regarding using system properties, it says that only Strings may be passed in as system properties, not other maven variable types. Is there a way to get around this? There was something similar here (http://www.nabble.com/Passing-Maven-Variable-as-a-system-property-to-th e-tests-tf2600462s177.html#a7356447), but to no conclusion. -jon -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 11:15 AM To: Maven Users List Subject: Re: Setting VM argument in command line in Maven 2.x Please search the archives before sending emails in the future. Many questions have been asked and answered, frequently in the last week or month. This was just discussed in the last couple days: http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-t ests-tf4427748s177.html#a12630944 Wayne On 9/18/07, Yu, Jonathan T [EMAIL PROTECTED] wrote: I have seen similar threads about this from before, but regarding maven 1.x, I was hoping to get an answer for maven 2.x. In Eclipse, I can run testcases with properties that I set using -Dmyproperty=myvalue in the VM arguments section. I am wondering if there is a way of achieving this in maven through command line. I have tried two approaches and neither of them seems work properly: Mvn -Dmyproperty=myvalue test Mvn -Dmyproperty=myvalue -Dmaven.junit.sysproperties=myproperty test Thanks. -Jon This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - 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: Determining top-level parent pom directory
Tell us more about what you're trying to do. Wayne On 9/18/07, Tim Foster [EMAIL PROTECTED] wrote: In a multi-module pom hierarchy, what is the best way to determine/reference the top-level pom directory? Tim - 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: Determining top-level parent pom directory
Okay. I'm trying to dynamically create a properties file, e.g., my.properties, into which I can define properties that can be referenced at all levels of the hierarchy. This file would live in a location relative to the top-level pom file. The default definitions of the properties are determined by reading a default.properties file, but the values can be overridden by environment variables. So, I'm using the maven-antrun-plugin to create this properties file, but I don't know how to reference it from the lower-level poms. Thanks, Tim -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 3:58 PM To: Maven Users List Subject: Re: Determining top-level parent pom directory Tell us more about what you're trying to do. Wayne On 9/18/07, Tim Foster [EMAIL PROTECTED] wrote: In a multi-module pom hierarchy, what is the best way to determine/reference the top-level pom directory? Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused with maven clover
You probably want to fix your compilation error first. You can't expect your tests to pass if your project doesn't compile. But since you don't provide any details about the compile error, it's difficult to help... (try maven -e java:compile). -Lukas Choudhary, Jay wrote: All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jaxws-maven-plugin jaxws:wsgen - Could not find class file
I had the jaxws-maven-plugin working fine with a simple Java WebService... It worked fin up until an hour or so ago and I am not sure what I changed that caused the issue... Has anyone else seen this error before... It must be a something stupid simple that I am missing... The WebService runs fine when I deploy it on Jboss4.2... Any help in advance is much appreciated! Thanks, Kyle ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion groupIdcom.heartlab.ws/groupId artifactIdWebSendServices/artifactId packagingwar/packaging version0.0.1/version parent groupIdcom.heartlab.ws/groupId artifactIdWebSendParentPOM/artifactId version0.0.1/version relativePath../WebSendParentPOM/pom.xml/relativePath /parent build finalName${pom.artifactId}/finalName plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal goalwsimport/goal goalwsgen-test/goal /goals /execution /executions configuration seicom.heartlab.ws.services.HelloServiceWS/sei genWsdltrue/genWsdl keeptrue/keep protocolsoap1.1/protocol !-- protocolXsoap1.2/protocol -- !-- JAX-WS Target Version -- target2.1.1/target verbosetrue/verbose wsdlDirectory${project.build.directory}/jaxws/wsgen/wsdl/wsdlDirectory !-- sourceDestDirtarget/temp/sourceDestDir -- packageNamecom.heartlab.ws.services/packageName /configuration !-- if you want to use a specific version of JAX-WS, you can do so like this -- dependencies groupIdjavax.jws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version /dependencies /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId !-- Make this dynamic somehow to support multiple server configurations -- configuration jbossHome${appserver.url}/jbossHome port${appserver.port}/port /configuration /plugin /plugins /build dependencies dependency groupIdcom.heartlab.ws/groupId artifactIdWebSendUtility/artifactId version0.0.1/version scopecompile/scope /dependency dependency groupIdjavax.annotation/groupId artifactIdjsr250-api/artifactId version1.0/version scopeprovided/scope /dependency !-- JAX-WS Annotations -- dependency groupIdjavax.jws/groupId artifactIdjsr181-api/artifactId version1.0-MR1/version scopeprovided/scope /dependency dependency groupIdjavax.jws/groupId artifactIdjaxws-api/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopetest/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version scopeprovided/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopeprovided/scope /dependency /dependencies /project Here is the error I am receiving :: (This all worked fine up until a few hours ago... Not sure what I changed that would cause this. Also, the class HelloServiceWS.class is present in the target\classes folder... ) [INFO] [jaxws:wsgen-test] error: Could not find class file for com.heartlab.ws.services.HelloServiceWS 1 error error: compilation failed, errors should have been reported [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing: wsgen [-verbose, -keep, -d,
RE: jaxws-maven-plugin jaxws:wsgen - Could not find class file
I think you changed the package for com.heartlab.ws.services.HelloServiceWS Regards, Nishant Sonar Synechron Technologies -Original Message- From: Kyle.Bober [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 4:46 PM To: users@maven.apache.org Subject: jaxws-maven-plugin jaxws:wsgen - Could not find class file I had the jaxws-maven-plugin working fine with a simple Java WebService... It worked fin up until an hour or so ago and I am not sure what I changed that caused the issue... Has anyone else seen this error before... It must be a something stupid simple that I am missing... The WebService runs fine when I deploy it on Jboss4.2... Any help in advance is much appreciated! Thanks, Kyle ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion groupIdcom.heartlab.ws/groupId artifactIdWebSendServices/artifactId packagingwar/packaging version0.0.1/version parent groupIdcom.heartlab.ws/groupId artifactIdWebSendParentPOM/artifactId version0.0.1/version relativePath../WebSendParentPOM/pom.xml/relativePath /parent build finalName${pom.artifactId}/finalName plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxws-maven-plugin/artifactId executions execution goals goalwsgen/goal goalwsimport/goal goalwsgen-test/goal /goals /execution /executions configuration seicom.heartlab.ws.services.HelloServiceWS/sei genWsdltrue/genWsdl keeptrue/keep protocolsoap1.1/protocol !-- protocolXsoap1.2/protocol -- !-- JAX-WS Target Version -- target2.1.1/target verbosetrue/verbose wsdlDirectory${project.build.directory}/jaxws/wsgen/wsdl/wsdlDirector y !-- sourceDestDirtarget/temp/sourceDestDir -- packageNamecom.heartlab.ws.services/packageName /configuration !-- if you want to use a specific version of JAX-WS, you can do so like this -- dependencies groupIdjavax.jws/groupId artifactIdjaxws-tools/artifactId version2.1.1/version /dependencies /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId !-- Make this dynamic somehow to support multiple server configurations -- configuration jbossHome${appserver.url}/jbossHome port${appserver.port}/port /configuration /plugin /plugins /build dependencies dependency groupIdcom.heartlab.ws/groupId artifactIdWebSendUtility/artifactId version0.0.1/version scopecompile/scope /dependency dependency groupIdjavax.annotation/groupId artifactIdjsr250-api/artifactId version1.0/version scopeprovided/scope /dependency !-- JAX-WS Annotations -- dependency groupIdjavax.jws/groupId artifactIdjsr181-api/artifactId version1.0-MR1/version scopeprovided/scope /dependency dependency groupIdjavax.jws/groupId artifactIdjaxws-api/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopetest/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version scopeprovided/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopeprovided/scope /dependency /dependencies /project Here is the error I am receiving :: (This all worked fine up until a few hours ago... Not sure what I changed that would cause this. Also, the class HelloServiceWS.class is present in the target\classes folder... ) [INFO] [jaxws:wsgen-test] error: Could not find class file for
maven and jboss microcontainer
I'm trying to use seam with maven and tomcat and all the examples come with ant One of the examples is jboss-seam-booking I can see that in example there is mc-conf.jar and jboss-seam-booking.jar in the classpath I would like to add microcontainer in my application with maven to run this application in TomCat I posting in maven list because my problem is to create these two jar files with maven as they did with ant - Don't let your dream ride pass you by.Make it a reality with Yahoo! Autos.
maven exec plug-in and the scope of dependency
Hello, I have a situation where i define mysql dependency with test scope as belows: dependency groupIdmysql/groupId artifactIdmysql-jdbc-connector/artifactId version5.0.3/version scopetest/scope /dependency According to the spec, this jar will be included in the classpath of test compilation and execution. However, when I'm using maven exec plug-in to prepare some test tables installation in MySQL DB with the default classpath as part of test-compile phase: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasetest-compile/phase goals goaljava/goal /goals /execution /executions configuration mainClassmyexample.foo.test/mainClass arguments argumentinstall/argument /arguments /configuration /plugin The mvn test-compile failed to find mysql-jdbc-connector-5.0.3.jar, which suggested that this jar was not available during test-compile phase. After removing test scope of that dependency, test-compile phase went through fine. Did anyone observe the similar behavior? was the test-scoped dependency really not available in test-compile phase? Thanks Yan
RE: Parent POM and versions...
I'm interested in repeatable release builds, but not really interested in repeatable snapshot builds. It would be great to specify for a parent (or a dependency in some cases) to use the latest available release or snapshot version while my project is under development (i.e. in snapshot mode). When I release the project, the release plugin could change the pom to specifically reference whatever version that is at the time, then switch back to latest mode for the next snapshot. This would give me a repeatable release build for my project without making me go through the effort to keep every project explicitly up-to-date with the latest version of the company-wide parent POM. ..David.. -Original Message- From: Michael McCallum [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 9:05 AM To: Maven Users List Subject: Re: Parent POM and versions... no way of saying the latest but in order to ensure repeatedable builds thats how it has to be... maven 2.1 will encourage people to not put stuff in the parent that should not be there e.g. repositories... other than that you just have to tough it out and update projects as they are released... hack if you break stuff it can be handy to edit a tag as in released parent and redeploy the artifact to your repository /hack bash, for, find, sed can be used to easily update all the projects in a source control repository... On Friday 14 September 2007 02:58, Arne Styve wrote: Hi, I have a question related to the use of a company POM. In Better builds with Maven there is a description of how to set up a POM regime for a company, where we can have say 3 levels of POM's: one companywide POM, one department wide POM and one projectspecific POM. Lets call these with the following geoupId com.mycompany and Artifact Ids: Company pom : mycompany Department pom : mydepartment Project pom: someproject The company pom will be something like: project modelversion... groupIdcom.mycompany/groupId artifactIdmycomapny/artifactId version1version . /project The department pom would initially be something like: project modelversion... parent groupIdcom.mycompany/groupId artifactIdmycomapny/artifactId version1version /parent groupIdcom.mycompany/groupId artifactIdmydepartment/artifactId version1version . /project and finally, the project POM would initially be something like project modelversion... parent groupIdcom.mycompany/groupId artifactIdmydepartment/artifactId version1version /parent groupIdcom.mycompany/groupId artifactIdsomeproject/artifactId version1.0-SNAPSHOTversion . /project Now, what happens if I need to update the company POM ? I will update it, and set it to version 2. How can I then ensure that all my current projects will be using the new version of my company POM (available, offcourse from our company repository) ? Do I have to update the department pom so that it's parent now becomes v2 of the company POM, or will Maven use version 1 or whichever is newer of the company POM (ie. the v2) ? The same goes for the project POM. I recon if I need to update the department POM as a result of haveing updated the company POM, I also need to update the project POM to use version 2 of the department POM ? Is there no way of saying that I want the latest version of a POM to be the parent POM ? Regards Arne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven exec plug-in and the scope of dependency
Try adding the mysql dependency to the plugin itself. Seems like the exec plugin is not inheriting the test classpath, only the compile classpath. Wayne On 9/18/07, Yan Huang [EMAIL PROTECTED] wrote: Hello, I have a situation where i define mysql dependency with test scope as belows: dependency groupIdmysql/groupId artifactIdmysql-jdbc-connector/artifactId version5.0.3/version scopetest/scope /dependency According to the spec, this jar will be included in the classpath of test compilation and execution. However, when I'm using maven exec plug-in to prepare some test tables installation in MySQL DB with the default classpath as part of test-compile phase: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasetest-compile/phase goals goaljava/goal /goals /execution /executions configuration mainClassmyexample.foo.test/mainClass arguments argumentinstall/argument /arguments /configuration /plugin The mvn test-compile failed to find mysql-jdbc-connector-5.0.3.jar, which suggested that this jar was not available during test-compile phase. After removing test scope of that dependency, test-compile phase went through fine. Did anyone observe the similar behavior? was the test-scoped dependency really not available in test-compile phase? Thanks Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parent POM and versions...
On 9/18/07, David Jackman [EMAIL PROTECTED] wrote: I'm interested in repeatable release builds, but not really interested in repeatable snapshot builds. It would be great to specify for a parent (or a dependency in some cases) to use the latest available release or snapshot version while my project is under development (i.e. in snapshot mode). When I release the project, the release plugin could change the pom to specifically reference whatever version that is at the time, then switch back to latest mode for the next snapshot. If you've been developing and testing against 5-SNAPSHOT of the parent pom, you really don't want to suddenly change that to 4 at release time. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven exec plug-in and the scope of dependency
Another question: it seems that I cannot use this exec plug-in in pre-clean phase. When I tried, I got NullPointerException from maven as belows: mvn clean [INFO] Scanning for projects... WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Data Access Specific [INFO]task-segment: [clean] [INFO] [INFO] Preparing exec:java [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation. [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [exec:java {execution: default}] [INFO] [ERROR] BUILD ERROR [INFO] --- constituent[0]: file:/C:/Program Files/Apache Software Fundation/maven-2.0.7 /bin/../lib/maven-core-2.0.7-uber.jar --- java.lang.NullPointerException at org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose( MojoExecutionExceptionDiagnoser.java:64) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose( ErrorDiagnostics.java:84) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java :727) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:672) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) here is the snippet of my definition xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasepre-clean/phase goals goaljava/goal /goals /execution On 9/18/07, Wayne Fay [EMAIL PROTECTED] wrote: Try adding the mysql dependency to the plugin itself. Seems like the exec plugin is not inheriting the test classpath, only the compile classpath. Wayne On 9/18/07, Yan Huang [EMAIL PROTECTED] wrote: Hello, I have a situation where i define mysql dependency with test scope as belows: dependency groupIdmysql/groupId artifactIdmysql-jdbc-connector/artifactId version5.0.3/version scopetest/scope /dependency According to the spec, this jar will be included in the classpath of test compilation and execution. However, when I'm using maven exec plug-in to prepare some test tables installation in MySQL DB with the default classpath as part of test-compile phase: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasetest-compile/phase goals goaljava/goal /goals /execution /executions configuration mainClassmyexample.foo.test/mainClass arguments argumentinstall/argument /arguments /configuration /plugin The mvn test-compile failed to find mysql-jdbc-connector-5.0.3.jar, which suggested that this jar was not available during test-compile phase. After removing test scope of that dependency, test-compile phase went through fine. Did anyone observe the similar behavior? was the test-scoped dependency really not available in test-compile phase? Thanks Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confused with clover
If you're new to maven you might want to start with using maven 2. It looks (to me) like you are using version 1. Jim On 9/18/07, Choudhary, Jay [EMAIL PROTECTED] wrote: All I am new to maven.. My maven.xml is below at top level project default=build xmlns:m=jelly:maven xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=build attainGoal name=buildAll/ attainGoal name=multiproject/ /goal goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ /goal goal name=cleanAll attainGoal name=clean/ attainGoal name=multiproject:clean/ /goal preGoal name=site attainGoal name=clover:on/ /preGoal postGoal name=multiproject:clean ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.cts/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.application/ ant:delete dir=${maven.home.local}/repository/com.visaeu.rcs.dm/ /postGoal /project Now when I run maven site , it fails on clover test ,,, error given below #--- --- [javac] Compiling 18 source files to /vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes [javac] Clover Version 1.3.11, built on November 02 2005 [javac] loaded from: /home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar [javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa Europe Services Inc. [javac] Processing files at 1.5 source level. [javac] No coverage database '/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database /clover_coverage.db' found. Creating a fresh one. [javac] [ERROR] /tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting class, found 'ColBatchControl' [javac] [ERROR] line 331: expecting class, found 'ColBatchControl' [javac] [ERROR] ** Error(s) occurred and the instrumentation process can't continue. BUILD FAILED File.. /home/users/rcsdev/.maven/cache/maven-java-pl #--- I have been told this has happened because the class file was not created , now when I try to create class file maven jar:install failed with compilation error . Shouldn't it be that whole build should compile first and then clover test should run ? I am thinking to modify maven.xml with goal name=buildAll attainGoal name=cleanAll/ attainGoal name=multiproject:install/ attainGoal name=site/ /goal This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111.
Re: problem setting up servlet and jsp api dependencies as provided scope
Z: when you say that it's not working, do you mean on the .classpath file for eclipse? Does this seem like the same problem as you are having: http://jira.codehaus.org/browse/MECLIPSE-79#action_99459 Jim On 9/18/07, Wayne Fay [EMAIL PROTECTED] wrote: Google for maven exclusion. Wayne On 9/18/07, thebugslayer [EMAIL PROTECTED] wrote: Max, How would I exclude the javax.servlet:jsp-api one? I tried provided scope, but it's still not working. -Z On 9/15/07, Max Bowsher [EMAIL PROTECTED] wrote: thebugslayer wrote: Hi, I understand this problem is more of Eclipse related, but it also involves Maven setup, so I thought maybe one of users here would have come across the same problem and give me some help. I have a webapp project setup in Eclipse Europa with Tomcat6.0, and I am using m2eclipse plugin. In my part of my pom.xml I have the following: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.5/version scopeprovided/scope /dependency dependency groupIdjavax.servlet.jsp/groupId artifactIdjsp-api/artifactId version2.1/version scopeprovided/scope /dependency When I run it inside eclipse, the webapp startup fine, but when I hit any jsp page I get the following: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Part of the issue may be that the 2.0 jsp-api is erroneously published under two different names in the central Maven2 repository: * javax.servlet.jsp:jsp-api * javax.servlet:jsp-api thus causing Maven to potentially put one of each name on the classpath. It would be necessary to add a dependency exclusion for the javax.servlet:jsp-api version to any dependencies which are transitively pulling it in. Max. -- /bugslayer - 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: How to run maven goals from Eclipse?
I use Wicked Shell to run Maven from within Eclipse. http://www.wickedshell.net/ Cheers Peter sieg wrote: I've been google searching and reading the books on devzuz and www.sonatype http://www.sonatype/ . However, I cannot figure out how to run maven goals from eclipse. I want to create some unit tests for a minimal maven project. I want to do it in eclipse. -- View this message in context: http://www.nabble.com/How-to-run-maven-goals-from-Eclipse--tf4470584s177.html#a12767228 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: How to run maven goals from Eclipse?
Thanks, Carlos I'm running Eclipse SDK 3.3.0. I have created a new empty project. I use maven to download junit4.0.jar into the Maven2 Dependences. I've tried adding a unit test as described at http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html I'm using junit4 instead of 3.8. The problem is that neither maven nor eclipse can find and run my tests. Below are more details. Thanks, Siegfried I right click on the project - new - Junit Test and it creates a package for me that is in the top level directory for that project? Should it not be under main/test? Well here is my test: package m2Test; import static org.junit.Assert.*; import org.junit.Assert; public class simple2 { @Test public void simple(){ Assert.assertNotNull(new String()); } } Well I right click on the project again and select Run As - JUnit Test and it says 'No tests found with test runner 'JUnit 4'. Why not? So then I move the test into the main/test and I still get the same result. So then I try a JUnit 3 test and that does not work either (scroll way down to see my JUnit3 test). So then I try to get maven to execute the tests (I right click on pom.xml, select run as - maven 2 buld ) and it cannot find any tests to run either. Maven does run a C++ project in the same workspace! Is this an eclipse problem or a maven plugin problem. Here is the log from right clicking on pom.xml and run the test goal: [INFO] [INFO] Building Unnamed - demo:Maven_Hibernate_Spring_Demo:jar:0.0.1 [INFO] task-segment: [test] [INFO] [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:compile [INFO] No sources to compile [INFO] resources:testResources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:testCompile [INFO] No sources to compile [INFO] surefire:test [INFO] No tests to run. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Mon Sep 17 23:01:40 MDT 2007 [INFO] Memory 2M/6M [INFO] // JUnit 3 test: /** * */ package m2Test; import junit.framework.TestCase; /** * @author Siegfried Heintze * */ public class SimpleJUnit3 extends TestCase { /** * @param name */ public SimpleJUnit3(String name) { super(name); } /* (non-Javadoc) * @see junit.framework.TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); } /* (non-Javadoc) * @see junit.framework.TestCase#tearDown() */ protected void tearDown() throws Exception { super.tearDown(); } public testSimple(){ SimpleJUnit3 s = new SimpleJUnit3(demo); assertNotNull(s); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to run maven goals from Eclipse?
you should ask in the mailing list of the eclipse plugin you are using On 9/18/07, siegfried [EMAIL PROTECTED] wrote: Thanks, Carlos I'm running Eclipse SDK 3.3.0. I have created a new empty project. I use maven to download junit4.0.jar into the Maven2 Dependences. I've tried adding a unit test as described at http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html I'm using junit4 instead of 3.8. The problem is that neither maven nor eclipse can find and run my tests. Below are more details. Thanks, Siegfried I right click on the project - new - Junit Test and it creates a package for me that is in the top level directory for that project? Should it not be under main/test? Well here is my test: package m2Test; import static org.junit.Assert.*; import org.junit.Assert; public class simple2 { @Test public void simple(){ Assert.assertNotNull(new String()); } } Well I right click on the project again and select Run As - JUnit Test and it says 'No tests found with test runner 'JUnit 4'. Why not? So then I move the test into the main/test and I still get the same result. So then I try a JUnit 3 test and that does not work either (scroll way down to see my JUnit3 test). So then I try to get maven to execute the tests (I right click on pom.xml, select run as - maven 2 buld ) and it cannot find any tests to run either. Maven does run a C++ project in the same workspace! Is this an eclipse problem or a maven plugin problem. Here is the log from right clicking on pom.xml and run the test goal: [INFO] [INFO] Building Unnamed - demo:Maven_Hibernate_Spring_Demo:jar:0.0.1 [INFO] task-segment: [test] [INFO] [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:compile [INFO] No sources to compile [INFO] resources:testResources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:testCompile [INFO] No sources to compile [INFO] surefire:test [INFO] No tests to run. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Mon Sep 17 23:01:40 MDT 2007 [INFO] Memory 2M/6M [INFO] // JUnit 3 test: /** * */ package m2Test; import junit.framework.TestCase; /** * @author Siegfried Heintze * */ public class SimpleJUnit3 extends TestCase { /** * @param name */ public SimpleJUnit3(String name) { super(name); } /* (non-Javadoc) * @see junit.framework.TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); } /* (non-Javadoc) * @see junit.framework.TestCase#tearDown() */ protected void tearDown() throws Exception { super.tearDown(); } public testSimple(){ SimpleJUnit3 s = new SimpleJUnit3(demo); assertNotNull(s); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting up an inhouse repository
Hi - I'm struggling a little with setting up an inhouse repository. I've been looking at: http://www.sonatype.com/book/repository.html#creating_an_in-house_repository but the documentation about settings.xml seems to cause an error: Error reading settings.xml: Unrecognised tag: 'distributionManagement' (position: START_TAG seen ...profile\n distributionManagement... @4:31) Line: 4 Column: 31 How should I configure my settings.xml to say where to put my deployments? Also, what's the recommendations on configuring snapshots vs. releases? I've tried: repositories repository releases / snapshots enabledtrue/enabled /snapshots idfoo-repository/id urlhttp://foo.com/maven2/url /repository Thanks - Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to run maven goals from Eclipse?
as you can see in http://maven.apache.org/eclipse-plugin.html there are two different plugins M2Eclipse and Q for Eclipse (Q4E), none of them are Apache Maven projects The mailing lists for Q4E are in the main page http://code.google.com/p/q4e/ On 9/18/07, siegfried [EMAIL PROTECTED] wrote: Sorry, I assumed the eclipse plug in was the same mailing list since http://maven.apache.org/eclipse-plugin.html and http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html are clearly on the maven sites. I did a google search and could not find the email list and it is not even listed on the FAQ at http://code.google.com/p/q4e/wiki/FAQ ! Can someone kindly point me to the user email list for the eclipse maven plugin? Thanks, Siegfried - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to run maven goals from Eclipse?
Sorry, I assumed the eclipse plug in was the same mailing list since http://maven.apache.org/eclipse-plugin.html and http://m2eclipse.codehaus.org/Maven_2.0_Plugin_for_Eclipse.html are clearly on the maven sites. I did a google search and could not find the email list and it is not even listed on the FAQ at http://code.google.com/p/q4e/wiki/FAQ ! Can someone kindly point me to the user email list for the eclipse maven plugin? Thanks, Siegfried - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven exec plug-in and the scope of dependency
Try mvn -X clean. It might provide more detailed debugging information that will point to the real underlying issue. Wayne On 9/18/07, Yan Huang [EMAIL PROTECTED] wrote: Another question: it seems that I cannot use this exec plug-in in pre-clean phase. When I tried, I got NullPointerException from maven as belows: mvn clean [INFO] Scanning for projects... WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Data Access Specific [INFO]task-segment: [clean] [INFO] [INFO] Preparing exec:java [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation. [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation. [INFO] No goals needed for project - skipping [INFO] [exec:java {execution: default}] [INFO] [ERROR] BUILD ERROR [INFO] --- constituent[0]: file:/C:/Program Files/Apache Software Fundation/maven-2.0.7 /bin/../lib/maven-core-2.0.7-uber.jar --- java.lang.NullPointerException at org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose( MojoExecutionExceptionDiagnoser.java:64) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose( ErrorDiagnostics.java:84) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java :727) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:672) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) here is the snippet of my definition xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasepre-clean/phase goals goaljava/goal /goals /execution On 9/18/07, Wayne Fay [EMAIL PROTECTED] wrote: Try adding the mysql dependency to the plugin itself. Seems like the exec plugin is not inheriting the test classpath, only the compile classpath. Wayne On 9/18/07, Yan Huang [EMAIL PROTECTED] wrote: Hello, I have a situation where i define mysql dependency with test scope as belows: dependency groupIdmysql/groupId artifactIdmysql-jdbc-connector/artifactId version5.0.3/version scopetest/scope /dependency According to the spec, this jar will be included in the classpath of test compilation and execution. However, when I'm using maven exec plug-in to prepare some test tables installation in MySQL DB with the default classpath as part of test-compile phase: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasetest-compile/phase goals goaljava/goal /goals /execution /executions configuration mainClassmyexample.foo.test/mainClass arguments argumentinstall/argument /arguments /configuration /plugin The mvn test-compile failed to find mysql-jdbc-connector-5.0.3.jar, which suggested that this jar was not available during test-compile phase. After removing test scope of that dependency, test-compile phase went through fine. Did anyone observe the similar behavior? was the test-scoped dependency really not available in test-compile phase? Thanks Yan - 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]
Seeing System.out.print output during test runs
Hi, I am usingTestNG for my testing framework. I have some print statements I'd like to see in the test output. However, I don't see any. I assume I need to configure surefire somehow. Currently, I have no configuration at all. It's just straightforward pom file with TestNG 4.7 as a dependency. How do I enable that? Thanks, Yaakov. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]