Re: Create dependencies between Maven 2 and JBoss, JBoss-Seam
Hi, What exactly is your problem? Is it that you can't find the artifacts (that you depend on) on any repo? /Anders On Tue, May 5, 2009 at 23:36, bpmfouka bpmfo...@yahoo.fr wrote: Hi, I am working on EJB3 with JBoss and also to spread that JBoss-Seam, I am searching solution to solve this situation which create dependencies on JBoss server and JBoss-Seam in order to deploy and run my application with last server. What are there possibility? I hope to obtain help at this situation. Thanks -- View this message in context: http://www.nabble.com/Create-dependencies-between-Maven-2-and-JBoss%2C-JBoss-Seam-tp23396370p23396370.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [PLEASE TEST] Maven 2.2.0-RC2
John Casey wrote at Dienstag, 5. Mai 2009 02:02: Hi again, After finding and cleaning up some code that seems to be tainted during some of our efforts at generifying the codebase, we've respun a new release candidate. If you have time, please give it a whirl: https://repository.apache.org/content/repositories/maven-staging-010/org/apache/maven/apache-maven/2.2.0-RC2/ Remember, if you have any problems, report them to: http://jira.codehaus.org/browse/MNG with Affects-Version: 2.2.0 ...then, please reply to this thread to let me know about the issue! :-) Looks good. I was able to rebuild our complete project tree with more than 300 nested projects without any (obvious) problems. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [PLEASE TEST] Maven 2.2.0-RC2
Looks good with projects that had issues with profiles under 2.1.0 (sub projects not resolving profiles problem when built from the master). Mark -- Discouragement is a dissatisfaction with the past, a distaste for the present, and a distrust of the future - Maree De Jong, Life NZ. http://www.talios.com Sent from Auckland, New Zealand On Tue, May 5, 2009 at 12:02 PM, John Casey jdca...@commonjava.org wrote: Hi again, After finding and cleaning up some code that seems to be tainted during some of our efforts at generifying the codebase, we've respun a new release candidate. If you have time, please give it a whirl: https://repository.apache.org/content/repositories/maven-staging-010/org/apache/maven/apache-maven/2.2.0-RC2/ Remember, if you have any problems, report them to: http://jira.codehaus.org/browse/MNG with Affects-Version: 2.2.0 ...then, please reply to this thread to let me know about the issue! :-) Thanks for testing! -john - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Downloading from a secure repository
Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml. But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: repositories repository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories distributionManagement repository idrepo-releases/id namerepo-releases/name urlhttp://10.17.13.7:9080/artifactory/libs-releases-local/url /repository snapshotRepository idrepo-snapshots/id namerepo-snapshots/name urlhttp://10.17.13.7:9080/artifactory/libs-snapshots-local/url /snapshotRepository /distributionManagement settings.xml servers server idcentral/id usernameusername/username passwordpassword/password /server server idrepo-releases/id usernameusername/username passwordpassword/password /server server idrepo-snapshots/id usernameusername/username passwordpassword/password /server /servers mirrors mirror idartifactory/id mirrorOf*/mirrorOf urlhttp://10.17.13.7:9080/artifactory/repo/url nameArtifactory/name /mirror /mirrors
Re: Downloading from a secure repository
Possibly you should define credentials for the repo id artifactory in your settings.xml? As that's the id of the mirror being used. /Anders On Wed, May 6, 2009 at 10:03, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml. But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: repositories repository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories distributionManagement repository idrepo-releases/id namerepo-releases/name urlhttp://10.17.13.7:9080/artifactory/libs-releases-local/url /repository snapshotRepository idrepo-snapshots/id namerepo-snapshots/name urlhttp://10.17.13.7:9080/artifactory/libs-snapshots-local/url /snapshotRepository /distributionManagement settings.xml servers server idcentral/id usernameusername/username passwordpassword/password /server server idrepo-releases/id usernameusername/username passwordpassword/password /server server idrepo-snapshots/id usernameusername/username passwordpassword/password /server /servers mirrors mirror idartifactory/id mirrorOf*/mirrorOf urlhttp://10.17.13.7:9080/artifactory/repo/url nameArtifactory/name /mirror /mirrors - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Downloading from a secure repository
Thanks for your answer. I have tried it but it does not work. Regards. Ramon. -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: 6. maj 2009 10:30 To: Maven Users List Subject: Re: Downloading from a secure repository Possibly you should define credentials for the repo id artifactory in your settings.xml? As that's the id of the mirror being used. /Anders On Wed, May 6, 2009 at 10:03, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml. But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: repositories repository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories distributionManagement repository idrepo-releases/id namerepo-releases/name urlhttp://10.17.13.7:9080/artifactory/libs-releases-local/url /repository snapshotRepository idrepo-snapshots/id namerepo-snapshots/name urlhttp://10.17.13.7:9080/artifactory/libs-snapshots-local/url /snapshotRepository /distributionManagement settings.xml servers server idcentral/id usernameusername/username passwordpassword/password /server server idrepo-releases/id usernameusername/username passwordpassword/password /server server idrepo-snapshots/id usernameusername/username passwordpassword/password /server /servers mirrors mirror idartifactory/id mirrorOf*/mirrorOf urlhttp://10.17.13.7:9080/artifactory/repo/url nameArtifactory/name /mirror /mirrors - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Downloading from a secure repository
Hi again, Anders, you were right, putting repo id artifactory solves the problem. It did not work because I entered the wrong credentials. Regards. Ramon. -Original Message- From: Ramon Turnes Perez [mailto:ramon.turnes-pe...@hermes-softlab.com] Sent: 6. maj 2009 10:33 To: Maven Users List Subject: RE: Downloading from a secure repository Thanks for your answer. I have tried it but it does not work. Regards. Ramon. -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: 6. maj 2009 10:30 To: Maven Users List Subject: Re: Downloading from a secure repository Possibly you should define credentials for the repo id artifactory in your settings.xml? As that's the id of the mirror being used. /Anders On Wed, May 6, 2009 at 10:03, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml. But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: repositories repository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories distributionManagement repository idrepo-releases/id namerepo-releases/name urlhttp://10.17.13.7:9080/artifactory/libs-releases-local/url /repository snapshotRepository idrepo-snapshots/id namerepo-snapshots/name urlhttp://10.17.13.7:9080/artifactory/libs-snapshots-local/url /snapshotRepository /distributionManagement settings.xml servers server idcentral/id usernameusername/username passwordpassword/password /server server idrepo-releases/id usernameusername/username passwordpassword/password /server server idrepo-snapshots/id usernameusername/username passwordpassword/password /server /servers mirrors mirror idartifactory/id mirrorOf*/mirrorOf urlhttp://10.17.13.7:9080/artifactory/repo/url nameArtifactory/name /mirror /mirrors - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn classpath weirdness with eclipse plugin
On Wed, May 6, 2009 at 12:29 AM, Davis Ford davisf...@zenoconsulting.biz wrote: I am at a loss. We have no exclusions in the pom. Where should I look next? Hello Davis, I remember, that this has popped up on the mailing list before. If I am not mistaken the suggested fix was to set the ajdtVersion to none (see [1]) [1] http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#ajdtVersion - Henry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO]+- commons-collections:commons-collections:jar:3.2.1:compile [INFO]+- commons-lang:commons-lang:jar:2.4:compile [INFO]\- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module A, then (at least when using maven 2.1.0) library LIB does not get included in war of module B. It seems that scope (in this example test scope) of inherited dependency wins over scope (in this example compile scope) of transitive dependency. This looks like a bug to me (maybe just in maven-war-plugin:2.1-beta-1, or maven-dependency-plugin:2.1) - even though module B (through inheritance) defines LIB as test scope dependency but on the other hand it's dependency defines same LIB as compile scope dependency so LIB should be included in module B war. Currently a workaround is to explicitly define compile time dependency to LIB in module B, even though it doesn't make direct use of the LIB. As subject states, maybe I've misunderstood the dependency resolution mechanism. Attached is example project which demonstrates the issue. Regards, Stevo. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
When I run mvn dependency:resolve the output explains something more. (Ran it with debug on) [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:resolve] [INFO] [DEBUG] foo.bar:b:war:0.0.1-SNAPSHOT (selected for null) [DEBUG] foo.bar:a:jar:0.0.1-SNAPSHOT:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:compile (selected for compile) [DEBUG] commons-collections:commons-collections:jar:3.2.1:compile (selected for compile) [DEBUG] commons-lang:commons-lang:jar:2.4:compile (selected for compile) [DEBUG] oro:oro:jar:2.0.8:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (not setting scope to: compile; local scope test wins) [WARNING] Artifact org.apache.velocity:velocity:jar:1.6.2:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (selected for test) [DEBUG] commons-collections:commons-collections:jar:3.2.1:test (selected for test) [DEBUG] commons-lang:commons-lang:jar:2.4:test (selected for test) [DEBUG] oro:oro:jar:2.0.8:test (selected for test) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:37 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO] +- commons-collections:commons-collections:jar:3.2.1:test [INFO] +- commons-lang:commons-lang:jar:2.4:test [INFO] \- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] +- commons-lang:commons-lang:jar:2.4:compile [INFO] \- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO] task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO] +- commons-collections:commons-collections:jar:3.2.1:test [INFO] +- commons-lang:commons-lang:jar:2.4:test [INFO] \- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module A, then (at least when using maven 2.1.0) library LIB does not get included in war of module B. It seems that scope (in this example test scope) of inherited dependency wins over scope (in this example compile scope) of transitive dependency. This looks like a bug to me (maybe just in maven-war-plugin:2.1-beta-1, or maven-dependency-plugin:2.1) - even though module B (through inheritance) defines LIB as test scope dependency but on the other hand it's dependency defines same LIB as compile scope dependency so LIB should be included in module B war. Currently a workaround is to explicitly define compile time dependency to LIB in module B, even though it doesn't make direct use of the LIB. As subject states, maybe I've misunderstood the dependency resolution mechanism. Attached is example project which demonstrates the issue. Regards, Stevo. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
Thanks Nick for quick reply! Shouldn't broader scope win over narrower one, at least in this specific scenario? Regards, Stevo. On Wed, May 6, 2009 at 11:40 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: When I run mvn dependency:resolve the output explains something more. (Ran it with debug on) [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:resolve] [INFO] [DEBUG] foo.bar:b:war:0.0.1-SNAPSHOT (selected for null) [DEBUG] foo.bar:a:jar:0.0.1-SNAPSHOT:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:compile (selected for compile) [DEBUG] commons-collections:commons-collections:jar:3.2.1:compile (selected for compile) [DEBUG] commons-lang:commons-lang:jar:2.4:compile (selected for compile) [DEBUG] oro:oro:jar:2.0.8:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (not setting scope to: compile; local scope test wins) [WARNING] Artifact org.apache.velocity:velocity:jar:1.6.2:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (selected for test) [DEBUG] commons-collections:commons-collections:jar:3.2.1:test (selected for test) [DEBUG] commons-lang:commons-lang:jar:2.4:test (selected for test) [DEBUG] oro:oro:jar:2.0.8:test (selected for test) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:37 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO]+- commons-collections:commons-collections:jar:3.2.1:compile [INFO]+- commons-lang:commons-lang:jar:2.4:compile [INFO]\- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module A, then (at least when using maven 2.1.0) library LIB does not get included in war of module B. It seems that scope (in this example test scope) of inherited dependency wins over scope (in this example compile scope) of transitive dependency. This looks like a bug to me (maybe just in maven-war-plugin:2.1-beta-1, or maven-dependency-plugin:2.1) - even though module B (through inheritance) defines LIB as test scope dependency but on the other hand it's dependency defines same LIB as compile scope dependency so LIB should be included in module B war. Currently a workaround is to explicitly define compile time dependency to LIB in module B, even though it doesn't make direct use of the LIB. As subject states, maybe I've misunderstood the
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
Warning (dependency:resolve printed) that broader scope has been overridden doesn't even print when one packages project... Regards, Stevo. 2009/5/6 Stevo Slavić ssla...@gmail.com Thanks Nick for quick reply! Shouldn't broader scope win over narrower one, at least in this specific scenario? Regards, Stevo. On Wed, May 6, 2009 at 11:40 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: When I run mvn dependency:resolve the output explains something more. (Ran it with debug on) [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:resolve] [INFO] [DEBUG] foo.bar:b:war:0.0.1-SNAPSHOT (selected for null) [DEBUG] foo.bar:a:jar:0.0.1-SNAPSHOT:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:compile (selected for compile) [DEBUG] commons-collections:commons-collections:jar:3.2.1:compile (selected for compile) [DEBUG] commons-lang:commons-lang:jar:2.4:compile (selected for compile) [DEBUG] oro:oro:jar:2.0.8:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (not setting scope to: compile; local scope test wins) [WARNING] Artifact org.apache.velocity:velocity:jar:1.6.2:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (selected for test) [DEBUG] commons-collections:commons-collections:jar:3.2.1:test (selected for test) [DEBUG] commons-lang:commons-lang:jar:2.4:test (selected for test) [DEBUG] oro:oro:jar:2.0.8:test (selected for test) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:37 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO]+- commons-collections:commons-collections:jar:3.2.1:compile [INFO]+- commons-lang:commons-lang:jar:2.4:compile [INFO]\- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module A, then (at least when using maven 2.1.0) library LIB does not get included in war of module B. It seems that scope (in this example test scope) of inherited dependency wins over scope (in this example compile scope) of transitive dependency. This looks like a bug to me (maybe just in maven-war-plugin:2.1-beta-1, or maven-dependency-plugin:2.1) - even though module B (through inheritance) defines LIB as test scope dependency but on the other hand it's dependency defines same LIB as compile scope dependency so LIB should be included in module B war. Currently a
Re: Downloading from a secure repository
Ok, great. I was kind of hoping it was a mistake on your side, as I would be clueless otherwise. :-) /Anders On Wed, May 6, 2009 at 11:04, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi again, Anders, you were right, putting repo id artifactory solves the problem. It did not work because I entered the wrong credentials. Regards. Ramon. -Original Message- From: Ramon Turnes Perez [mailto:ramon.turnes-pe...@hermes-softlab.com] Sent: 6. maj 2009 10:33 To: Maven Users List Subject: RE: Downloading from a secure repository Thanks for your answer. I have tried it but it does not work. Regards. Ramon. -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: 6. maj 2009 10:30 To: Maven Users List Subject: Re: Downloading from a secure repository Possibly you should define credentials for the repo id artifactory in your settings.xml? As that's the id of the mirror being used. /Anders On Wed, May 6, 2009 at 10:03, Ramon Turnes Perez ramon.turnes-pe...@hermes-softlab.com wrote: Hi, we have set up an internal maven repository with Artifactory and disable anonymous access so clients should authenticate themselves not only for publishing to the repository but also for downloading. The set up works for publishing, that is, maven client responds to server authentication request and sends the username and password as configured in settings.xml. But it does not work for downloading, that is, during the building phase. It seems that maven client ignores the authentication request and we just received the following message: Authorization failed: Access denied to: http://10.17.13.7:9080/artifactory/repo/org/apache/maven/plugins/maven-s ite-plugin/2.0-beta-7/maven-site-plugin-2.0-beta-7.pom If we enable anonymous access for reading from the repository it works. Any help would be appreciated. We are using maven 2.1.0 and artifactory 2.0.5 with Java 1.5 on Windows XP. Thanks in advance. Ramon. We have followed the instructions as described in http://maven.apache.org/guides/introduction/introduction-to-repositories .html. Our configuration looks like this: pom.xml: repositories repository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.17.13.7:9080/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.17.13.7:9080/artifactory/repo/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories distributionManagement repository idrepo-releases/id namerepo-releases/name urlhttp://10.17.13.7:9080/artifactory/libs-releases-local/url /repository snapshotRepository idrepo-snapshots/id namerepo-snapshots/name urlhttp://10.17.13.7:9080/artifactory/libs-snapshots-local/url /snapshotRepository /distributionManagement settings.xml servers server idcentral/id usernameusername/username passwordpassword/password /server server idrepo-releases/id usernameusername/username passwordpassword/password /server server idrepo-snapshots/id usernameusername/username passwordpassword/password /server /servers mirrors mirror idartifactory/id mirrorOf*/mirrorOf urlhttp://10.17.13.7:9080/artifactory/repo/url nameArtifactory/name /mirror /mirrors - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven2 - Where to put script files?
I guess I'll have to write my own plugin.. Nick Stolwijk-4 wrote: To put the files in src/main/scripts is the convention. It is then up to the plugins to do something with them. Which plugin did you expect to take your files? Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tp5594755p23403655.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
automatically calling install target for projects which are not in the repository
Hi, I have an application composed of 10 Eclipse projects, which depend on each other. One of them is a webapp and it depends on several Eclipse projects, and some of these Eclipse projects depend on others, so the dependency tree is quite complex. In good-old Eclipse build, I don't have to care about that dependencies tree: as long as the necessary projects are specified in the Required projects on the build path section, my webapp will build successfully in 1 user task. In Maven even though the dependencies are defined in the POM, if the required projects don't exist in the local repository, calling mvn clean install for my webapp will fail. As a result, I have to mvn install every single Maven project on the build path first. Is there a way of calling mvn install on projects if they don't exist in the local repository? -- View this message in context: http://www.nabble.com/automatically-calling-%22install%22-target-for-projects-which-are-not-in-the-repository-tp23403861p23403861.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
Greater problem here is that tests would run fine (except functional tests, if there are any, that would actually deploy/run war), and one could discover dependency is missing only at runtime... Regards, Stevo. 2009/5/6 Stevo Slavić ssla...@gmail.com Warning (dependency:resolve printed) that broader scope has been overridden doesn't even print when one packages project... Regards, Stevo. 2009/5/6 Stevo Slavić ssla...@gmail.com Thanks Nick for quick reply! Shouldn't broader scope win over narrower one, at least in this specific scenario? Regards, Stevo. On Wed, May 6, 2009 at 11:40 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: When I run mvn dependency:resolve the output explains something more. (Ran it with debug on) [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:resolve] [INFO] [DEBUG] foo.bar:b:war:0.0.1-SNAPSHOT (selected for null) [DEBUG] foo.bar:a:jar:0.0.1-SNAPSHOT:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:compile (selected for compile) [DEBUG] commons-collections:commons-collections:jar:3.2.1:compile (selected for compile) [DEBUG] commons-lang:commons-lang:jar:2.4:compile (selected for compile) [DEBUG] oro:oro:jar:2.0.8:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (not setting scope to: compile; local scope test wins) [WARNING] Artifact org.apache.velocity:velocity:jar:1.6.2:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (selected for test) [DEBUG] commons-collections:commons-collections:jar:3.2.1:test (selected for test) [DEBUG] commons-lang:commons-lang:jar:2.4:test (selected for test) [DEBUG] oro:oro:jar:2.0.8:test (selected for test) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:37 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO]+- commons-collections:commons-collections:jar:3.2.1:compile [INFO]+- commons-lang:commons-lang:jar:2.4:compile [INFO]\- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO]task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO]+- commons-collections:commons-collections:jar:3.2.1:test [INFO]+- commons-lang:commons-lang:jar:2.4:test [INFO]\- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module A, then (at least when using maven 2.1.0) library LIB does not get included in war of module B. It seems that scope (in this example test scope) of inherited dependency wins over scope (in this example compile scope) of transitive dependency. This looks like a bug to me (maybe just in
Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism
After inheritance, the war dependency tree looks like this: foo.bar:b:war:0.0.1-SNAPSHOT +- org.apache.velocity:velocity:jar:1.6.2:test \- foo.bar:a:jar:0.0.1-SNAPSHOT:compile +- org.apache.velocity:velocity:jar:1.6.2:test \- org.apache.velocity:velocity:jar:1.6.2:compile So the resolved scope for velocity is test since the war pom takes precedence over any transitive dependencies. I agree that this is not the best behaviour. Just one of the many dependency resolution problems that I hope will be solved with Mercury :) Mark 2009/5/6 Stevo Slavić ssla...@gmail.com: Warning (dependency:resolve printed) that broader scope has been overridden doesn't even print when one packages project... Regards, Stevo. 2009/5/6 Stevo Slavić ssla...@gmail.com Thanks Nick for quick reply! Shouldn't broader scope win over narrower one, at least in this specific scenario? Regards, Stevo. On Wed, May 6, 2009 at 11:40 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: When I run mvn dependency:resolve the output explains something more. (Ran it with debug on) [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO] task-segment: [dependency:resolve] [INFO] [DEBUG] foo.bar:b:war:0.0.1-SNAPSHOT (selected for null) [DEBUG] foo.bar:a:jar:0.0.1-SNAPSHOT:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:compile (selected for compile) [DEBUG] commons-collections:commons-collections:jar:3.2.1:compile (selected for compile) [DEBUG] commons-lang:commons-lang:jar:2.4:compile (selected for compile) [DEBUG] oro:oro:jar:2.0.8:compile (selected for compile) [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (not setting scope to: compile; local scope test wins) [WARNING] Artifact org.apache.velocity:velocity:jar:1.6.2:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [DEBUG] org.apache.velocity:velocity:jar:1.6.2:test (selected for test) [DEBUG] commons-collections:commons-collections:jar:3.2.1:test (selected for test) [DEBUG] commons-lang:commons-lang:jar:2.4:test (selected for test) [DEBUG] oro:oro:jar:2.0.8:test (selected for test) Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:37 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: When I run your example with mvn dependency:tree this is what I get: [INFO] [dependency:tree] [INFO] foo.bar:foo-bar-parent:pom:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test [INFO] +- commons-collections:commons-collections:jar:3.2.1:test [INFO] +- commons-lang:commons-lang:jar:2.4:test [INFO] \- oro:oro:jar:2.0.8:test [INFO] [INFO] Building Unnamed - foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:a:jar:0.0.1-SNAPSHOT [INFO] \- org.apache.velocity:velocity:jar:1.6.2:compile [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] +- commons-lang:commons-lang:jar:2.4:compile [INFO] \- oro:oro:jar:2.0.8:compile [INFO] [INFO] Building Unnamed - foo.bar:b:war:0.0.1-SNAPSHOT [INFO] task-segment: [dependency:tree] [INFO] [INFO] [dependency:tree] [INFO] foo.bar:b:war:0.0.1-SNAPSHOT [INFO] +- foo.bar:a:jar:0.0.1-SNAPSHOT:compile [INFO] \- org.apache.velocity:velocity:jar:1.6.2:test (scope not updated to compile) [INFO] +- commons-collections:commons-collections:jar:3.2.1:test [INFO] +- commons-lang:commons-lang:jar:2.4:test [INFO] \- oro:oro:jar:2.0.8:test Mind the scope not updated to compile, so Maven sees something strange. I don't know whether this is a bug or a feature ;) or what the rationale is behind it. Can someone explain? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 11:29 AM, Stevo Slavić ssla...@gmail.com wrote: Hello Maven users, If a parent module (e.g. P) of a multi module project defines a test scope dependency to some library (e.g. library LIB), and if one of projects's child modules which inherit P (e.g. jar module A) defines compile scope dependency to the same (LIB) library, and if some other child module which also inherits P (e.g. war module B) defines compile scope dependency on module
Re: Maven2 - Where to put script files?
It all depends what you want to do with them. Deliver them with your application? Use the assembly plugin to create a bundle. Add them to the jar file? Configure the resource plugin to include the src/main/scripts directory. If it is any specific functionality, then you could write your own plugin. Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 12:09 PM, Blackbird panzrku...@yahoo.fr wrote: I guess I'll have to write my own plugin.. Nick Stolwijk-4 wrote: To put the files in src/main/scripts is the convention. It is then up to the plugins to do something with them. Which plugin did you expect to take your files? Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tp5594755p23403655.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: automatically calling install target for projects which are not in the repository
You can create a pom in a higher directory to include them as modules, or use a combination of a ci server and an artifact repository to make sure they are already build and waiting in the artifact repository. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, May 6, 2009 at 12:22 PM, Blackbird panzrku...@yahoo.fr wrote: Hi, I have an application composed of 10 Eclipse projects, which depend on each other. One of them is a webapp and it depends on several Eclipse projects, and some of these Eclipse projects depend on others, so the dependency tree is quite complex. In good-old Eclipse build, I don't have to care about that dependencies tree: as long as the necessary projects are specified in the Required projects on the build path section, my webapp will build successfully in 1 user task. In Maven even though the dependencies are defined in the POM, if the required projects don't exist in the local repository, calling mvn clean install for my webapp will fail. As a result, I have to mvn install every single Maven project on the build path first. Is there a way of calling mvn install on projects if they don't exist in the local repository? -- View this message in context: http://www.nabble.com/automatically-calling-%22install%22-target-for-projects-which-are-not-in-the-repository-tp23403861p23403861.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [PLEASE TEST] Maven 2.2.0-RC2
On 5 May 2009, at 01:02, John Casey wrote: After finding and cleaning up some code that seems to be tainted during some of our efforts at generifying the codebase, we've respun a new release candidate. If you have time, please give it a whirl: https://repository.apache.org/content/repositories/maven-staging-010/org/apache/maven/apache-maven/2.2.0-RC2/ Remember, if you have any problems, report them to: http://jira.codehaus.org/browse/MNG with Affects-Version: 2.2.0 ...then, please reply to this thread to let me know about the issue! :-) I've just noticed this whilst doing a site-deploy: [INFO] Generating Dependencies report. Downloading: http://localhost:8081/nexus/content/groups/public/com/ibm/icu/icu4j/3.4.4/icu4j-3.4.4.jar Downloading: http://localhost:8081/nexus/content/groups/public/commons-lang/commons-lang/2.1/commons-lang-2.1.jar May 6, 2009 1:58:26 PM hidden.org.apache.commons.httpclient.HttpMethodBase processCookieHeaders WARNING: Cookie rejected: $Version=0; JSESSIONID=E545E65FB5E46552ED8473D17DF1DC80; $Path=/servlets. Illegal path attribute /servlets. Path of origin: /nonav/repository// com.google.collections/jars/google-collections-0.9.jar May 6, 2009 1:58:30 PM hidden.org.apache.commons.httpclient.HttpMethodBase processCookieHeaders WARNING: Cookie rejected: $Version=0; JSESSIONID=C39976B35FDA6AAE7A4C267A7DFF61D3; $Path=/servlets. Illegal path attribute /servlets. Path of origin: /nonav/repository// com.ibm.icu/jars/icu4j-3.4.4.jar This wasn't happening on 2.1. Is this just some debug logging left on by accident? -Dom
Re: unable to deploy site with webdav
Hi Michael, I switched to use scp and all is good :-) Sorry I can not help you with the webdav thing, - Ross Michael K. wrote: Hello Ross, I have the same problem as you had. Did you get resolve the problem? I would appreciate your help. Kind regards, Michael rossputin wrote: Hi, I am using maven 2.0.9, and everything is working great except for site deployment with webdav. I have not tried any other kind of deployment yet, as I do it manually, so it may not be just site deployment that is not working for me. I have an apache webdav setup in place, and can access it in a browser or in Cadaver via command line. When I execute my maven site:deploy command, I always get a '500 Internal Server Error' with wagon-webdav 1.0-beta-2, and with wagon-webdav 1.0-beta-1 nothing much seems to happen, the process executes successfully, but nothing is copied across. Has anyone successfully deployed with any recent version of maven over webdav? One of the books I have on it suggests using it. I have not seen much on the mailing list though. Thanks in advance for your help. Ross -- View this message in context: http://www.nabble.com/unable-to-deploy-site-with-webdav-tp17276670p23406609.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: automatically calling install target for projects which are not in the repository
Hi Blackbird, I am also interested how to make Maven automatically build dependencies. In our company, we created a proxy-scm provider for that purpose. I created Jira ticket http://jira.codehaus.org/browse/SCM-367, but it seems that community is not interested. Andrei Solntsev, Software Developer HireRight Estonia AS -Original Message- From: Blackbird [mailto:panzrku...@yahoo.fr] Sent: Wednesday, May 06, 2009 1:23 PM To: users@maven.apache.org Subject: automatically calling install target for projects which are not in the repository Hi, I have an application composed of 10 Eclipse projects, which depend on each other. One of them is a webapp and it depends on several Eclipse projects, and some of these Eclipse projects depend on others, so the dependency tree is quite complex. In good-old Eclipse build, I don't have to care about that dependencies tree: as long as the necessary projects are specified in the Required projects on the build path section, my webapp will build successfully in 1 user task. In Maven even though the dependencies are defined in the POM, if the required projects don't exist in the local repository, calling mvn clean install for my webapp will fail. As a result, I have to mvn install every single Maven project on the build path first. Is there a way of calling mvn install on projects if they don't exist in the local repository? -- View this message in context: http://www.nabble.com/automatically-calling-%22install%22-target-for-pro jects-which-are-not-in-the-repository-tp23403861p23403861.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: unable to deploy site with webdav
I already use Maven 2.1.0. The error.log contains: Digest: client used wrong authentication scheme `Basic': Cannot create collection; intermediate collection does not exist. [409, #0] How do I get maven to use wagon-webdav-jackrabbit 1.0- beta-5 ? Thanks for help, Michael brettporter wrote: 500 errors will show up in the Apache error log which might help you nail down the problem. You might also try Maven 2.1.0 and the wagon-webdav-jackrabbit 1.0- beta-5 wagon as an alternative if you are still having problems. Cheers, Brett On 06/05/2009, at 12:00 AM, Michael K. wrote: Hello Martin, I try to upload to the apache-webserver 2.2. I've configured webdav as described in the httpd.conf and the httpd-dav.conf. I tested it via windows web folder and it works fine. Michael mgainty wrote: Ross- which container are you attempting to upload to ? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 5 May 2009 05:16:31 -0700 From: mail4s...@arcor.de To: users@maven.apache.org Subject: Re: unable to deploy site with webdav Hello Ross, I have the same problem as you had. Did you get resolve the problem? I would appreciate your help. Kind regards, Michael rossputin wrote: Hi, I am using maven 2.0.9, and everything is working great except for site deployment with webdav. I have not tried any other kind of deployment yet, as I do it manually, so it may not be just site deployment that is not working for me. I have an apache webdav setup in place, and can access it in a browser or in Cadaver via command line. When I execute my maven site:deploy command, I always get a '500 Internal Server Error' with wagon-webdav 1.0-beta-2, and with wagon-webdav 1.0-beta-1 nothing much seems to happen, the process executes successfully, but nothing is copied across. Has anyone successfully deployed with any recent version of maven over webdav? One of the books I have on it suggests using it. I have not seen much on the mailing list though. Thanks in advance for your help. Ross -- View this message in context: http://www.nabble.com/unable-to-deploy-site-with-webdav-tp17276670p23386321.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009 -- View this message in context: http://www.nabble.com/unable-to-deploy-site-with-webdav-tp17276670p23387749.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/unable-to-deploy-site-with-webdav-tp17276670p23407606.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
generate ddl for my dbunti hiber4nqate configration
My project uses spring , hibernate,dbunit for orm dao unit testing. I am using maven to build my project. The dbunit testing I use hsqldb with hibernate configration prop key=hibernate.hbm2ddl.autocreate-drop/prop, this creates tables in hsqldb and excutes all test, I am wondering If I can save this schema generated for hsqldb ina ddl file ?I saw hibernate3-maven-plugin is used to to generate ddl file , In my case do I have to use this plugin? , if so then my hibernate configration is through a spring bean and do not know how to tell this plugin to use a spring bean , If there a re any examples please provide me the link .
Configuring a standalone EJB3 client
Hi, I am trying to set up a maven configuration for the very first exercise in the O'reilly's EJB3 book. They use ANT to build the classpath, execute, etc. 1) I was able to find a generic persistence-api-1.0.jar in the repo1, but can't find a generic EJB3 api... does that exist? I had to specify an extra repository to pull the JBoss ejb3 api jar. That seems strange as the API is the API, no matter where the implementation is... Does a generic one exist like with persistence? 2) In that first exercise, they use a regular Java client (note NOT an JEE client, just regular java) which uses JNDI look up with some properties to look up a remote session bean on the JBoss server. While they use ANT to generate the classpath, the stuff ALL possible JARS in that classpath... They use every 'lib' directory in JBoss and reference tons and tons of JARS on the classpath. My question is, in maven, what would I reference as a dependency to simply do a JNDI look up on a session bean and execute a method in it (session bean is obviously deployed to JBoss at that point)? -- Thanks, NG - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
System scope dependency can't find class in rt.jar?
I need to reference WSBindingProvider, a class in the standard rt.jar: package edu.upenn.library.itadd.dla.fedora; ... import com.sun.xml.internal.ws.developer.WSBindingProvider; ... WSBindingProvider bp = (WSBindingProvider)port; ... This builds fine in Eclipse (without maven), but when I try to build from the commandline I get this: ... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /usr/local/dla-input/lib/java/FedoraPost/src/main/java/edu/upenn/library/itadd/dla/fedora/Post.java:[16,40] package com.sun.xml.internal.ws.developer does not exist /usr/local/dla-input/lib/java/FedoraPost/src/main/java/edu/upenn/library/itadd/dla/fedora/Post.java:[101,5] cannot find symbol symbol : class WSBindingProvider location: class edu.upenn.library.itadd.dla.fedora.Post ... I've tried several different things in the POM, but they make no difference. Here's one permutation: dependency groupIddummy/groupId artifactIddummy/artifactId version1/version scopesystem/scope systemPath/usr/lib/jvm/newest/jdk/jre/lib/rt.jar/systemPath /dependency -- As I understand it, this is an appropriate use of system scope: This class should just be available through the JDK on any installation. -- If I could get it to work, I'd certainly use a property reference in the systemPath, but here I'm specifying the path explicitly so there's one less variable. -- For system scope, my understanding is that the groupId, artifactId, and version can be arbitrary. For example, http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3c4725b62a.3080...@udo.edu%3e I have a work-around: that is to strip the rt.jar down to just the subpackage we need, and put it in our local repository, but that really doesn't seem like the right thing to do. Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to access the plugin class path in ant based mojo
Hi, I'm new to maven plugin development. I'm writing an ant based maven plugin. The ant script contains a java task which requires the classpath of the plugin, i.e. the dependencies in the plugin pom. How can I construct the-plugin-classpath? myplugin.build.xml: java … classpath the-plugin-classpath /java Gerd -- View this message in context: http://www.nabble.com/How-to-access-the-plugin-class-path-in-ant-based-mojo-tp23409996p23409996.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: filtering web.xml
Hi, Just to build on this a bit, the maven plugin definitely supports the filtering of resources (outside of WEB-INF/classes). Here is a full build config which filters web.xml (*.xml, actually) and places it in the WEB-INF directory: build plugins !-- the below filters src/.../WEB-INF resources and places the filtered files in WEB-INF of our target war -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes include*.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin /plugins filters filtersrc/main/filters/filter-${env}.properties/filter /filters !-- the below filters general resources and places the filtered files in WEB-INF/classes of our target war -- resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource !-- resource directorysrc/main/webapp/WEB-INF/directory filteringtrue/filtering /resource -- /resources /build Todd Fulton Tim Kettler wrote: Hi, I do it like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin /plugins /build and I think this is the right way to do it since standard resources end up somewhere under 'target/classes' and I don't want that polluted with a web.xml file. -Tim Henri Gomez schrieb: Hi to all, In a war project I'd like to filter the src/main/webapp/WEB-INF/web.xml : ie : update the display name to include the pom version display-nameMy Site Application v${pom.version}/display-name I read some threads and it's not clear if it should be done by web-resources or standard filtering. ie : http://www.nabble.com/War-plugin-and-filtering-webapp-files-to4384723.html Advice welcome, I'm using maven-war-plugin 2.0.2 regards and thanks for your help, I'm being crasy :) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/filtering-web.xml-tp17263714p2341.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
perform 'site' with 'package'
When 'mvn package' is run, is there a way to also automatically run 'site' too? Is this something which can be configured?? - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: perform 'site' with 'package'
On Wed, May 6, 2009 at 10:28 AM, REMIJAN, MICHAEL J [AG/1000] michael.j.remi...@monsanto.com wrote: When 'mvn package' is run, is there a way to also automatically run 'site' too? Is this something which can be configured?? To get the same effect, you could look at the goals that are bound in the site lifecycle and bind them to phases in the default lifecycle. (It's really just site:site -- see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings .) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: resolve dependencyManagement dependencies from a bill of materials (bom) pom
I guess the Maven dependency plugin goals do that. Do not remember which ones. Jim Sellers wrote: Hi all. For the company that I work at we've got a bill of materials (bom) pom that contains dependencies that we know will work together. Projects will use the import scope to pull this into their own projects. However, there is a possibility of putting in an artifact that won't be resolved by our corp proxy (archiva). Does anyone know of a plugin or way when running the a phase of the bom it will try and resolve and download these dependencies? That way a mistake can be found at that stage that something is wrong. eg. if the pom depends on org.hibernate:hibernate-core:999, you won't see any issue until the projects that use that pom are built. Thanks for your time! Jim -- View this message in context: http://www.nabble.com/resolve-dependencyManagement-dependencies-from-a-bill-of-materials--%28bom%29-pom-tp23164670p23411964.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to check the versions of BOM pom entries and the dependent artifact versions entries
I am working on creation of a Bill of Materails (BOM) POM which would have some of the common components used by other applications. Some of the components in the BOM pom are interdependent. We are looking at a way to find out that the versions in the component poms matches with the versions in the BOM pom. Is there any plugin which would help us verify this. Thanks -- View this message in context: http://www.nabble.com/How-to-check-the-versions-of-BOM-pom-entries-and-the-dependent-artifact-versions-entries-tp23412330p23412330.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [PLEASE TEST] Maven 2.2.0-RC2
Check what command the release plugin is invoking during the perform goal. It's checking out the code to target/checkout and then forks another maven execution in that folder. This is the one that's failing for you. On Wed, May 6, 2009 at 3:18 AM, Mark Derricutt m...@talios.com wrote: Looks good with projects that had issues with profiles under 2.1.0 (sub projects not resolving profiles problem when built from the master). Mark -- Discouragement is a dissatisfaction with the past, a distaste for the present, and a distrust of the future - Maree De Jong, Life NZ. http://www.talios.com Sent from Auckland, New Zealand On Tue, May 5, 2009 at 12:02 PM, John Casey jdca...@commonjava.org wrote: Hi again, After finding and cleaning up some code that seems to be tainted during some of our efforts at generifying the codebase, we've respun a new release candidate. If you have time, please give it a whirl: https://repository.apache.org/content/repositories/maven-staging-010/org/apache/maven/apache-maven/2.2.0-RC2/ Remember, if you have any problems, report them to: http://jira.codehaus.org/browse/MNG with Affects-Version: 2.2.0 ...then, please reply to this thread to let me know about the issue! :-) Thanks for testing! -john - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: resolve dependencyManagement dependencies from a bill of materials (bom) pom
No goals in the dependency do this as far as I know. Just for fun I tried to run all the goals to see if one of them would do it, but they don't. There is a ticket open for having a tree for the dep management section, and I believe that would work for me. http://jira.codehaus.org/browse/MDEP-201 Thanks. Jim On Wed, May 6, 2009 at 1:44 PM, Thejaswi Narayana thejasw...@gmail.comwrote: I guess the Maven dependency plugin goals do that. Do not remember which ones. Jim Sellers wrote: Hi all. For the company that I work at we've got a bill of materials (bom) pom that contains dependencies that we know will work together. Projects will use the import scope to pull this into their own projects. However, there is a possibility of putting in an artifact that won't be resolved by our corp proxy (archiva). Does anyone know of a plugin or way when running the a phase of the bom it will try and resolve and download these dependencies? That way a mistake can be found at that stage that something is wrong. eg. if the pom depends on org.hibernate:hibernate-core:999, you won't see any issue until the projects that use that pom are built. Thanks for your time! Jim -- View this message in context: http://www.nabble.com/resolve-dependencyManagement-dependencies-from-a-bill-of-materials--%28bom%29-pom-tp23164670p23411964.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to get sub-assembly when creating root assembly?
I have a multi-module project. One of my submodules creates an assembly (zip) of a set of files that I need to distribute. At the root of my project, I want to create a 'distribution' that includes this assembly as well as several of the artifacts from other submodules (e.g. WAR's RAR's). For the life of me, I can't get the assembly plugin to find my sub-assembly. The sub assembly has an assembly id of 'migrations'. In order to find this attachment, the root assembly (called 'distribution') has set the attachmentClassifier to 'migrations' as well but I keep getting this error: Assembly: distribution is not configured correctly: Cannot find attachment with classifier: migrations The file is there and it is getting correctly installed into the repo as a zip file along with the primary jar artifact from that module. What the heck am I missing? -- View this message in context: http://www.nabble.com/How-to-get-sub-assembly-when-creating-root-assembly--tp23413466p23413466.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
include jars from a folder
I have some of the jar files modified and kept them under folder ext-lib, there jars files are needed by my application, can I tell maven to include jars from this folder into the war file ? my pom right now uses scope system and systempath , I donot want to install them becasue we don't have common repository manager and every user working with the project must install these jar files into there local repository
maven 2.3.0 Cannot find lifecycle mapping for packaging: 'zip'.
I got 'maven 2.3.0 Cannot find lifecycle mapping for packaging: 'zip'.' message running mvn install I am a bit confuse because I haven't changed anything since las time I use it. This is my setup and I tested it with maven 2.0.9. Is It a matter of versions? Apache Maven 2.1.0 (r755702; 2009-03-18 16:10:27-0300) Java version: 1.6.0_06 Java home: /usr/lib/jvm/java-6-sun-1.6.0.06/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux version: 2.6.24-23-generic arch: i386 Family: unix -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/
Re: include jars from a folder
On Wed, May 6, 2009 at 1:00 PM, tubin gen fachh...@gmail.com wrote: I have some of the jar files modified and kept them under folder ext-lib, there jars files are needed by my application, can I tell maven to include jars from this folder into the war file ? my pom right now uses scope system and systempath , I donot want to install them becasue we don't have common repository manager and every user working with the project must install these jar files into there local repository Installing the jars is easily done with a script, (or I've even seen it done in the pom,) and is the best way to do it. Then you're all set for when you do establish an internal repository. If you must, system scope will work. Or (if you don't need them to compile but just want them included in the war,) a bit of antrun to copy them to the right place.) -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 2.3.0 Cannot find lifecycle mapping for packaging: 'zip'.
On Wed, May 6, 2009 at 1:15 PM, Fernando Wermus fernando.wer...@gmail.com wrote: I got 'maven 2.3.0 Cannot find lifecycle mapping for packaging: 'zip'.' message running mvn install I am a bit confuse because I haven't changed anything since las time I use it. This is my setup and I tested it with maven 2.0.9. Is It a matter of versions? Apache Maven 2.1.0 (r755702; 2009-03-18 16:10:27-0300) Unlikely we can help much without seeing the pom and the exact error message. What is the packaging in the pom? Did you mean Maven 2.1.0 in your subject line and above? That's what you appear to be using. Perhaps it's version 2.3 of some plugin? -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
dependencyManagement
I have a quick question about dependencyManagement - if moduleA has a dependencyManagement tag that pulls in a pom that has a bunch of dependencies. ModuleB depends on moduleA. During a build of ModuleB, I can see it trying to get at the pom specified in the dependencyManagement section of moduleA, but it can't seem to find it in our local repository. Yet, building moduleA, there are no problems. Am I missing some thing with regard to how these import scoped dependencies work?
Re: dependencyManagement
EJ Ciramella wrote: I have a quick question about dependencyManagement - if moduleA has a dependencyManagement tag that pulls in a pom that has a bunch of dependencies. ModuleB depends on moduleA. During a build of ModuleB, I can see it trying to get at the pom specified in the dependencyManagement section of moduleA, but it can't seem to find it in our local repository. Yet, building moduleA, there are no problems. Am I missing some thing with regard to how these import scoped dependencies work? This is MNG-3553 ... see also current discussion on dev. I've been hit by Arnaud's case also. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Re: dependencyManagement
Nice - thanks for the quick reply. Can I have that hour of my life back now :-) We are using 2.0.9 and it's not a trivial thing to get people and our environments updated. Is this truly fixed in 2.0.something beyond what I'm using? Or 2.2.0? -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Jörg Schaible Sent: Wednesday, May 06, 2009 7:30 PM To: users@maven.apache.org Subject: Re: dependencyManagement EJ Ciramella wrote: I have a quick question about dependencyManagement - if moduleA has a dependencyManagement tag that pulls in a pom that has a bunch of dependencies. ModuleB depends on moduleA. During a build of ModuleB, I can see it trying to get at the pom specified in the dependencyManagement section of moduleA, but it can't seem to find it in our local repository. Yet, building moduleA, there are no problems. Am I missing some thing with regard to how these import scoped dependencies work? This is MNG-3553 ... see also current discussion on dev. I've been hit by Arnaud's case also. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: System scope dependency can't find class in rt.jar?
Long shot - I know that newest in /usr/lib/jvm/newest/jdk/jre/lib/rt.jar suggests it is a JDK6 JDK, but might be worth double-checking on the build machine, in case a JDK5 slipped in unnoticed (which won't have this class). I see you've extracted the classes from the JAR, but maybe you did this from a different copy. Brett On Thu, May 7, 2009 at 1:57 AM, Charles McCallum m...@pobox.upenn.eduwrote: I need to reference WSBindingProvider, a class in the standard rt.jar: package edu.upenn.library.itadd.dla.fedora; ... import com.sun.xml.internal.ws.developer.WSBindingProvider; ... WSBindingProvider bp = (WSBindingProvider)port; ... This builds fine in Eclipse (without maven), but when I try to build from the commandline I get this: ... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /usr/local/dla-input/lib/java/FedoraPost/src/main/java/edu/upenn/library/itadd/dla/fedora/Post.java:[16,40] package com.sun.xml.internal.ws.developer does not exist /usr/local/dla-input/lib/java/FedoraPost/src/main/java/edu/upenn/library/itadd/dla/fedora/Post.java:[101,5] cannot find symbol symbol : class WSBindingProvider location: class edu.upenn.library.itadd.dla.fedora.Post ... I've tried several different things in the POM, but they make no difference. Here's one permutation: dependency groupIddummy/groupId artifactIddummy/artifactId version1/version scopesystem/scope systemPath/usr/lib/jvm/newest/jdk/jre/lib/rt.jar/systemPath /dependency -- As I understand it, this is an appropriate use of system scope: This class should just be available through the JDK on any installation. -- If I could get it to work, I'd certainly use a property reference in the systemPath, but here I'm specifying the path explicitly so there's one less variable. -- For system scope, my understanding is that the groupId, artifactId, and version can be arbitrary. For example, http://mail-archives.apache.org/mod_mbox/maven-users/200710.mbox/%3c4725b62a.3080...@udo.edu%3e I have a work-around: that is to strip the rt.jar down to just the subpackage we need, and put it in our local repository, but that really doesn't seem like the right thing to do. Any suggestions? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
hi, can i run java argument ub command line
when we run a java problem, we can do java Program arg1 arg2 when i do mvn exec:exec can i specify argument ?? i saw there was a article(http://mojo.codehaus.org/exec-maven-plugin/usage.html ) from maven, it said we can do this mvn exec:java -Dexec.mainClass=com.example.Main [-Dexec.args=argument1] ... so i try by my self mvn exec:java -Dexec.mainClass=com.test.Main -Dexec.args=argument1 it compile java.lang.NoClassDefFoundError: argument1 so..what is the right way to do that??? -- View this message in context: http://www.nabble.com/hi%2C-can-i-run-java-argument-ub-command-line-tp23420392p23420392.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
hi, how to specify java_opts in maven
Before i run my program like this plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution goals goalexec/goal /goals /execution /executions configuration executablejava/executable arguments argument-Xms32m/argument argument-Xmx1024m/argument argument-classpath/argument classpath / argumentorg.myproject.Main/argument /arguments /configuration /plugin however i have to pass arguments in run time, so i have to do things like this mvn exec:java -Dexec.mainClass=org.myproject.Main -Dexec.args=argument1 but i found out that, if i do in comand line, i can specify any argument in the POM any more, coz it will complain and throws exception. but i do want to increase the java heap size, otherwise i will get Out of memory exception So...can any one help me how can i do both??? -- View this message in context: http://www.nabble.com/hi%2C-how-to-specify-java_opts-in-maven-tp23420573p23420573.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org