Dependency Version Ranges: Unable to specify 0.6 = x 0.7
Hi, I'm trying to use the maven version ranges syntax as described in the 'Dependency Mediation and Conflict Resolution' document (http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution). Unfortunatly the syntax proposed does not work in my case. A dependency for a module 'a' to another module 'b' should be fulfilled for all versions of b = 0.6 and b 0.7 (is true for all patches, respectively all revisions 0.6.x of 'b' on the branch 0.6). The proposed syntax for this task is [0.6,0.7), but this will pick versions 0.7! Any suggestions would be helpfully. Thank you! Bernd Mau
Re: [m2] Error in dependencyCheck starting tomcat - Bug or Feature?
Thank you Fredy! I also encountered the same error as you had, and reading your message helps me to solve my problem. In my jar file where the MANIFEST.MF are visible, there are some new line and tab characters in [Specification-Title:] part the reason why this happens is I wrote the ff. in my pom.xml: description ![CDATA[blah blah blah blah]] /description omitting ![CDATA[]] part, then creating again the jar file. will make my application running. Cheers! yuubouna (*^_^*) -- View this message in context: http://www.nabble.com/-m2--Error-in-dependencyCheck-starting-tomcat--%3E-Bug-or-Feature--tf1031941s177.html#a8821996 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cargo undeploy error
Hi, I'm exploring the possibilities of the Maven cargo plugin to deploy my projects on a remote Apache Tomcat server. I've created a small web project that contains a simple .html file with some info on it. I packaged it as a WAR so I can deploy it on my server. Now I made a cargo configuration in my project's pom. Deploying works just fine, but when I want to undeploy the web project, I get a weird error. Just like the undeploy goal isn't supported. I've already checked the version of the maven-cargo-plugin, but everutihing seems ok to me. Cargo: deploy works fine as you can see But when I try to undeploy my war, I get the following error. C:\eGovDev\cargo-testmvn cargo:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:deploy] [INFO] - --- [INFO] [cargo:deploy] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Tue Feb 06 09:08:28 CET 2007 [INFO] Final Memory: 3M/8M [INFO] C:\eGovDev\cargo-testmvn cargo:undeploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:undeploy] [INFO] - --- [INFO] [cargo:undeploy] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Not supported [INFO] [INFO] Trace org.codehaus.cargo.container.ContainerException: Not supported at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(A bstractDeployer.java:99) at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionO nSingleDeployable(DeployerUndeployMojo.java:39) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionO nAllDeployables(AbstractDeployerMojo.java:104) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDepl oyerMojo.java:47) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo .java:243) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Tue Feb 06 09:08:57 CET 2007 [INFO] Final Memory: 3M/8M [INFO] Here's my pom content: 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
docbkx plugin
I'm trying to set imgSrcPath to different values for 'generate-html' and 'generate-pdf' but can't get it to work. I've tried the following in my pom.xml: -- project ... build ... plugins ... plugin groupIdcom.agilejava.docbkx/groupId artifactIddocbkx-maven-plugin/artifactId version2.0.2/version executions execution idgenerate-pdf/id goals goalgenerate-pdf/goal /goals configuration imgSrcPath${basedir}/PathA//imgSrcPath /configuration /execution execution idgenerate-html/id goals goalgenerate-html/goal /goals configuration imgSrcPathPathB//imgSrcPath /configuration /execution /executions ... /plugin ... /plugins ... /build ... /project -- Does anyone have any idea? Can it be done? Regards, Per -- View this message in context: http://www.nabble.com/docbkx-plugin-tf3179318s177.html#a8822106 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: webstart-plugin: dependencies
A little bit late but might be helpful to someone else. On 11/7/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello everyone, one of the configuration parameters of the webstart plugin looks like the following: !-- transitive dependencies filter -- dependencies !-- Note that only groupId and artifactId must be specified here. because of a limitation of the Include/ExcludesArtifactFilter -- includes includecommons-logging:commons-logging/include includecommons-cli:commons-cli/include includes !-- excludes exclude/exclude excludes-- /dependencies what is the main intent of the includes or excludes ? To give your fine control over the dependencies you want to package in your webstart package. By default the plugin will take all relevant dependencies (those taken from the POM + those resolved transitively). At first, i added my application (the one that has to be distributed via webstart) as a dependency: then, it seems like I have to add in the includes block all its dependencies..but then what happen with transitive dependencies ?... If you don't need to fine control your dependency list, don't use it. any one can clarify this ? Hope that's clear... Jerome
Re: Cargo undeploy error
Hi Jelle, Could you use the 0.3-SNAPSHOT version (we've fixed that in there). See http://cargo.codehaus.org/Maven2+Plugin+Installation Thanks -Vincent PS: Next time, please use the cargo mailing lists. On Feb 6, 2007, at 9:13 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm exploring the possibilities of the Maven cargo plugin to deploy my projects on a remote Apache Tomcat server. I've created a small web project that contains a simple .html file with some info on it. I packaged it as a WAR so I can deploy it on my server. Now I made a cargo configuration in my project's pom. Deploying works just fine, but when I want to undeploy the web project, I get a weird error. Just like the undeploy goal isn't supported. I've already checked the version of the maven-cargo-plugin, but everutihing seems ok to me. Cargo: deploy works fine as you can see But when I try to undeploy my war, I get the following error. C:\eGovDev\cargo-testmvn cargo:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] -- -- - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:deploy] [INFO] -- -- - --- [INFO] [cargo:deploy] [INFO] -- -- [INFO] BUILD SUCCESSFUL [INFO] -- -- [INFO] Total time: 8 seconds [INFO] Finished at: Tue Feb 06 09:08:28 CET 2007 [INFO] Final Memory: 3M/8M [INFO] -- -- C:\eGovDev\cargo-testmvn cargo:undeploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] -- -- - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:undeploy] [INFO] -- -- - --- [INFO] [cargo:undeploy] [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] Not supported [INFO] -- -- [INFO] Trace org.codehaus.cargo.container.ContainerException: Not supported at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(A bstractDeployer.java:99) at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionO nSingleDeployable(DeployerUndeployMojo.java:39) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionO nAllDeployables(AbstractDeployerMojo.java:104) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDepl oyerMojo.java:47) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo .java:243) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) [INFO] -- -- [INFO] Total time: 7 seconds [INFO] Finished at: Tue Feb 06 09:08:57 CET 2007 [INFO] Final Memory: 3M/8M [INFO]
RE: Cargo undeploy error
Hi Vincent, I'm using the latest release of the 0.3-SNAPSHOT I've also tried a standalone tomcat server a few minutes ago. Mvn cargo:start and mvn cargo:deploy work fine, but cargo:undeploy gives me the same error. I checked my repository and I'm using the latest release 0.3-20070124 build 6. POM content: plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version ... /plugin pluginRepositories pluginRepository idcargo m2 snapshot repository/id urlhttp://snapshots.repository.codehaus.org//url releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories Kind regards. -Original Message- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: dinsdag 6 februari 2007 10:05 To: Maven Users List Subject: Re: Cargo undeploy error Hi Jelle, Could you use the 0.3-SNAPSHOT version (we've fixed that in there). See http://cargo.codehaus.org/Maven2+Plugin+Installation Thanks -Vincent PS: Next time, please use the cargo mailing lists. On Feb 6, 2007, at 9:13 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm exploring the possibilities of the Maven cargo plugin to deploy my projects on a remote Apache Tomcat server. I've created a small web project that contains a simple .html file with some info on it. I packaged it as a WAR so I can deploy it on my server. Now I made a cargo configuration in my project's pom. Deploying works just fine, but when I want to undeploy the web project, I get a weird error. Just like the undeploy goal isn't supported. I've already checked the version of the maven-cargo-plugin, but everutihing seems ok to me. Cargo: deploy works fine as you can see But when I try to undeploy my war, I get the following error. C:\eGovDev\cargo-testmvn cargo:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] -- -- - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:deploy] [INFO] -- -- - --- [INFO] [cargo:deploy] [INFO] -- -- [INFO] BUILD SUCCESSFUL [INFO] -- -- [INFO] Total time: 8 seconds [INFO] Finished at: Tue Feb 06 09:08:28 CET 2007 [INFO] Final Memory: 3M/8M [INFO] -- -- C:\eGovDev\cargo-testmvn cargo:undeploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'cargo'. [INFO] -- -- - --- [INFO] Building cargo-test [INFO]task-segment: [cargo:undeploy] [INFO] -- -- - --- [INFO] [cargo:undeploy] [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] Not supported [INFO] -- -- [INFO] Trace org.codehaus.cargo.container.ContainerException: Not supported at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(A bstractDeployer.java:99) at org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionO nSingleDeployable(DeployerUndeployMojo.java:39) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionO nAllDeployables(AbstractDeployerMojo.java:104) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDepl oyerMojo.java:47) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo .java:243) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at
Re: Maven shell
Is there a release of this plugin? I have searched the mojo and the sandbox repository and can not see it in there. Thanks, Martin. - Original message - From: Tim Kettler [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Date: Mon, 05 Feb 2007 08:43:03 +0100 Subject: Re: Maven shell Am Sonntag, den 04.02.2007, 10:48 +0100 schrieb Arnaud Bailly: Hello to all, I wonder if there exists or if someone is working on a Maven shell: an application that would load a pom (or poms) once, do all the initialization work then wourd accept maven commands or some kind of language allowing for modification of the pom. regards, Hi, there is the pomtools-maven-plugin [1] in the mojo sandbox. -Tim [1] http://mojo.codehaus.org/pomtools-maven-plugin/overview.html - 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 shell
Hi, I never used the plugin myself, just remembered that it exists. If there is no release or snapshot available you have to checkout the sources and build it yourself. Or you can ask on the mojo list if they can make a snapshot available. -Tim Am Dienstag, den 06.02.2007, 09:54 + schrieb Martin Gilday: Is there a release of this plugin? I have searched the mojo and the sandbox repository and can not see it in there. Thanks, Martin. - Original message - From: Tim Kettler [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Date: Mon, 05 Feb 2007 08:43:03 +0100 Subject: Re: Maven shell Am Sonntag, den 04.02.2007, 10:48 +0100 schrieb Arnaud Bailly: Hello to all, I wonder if there exists or if someone is working on a Maven shell: an application that would load a pom (or poms) once, do all the initialization work then wourd accept maven commands or some kind of language allowing for modification of the pom. regards, Hi, there is the pomtools-maven-plugin [1] in the mojo sandbox. -Tim [1] http://mojo.codehaus.org/pomtools-maven-plugin/overview.html - 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: Maven shell
Thanks, I checked out the source and installed it. Was all working until it comes to saving the modified POM when a java.lang.NoSuchFieldException: modelCache fatal error occurs. Looked useful until that point, so should be very useful when their TODO list is finished. I will have a look on the mojo list. Thanks, Martin. - Original message - From: Tim Kettler [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Date: Tue, 06 Feb 2007 11:16:14 +0100 Subject: Re: Maven shell Hi, I never used the plugin myself, just remembered that it exists. If there is no release or snapshot available you have to checkout the sources and build it yourself. Or you can ask on the mojo list if they can make a snapshot available. -Tim Am Dienstag, den 06.02.2007, 09:54 + schrieb Martin Gilday: Is there a release of this plugin? I have searched the mojo and the sandbox repository and can not see it in there. Thanks, Martin. - Original message - From: Tim Kettler [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Date: Mon, 05 Feb 2007 08:43:03 +0100 Subject: Re: Maven shell Am Sonntag, den 04.02.2007, 10:48 +0100 schrieb Arnaud Bailly: Hello to all, I wonder if there exists or if someone is working on a Maven shell: an application that would load a pom (or poms) once, do all the initialization work then wourd accept maven commands or some kind of language allowing for modification of the pom. regards, Hi, there is the pomtools-maven-plugin [1] in the mojo sandbox. -Tim [1] http://mojo.codehaus.org/pomtools-maven-plugin/overview.html - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't deploy site,Help please.
Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection( AbstractSshWagon.java:228) ... 13 more what can I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i connect to a password protected repository?
Andy, many thanks for the help. It works now. -Maruf Andrew Williams wrote: You need to setup a pluginRepositories section too Andy On 5 Feb 2007, at 16:03, Maruf Aytekin wrote: Hi, Thanks for the help. I am doing something wrong here I guess. I have set the username and password in settings.xml and configured pom.xml as below. I can deploy the files successfully but I cannot read from the repository. It checks internal but doesn't download the plugin from internal. it downloads it from central as follows: [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for upd ates from internal [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for upd ates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom 1K downloaded Downloading: http://mycompany.com/repository/maven2/org/apache/maven/plugins/maven-compi ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar 14K downloaded settings.xml .. server idinternal/id usernameusername/username passwordpassword/password filePermissions664/filePermissions directoryPermissions775/directoryPermissions/server ... pom.xml . . modules modulecustomer/module moduleserver/module /modules repositories repository idinternal/id nameMyCompany Repository/name urlhttp://mycompany.com/repository/maven2/url /repository /repositories distributionManagement repository uniqueVersionfalse/uniqueVersion idinternal/id nameMyCompany Repository/name urlscp://mycompany.com/home/repository/maven2/url /repository snapshotRepository idinternal/id uniqueVersionfalse/uniqueVersion nameMyCompany Snapshot Repository/name urlscp://mycompany.com/home/repository/maven2/url /snapshotRepository /distributionManagement . . Rodrigo Ruiz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 No, Andrew was right. The servers/server entry in settings.xml is for any remote server. Just give it a try ;-) Cheers, Rodrigo Ruiz Maruf Aytekin wrote: I think this is for deploying artifacts. and the settings are the settings to login the server. I have an http server running to serve my artifact repository username and passsword protected. I found this solution usses url with username and password: repository idinternal/id namemycompany Repository/name urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url /repository But I am getting authentication error with this and also with this solution I don't want username and password go with pom.xml. Is there a different way to achieve this? Thanks Maruf Andrew Williams wrote: In settings.xml - something like servers server idinternal/id username.../username password.../password /server /servers Andy Maruf Aytekin wrote: I would like to set a password protected repository. In order to download from repository you need to enter usernae and password to apache authentication prompt. Where should I configure it? in the pom or settings file? repositories repository idinternal/id nameMyCompany Repository/name urlhttp://mycompany.com/repository/maven2/url /repository /repositories Thanks for the help, Maruf - -- - --- GRID SYSTEMS, S.A. Rodrigo Ruiz Parc Bit - Edificio 17 Research Coordinator 07121 Palma de Mallorca Baleares - Spain Tel: +34 971 435 085 http://www.gridsystems.com/Fax: +34 971 435 082 - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3 0DktK0H3WAHSIOkHcmfHlnU= =6N+9 -END PGP SIGNATURE- - 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: Reading the current OS family
You can activate profile just only use system properties or java version. But you can also write small plugin witch will get ${os.name} and then set to your ${maven.os.family} on initialize phase of build process. Please read about this in Chapter 5.4.1 in book Better build with Maven 2 http://www.mergere.com/m2book_download.jsp Graham Leggett wrote: On Mon, February 5, 2007 3:24 pm, [EMAIL PROTECTED] wrote: If you read your own link :) And if you read my question you'll see I am asking whether it's possible to access the OS family through a macro such as ${maven.os.family}. I am well aware that it is possible to activate profiles by OS family, but that is not what I am trying to achieve here. ;) Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/RE%3A-Reading-the-current-OS-family-tf3174277s177.html#a8824370 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: 'dependency:copy' does not work
I checked the documentation again last night. The descriptions for dependency:copy assume that it will be bound to a lifecycle. Therfore, the example is correct. However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do), therefore the docs need to be augmented. I really think though that the root of the issue is a maven core issue. I don't understand why when executed from the CLI, it uses configuration from a tag outside an execution. It is obviously confusing. -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:33 AM To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: From that entry I got I was able to configure the old one. I am not really sure I understand the point of publishing a plug-in description to the Maven site, which does not work when taken directly from it by cut-and-paste. The maven-changelog-plugin is sort of similar in that it is not available from ibiblio. You get the message 'does not exist or no valid version could be found' when trying to use it. Is it not sort of a minimum standard that one at least can trust the information published on the official web page? /Jens -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 23:38 To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840 6709 (assuming you are copying dependency:copy from the command line?) -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:22 PM To: Maven Users List Subject: RE: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? Yes. Exactly as stated in the docs plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phasepackage/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type overWritefalse/overWrite outputDirectory${project.build.directory}/alternateLocation/outputDir ectory destFileNameoptional-new-name.jar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/wars/outputDirectory overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 22:52 To: Maven Users List Subject: Re: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote: I did a cut-and-paste from the docs of the dependency plug-in http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying -artifacts.html To troubleshoot my configuration of 'dependency:copy' However, I still get the same error as shown below. What am I doing wrong and how is that reflected in the online docs? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:copy' [0] inside the definition for plugin: 'maven-dependency-plugin'specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007 [INFO] Final Memory: 8M/15M [INFO] - 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 dynamically change parameter values
Hi, I'm trying to change a parameter value, so that the new value could be seen by other plugins... I wrote two simple mojos, both have a String type public field named param with @parameter expression=${telefon} annotation. One mojo presents current value (defined in projects pom) and then assigns a new value to this field. Other mojo just presents the current value, which is still the same as defined in the pom. The order in which both mojos are executed is right. Now... am I trying to accomplish something impossible, or just doing it wrong? Best regards, Bartosz Zoladkowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 'dependency:copy' does not work
However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do) I didn't. It was bound to the package phase and I run 'mvn package' -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 6 februari 2007 12:03 To: Maven Users List Subject: RE: 'dependency:copy' does not work I checked the documentation again last night. The descriptions for dependency:copy assume that it will be bound to a lifecycle. Therfore, the example is correct. However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do), therefore the docs need to be augmented. I really think though that the root of the issue is a maven core issue. I don't understand why when executed from the CLI, it uses configuration from a tag outside an execution. It is obviously confusing. -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:33 AM To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: From that entry I got I was able to configure the old one. I am not really sure I understand the point of publishing a plug-in description to the Maven site, which does not work when taken directly from it by cut-and-paste. The maven-changelog-plugin is sort of similar in that it is not available from ibiblio. You get the message 'does not exist or no valid version could be found' when trying to use it. Is it not sort of a minimum standard that one at least can trust the information published on the official web page? /Jens -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 23:38 To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840 6709 (assuming you are copying dependency:copy from the command line?) -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:22 PM To: Maven Users List Subject: RE: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? Yes. Exactly as stated in the docs plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phasepackage/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type overWritefalse/overWrite outputDirectory${project.build.directory}/alternateLocation/outputDir ectory destFileNameoptional-new-name.jar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/wars/outputDirectory overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 22:52 To: Maven Users List Subject: Re: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote: I did a cut-and-paste from the docs of the dependency plug-in http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying -artifacts.html To troubleshoot my configuration of 'dependency:copy' However, I still get the same error as shown below. What am I doing wrong and how is that reflected in the online docs? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:copy' [0] inside the definition for plugin: 'maven-dependency-plugin'specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Mon Feb 05 22:18:41 GMT 2007 [INFO] Final Memory: 8M/15M [INFO]
RE: 'dependency:copy' does not work
Write an issue and attach your pom (or reopen mdep-27 and attach) but I just looked at the exact same issue and it was working ok. This is the one I referenced in my post below http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html. There must be something to this because multiple people have seen it, but I haven't been able to reproduce it yet. --Brian -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 8:00 AM To: Maven Users List Subject: RE: 'dependency:copy' does not work However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do) I didn't. It was bound to the package phase and I run 'mvn package' -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 6 februari 2007 12:03 To: Maven Users List Subject: RE: 'dependency:copy' does not work I checked the documentation again last night. The descriptions for dependency:copy assume that it will be bound to a lifecycle. Therfore, the example is correct. However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do), therefore the docs need to be augmented. I really think though that the root of the issue is a maven core issue. I don't understand why when executed from the CLI, it uses configuration from a tag outside an execution. It is obviously confusing. -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:33 AM To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: From that entry I got I was able to configure the old one. I am not really sure I understand the point of publishing a plug-in description to the Maven site, which does not work when taken directly from it by cut-and-paste. The maven-changelog-plugin is sort of similar in that it is not available from ibiblio. You get the message 'does not exist or no valid version could be found' when trying to use it. Is it not sort of a minimum standard that one at least can trust the information published on the official web page? /Jens -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 23:38 To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840 6709 (assuming you are copying dependency:copy from the command line?) -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:22 PM To: Maven Users List Subject: RE: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? Yes. Exactly as stated in the docs plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phasepackage/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type overWritefalse/overWrite outputDirectory${project.build.directory}/alternateLocation/outputDir ectory destFileNameoptional-new-name.jar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/wars/outputDirectory overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 22:52 To: Maven Users List Subject: Re: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote: I did a cut-and-paste from the docs of the dependency plug-in http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying -artifacts.html To troubleshoot my configuration of 'dependency:copy' However, I still get the same error as shown below. What am I doing wrong and how is that reflected in the online docs? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:copy' [0] inside
Re: 'dependency:copy' does not work
Jens, Could you post a simple pom showing it is not working? -D On 2/6/07, Riboe, Jens [EMAIL PROTECTED] wrote: However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do) I didn't. It was bound to the package phase and I run 'mvn package' -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 6 februari 2007 12:03 To: Maven Users List Subject: RE: 'dependency:copy' does not work I checked the documentation again last night. The descriptions for dependency:copy assume that it will be bound to a lifecycle. Therfore, the example is correct. However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do), therefore the docs need to be augmented. I really think though that the root of the issue is a maven core issue. I don't understand why when executed from the CLI, it uses configuration from a tag outside an execution. It is obviously confusing. -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:33 AM To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: From that entry I got I was able to configure the old one. I am not really sure I understand the point of publishing a plug-in description to the Maven site, which does not work when taken directly from it by cut-and-paste. The maven-changelog-plugin is sort of similar in that it is not available from ibiblio. You get the message 'does not exist or no valid version could be found' when trying to use it. Is it not sort of a minimum standard that one at least can trust the information published on the official web page? /Jens -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 23:38 To: Maven Users List Subject: RE: 'dependency:copy' does not work I think you are having this problem I described here: http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html#a840 6709 (assuming you are copying dependency:copy from the command line?) -Original Message- From: Riboe, Jens [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:22 PM To: Maven Users List Subject: RE: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? Yes. Exactly as stated in the docs plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phasepackage/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type overWritefalse/overWrite outputDirectory${project.build.directory}/alternateLocation/outputDir ectory destFileNameoptional-new-name.jar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/wars/outputDirectory overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: den 5 februari 2007 22:52 To: Maven Users List Subject: Re: 'dependency:copy' does not work Do you have artifactItems element defined in your configuration? On 2/5/07, Riboe, Jens [EMAIL PROTECTED] wrote: I did a cut-and-paste from the docs of the dependency plug-in http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying -artifacts.html To troubleshoot my configuration of 'dependency:copy' However, I still get the same error as shown below. What am I doing wrong and how is that reflected in the online docs? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:copy' [0] inside the definition for plugin: 'maven-dependency-plugin'specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4
Re: Jabber google talk
I think you can use java proxy properties. You can set them in wrapper.conf Emmanuel AyoContinuum a écrit : I am behind a proxy server...does anyone have information as to how to set up jabber in this situation? thanks Emmanuel Venisse wrote: Last time I used it, it worked fine. It seems that in your case, the service wasn't available (error 502). Emmanuel AyoContinuum a écrit : Hi, I am having a bit of trouble getting continuum to alert me of builds via google talk/jabber. I setup jabber in continuum according to the faq on the apache continuum website. It says that it can't connect to google talk at that port. I set the recipent as [EMAIL PROTECTED] ideas? I get the following error in continuum logs: 2007-02-03 15:16:38,703 [Thread-3] ERROR ContinuumNotificationDispatcher - Error while trying to use the jabbernotifier. INFO | jvm 1| 2007/02/03 15:16:38 | org.codehaus.plexus.notification.NotificationException: Exception while sending message. INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:241) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:139) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47) INFO | jvm 1| 2007/02/03 15:16:38 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java(Compiled Code)) INFO | jvm 1| 2007/02/03 15:16:38 | at java.lang.Thread.run(Thread.java:568) INFO | jvm 1| 2007/02/03 15:16:38 | Caused by: org.codehaus.plexus.jabber.JabberClientException: Can't connect to talk.google.com:5222 INFO | jvm 1| 2007/02/03 15:16:38 | at org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51) INFO | jvm 1| 2007/02/03 15:16:38 | at org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:221) INFO | jvm 1| 2007/02/03 15:16:38 | ... 7 more INFO | jvm 1| 2007/02/03 15:16:38 | Caused by: XMPPError connecting to talk.google.com:5222.: (502) INFO | jvm 1| 2007/02/03 15:16:38 | -- caused by: java.net.ConnectException: Connection refused: connect INFO | jvm 1| 2007/02/03 15:16:38 | at org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:174) INFO | jvm 1| 2007/02/03 15:16:38 | at org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:42) INFO | jvm 1| 2007/02/03 15:16:38 | ... 8 more INFO | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,461 [SocketListener0-1] ERROR VelocityComponent - RHS of #set statement is null. Context will not be modified. screens/ProjectBuild.vm [line 103, column 3] INFO | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,476 [SocketListener0-1] WARN VelocityComponent - org.apache.velocity.runtime.exception.ReferenceException: reference : template = screens/ProjectBuild.vm [line 137,column 64] : $requestUtil.getParameter('id') is not a valid reference. INFO | jvm 1| 2007/02/03 15:20:20 | 2007-02-03 15:20:20,507 [SocketListener0-1] WARN VelocityComponent - org.apache.velocity.runtime.exception.ReferenceException: reference : template = screens/ProjectBuild.vm [line 137,column 96] : ${requestUtil.getParameter('buildId')} is not a valid reference. INFO | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700 [SocketListener0-1] ERROR VelocityComponent - Left side ($notifier.configuration.sslConnection) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. screens/EditJabberNotifier.vm [line 57, column 104] INFO | jvm 1| 2007/02/03 15:31:04 | 2007-02-03 15:31:04,700 [SocketListener0-1] ERROR VelocityComponent - Left side ($notifier.configuration.isGroup) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. screens/EditJabberNotifier.vm [line 63, column 92] INFO | jvm 1| 2007/02/03 15:44:52 | 2007-02-03 15:44:52,315 [SocketListener0-1] ERROR VelocityComponent - Left side
Re: Build error when using Build All button
you need to remove all your target directories in working copies and add your target directories in svn:ignore property in svn (http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.ignore). All will be ok after that. Emmanuel Chris Russell a écrit : Hello, I just created a new project in Continuum 1.0.3. I built each project individually (there are 5) and each was successful. My error occurs when I hit Build All. 3 of my 5 projects fail with the following error: Provider message: The svn command failed. Command output: --- svn: Directory 'target/.svn' containing working copy admin area is missing --- Once I get this error, I try to build each project individually again and they fail. Any ideas? Thanks in advance, Chris
Re: Maven2+Hibernate3 Annotation Problem
Hi Johann, Yes, I tried that thing but it always throws no suitable driver exception: [ERROR] SchemaExport - schema export unsuccessful java.sql.SQLException: No sui table driverjava.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) My pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin But then if I have something like this, it actually works - it auto connects to my database and creates the schema: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create jdk5true/jdk5 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile /componentProperties /plugin Cheers On 2/5/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello First you need to set up the element outputfilename as seen here: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s chema_output.html Also you need to include the annotated classes in your hibernate.cfg.xml file Regards Johann Reyes -Original Message- From: lemon dumpling [mailto:[EMAIL PROTECTED] Sent: Saturday, February 03, 2007 8:33 PM To: users@maven.apache.org Subject: Maven2+Hibernate3 Annotation Problem Hi, I want to generate database schema to a sql file and feed the schema into my database. I have hibernate annotations instead of hbm.xml files. plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create configurationfilesrc/main/resources/etc/hibernate.cfg.xml/configurationfi le /componentProperties /configuration /plugin I believe something is missing. Thanks! Cheers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: continum newbie questions
srinivas ramgopal a écrit : Hi all, Since I am new to continum, I have few basic questions about the basic mechanism of continum and its relationship to Maven/remote repository: As far as I understand, the purpose of continum is to run the integration tests (somehow) whenever a file is modified/added in the associated source control tool (ex. PVCS, CVS). Then why does Continum need Maven? continuum doesn't require maven. maven is required only if you use maven projects in continuum. Also does Continum depend on a company's remote repository? If so, why? continuum use a remote repo (defined in your poms or settings.xml) only for maven projects. Any help is highly appreciated. Thanks in advance.
Re: Maven2+Hibernate3 Annotation Problem
build extensions extension groupIdmysql-connector-java/groupId artifactIdmysql-connector-java/artifactId version5.0.4/version /extension /extensions hth, Manos Quoting lemon dumpling [EMAIL PROTECTED]: Hi Johann, Yes, I tried that thing but it always throws no suitable driver exception: [ERROR] SchemaExport - schema export unsuccessful java.sql.SQLException: No sui table driverjava.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) My pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin But then if I have something like this, it actually works - it auto connects to my database and creates the schema: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create jdk5true/jdk5 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile /componentProperties /plugin Cheers On 2/5/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello First you need to set up the element outputfilename as seen here: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s chema_output.html Also you need to include the annotated classes in your hibernate.cfg.xml file Regards Johann Reyes -Original Message- From: lemon dumpling [mailto:[EMAIL PROTECTED] Sent: Saturday, February 03, 2007 8:33 PM To: users@maven.apache.org Subject: Maven2+Hibernate3 Annotation Problem Hi, I want to generate database schema to a sql file and feed the schema into my database. I have hibernate annotations instead of hbm.xml files. plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create configurationfilesrc/main/resources/etc/hibernate.cfg.xml/configurationfi le /componentProperties /configuration /plugin I believe something is missing. Thanks! Cheers - 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: Maven2+Hibernate3 Annotation Problem
Hello; That's a base example, the plugin configuration should go something like this: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties droptrue/drop createtrue/create jdk5true/jdk5 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin Regards Johann Reyes -Original Message- From: lemon dumpling [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 8:29 AM To: Maven Users List Subject: Re: Maven2+Hibernate3 Annotation Problem Hi Johann, Yes, I tried that thing but it always throws no suitable driver exception: [ERROR] SchemaExport - schema export unsuccessful java.sql.SQLException: No sui table driverjava.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) My pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin But then if I have something like this, it actually works - it auto connects to my database and creates the schema: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create jdk5true/jdk5 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile /componentProperties /plugin Cheers On 2/5/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello First you need to set up the element outputfilename as seen here: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s chema_output.html Also you need to include the annotated classes in your hibernate.cfg.xml file Regards Johann Reyes -Original Message- From: lemon dumpling [mailto:[EMAIL PROTECTED] Sent: Saturday, February 03, 2007 8:33 PM To: users@maven.apache.org Subject: Maven2+Hibernate3 Annotation Problem Hi, I want to generate database schema to a sql file and feed the schema into my database. I have hibernate annotations instead of hbm.xml files. plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create configurationfilesrc/main/resources/etc/hibernate.cfg.xml/configurationfi le /componentProperties /configuration /plugin I believe something is missing. Thanks! Cheers - 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]
EAR libs and MANIFEST.MF generation
Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EAR libs and MANIFEST.MF generation
Hi, any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse plugin development with Maven 2
Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Hibernate3 Annotation Problem
Thanks for everyone's help! Finally made it work! Cheers On 2/7/07, Manos Batsis [EMAIL PROTECTED] wrote: build extensions extension groupIdmysql-connector-java/groupId artifactIdmysql-connector-java/artifactId version5.0.4/version /extension /extensions hth, Manos Quoting lemon dumpling [EMAIL PROTECTED]: Hi Johann, Yes, I tried that thing but it always throws no suitable driver exception: [ERROR] SchemaExport - schema export unsuccessful java.sql.SQLException: No sui table driverjava.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnectio n(DriverManagerConnectionProvider.java:110) My pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties outputfilenameschema.sql/outputfilename /componentProperties /configuration /plugin But then if I have something like this, it actually works - it auto connects to my database and creates the schema: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create jdk5true/jdk5 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile /componentProperties /plugin Cheers On 2/5/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello First you need to set up the element outputfilename as seen here: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/s chema_output.html Also you need to include the annotated classes in your hibernate.cfg.xml file Regards Johann Reyes -Original Message- From: lemon dumpling [mailto:[EMAIL PROTECTED] Sent: Saturday, February 03, 2007 8:33 PM To: users@maven.apache.org Subject: Maven2+Hibernate3 Annotation Problem Hi, I want to generate database schema to a sql file and feed the schema into my database. I have hibernate annotations instead of hbm.xml files. plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration components component namehbm2ddl/name /component /components componentProperties droptrue/drop createtrue/create configurationfilesrc/main/resources/etc/hibernate.cfg.xml/configurationfi le /componentProperties /configuration /plugin I believe something is missing. Thanks! Cheers - 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]
[M2] No xref report when executing site:stage?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Using Maven 2.0.4, if I do the following on my (multi-module) project: mvn clean site site:stage -DstagingDirectory=Z:\ The resulting site has no xref pages. I can see them in each [module]\target\site\xref folder, but they are not copied to Z:\. There, only a stylesheet.css and an empty index.html (0 bytes) are generated. Is this a known issue? Regards - -- - --- GRID SYSTEMS, S.A. Rodrigo Ruiz Parc Bit - Edificio 17 Research Coordinator 07121 Palma de Mallorca Baleares - Spain Tel: +34 971 435 085 http://www.gridsystems.com/Fax: +34 971 435 082 - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) iD8DBQFFyI1cp9m/F5UenDoRAmWaAJ0UIsOW90jcot31qTW4ybo7djmqLACeJtSg FMoC5czqz6WupmfO34JBmkA= =/DC/ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EAR libs and MANIFEST.MF generation
Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? I use it already, but i probably not to its full extent. The manifest it creates for the EAR has no classpath entry. Do i have to tell the plugin to create it using jarModule elements for all the runtime dependencies or is there an other way? Even then: * Do i have to manually exclude the deps from my WAR using the plugin? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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: EAR libs and MANIFEST.MF generation
Finaly got it: http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html Cheers, Manos Quoting Manos Batsis [EMAIL PROTECTED]: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? I use it already, but i probably not to its full extent. The manifest it creates for the EAR has no classpath entry. Do i have to tell the plugin to create it using jarModule elements for all the runtime dependencies or is there an other way? Even then: * Do i have to manually exclude the deps from my WAR using the plugin? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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]
MRM-60 Repository Manager should have a means to remove old snapshot builds
Hello, in order to manage the size of a repo i would like to automatically remove old snapshots. I have seen the closed MRM-60 issue, which seems to correspond to my needs but i don't find the way of remove snapshot. This issue has been renamed, so the feature added was oldArtifact (and oldSnapshot) reports. Is there another issue linked with this one, or is there another way to do the job? Thanks -- Antoine Véret
Copyright on the stylus skin images
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would like to know if we need explicit permissions for publishing a site generated with the Maven stylus skin and using some slightly modified images from it (for inserting our project and company logos). Regards - -- - --- GRID SYSTEMS, S.A. Rodrigo Ruiz Parc Bit - Edificio 17 Research Coordinator 07121 Palma de Mallorca Baleares - Spain Tel: +34 971 435 085 http://www.gridsystems.com/Fax: +34 971 435 082 - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) iD8DBQFFyJDKp9m/F5UenDoRAn6fAJ9IT5A94lv7z+hsfAdxuvpKCj0bCwCbB0Vg fg68IZo0Pel561Yq2oHabZU= =4mja -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EAR libs and MANIFEST.MF generation
Hi Manos mmm, why would the manifest of the .ear have classpath entries? the classpath entries you need are in the manifest of your project for which you have jars (pls anyone correct me if i m wrong) what your ear should contain is artifacts for your project, META-INF\application.xml and common libraries. I believe maven ear plugin is clever enough to know, if two projects depends on the same library, to add it to the .EAR (of course, this will depend on the scope of your dependencies) Pls anyone correct me if i m wrong.. Manos, best suggestion is that you try a simple .ear project for yourself and see what maven does with Manifest i think you'll find solution to your problems quite soon... if not, let me know, i'll mail you a sample that i have at home so you can see where all dependencies go If your war are dependent to libraries which are common to other projects, don't put them in the war, change their scope so that they won't be included.. hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? I use it already, but i probably not to its full extent. The manifest it creates for the EAR has no classpath entry. Do i have to tell the plugin to create it using jarModule elements for all the runtime dependencies or is there an other way? Even then: * Do i have to manually exclude the deps from my WAR using the plugin? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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: EAR libs and MANIFEST.MF generation
Hi, On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? Even if you do this, it won't work AFAIK since it's not part of the spec. The way to define dependencies between an EJB module and third-party libs is to define a manifest for the *EJB* module. Does this actually work? On which app server? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. I am pretty sure it won't work and this way of working is not compliant anyway. Back to your original question, this is an interesting use case. Why don't you generate the manifest when you actually build your EJB modules? Maven can do this for your (see the archive settings). Regards, Stéphane Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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: Eclipse plugin development with Maven 2
Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin http://docs.codehaus.org/display/MAVEN/Barriers+to+Building+Eclipse+with+Maven Cheers, Stéphane Sebastien Pennec a écrit : Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - 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: EAR libs and MANIFEST.MF generation
Oh dear, thanx Stephane for the clarifications.. I completely forgot that EAR i built were EJB3 based, where i didnt have an ejb artifact as i can deploy ejbs as jars thanks for pointing that out. regards marco On 2/6/07, Stephane Nicoll [EMAIL PROTECTED] wrote: Hi, On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? Even if you do this, it won't work AFAIK since it's not part of the spec. The way to define dependencies between an EJB module and third-party libs is to define a manifest for the *EJB* module. Does this actually work? On which app server? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. I am pretty sure it won't work and this way of working is not compliant anyway. Back to your original question, this is an interesting use case. Why don't you generate the manifest when you actually build your EJB modules? Maven can do this for your (see the archive settings). Regards, Stéphane Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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: Eclipse plugin development with Maven 2
and http://mojo.codehaus.org/pde-maven-plugin/ On 2/6/07, Stéphane Bouchet [EMAIL PROTECTED] wrote: Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin http://docs.codehaus.org/display/MAVEN/Barriers+to+Building+Eclipse+with+Maven Cheers, Stéphane Sebastien Pennec a écrit : Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - 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]
[solved] Re: EAR libs and MANIFEST.MF generation
I thought i sent this [1] earlier but it never got through. Still, this can be improved, the solution forces the EAR POM to include explicitly all WAR dependencies, which results in duplicate markup between the POMs. [1] http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html Thanks for the help all, Manos Quoting Stephane Nicoll [EMAIL PROTECTED]: Hi, On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? Even if you do this, it won't work AFAIK since it's not part of the spec. The way to define dependencies between an EJB module and third-party libs is to define a manifest for the *EJB* module. Does this actually work? On which app server? * Will the WAR and EJB-JAR obey the EAR manifest? I used to create the manifest for those modules with Ant for this structure to work. I am pretty sure it won't work and this way of working is not compliant anyway. Back to your original question, this is an interesting use case. Why don't you generate the manifest when you actually build your EJB modules? Maven can do this for your (see the archive settings). Regards, Stéphane Many thanks, Manos hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding duplication of library JARs. I'm getting ready to port the same logic through the antrun plugin, then use exclusions and what not to finally end up with the same structure and was wondering if there is a better way to do this. Thanks in advance, Manos - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Three plugins bound to the package phase
I'm close to having a beautiful maven (2.0.4) build using 3 handy plugins: appassembler, assembly, and rpm. My app is a simple command line thing. I use appassembler to create wrapper shell scripts, and assembly to package it as a tarball. I occasionally need to build an RPM, so I added a profile 'rpm' that invokes the rpm-maven-plugin, but activating this profile reverses the order of the executions of the other two. In other words, this command runs appassembler, then assembly, as expected: $ mvn package But this one runs assembly *BEFORE* appassembler, and then rpm: $ mvn -Prpm package WTF? I require appassembler to run first, obviously. I've tried binding appassembler to an earlier phase, but it always fails, apparently because it requires the jar built only in the package phase. I could do away with the profile and always try to build the rpm (that solves my plugin ordering problem) but it breaks the build when run on a Windows platform. Any other ideas? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: compile tries to bundle up the ear - should it?
So in essence you're suggesting shutting of unittests via a switch (most developers already think it takes too long and use -Dtest=asdf). I personally find this unacceptable. I still think it's silly that mvn tries to build an ear/war/ejbs when all it needs are the underlying classes. There's part of the picture I think I'm not emphasizing enough which is the inherently long drawn out process building an atg app requires (their assembly phase) which we've linked to the package lifecycle goal. Having to do an install of each module takes too much time moving around and doing an install of everything takes too long if all you want to do is compile. To build an ejb, the underlying java source needs to be compiled and stashed somewhere doesn't it? I just still don't understand why there would be this dependency on an ear file to simply compile something in one of the main applications. I have a feeling this will be the straw that breaks the development camels back. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 8:05 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? Hopefully they're all using Eclipse and they can run 'mvn eclipse:eclipse' to generate the Eclipse project files they need so that they can compile their Java code as they develop. You don't need to build your EJB, WAR and EAR files just to get your classes to compile UNLESS other modules depend on them. For example, if I have modules A, B and C and module B is dependent on A but C is independent of both of them, I can build C without needing access to artifacts from A and B. If, however, I want to build B, I will need access to A.jar. A.jar would normally come from my local repository since I've run 'mvn clean install' in module A. The whole point is that you've decided when designing your project structure that A, B and C are separately managed modules (with dependencies between them). Therefore, to access A's classes from B you need to package them in some way. In Maven, the way to do this is to package them as a jar file and place them in your local repository (and eventually in your snapshot repository and, finally, in your production repository). As for running tests, developers can turn off running the tests during their development cycle (see the Maven Website for details). The actual package/install steps of creating a jar and copying it to a local repository are very quick so no developer is really going to notice the lost time. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:37 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? Yeah, I mentioned cruisecontrol, just not looking forward to telling developers they need to run the install process now even if all they want is a simple compile. I still don't see any good reason why you'd have to build up an ejb file (or war or ear) just to get your classes to compile. These things shouldn't even be attempted until the package stage. This seems like a shortcoming. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:29 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? You need to run 'mvn install' at least once to ensure your dependencies are in a repository. In fact, if your cruisecontrol build is running on another machine, you will need to run 'mvn deploy' at least once to get a snapshot in your corporate repository. Then, you can run 'mvn compile' at will, as long as your Java sources don't change enough to make your compiles fail. Having said that, I would recommend that you run 'mvn clean deploy' every night so that you are getting a complete build and test-cycle run every night (or use a continuous integration server like Continuum). You can also add the 'findbugs' report to your projects so this is run for you automatically as well. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:18 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? So if (in my case) we do a compile prior to running findbugs each night (a case where we DON'T need an ear file), I'm going to have to start performing a mvn install instead? P.S - this is running via cruisecontrol and always from the top directory. We're very used to an ant based build where we can run various stages as we wish. Compile being a very desirable thing. If we can no longer run compile to compile source without having to wait for a much longer process (unit tests, site building, atg assembler, ejb building, war building then finally ear building), I think I may be in a bind (being the soul release engineer forced to support maven 2). Can I forcefully de-couple these two things? -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent:
Re: Eclipse plugin development with Maven 2
Hello Stéphane and Dan, Thanks for your links! Cheers, Sébastien Dan Tran wrote: and http://mojo.codehaus.org/pde-maven-plugin/ On 2/6/07, Stéphane Bouchet [EMAIL PROTECTED] wrote: Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin http://docs.codehaus.org/display/MAVEN/Barriers+to+Building+Eclipse+with+Maven Cheers, Stéphane Sebastien Pennec a écrit : Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2 warning when using company super pom ?
We have a company super pom with no modules. Just common dependencies, java compile version, etc. It is included in all of our projects as parent. However when I run mvn clean package on my project pom I get a warning in phase site:attach-descriptor saying that the parent pom does not exist in the parent folder. [INFO] [site:attach-descriptor] [WARNING] Unable to load parent project from a relative path: Could not find the model file 'C:\${path_to_myproject}\..\pom.xml'. Is there a way to get rid of this message? I thought a parent pom should not necessary be in a parent folder unless includes the child pom as module. In my case it does not so I would expect to have no warnings. thanks, Attila - It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar.
Re: Three plugins bound to the package phase
Good day to you, Jim There is no assurance to the order of the goals executed in a single phase with maven 2.0.4. This is fixed however in 2.0.5 and in the trunk. So you may want to use those instead of 2.0.4 so that you can fix the order of your goals in your phases. Cheers, Franz Crossley, Jim wrote: I'm close to having a beautiful maven (2.0.4) build using 3 handy plugins: appassembler, assembly, and rpm. My app is a simple command line thing. I use appassembler to create wrapper shell scripts, and assembly to package it as a tarball. I occasionally need to build an RPM, so I added a profile 'rpm' that invokes the rpm-maven-plugin, but activating this profile reverses the order of the executions of the other two. In other words, this command runs appassembler, then assembly, as expected: $ mvn package But this one runs assembly *BEFORE* appassembler, and then rpm: $ mvn -Prpm package WTF? I require appassembler to run first, obviously. I've tried binding appassembler to an earlier phase, but it always fails, apparently because it requires the jar built only in the package phase. I could do away with the profile and always try to build the rpm (that solves my plugin ordering problem) but it breaks the build when run on a Windows platform. Any other ideas? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Three-plugins-bound-to-the-package-phase-tf3181036s177.html#a8828459 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2.0.5 release plans?
Any idea when Maven 2.0.5 will be released?
[M2]: Doubts about modules and packing.
Hello, this is my first post to this list. Usually, I can find any information I need to use Maven. But, nowadays, because my company is migrating from Ant to Maven and we have a lot of specific targets, I need to appeal to this mailing list. So, we are doing the migration following the steps below: 1. Put projects in Maven layout 2. Split some projects in many modules project 3. Migrate Ant tasks. Doing theses steps we have some doubts. Our environment: We have a set of internal projects that work more like libs to other real projects. So, we desire to add these internal libs as maven managed dependencies, we´ve even created an internal remote repository to deploy them. Right now, these libs have only classes, but to us, in a logical view, they must contain all artifacts related to them - like JSPs, pictures, and so forth. First: We have more than one project that share the same web application structure. In other words, all web artefacts for those projects - including jsp - are in the same directory/eclipse project, without modules. My question is: how can I separate web application part in modules and later take only a single war with all artifacts? How can can separate these projects and keep taking my whole webapp? Second: I have some ant´s targets that create jars for java web start clients. These jars have classes that are part of the dependencies - for example, from commons-beans. Using Ant, I put these classes in jws's jar using a zipfileset: zipfileset id=jar.commons-beans src=${libs}/commons-beans.jar include name=org/apache/... / ... /zipfileset Of course, I manage the dependency manually, so, I could reference it in src attribute. Using maven, how can I do it? I am already using the antrun plugin, but I don't know how to reference a dependency jar inside pom.xml. Do you have any suggestions? Maybe I can use maven-webstart plugin, but how do I filter classes inside a dependency? ps.: sorry my poor English. -- Marcos Silva Pereira recife - pe [EMAIL PROTECTED] http://blastemica.blogspot.com
Download artifacts from one repo and upload to another
I'm looking for an easy way to download an artifact from one repository and deploy it to another, including all transitive dependencies. Ideally in just one step. Mirroring the whole repository is not a solution. How would you do it? Any hints what to look at? Thanks - Arne -- View this message in context: http://www.nabble.com/Download-artifacts-from-one-repo-and-upload-to-another-tf3181645s177.html#a8829481 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: compile tries to bundle up the ear - should it?
Additionally - you miss the point about just wanting to compile and unittest with no startup of the actual app (repeatedly, in quick succession). -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 8:05 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? Hopefully they're all using Eclipse and they can run 'mvn eclipse:eclipse' to generate the Eclipse project files they need so that they can compile their Java code as they develop. You don't need to build your EJB, WAR and EAR files just to get your classes to compile UNLESS other modules depend on them. For example, if I have modules A, B and C and module B is dependent on A but C is independent of both of them, I can build C without needing access to artifacts from A and B. If, however, I want to build B, I will need access to A.jar. A.jar would normally come from my local repository since I've run 'mvn clean install' in module A. The whole point is that you've decided when designing your project structure that A, B and C are separately managed modules (with dependencies between them). Therefore, to access A's classes from B you need to package them in some way. In Maven, the way to do this is to package them as a jar file and place them in your local repository (and eventually in your snapshot repository and, finally, in your production repository). As for running tests, developers can turn off running the tests during their development cycle (see the Maven Website for details). The actual package/install steps of creating a jar and copying it to a local repository are very quick so no developer is really going to notice the lost time. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:37 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? Yeah, I mentioned cruisecontrol, just not looking forward to telling developers they need to run the install process now even if all they want is a simple compile. I still don't see any good reason why you'd have to build up an ejb file (or war or ear) just to get your classes to compile. These things shouldn't even be attempted until the package stage. This seems like a shortcoming. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:29 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? You need to run 'mvn install' at least once to ensure your dependencies are in a repository. In fact, if your cruisecontrol build is running on another machine, you will need to run 'mvn deploy' at least once to get a snapshot in your corporate repository. Then, you can run 'mvn compile' at will, as long as your Java sources don't change enough to make your compiles fail. Having said that, I would recommend that you run 'mvn clean deploy' every night so that you are getting a complete build and test-cycle run every night (or use a continuous integration server like Continuum). You can also add the 'findbugs' report to your projects so this is run for you automatically as well. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:18 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? So if (in my case) we do a compile prior to running findbugs each night (a case where we DON'T need an ear file), I'm going to have to start performing a mvn install instead? P.S - this is running via cruisecontrol and always from the top directory. We're very used to an ant based build where we can run various stages as we wish. Compile being a very desirable thing. If we can no longer run compile to compile source without having to wait for a much longer process (unit tests, site building, atg assembler, ejb building, war building then finally ear building), I think I may be in a bind (being the soul release engineer forced to support maven 2). Can I forcefully de-couple these two things? -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:05 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? It hasn't tried to build the EAR yet: [INFO] Building ltyApp_ear [INFO]task-segment: [compile] You have specified 'mvn compile' in the EAR project and it is simply trying to download dependencies at this stage so it can do the compile. My suggestion would be to not run the compile phase explicitly, particularly in the EAR module, but run 'mvn install' even if you are building virtually empty artifacts for the other components. In other words, get the whole build process working correctly first. Alternatively, the next best thing to do would be to remove the EAR module from your modules list for now until you have everything else to a stage where the repository has all of the artifacts required
RE: compile tries to bundle up the ear - should it?
Yeah, this is kinda nuts, even after running an install, I see things getting rebuilt: [INFO] Building withdrawalEJB [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 3 source files to E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\classes [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] [jar:jar] [INFO] Building jar: E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\withdrawalEJB- 1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\withdrawalEJB- 1.0-SNAPSHOT.jar to E:\work\m2\Repository\lty\withdrawa Shouldn't this happen just once? Why each time? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 9:59 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? So in essence you're suggesting shutting of unittests via a switch (most developers already think it takes too long and use -Dtest=asdf). I personally find this unacceptable. I still think it's silly that mvn tries to build an ear/war/ejbs when all it needs are the underlying classes. There's part of the picture I think I'm not emphasizing enough which is the inherently long drawn out process building an atg app requires (their assembly phase) which we've linked to the package lifecycle goal. Having to do an install of each module takes too much time moving around and doing an install of everything takes too long if all you want to do is compile. To build an ejb, the underlying java source needs to be compiled and stashed somewhere doesn't it? I just still don't understand why there would be this dependency on an ear file to simply compile something in one of the main applications. I have a feeling this will be the straw that breaks the development camels back. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 8:05 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? Hopefully they're all using Eclipse and they can run 'mvn eclipse:eclipse' to generate the Eclipse project files they need so that they can compile their Java code as they develop. You don't need to build your EJB, WAR and EAR files just to get your classes to compile UNLESS other modules depend on them. For example, if I have modules A, B and C and module B is dependent on A but C is independent of both of them, I can build C without needing access to artifacts from A and B. If, however, I want to build B, I will need access to A.jar. A.jar would normally come from my local repository since I've run 'mvn clean install' in module A. The whole point is that you've decided when designing your project structure that A, B and C are separately managed modules (with dependencies between them). Therefore, to access A's classes from B you need to package them in some way. In Maven, the way to do this is to package them as a jar file and place them in your local repository (and eventually in your snapshot repository and, finally, in your production repository). As for running tests, developers can turn off running the tests during their development cycle (see the Maven Website for details). The actual package/install steps of creating a jar and copying it to a local repository are very quick so no developer is really going to notice the lost time. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:37 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? Yeah, I mentioned cruisecontrol, just not looking forward to telling developers they need to run the install process now even if all they want is a simple compile. I still don't see any good reason why you'd have to build up an ejb file (or war or ear) just to get your classes to compile. These things shouldn't even be attempted until the package stage. This seems like a shortcoming. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:29 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? You need to run 'mvn install' at least once to ensure your dependencies are in a repository. In fact, if your cruisecontrol build is running on another machine, you will need to run 'mvn deploy' at least once to get a snapshot in your corporate repository. Then, you can run 'mvn compile' at will, as long as your Java sources don't change enough to make your compiles fail. Having said that, I would recommend that you run 'mvn clean deploy' every night so that you are
Re: continuum - scm update error
No, this is working fine in windows system, same thing when i moved to unix box its started acting now even i checked for some new files, (there are some logfile) i removed them and tried to run continuum its failing again with the same error... Again its working fine with no problem in windows xp machine, The only way its working is everytime i have to delete the working copy , but i don't want to do it that way Is there anything else i can configure?? Thanks, Raghurajan Gurunathan Emmanuel Venisse [EMAIL PROTECTED] 02/02/2007 12:55 PM Please respond to continuum-users To: continuum-users@maven.apache.org cc: Subject:Re: continuum - scm update error you have a directory created locally then added in svn so when svn try to update the working copy, it can't add the new directory because a directory with the same name already exist. clean your working copy by deleting the directory or remove your working copy and all will work [EMAIL PROTECTED] a écrit : Hi All I just created some projects using continuum to check out from svn, source code and did one build on those worked fine no problem, But now i'm trying to run build again from continuum, but for all project in continuum i'm getting Provider message: The svn command failed. Command output: --- svn: REPORT request failed on '/svn/repos/myProejct/!svn/vcc/default' svn: Cannot replace a directory from within --- I couldn't figure out whats going on here, please help Thanks, Raghurajan Gurunathan - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
dependencies are bloated in M2
Hi all, We've been using Maven 1.1 for more that a year now and are looking to move to M2. With M1 our project.xml file had dependencies specified explicitly because there was no support for transitive dependencies. As a result, the jar files we downloaded for our webapp weighed in at about 11Meg. While building our M2 pom.xml file(s), we kept adding dependencies (in the pom.xml) till we got a clean compile. However now the size of the dependent artifacts has doubled to a whopping 23Meg! And they make it to the WEB-INF/lib increasing the size of our final artifact. So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. There used to be a propertieswar.bundletrue/war.bundle/properties in the dependency node in M1, but that is no longer available in M2. So even if I have more depoendencies at compile time, how can I prevent my war artifact from getting bloated? 2. How can we exclude second and third level dependencies. And IF we can do so, how do I know what the dependency graph is for some of the downloaded jars. For instance, there is a jar file (that is about 3Meg in size) called apacheds-core-0.9.jar. We know our app does not need this becuase if we delete this file, the app works just fine. 2a. How do I find out what top level dependecny that is specified in the pom caused a certain file to be downloaded? If we figure that out maybe we can use the exclude element in each dependency to NOT load this dependency. For instance, how do I find out what top level dependency in my pom caused this apacheds-core-0.9.jar to land up in my local repository. Infact, this jar does not even exist on http://repo1.maven.org/maven2/ unless I google it out and find it is tucked away here http://repo1.maven.org/maven2/directory/. 3. Is there a way to go back to explicit dependencies (non-transitive) in the pom.xml? Thanks in advance, Pankaj
[mojo-user] [ANN] OpenJPA Maven Plugin 1.0-alpha released
Not sure why got filtered. Sending again... Hi, I am pleased to announce the release of OpenJPA Maven Plugin version 1.0-alpha. This release includes: 1) Mojo to invoke OpenJPA PCEnhancer tool on mapped persistable classes. 2) Plugin documentation. Feedback and suggestions are welcome. Cheers, Rahul - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2]: how to pass maven properties to ant build using antrun?
Hello, I am invoking some ant targets using maven antrun plugin but I cant see how to pass maven properties to Ant build file. For example, I have the following maven property: properties jws.pathsrc/main/javawebstart/jws.path /properties But this properties is not accessible in ant build. Even if I put the ant target inside pom.xml I cant access it. If I execute the config below: plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasecompile/phase configuration tasks echoproperties / /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies /dependency groupIdant/groupId artifactIdant-optional/artifactId version1.5.3-1/version /dependency /dependencies /plugin I get only theses properties: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echoproperties] #Ant properties [echoproperties] #Tue Feb 06 16:56:03 GMT-03:00 2007 [echoproperties] ant.project.name=DummyProject [echoproperties] basedir=C\:\\Eclipse3.2.1\\workspace\\Atendimento [INFO] Executed tasks I already have try use propertyset with ant task to pass ${ project.properties} but without success. -- Marcos Silva Pereira recife - pe [EMAIL PROTECTED] http://blastemica.blogspot.com
Re: [M2]: how to pass maven properties to ant build using antrun?
Marcos Silva Pereira wrote: how to pass maven properties to Ant build file. This can be found in a frillion places, including googling for your subject ;-) configuration tasks property name=foobar value=${foobar}/ You can use other attributes instead of value, check the docos around. hth, Manos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How do you control order of plugins that execute during the same phase?
If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the process-classes phase, but I needed the persistent enhancement to always execute after the aspect weaving. Thanks, Matthew -- View this message in context: http://www.nabble.com/-M2--How-do-you-control-order-of-plugins-that-execute-during-the-same-phase--tf3183026s177.html#a8833972 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: MRM-60 Repository Manager should have a means to remove old snapshot builds
I think I closed that for the report (finished) + the ability to process reports (not finished). That would add a 'repair all'/'remove all' function. - Brett On 07/02/2007, at 1:28 AM, Antoine Véret wrote: Hello, in order to manage the size of a repo i would like to automatically remove old snapshots. I have seen the closed MRM-60 issue, which seems to correspond to my needs but i don't find the way of remove snapshot. This issue has been renamed, so the feature added was oldArtifact (and oldSnapshot) reports. Is there another issue linked with this one, or is there another way to do the job? Thanks -- Antoine Véret
Re: [M2] How do you control order of plugins that execute during the same phase?
On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the process-classes phase, but I needed the persistent enhancement to always execute after the aspect weaving. This is the same as my post http://www.nabble.com/Re%3A--m2--how-to-control-the-plugin-execution-order-tf3178637s177.html which links to some other threads on Nabble. I think the answer is that you can't in 2.0.4 but may be able to in the yet to be released 2.0.5. Luckily for me the indeterminate order happens to be the order I want the plugins to run in. If plugins are at the same lifecycle they are meant to be run in the order declared. You may be able to fudge what you want by binding to a later phase in the lifecycle that is not yet being used. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for the list of phases. e.g. generate-test-sources or something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]: how to pass maven properties to ant build using antrun?
This can be found in a frillion places, including googling for your subject ;-) Really, sorry. :-) configuration tasks property name=foobar value=${foobar}/ You can use other attributes instead of value, check the docos around. Anyway, this is a quite verbose, especially for maven default properties. Some good reason to not use System.setProperty? And more, there is other way to do it? Thanks and sorry for so repeated post. :-) -- Marcos Silva Pereira recife - pe [EMAIL PROTECTED] http://blastemica.blogspot.com
Re: dependencies are bloated in M2
Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM inheritance behaving unexpectedly
Hello, I've got a parent POM that declares e.g., project … urlhttp://javabuild2.mycompany.com/${project.artifactId}/url /project (in other words, top-level configuration that varies by the project that has declared this parent). Problem is, when I look at the effective POM (mvn help:effective-pom), it shows up as follows: project … artifactIdm-installer/artifactId urlhttp://javabuild2.mycompany.com/m-installer/m-installer/url project See where the duplication is occurring? Should I expect that? How can I use top-level config in the parent pom that uses values taken from the child pom? Note that the problem doesn't only occur when I use help:effective-pom, that's just been a useful way to help me figure out wth is going on. Also, it's not just url/ but other values that are referred using a ${project.XYZ} form. On the other hand, inside the child POM, I have other values that refer to ${artifactId} (not ${project.artifactId}) and these behave as I would expect. Is this a bug in the code that resolves ${project} references? Thanks, -- Tommy
Re: [M2] How do you control order of plugins that execute during the same phase?
Thanks for the tip. Is there a JIRA on this? baerrach wrote: On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the process-classes phase, but I needed the persistent enhancement to always execute after the aspect weaving. This is the same as my post http://www.nabble.com/Re%3A--m2--how-to-control-the-plugin-execution-order-tf3178637s177.html which links to some other threads on Nabble. I think the answer is that you can't in 2.0.4 but may be able to in the yet to be released 2.0.5. Luckily for me the indeterminate order happens to be the order I want the plugins to run in. If plugins are at the same lifecycle they are meant to be run in the order declared. You may be able to fudge what you want by binding to a later phase in the lifecycle that is not yet being used. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for the list of phases. e.g. generate-test-sources or something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--How-do-you-control-order-of-plugins-that-execute-during-the-same-phase--tf3183026s177.html#a8835982 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: dependencies are bloated in M2
OK.. I just got the answer to my question 2a on this thread... (The rest are still unanswered). mvn package -X is the most useful command I found to get at the depenceny tree. From there.. it was just a matter of excluding the extra jars. I wish there was a top level exclusion (maybe in the dependencyManagement node where global exclusions could be specified. Thanks Pankaj Christian Goetze-3 wrote: Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dependencies-are-bloated-in-M2-tf3182336s177.html#a8836160 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: dependencies are bloated in M2
mvn site see the tree of dependencies use exclusions in your dependencies http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html On 2/6/07, Tandon, Pankaj [EMAIL PROTECTED] wrote: Hi all, We've been using Maven 1.1 for more that a year now and are looking to move to M2. With M1 our project.xml file had dependencies specified explicitly because there was no support for transitive dependencies. As a result, the jar files we downloaded for our webapp weighed in at about 11Meg. While building our M2 pom.xml file(s), we kept adding dependencies (in the pom.xml) till we got a clean compile. However now the size of the dependent artifacts has doubled to a whopping 23Meg! And they make it to the WEB-INF/lib increasing the size of our final artifact. So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. There used to be a propertieswar.bundletrue/war.bundle/properties in the dependency node in M1, but that is no longer available in M2. So even if I have more depoendencies at compile time, how can I prevent my war artifact from getting bloated? 2. How can we exclude second and third level dependencies. And IF we can do so, how do I know what the dependency graph is for some of the downloaded jars. For instance, there is a jar file (that is about 3Meg in size) called apacheds-core-0.9.jar. We know our app does not need this becuase if we delete this file, the app works just fine. 2a. How do I find out what top level dependecny that is specified in the pom caused a certain file to be downloaded? If we figure that out maybe we can use the exclude element in each dependency to NOT load this dependency. For instance, how do I find out what top level dependency in my pom caused this apacheds-core-0.9.jar to land up in my local repository. Infact, this jar does not even exist on http://repo1.maven.org/maven2/ unless I google it out and find it is tucked away here http://repo1.maven.org/maven2/directory/. 3. Is there a way to go back to explicit dependencies (non-transitive) in the pom.xml? Thanks in advance, Pankaj -- 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]
Can I get a timestamp?
Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I get a timestamp?
You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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: dependencies are bloated in M2
It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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: dependencies are bloated in M2
that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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: Can I get a timestamp?
Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 6:15 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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: dependencies are bloated in M2
It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven newbie question, problem with XDoclet destination directory
Hi All I'm relatively new to Maven so excuse what may seem like silly questions. At my work, I'm now working on a project that uses Maven. It has multiple components, jars, ears, wars, etc. Up until now, it had only one EJB project. It now has two EJB projects. Each project has its own POM file, linked back to the Super POM. The problem I am having, is that the XDoclet output from the generate-sources phase, for the two projects is ending up in the same destination directory, even though the destDir attribute on the ejbdoclet elements are different. It appears, that the second ejbdoclet invocation ignores the destDir attribute. If I make the second destDir attribute, rubbish it doesn't fail. If I swap the order of the EJB POMs in the Super POM, the output is then switched. Am I doing something obviously wrong? Or do I need to have two separate Maven invocations. Thanks in advance, for any assistance with this issue that I am having. Regards Pat Harms
RE: Can I get a timestamp?
The plug-in will allow you to use timestamp tagging to tag your builds. I am sorry but I don't think you can access the timestamp property directly in the pom itself. Why do you need to do that anyway? Bashar -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 4:43 PM To: Maven Users List Subject: RE: Can I get a timestamp? Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 6:15 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependencies are bloated in M2
exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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: dependencies are bloated in M2
As Pankaj originally stated: For instance, there is a jar file (that is about 3Meg in size) called apacheds-core-0.9.jar. We know our app does not need this becuase if we delete this file, the app works just fine. He needs to use exclusions for this as he does not need this dependency for anything, in any scope, at any time. Wayne On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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: dependencies are bloated in M2
This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. And the answer to these 2 questions is to use the provided scope. It will also stop a dependency from being passed on transitively. Using exclusions is NOT right if you still want to compile against these dependencies. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:02 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependencies are bloated in M2
On 2/6/07, Carlos Sanchez [EMAIL PROTECTED] wrote: exactly, that's why he needs to use exclusions, you exclude things that you don't need. Exclusions can get you around immediate build problems, but a feedback loop is necessary to improve the state of the world in general, or the problem will just repeat itself the next time. If your project has a dependency x, and that artifact has an optional dependency y, the POM for x should explicity *say* it is optional. That will cause the web project to do the right thing ... *not* copy in the optional dependencies unless you explicitly declare a dependency on them yourself. Thus, people who published depency x in this scenario need to be lobbied to get their POMs fixed in the next version, to stop causing everyone who uses Maven and their x library grief down the road. A classic case that I know of personally :-) is Jakarta Commons Logging, where the 1.1 version of the POM declares a dependency on the servlet API but mistakenly did not declare it to be optional. Yes, you as a user of Commons Logging can use an exclusion to get rid of the unwanted file, but why should you (or anyone else) *have* to? Wouldn't the right thing be to also go file a bug against C-L to fix their blasted POM? (You don't actually have to for this particular scenario ... the POM has been fixed in the trunk and a 1.1.1 release is likely very soon primarily to address this issue ... but my point is in general it is the people who publish broken POMs that should be complained at here, not Maven itself.) Craig McClanahan On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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: dependencies are bloated in M2
still not right, you have to use exclusions provided means the environment (read appserver) provides that dependency, which is only true for few dependencies in the whole world, like servlet-api On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. And the answer to these 2 questions is to use the provided scope. It will also stop a dependency from being passed on transitively. Using exclusions is NOT right if you still want to compile against these dependencies. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:02 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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] - 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: dependencies are bloated in M2
everything you said is right ;) in an ideal world the only reason to use exclusions is if you are not using a portion of the library that the developer consider required for most of the people On 2/6/07, Craig McClanahan [EMAIL PROTECTED] wrote: On 2/6/07, Carlos Sanchez [EMAIL PROTECTED] wrote: exactly, that's why he needs to use exclusions, you exclude things that you don't need. Exclusions can get you around immediate build problems, but a feedback loop is necessary to improve the state of the world in general, or the problem will just repeat itself the next time. If your project has a dependency x, and that artifact has an optional dependency y, the POM for x should explicity *say* it is optional. That will cause the web project to do the right thing ... *not* copy in the optional dependencies unless you explicitly declare a dependency on them yourself. Thus, people who published depency x in this scenario need to be lobbied to get their POMs fixed in the next version, to stop causing everyone who uses Maven and their x library grief down the road. A classic case that I know of personally :-) is Jakarta Commons Logging, where the 1.1 version of the POM declares a dependency on the servlet API but mistakenly did not declare it to be optional. Yes, you as a user of Commons Logging can use an exclusion to get rid of the unwanted file, but why should you (or anyone else) *have* to? Wouldn't the right thing be to also go file a bug against C-L to fix their blasted POM? (You don't actually have to for this particular scenario ... the POM has been fixed in the trunk and a 1.1.1 release is likely very soon primarily to address this issue ... but my point is in general it is the people who publish broken POMs that should be complained at here, not Maven itself.) Craig McClanahan On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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] -- 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: Can't deploy site,Help please.
Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dependencies are bloated in M2
Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to provide it for you either because it is not required for runtime. Example: aspectjtools.jar. You can't exclude it because your project will not compile. The only way is to give it the provided scope. Even if your container doesn't provide it that's not a problem, maven doesn't care. I know it is not very clean to give a dependency a provided scope when it's not going to be provided anywhere, but sometimes you need to do this if you want to compile against it. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:18 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 still not right, you have to use exclusions provided means the environment (read appserver) provides that dependency, which is only true for few dependencies in the whole world, like servlet-api On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. And the answer to these 2 questions is to use the provided scope. It will also stop a dependency from being passed on transitively. Using exclusions is NOT right if you still want to compile against these dependencies. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:02 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: dependencies are bloated in M2
build dependencies are added in plugin dependencies section so they don't interfere with your code dependencies On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to provide it for you either because it is not required for runtime. Example: aspectjtools.jar. You can't exclude it because your project will not compile. The only way is to give it the provided scope. Even if your container doesn't provide it that's not a problem, maven doesn't care. I know it is not very clean to give a dependency a provided scope when it's not going to be provided anywhere, but sometimes you need to do this if you want to compile against it. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:18 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 still not right, you have to use exclusions provided means the environment (read appserver) provides that dependency, which is only true for few dependencies in the whole world, like servlet-api On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. And the answer to these 2 questions is to use the provided scope. It will also stop a dependency from being passed on transitively. Using exclusions is NOT right if you still want to compile against these dependencies. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:02 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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] -- 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] - 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
maven-ear-plugin not found during cobertura:clean
I have two boxes using the same install of maven and a project which consists of a parent and 4 children: two jars, one war, one ear. On one box everything works fine, on the other, running 'mvn clean' causes the triggered 'cobertura:clean' to fail in the ear-project complaining that it cannot find the maven-ear-plugin or a valid version of it. What could be causing this failure on one box and not the other?
Re: [M2] How do you control order of plugins that execute during the same phase?
Don't know, I asked the same question on my post. Haven't seen an answer yet. On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: Thanks for the tip. Is there a JIRA on this? baerrach wrote: On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the process-classes phase, but I needed the persistent enhancement to always execute after the aspect weaving. This is the same as my post http://www.nabble.com/Re%3A--m2--how-to-control-the-plugin-execution-order-tf3178637s177.html which links to some other threads on Nabble. I think the answer is that you can't in 2.0.4 but may be able to in the yet to be released 2.0.5. Luckily for me the indeterminate order happens to be the order I want the plugins to run in. If plugins are at the same lifecycle they are meant to be run in the order declared. You may be able to fudge what you want by binding to a later phase in the lifecycle that is not yet being used. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for the list of phases. e.g. generate-test-sources or something. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-M2--How-do-you-control-order-of-plugins-that-execute-during-the-same-phase--tf3183026s177.html#a8835982 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]
RE: Can I get a timestamp?
Kim, You can use the maven-buildnumber-plugin to get a timestamp, as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.4/version configuration format{0,date,-MM-dd HH:mm:ss}/format items itemtimestamp/item /items doCheckfalse/doCheck doUpdatefalse/doUpdate /configuration executions execution phasevalidate/phase goals goalcreate/goal /goals /execution /executions /plugin The timestamp is put into the ${buildNumber} property. You can also adjust the format of the timestamp to suit your requirements. Take a look at http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html for information on how it works. Regards, Greg J. -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 February 2007 11:03 AM To: 'Maven Users List' Subject: RE: Can I get a timestamp? The plug-in will allow you to use timestamp tagging to tag your builds. I am sorry but I don't think you can access the timestamp property directly in the pom itself. Why do you need to do that anyway? Bashar -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 4:43 PM To: Maven Users List Subject: RE: Can I get a timestamp? Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 6:15 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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] - 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: dependencies are bloated in M2
I don't undestand this... since when did compile-time libraries become not needed in runtime ? even servlet-api is needed at runtime, its just that they're being provided by the containers. Please use exclusions. From how I see it, let's say we have Artifacts A, B and C. A depends on B and C depends on A. If C doesn't need use the portion of A that uses the library B, then C can put an exclude clause for B in his dependency in A. That will work. But if you put B as provided in A, then that may only be correct for C. What if there is another artifact D that depends on A entirely, including the portion which uses B ? you then add dependency B into D's pom. Then later on, you'll say why does D depend on B? its not logically correct anymore. So using exclusions is more appropriate. Hope that helps. ^_^ Bashar Abdul Jawad wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. -- cg - 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: Can I get a timestamp?
My company's policy is to use a timestamp as the release number for RPM's. As you may know, the RPM spec provides for both a version and a release number. The RPM mojo allows you to set a release number, but there's no support for setting it to a timestamp, e.g. release${timestamp}/release. Do you think the SCM plugin's build-tagging support would somehow integrate with the RPM plugin? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 7:03 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? The plug-in will allow you to use timestamp tagging to tag your builds. I am sorry but I don't think you can access the timestamp property directly in the pom itself. Why do you need to do that anyway? Bashar -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 4:43 PM To: Maven Users List Subject: RE: Can I get a timestamp? Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 6:15 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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] - 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: compile tries to bundle up the ear - should it?
I would need more information on your POMs, project structure etc to be able to explain why you are having these problems. At this stage there is probably no other advice I can give you. Is there anyone else out there who can help? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 February 2007 4:43 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? Yeah, this is kinda nuts, even after running an install, I see things getting rebuilt: [INFO] Building withdrawalEJB [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 3 source files to E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\classes [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] [jar:jar] [INFO] Building jar: E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\withdrawalEJB- 1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing E:\work\39-FUSED\frontoffice\ltyApp\ejb\withdrawal\target\withdrawalEJB- 1.0-SNAPSHOT.jar to E:\work\m2\Repository\lty\withdrawa Shouldn't this happen just once? Why each time? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 9:59 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? So in essence you're suggesting shutting of unittests via a switch (most developers already think it takes too long and use -Dtest=asdf). I personally find this unacceptable. I still think it's silly that mvn tries to build an ear/war/ejbs when all it needs are the underlying classes. There's part of the picture I think I'm not emphasizing enough which is the inherently long drawn out process building an atg app requires (their assembly phase) which we've linked to the package lifecycle goal. Having to do an install of each module takes too much time moving around and doing an install of everything takes too long if all you want to do is compile. To build an ejb, the underlying java source needs to be compiled and stashed somewhere doesn't it? I just still don't understand why there would be this dependency on an ear file to simply compile something in one of the main applications. I have a feeling this will be the straw that breaks the development camels back. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 8:05 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? Hopefully they're all using Eclipse and they can run 'mvn eclipse:eclipse' to generate the Eclipse project files they need so that they can compile their Java code as they develop. You don't need to build your EJB, WAR and EAR files just to get your classes to compile UNLESS other modules depend on them. For example, if I have modules A, B and C and module B is dependent on A but C is independent of both of them, I can build C without needing access to artifacts from A and B. If, however, I want to build B, I will need access to A.jar. A.jar would normally come from my local repository since I've run 'mvn clean install' in module A. The whole point is that you've decided when designing your project structure that A, B and C are separately managed modules (with dependencies between them). Therefore, to access A's classes from B you need to package them in some way. In Maven, the way to do this is to package them as a jar file and place them in your local repository (and eventually in your snapshot repository and, finally, in your production repository). As for running tests, developers can turn off running the tests during their development cycle (see the Maven Website for details). The actual package/install steps of creating a jar and copying it to a local repository are very quick so no developer is really going to notice the lost time. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, 6 February 2007 10:37 AM To: Maven Users List Subject: RE: compile tries to bundle up the ear - should it? Yeah, I mentioned cruisecontrol, just not looking forward to telling developers they need to run the install process now even if all they want is a simple compile. I still don't see any good reason why you'd have to build up an ejb file (or war or ear) just to get your classes to compile. These things shouldn't even be attempted until the package stage. This seems like a shortcoming. -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 6:29 PM To: 'Maven Users List' Subject: RE: compile tries to bundle up the ear - should it? You need to run 'mvn install' at least once to
Re: Maven newbie question, problem with XDoclet destination directory
Ok found the issue. Got onto the Nabble public archive, which is fantastic and found a couple of earlier issues which identified it has been a bug in XDocllet 1.2.3 see http://jira.codehaus.org/browse/MOJO-265 XDoclet 1.2.3 Bug - MOJO-265 . The solution is to add explict destDir attributes to each of the subtasks. Pat Harms wrote: Hi All I'm relatively new to Maven so excuse what may seem like silly questions. At my work, I'm now working on a project that uses Maven. It has multiple components, jars, ears, wars, etc. Up until now, it had only one EJB project. It now has two EJB projects. Each project has its own POM file, linked back to the Super POM. The problem I am having, is that the XDoclet output from the generate-sources phase, for the two projects is ending up in the same destination directory, even though the destDir attribute on the ejbdoclet elements are different. It appears, that the second ejbdoclet invocation ignores the destDir attribute. If I make the second destDir attribute, rubbish it doesn't fail. If I swap the order of the EJB POMs in the Super POM, the output is then switched. Am I doing something obviously wrong? Or do I need to have two separate Maven invocations. Thanks in advance, for any assistance with this issue that I am having. Regards Pat Harms -- View this message in context: http://www.nabble.com/Maven-newbie-question%2C-problem-with-XDoclet-destination-directory-tf3183998s177.html#a8838761 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Order of classpath supplied by dependencies ant task
Hi, I am using Antlib for Maven 2.0 to do dependency management in our ant builds. I have a number of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use the following code to get the server runtime classpath from a POM file and store it in a pathId for use later. artifact:dependencies pathId=cp.server.runtime.jars filesetId=server.runtime.jars.fileset remoteRepository refid=maven.repository / pom file=${fetched.build.files.dir}/server_runtime_pom.xml / /artifact:dependencies However if I list the contents of the cp.server.runtime.jars property the jar files are not in the order I specified: property name=cp refid=cp.server.runtime.jars/ echo message=Server Runtime Classpath is ${cp}/ It is important that I can specify the order of the runtime jar files because there is a patch that must be first in the classpath. Is there a way to specify an order of jar files in the POM file? Or to force the dependencies to be stored in the pathID property in the same order as in the POM file? --- This email message is intended solely for the person or entity to which it is addressed. The information it contains is confidential and may be legally privileged. Any review, retransmission, dissemination or other use of this email may be unlawful. If you are not the intended recipient, please notify us immediately and destroy the email from all sources. Thank you. Child, Youth and Family Service accepts no responsibility for changes made to this email or to any attachments after transmission from the Office. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I get a timestamp?
I am using the buildnumber plugin successfully to tag my assembly releases with a timestamp (for example, for assembly, finalName${ project.artifactId}-${project.version}-r${buildNumber}/finalName), just as Greg suggested. Need to make sure to invoke the plugin create goal, for example mvn buildnumber:create assembly:assembly. Thanks' On 2/6/07, Greg Jones [EMAIL PROTECTED] wrote: Kim, You can use the maven-buildnumber-plugin to get a timestamp, as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.4/version configuration format{0,date,-MM-dd HH:mm:ss}/format items itemtimestamp/item /items doCheckfalse/doCheck doUpdatefalse/doUpdate /configuration executions execution phasevalidate/phase goals goalcreate/goal /goals /execution /executions /plugin The timestamp is put into the ${buildNumber} property. You can also adjust the format of the timestamp to suit your requirements. Take a look at http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.htmlfor information on how it works. Regards, Greg J. -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 February 2007 11:03 AM To: 'Maven Users List' Subject: RE: Can I get a timestamp? The plug-in will allow you to use timestamp tagging to tag your builds. I am sorry but I don't think you can access the timestamp property directly in the pom itself. Why do you need to do that anyway? Bashar -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 4:43 PM To: Maven Users List Subject: RE: Can I get a timestamp? Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 6:15 PM To: 'Maven Users List' Subject: RE: Can I get a timestamp? You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration /plugin -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 3:57 PM To: Maven Users List Subject: Can I get a timestamp? Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - 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] - 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: Can't deploy site,Help please.
Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-deploy-site%2CHelp-please.-tf3178351s177.html#a8840223 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: dependencies are bloated in M2
On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to provide it for you either because it is not required for runtime. Example: aspectjtools.jar. You can't exclude it because your project will not compile. The only way is to give it the provided scope. That is not correct. Declaring a dependency to be optional puts it on the compile classpath, but avoids any attempt to include it at runtime. Even if your container doesn't provide it that's not a problem, maven doesn't care. I know it is not very clean to give a dependency a provided scope when it's not going to be provided anywhere, but sometimes you need to do this if you want to compile against it. The semantics of provided are different than optional even though Maven does not enforce it. The code you write against a provided API assumes that the API will indeed be provided by the container. As an example, you might declare as provided a library that you've installed in Tomcat's common/lib directory. The library must be there in order for the application to function -- but Maven can assume that it will indeed by supplied by the container, so won't include it in the WAR. Optional, on the other hand, means what it says. Declaring such a dependency means that you will need it available at compile time FOR THE DEPENDENCY, but not necessarily for your own code (unless you explicitly need it for other reasons). The library is explicitly NOT required at runtime, because your dependency has said, in effect, I can use this library if it exists, but if it does not, no harm no foul. Note also that optional is NOT a scope -- it is a completely separate element. That is because the concept of being optional is orthogonal to scope ... it's perfectly reasonable, for example, to have an optional module with compile scope if your build process knows how to intelligently deal with that combination. PLEASE do not misuse provided scope to mean the optional element or vice versa. PLEASE set up your POMs to say what you mean. These are two DIFFERENT concepts! Craig Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:18 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 still not right, you have to use exclusions provided means the environment (read appserver) provides that dependency, which is only true for few dependencies in the whole world, like servlet-api On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided dependency from the transitive closure. I would call that a bug if it didn't. And the answer to these 2 questions is to use the provided scope. It will also stop a dependency from being passed on transitively. Using exclusions is NOT right if you still want to compile against these dependencies. Bashar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 5:02 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ: http://maven.apache.org/general.html#scope-provided -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Tuesday, February 06, 2007 4:29 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 06, 2007 2:58 PM To: Maven Users List Subject: Re: dependencies are bloated in M2 Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes
Re: Can't deploy site,Help please.
Hi, No, File protocol can deploy any directory in network where user has access. The first slash character is defining that path is absolute two others are some server delimiters. file:/c:/temp vs. file:///someserver/depl or even file://192.1.1.0/temp/directory rgds, markku jiangshachina wrote: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - 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: Can't deploy site,Help please.
Am Dienstag, den 06.02.2007, 21:40 -0800 schrieb jiangshachina: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? Correct. a cup of Java, cheers! Sha Jiang -Tim 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-deploy-site%2CHelp-please.-tf3178351s177.html#a8840223 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]
Re: Can't deploy site,Help please.
One slash character was dropped out :-) file:///192.1.1.0/temp/directory - markku Markku Saarela wrote: Hi, No, File protocol can deploy any directory in network where user has access. The first slash character is defining that path is absolute two others are some server delimiters. file:/c:/temp vs. file:///someserver/depl or even file://192.1.1.0/temp/directory rgds, markku jiangshachina wrote: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - 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]
Excluding certain modules in a profile
Hi, I am using maven 2.0.4 and I want to be excluding certain modules while building my project in a certain profile. Following is the scenarion: This is how my main pom looks like: ?xml version=1.0 encoding=UTF-8 ? 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 groupIdcom.informatica.metadatarepository.qa/groupId artifactIdmetamodels/artifactId packagingpom/packaging name${artifactId}/name modules modulemodule1/module modulemodule2/module modulemodule3/module modulemodule4/module /modules profiles profile idcpp-qa/id modules modulemodule3/module modulemodule4/module /modules /profile /profiles With the above pom, when I build the project activating the profile cpp-qa, all the four modules are being built. I want to be building only module3 and module4 using certain configurations in this profile. Is there a way by which I can accomplish this in maven2? Thanks for any help, Ravi. Tough times never last, but tough men do...
Re: Maven2 fails on test-compile with TestNG
Problem with Error getting POM for 'org.apache.maven.plugins:maven-surefire-plugin' from the repository was solved when I`ve cleaned a bit my settings.xml file. But after that I`ve found that my tests doesn`t compiling at all. A've added two more tests to my AppTest.java I`m running either mvn surefire:test C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testngmvn surefire:test [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'surefire'. [INFO] [INFO] Building lv.bond.labs.mvn.testng [INFO]task-segment: [surefire:test] [INFO] [INFO] [surefire:test] [INFO] Surefire report directory: C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testng\target\surefire-reports --- T E S T S --- Running lv.bond.labs.mvn.testng.AppTest Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Feb 07 08:45:38 EET 2007 [INFO] Final Memory: 2M/5M [INFO] either just mvn test: C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testngmvn test [INFO] Scanning for projects... [INFO] [INFO] Building lv.bond.labs.mvn.testng [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] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\dev\workspaces\e3.2.1\ANN2\lv.bond.labs.mvn.testng\target\surefire-reports --- T E S T S --- Running lv.bond.labs.mvn.testng.AppTest Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Feb 07 08:46:36 EET 2007 [INFO] Final Memory: 3M/6M [INFO] But test output says 0 test runs, but when I run AppTest.java from Eclispe using TestNG I recieve output which indicates that there were 3 Runs and 1 Failure. Here is my POM.xml 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 groupIdlv.bond.labs.mvn.testng/groupId artifactIdlv.bond.labs.mvn.testng/artifactId packagingjar/packaging version1.0-SNAPSHOT/version namelv.bond.labs.mvn.testng/name urlhttp://maven.apache.org/url build defaultGoalpackage/defaultGoal sourceDirectorysrc/java/sourceDirectory testSourceDirectorysrc/test/java/testSourceDirectory resources resource directorysrc/test/*/directory includes include**Test.java/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target !-- groupsfunctest,util/groups -- /configuration /plugin /plugins /build dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId !-- version5.1/version --
RE: POM inheritance behaving unexpectedly
Tommy Knowlton wrote on Tuesday, February 06, 2007 11:19 PM: Hello, I've got a parent POM that declares e.g., project ... urlhttp://javabuild2.mycompany.com/${project.artifactId}/url /project (in other words, top-level configuration that varies by the project that has declared this parent). Problem is, when I look at the effective POM (mvn help:effective-pom), it shows up as follows: project ... artifactIdm-installer/artifactId urlhttp://javabuild2.mycompany.com/m-installer/m-installer/url project See where the duplication is occurring? Should I expect that? How can I use top-level config in the parent pom that uses values taken from the child pom? Note that the problem doesn't only occur when I use help:effective-pom, that's just been a useful way to help me figure out wth is going on. Also, it's not just url/ but other values that are referred using a ${project.XYZ} form. On the other hand, inside the child POM, I have other values that refer to ${artifactId} (not ${project.artifactId}) and these behave as I would expect. Is this a bug in the code that resolves ${project} references? No, this is a feature (that fails miserably when the directory in your repository does not match the artifactId ... MNG-2290). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't deploy site,Help please.
Hello, I tried to deploy project via scp just now, but authentication failed. How to set the user/password of remote machine in POM file? a cup of Java, cheers! Sha Jiang Markku Saarela wrote: One slash character was dropped out :-) file:///192.1.1.0/temp/directory - markku Markku Saarela wrote: Hi, No, File protocol can deploy any directory in network where user has access. The first slash character is defining that path is absolute two others are some server delimiters. file:/c:/temp vs. file:///someserver/depl or even file://192.1.1.0/temp/directory rgds, markku jiangshachina wrote: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir (for SFTP deployment) - file:///path/to/deployment/dir (for deploying to a local file system) Hope this helps -Tim Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋: Hi, I use apache-tomcat-5.5.17 as a server for the project site,the url is http://localhost:8080/pcie/, I have added the configuration in the pom.xmllike this: distributionManagement site idmaven/id urlscp://localhost:8080/pcie//url /site /distributionManagement I have start up the server successfull as well as I Have execute site command,but when I execute site-deploy,I appear the error like this: FATAL ERROR: Error executing Maven for a project org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 8 more Caused by: org.apache.maven.wagon.authentication.AuthenticationException : Cannot connect. Reason: invalid server's version string at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:239) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java :153) ... 10 more Caused by: com.jcraft.jsch.JSchException: invalid server's version string at com.jcraft.jsch.Session.connect(Unknown Source) at com.jcraft.jsch.Session.connect(Unknown Source) at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection ( AbstractSshWagon.java:228) ... 13 more what can I do? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]