Re: 'Invalid or missing parameters' problem when running plugin
I found the reason, I had a look at the maven jetty plugin source code and it says: /** * The maven project. * * @parameter expression=${executedProject} * @required * @readonly */ protected MavenProject project; Unfortunately the stack trace doesn't say something about missing param '${executedProject}', but the fieldname. Still it is unclear to me what is setting the parameter ${executedProject} before running the jetty:run goal. First I thought it would be triggered by package-type war, but this isn't the case. How can I find out where certain property settings is coming from or what plugin was setting it (could not see anything through 'mvn -X -e')? thanks. aldana wrote: hi, i am using mojo-executor extension (http://code.google.com/p/mojo-executor/) which i use for my custom plugin to call up jetty-maven-plugin. problem is that somehow properties are getting overridden, when the jetty plugin is called up: org.mortbay.jetty:maven-jetty-plugin. Reason: Invalid or missing parameters: [Mojo parameter [name: 'project'; alias: 'null']] for mojo: org.mortbay.jetty:maven-jetty-plugin:6.1.16:run could it be that mojo-executor isn't passing through the ${project} variable to jetty-plugin correctly? the error message tells me that it cannot find the ${project} parameter doesn't it? - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/%27Invalid-or-missing-parameters%27-problem-when-running-plugin-tp25933885p25983426.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: 'Invalid or missing parameters' problem when running plugin
ok, i got one step further. ${executedProject} is injected by plexus and related to the @execute mojo tag. adding it made the ${executedProject} available. see also http://www.docjar.com/docs/api/org/apache/maven/plugin/AbstractMojo.html under execute entry. aldana wrote: hi, i am usingthe mojo-executor extension (http://code.google.com/p/mojo-executor/) which i use for my custom plugin to call up jetty-maven-plugin. problem is that somehow properties are getting overridden, when the jetty plugin is called up: org.mortbay.jetty:maven-jetty-plugin. Reason: Invalid or missing parameters: [Mojo parameter [name: 'project'; alias: 'null']] for mojo: org.mortbay.jetty:maven-jetty-plugin:6.1.16:run could it be that mojo-executor isn't passing through the ${project} variable to jetty-plugin correctly? the error message tells me that it cannot find the ${project} parameter doesn't it? - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/%27Invalid-or-missing-parameters%27-problem-when-running-plugin-tp25933885p25983697.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
mojo use case of '@execute phase=xxx'?
for using the @execute phase= for mojo i read: 'This annotation can be used in a number of ways. If a phase is supplied, Maven will execute a parallel lifecycle ending in the specified phase. ' further more ${executedProject} is made available. but what is the sense of executing a parallel lifecycle and creating a new property ${executedProject}? is ${executedProject} the mutable pendant to ${project}? could you name some uses cases and when a plugin should use this option (afaik jetty-plugin is using such a @execute phase). - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/mojo-use-case-of-%27%40execute-phase%3Dxxx%27--tp25983797p25983797.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
'Invalid or missing parameters' problem when running plugin
hi, i am using mojo-executor extension (http://code.google.com/p/mojo-executor/) which i use for my custom plugin to call up jetty-maven-plugin. problem is that somehow properties are getting overridden, when the jetty plugin is called up: org.mortbay.jetty:maven-jetty-plugin. Reason: Invalid or missing parameters: [Mojo parameter [name: 'project'; alias: 'null']] for mojo: org.mortbay.jetty:maven-jetty-plugin:6.1.16:run could it be that mojo-executor isn't passing through the ${project} variable to jetty-plugin correctly? the error message tells me that it cannot find the ${project} parameter doesn't it? - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/%27Invalid-or-missing-parameters%27-problem-when-running-plugin-tp25933885p25933885.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
custom plugin combining/calling up other plugins
hi, i need plugin functionality which should reuse functionality from two others (dbunit+jetty) and add some custom additional behaviour. generally i try to avoid building custom plugins and to reuse existing ones but now i got a very specific probem for integration tests. further more the plugin configuration should be easier to read as fiddling/workaround/hacking around with configurations. what is the best practice to call other plugins in a custom plugin? do i add these two other plugins as dependency and just call them up in plugin-code? thanks thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/custom-plugin-combining-calling-up-other-plugins-tp25896612p25896612.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
existing plugin running-mode convention (fork vs in-process mode)?
during lifecycle maven delegates work to plugins. is there a general convention whether plugins should do their work in fork or in-process mode (running in the same process of mvn binary) or is it completely up to the plugin-author? afaik plugins doing fork mode document this explicitly in their plugin documentation. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/existing-plugin-running-mode-convention-%28fork-vs-in-process-mode%29--tp25896696p25896696.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
yui-compressor plugin: config-option to preserve comments + license text
hi, looking at http://alchim.sourceforge.net/yuicompressor-maven-plugin/compress-mojo.html I cannot find an option to preserve javascript or css comments (for licensing info reasons). has somebody found a way to preserve this info? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/yui-compressor-plugin%3A-config-option-to-preserve-comments-%2B-license-text-tp24590951p24590951.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: how to generally skip pre and post-integration test phase
I did it now with working with profiles and profile-activation by env-var. So I don't have to give a -P option but can use the -Dskip.integration.test parameter to activate the profile, this way I don't mess around with multiple -P and -D options: profile activation property !-- trigger profile if value is false -- nameskip.integration.test/name valuefalse/value /property /activation ... /profile - aldana wrote: Wendy Smoak-3 wrote: On Thu, Jun 25, 2009 at 7:41 AM, aldanaald...@gmx.de wrote: I am controlling running integration-tests by setting a property skip.integration.test (easier as setting up an integration test profile). problem is that I also want to skip the pre-integration and post-integration phase for that (jetty start/stop plugin runs under this phases). unfortunately jetty plugin does not offer a skip parameter itself. You can't skip phases, but you can put the Jetty plugin executions into a profile, and activate that with a property. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org I know that profiles would work for that, but I wanted to avoid all these extra verbose profile definitions for this little skip distinction But I guess I have to go this path :( - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24217268.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: how to generally skip pre and post-integration test phase
Wayne Fay wrote: unfortunately jetty plugin does not offer a skip parameter itself. You could also work with the Jetty plugin people to add a skip parameter... Wayne Filed a ticket: http://jira.codehaus.org/browse/JETTY-1051. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24220046.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: passing through -D params from CLI to other plugins
filed a ticket: http://jira.codehaus.org/browse/SUREFIRE-554 Stephen Connolly-2 wrote: afaik, it is surefire that forks the jvm, so surefire is where I would file the jira if you roll your surefire version back to perhaps 2.3 you'd see the system properties being passed through Sent from my [rhymes with myPod] ;-) On 24 Jun 2009, at 22:49, aldana ald...@gmx.de wrote: I also think this would be a nice enhancement. You mentioned filing JIRA ticket against surefire-plugin, but isn't this more related to the maven core handling of -D envs and is better placed in maven2-JIRA? Stephen Connolly-2 wrote: what I think would be a good idea is allowing the specification of a list of regexs to match properties to pass through and a list of regexs to match properties to exclude... with exclude taking priority over include, and exclude having a default set to exclude the pain points that drove the properties not being passed through in the first place perhaps you could file a JIRA for such an enhancement -Stephen P.S. file it against surefire... i'll be picking up all changes to maven-surefire-plugin and applying them to failsafe-maven-plugin when surefire next rolls a release 2009/6/24 aldana ald...@gmx.de: I see but at least I won't forget this, it took me a while to find out why passing -D params on the CLI did not have any effect on my plugin-setting. Stephen Connolly-2 wrote: none that I know... the passthrough that used to happen previously was AFAIK considered a bug... also consider that you need to purge certain properties from passthrough, e.g. java debugger port to bind to -Stephen 2009/6/24 aldana ald...@gmx.de: when doing a: mvn verify -DanyParam=true anyParam property is available inside pom.xml, but not passed through to my running test-suite in surefire or failsafe plugin, which is very annoying because I have to manuall pass through these vars (by defining custom properties in pom and referring it with ${xxx}). Is there a way in maven to tell plugins to pass through all -D parameters to other fork processes (like test runnings)? Or is there a special surefire plugin setting for this? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24188981.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24189359.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24193517.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24220209.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 generally skip pre and post-integration test phase
I am controlling running integration-tests by setting a property skip.integration.test (easier as setting up an integration test profile). problem is that I also want to skip the pre-integration and post-integration phase for that (jetty start/stop plugin runs under this phases). unfortunately jetty plugin does not offer a skip parameter itself. is there a way to tell maven to skip a certain execution phase by a parameter? thanks - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24204569.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: how to generally skip pre and post-integration test phase
Wendy Smoak-3 wrote: On Thu, Jun 25, 2009 at 7:41 AM, aldanaald...@gmx.de wrote: I am controlling running integration-tests by setting a property skip.integration.test (easier as setting up an integration test profile). problem is that I also want to skip the pre-integration and post-integration phase for that (jetty start/stop plugin runs under this phases). unfortunately jetty plugin does not offer a skip parameter itself. You can't skip phases, but you can put the Jetty plugin executions into a profile, and activate that with a property. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org I know that profiles would work for that, but I wanted to avoid all these extra verbose profile definitions for this little skip distinction But I guess I have to go this path :( - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/how-to-generally-skip-pre-and-post-integration-test-phase-tp24204569p24205758.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
Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)
hi, my setting is as follows: rootModule -webapp In pre-integration-test I start webapp with jetty plugin (webapp/pom.xml): plugin org.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.1.18/version dependencies dependency groupIdorg.hsqldb/groupId artifactIdhsqldb/artifactId version1.8.0.10/version /dependency /dependencies /plugin -- When running 'mvn pre-integration-test' inside webapp/ jetty starts up fine with the hsqdlb. But it fails when running the same command inside rootModule/ with ClassNotFoundError hsql.jdbcDriver. Why the heck is the dependencies section ignored for jetty plugin when running it from the parent module? It is a real miracle because the reactor itself should do nothing as also descending to the webapp/ folder and run the maven command. thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24205952.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: Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)
I checked out a newer version of jetty plugin (http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.0.0.1beta2/). The problem is gone there. It seems that my problem is a bug of jetty plugin 6.1.18. aldana wrote: hi, my setting is as follows: rootModule -webapp In pre-integration-test I start webapp with jetty plugin (webapp/pom.xml): plugin org.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.1.18/version dependencies dependency groupIdorg.hsqldb/groupId artifactIdhsqldb/artifactId version1.8.0.10/version /dependency /dependencies /plugin -- When running 'mvn pre-integration-test' inside webapp/ jetty starts up fine with the hsqdlb. But it fails when running the same command inside rootModule/ with ClassNotFoundError hsql.jdbcDriver. Why the heck is the dependencies section ignored for jetty plugin when running it from the parent module? It is a real miracle because the reactor itself should do nothing as also descending to the webapp/ folder and run the maven command. thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24206510.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: Very weird jetty-plugin behaviour (excluding plugin dependency when run from parent module)
aaargh, the real cause was different. Inside the parent-pom I mistakenly added the plugin-definition to build instead of pluginManagement. So in the end i dependencies section resolved to an empty set. Though I find it a bit weird that when doing a multimodule build a parent-module can override the dependencies setting of a plugin of a child module. I would expect the opposite. aldana wrote: I checked out a newer version of jetty plugin (http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/7.0.0.1beta2/). The problem is gone there. It seems that my problem is a bug of jetty plugin 6.1.18. aldana wrote: hi, my setting is as follows: rootModule -webapp In pre-integration-test I start webapp with jetty plugin (webapp/pom.xml): plugin org.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId version6.1.18/version dependencies dependency groupIdorg.hsqldb/groupId artifactIdhsqldb/artifactId version1.8.0.10/version /dependency /dependencies /plugin -- When running 'mvn pre-integration-test' inside webapp/ jetty starts up fine with the hsqdlb. But it fails when running the same command inside rootModule/ with ClassNotFoundError hsql.jdbcDriver. Why the heck is the dependencies section ignored for jetty plugin when running it from the parent module? It is a real miracle because the reactor itself should do nothing as also descending to the webapp/ folder and run the maven command. thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Very-weird-jetty-plugin-behaviour-%28excluding-plugin-dependency-when-run-from-parent-module%29-tp24205952p24207485.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
surefire plugin: misleading includes/excludes patterns regarding file type (*.java)
Looking at http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html the pattern includes the java source file, e.g. *Test.java. But does it really relate to the source file pattern? In my case *Test.java also includes groovy test files like FooTest.groovy. I guess this is correct behaviour and surefire doesn't look for source-files but for class files. Am I correct? Anyway this include/exclude pattern are very misleading. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/surefire-plugin%3A-misleading-includes-excludes-patterns-regarding-file-type-%28*.java%29-tp24181415p24181415.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
passing through -D params from CLI to other plugins
when doing a: mvn verify -DanyParam=true anyParam property is available inside pom.xml, but not passed through to my running test-suite in surefire or failsafe plugin, which is very annoying because I have to manuall pass through these vars (by defining custom properties in pom and referring it with ${xxx}). Is there a way in maven to tell plugins to pass through all -D parameters to other fork processes (like test runnings)? Or is there a special surefire plugin setting for this? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24188981.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: passing through -D params from CLI to other plugins
I see but at least I won't forget this, it took me a while to find out why passing -D params on the CLI did not have any effect on my plugin-setting. Stephen Connolly-2 wrote: none that I know... the passthrough that used to happen previously was AFAIK considered a bug... also consider that you need to purge certain properties from passthrough, e.g. java debugger port to bind to -Stephen 2009/6/24 aldana ald...@gmx.de: when doing a: mvn verify -DanyParam=true anyParam property is available inside pom.xml, but not passed through to my running test-suite in surefire or failsafe plugin, which is very annoying because I have to manuall pass through these vars (by defining custom properties in pom and referring it with ${xxx}). Is there a way in maven to tell plugins to pass through all -D parameters to other fork processes (like test runnings)? Or is there a special surefire plugin setting for this? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24188981.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24189359.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: passing through -D params from CLI to other plugins
I also think this would be a nice enhancement. You mentioned filing JIRA ticket against surefire-plugin, but isn't this more related to the maven core handling of -D envs and is better placed in maven2-JIRA? Stephen Connolly-2 wrote: what I think would be a good idea is allowing the specification of a list of regexs to match properties to pass through and a list of regexs to match properties to exclude... with exclude taking priority over include, and exclude having a default set to exclude the pain points that drove the properties not being passed through in the first place perhaps you could file a JIRA for such an enhancement -Stephen P.S. file it against surefire... i'll be picking up all changes to maven-surefire-plugin and applying them to failsafe-maven-plugin when surefire next rolls a release 2009/6/24 aldana ald...@gmx.de: I see but at least I won't forget this, it took me a while to find out why passing -D params on the CLI did not have any effect on my plugin-setting. Stephen Connolly-2 wrote: none that I know... the passthrough that used to happen previously was AFAIK considered a bug... also consider that you need to purge certain properties from passthrough, e.g. java debugger port to bind to -Stephen 2009/6/24 aldana ald...@gmx.de: when doing a: mvn verify -DanyParam=true anyParam property is available inside pom.xml, but not passed through to my running test-suite in surefire or failsafe plugin, which is very annoying because I have to manuall pass through these vars (by defining custom properties in pom and referring it with ${xxx}). Is there a way in maven to tell plugins to pass through all -D parameters to other fork processes (like test runnings)? Or is there a special surefire plugin setting for this? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24188981.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24189359.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/passing-through--D-params-from-CLI-to-other-plugins-tp24188981p24193517.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: Manual Steps for Integrating Maven with Eclipse...
baerrach wrote: On Wed, Jun 24, 2009 at 3:28 AM, Shesadri Parthasarathysparthasarat...@sapient.com wrote: Hi , We are working for one of our clients and all our development happens thru Eclipse 3.1. We are using Maven Project for Build and deployment process. As there is some issues in doing the installation of the maven plugin in Eclipse, we want to know the manual steps involved in achieving the same what plug-in installation does. Is it possible for you to provide the steps (changes to folder or workspace, inclusion of list of executable etc) as part of Maven integration into Eclipse so that we can do it manually. Quick response on this would be appreciated. Thanks, Sesha. This question belongs on the users list. Have a look at the http://maven.apache.org/plugins/maven-eclipse-plugin/ There is nothing special about Eclipse and Maven projects. You just need configure Eclipse to have all the jars that you pom.xml defines as dependencies (and their transitive dependencies) The maven-eclipse-plugin automates that for you. Yes, doing 'mvn eclipse:eclipse' is quite reliable and currently the best way to import maven-projects to eclipse. Are you sure that you use eclipse 3.1? It is definetely outdated, current version is 3.4. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Re%3A-Manual-Steps-for-Integrating-Maven-with-Eclipse...-tp24175722p24193609.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: problem webapp integration test setup with seperate test module (handling of lifecycle dependencies).
yes, test-webapp tests http-endpoints exposed from webapp only. mickknutson wrote: Are you only trying to run integration tests against your webapp? Is that why you created the test-webapp? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Sun, Jun 21, 2009 at 4:05 PM, aldana ald...@gmx.de wrote: I want to setup a integration test for a webapp. my project structure (with a seperate test module): parent/ -test-webapp -webapp requirement is: - webapp (pre-integration-test phase) starts up with jetty:start - test-webapp test cases are run (integration-test phase) - webapp (post-integration-test phase) shuts down with jetty:stop currently I haven't found a way to combine these projects and the dependency of phase runnings. The post-integration phase is always executed before the integration-tests are run and thus fail. I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin but no success. Maybe there is a trick with the reactor plugin where I can pass such lifecycle dependencies? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24174721.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: problem webapp integration test setup with seperate test module (handling of lifecycle dependencies).
to clarify: -inside test-webapp I need to disable the tests (because jetty isn't running), during the lifecycle the tests are compiled -inside the webapp I need to access the test-cases of test-webapp and integrate them inside phase integration-test. The access would be done by passing the path to compiled test classes relatively (e.g. ../../test-webapp/target/test-classes). I guess there is no other way to do this? That all feels very unnatural, maybe I better move the integration tests to the webapp/ project itself (though I really prefer a dedicated test module)... thanks again. Stephen Connolly-2 wrote: 1. Have a look at the failsafe-maven plugin 2. if you insist on having the tests in a separate module, then test-webapp cannot depend on webapp, an you will need to add test-webapp as a dependency to webapp (with scope test) and then unpack it with (as surefire/failsafe do not scan jar files for test cases at present) 2009/6/22 aldana ald...@gmx.de: I want to setup a integration test for a webapp. my project structure (with a seperate test module): parent/ -test-webapp -webapp requirement is: - webapp (pre-integration-test phase) starts up with jetty:start - test-webapp test cases are run (integration-test phase) - webapp (post-integration-test phase) shuts down with jetty:stop currently I haven't found a way to combine these projects and the dependency of phase runnings. The post-integration phase is always executed before the integration-tests are run and thus fail. I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin but no success. Maybe there is a trick with the reactor plugin where I can pass such lifecycle dependencies? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24175375.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
multimodule project: jetty plugin running two webapp-modules on same port
hi, I got following project structure: app1/ -core-stuff -webapp1/ -webapp2/ I tried to put jetty plugin config to app1/pom.xml and expected that submodules with war packaging would inherit this setting. This does not work because jetty plugin moans about core-stuff/ not having a webapp folder. Now my questions are: -Is it possible to tell a plugin run only to be applied on a certain packaging (war in my case). Is there a possiblity to configure a plugin execution by packaging type? If yes, is maven reactor so clever that both apps are indeed deployed to the same port and no adress-already-in-use problem occurs? -Is there another alternative to run two sub-module webapps under the same port with maven jetty plugin? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24138613.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
problem webapp integration test setup with seperate test module (handling of lifecycle dependencies).
I want to setup a integration test for a webapp. my project structure (with a seperate test module): parent/ -test-webapp -webapp requirement is: - webapp (pre-integration-test phase) starts up with jetty:start - test-webapp test cases are run (integration-test phase) - webapp (post-integration-test phase) shuts down with jetty:stop currently I haven't found a way to combine these projects and the dependency of phase runnings. The post-integration phase is always executed before the integration-tests are run and thus fail. I had a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin but no success. Maybe there is a trick with the reactor plugin where I can pass such lifecycle dependencies? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-webapp-integration-test-setup-with-seperate-test-module-%28handling-of-lifecycle-dependencies%29.-tp24139775p24139775.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: multimodule project: jetty plugin running two webapp-modules on same port
I tried this out, but it would not work, because jetty:run config is not merged to both webapps and they are deployed at once to the same port, but jetty:run goal is executed sequentially for both webapps. Stephen Connolly-2 wrote: you'll need another module that depends on the two web apps On Sunday, June 21, 2009, aldana ald...@gmx.de wrote: hi, I got following project structure: app1/ -core-stuff -webapp1/ -webapp2/ I tried to put jetty plugin config to app1/pom.xml and expected that submodules with war packaging would inherit this setting. This does not work because jetty plugin moans about core-stuff/ not having a webapp folder. Now my questions are: -Is it possible to tell a plugin run only to be applied on a certain packaging (war in my case). Is there a possiblity to configure a plugin execution by packaging type? If yes, is maven reactor so clever that both apps are indeed deployed to the same port and no adress-already-in-use problem occurs? -Is there another alternative to run two sub-module webapps under the same port with maven jetty plugin? thanks. - manuel aldana aldana((at))gmx.de http://gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24138613.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/multimodule-project%3A-jetty-plugin-running-two-webapp-modules-on-same-port-tp24138613p24139869.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: Problem with parent-pom and referencing version classifier
Thanks this worked. this was weirdly the combination I did not try out... Nick Stolwijk-4 wrote: You have to specify the classifier in the dependencymanagement section as well as in the dependency section as it identifies the dependency. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Apr 29, 2009 at 4:27 PM, aldana ald...@gmx.de wrote: Hi, I am having: dependency groupIdnet.sf.json-lib/groupId artifactIdjson-lib/artifactId version2.2.3/version classifierjdk15/classifier /dependency I want to keep version information in parent pom in dependency management. But when extracting this to dependencyManagement in parent-pom, I get following error: 'dependencies.dependency.version' is missing for net.sf.json-lib:json-lib All other dependencies version extractions to parent-pom work. Only this json-lib makes problems. I noticed that is the only one with the classifier information. Could this be the issue. I can both reproduce on linux with 2.0.9 and 2.1.0. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Problem-with-parent-pom-and-referencing-version-classifier-tp23296079p23296079.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Problem-with-parent-pom-and-referencing-version-classifier-tp23296079p23315534.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
Problem with parent-pom and referencing version classifier
Hi, I am having: dependency groupIdnet.sf.json-lib/groupId artifactIdjson-lib/artifactId version2.2.3/version classifierjdk15/classifier /dependency I want to keep version information in parent pom in dependency management. But when extracting this to dependencyManagement in parent-pom, I get following error: 'dependencies.dependency.version' is missing for net.sf.json-lib:json-lib All other dependencies version extractions to parent-pom work. Only this json-lib makes problems. I noticed that is the only one with the classifier information. Could this be the issue. I can both reproduce on linux with 2.0.9 and 2.1.0. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Problem-with-parent-pom-and-referencing-version-classifier-tp23296079p23296079.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
Easy way to switch skipTests flag for integration-test phase
Hi, by default my integration tests should not be run implicitly, so I set skiptrue/skip. Is there a way to tell surefire plugin to switch the skip test flag for the integration-test phase by passing a command-line? Maybe by passing the execution-id? I know it can be done by profiles, but I would like to avoid profiles. Here the standard-configruation: execution idintegration-tests/id phaseintegration-test/phase configuration skiptrue/skip includes include**/itest/**/*Test.java/include /includes /configuration goals goaltest/goal /goals /execution thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23279114.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: Easy way to switch skipTests flag for integration-test phase
Oh that sounds simple and good :) Stephen Connolly-2 wrote: define a property with value true. use that property as the value of skip, then the CLI can override the property value 2009/4/28 aldana ald...@gmx.de Hi, by default my integration tests should not be run implicitly, so I set skiptrue/skip. Is there a way to tell surefire plugin to switch the skip test flag for the integration-test phase by passing a command-line? Maybe by passing the execution-id? I know it can be done by profiles, but I would like to avoid profiles. Here the standard-configruation: execution idintegration-tests/id phaseintegration-test/phase configuration skiptrue/skip includes include**/itest/**/*Test.java/include /includes /configuration goals goaltest/goal /goals /execution thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23279114.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 - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23286651.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
multimodule project does not include test-scope dependencies
wrong inclusion of test scoped deps was told to be resolved (http://jira.codehaus.org/browse/MNGECLIPSE-493), but it still occurs in my multimodule project (compilation error of test sources). when changing scope in parent pom from test to default, everything compiles fine. I am using m2eclipse 0.9.7. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/multimodule-project-does-not-include-test-scope-dependencies-tp22541200p22541200.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: multimodule project does not include test-scope dependencies
sorry, wrong mailinglist (there is a m2eclipse one) aldana wrote: wrong inclusion of test scoped deps was told to be resolved (http://jira.codehaus.org/browse/MNGECLIPSE-493), but it still occurs in my multimodule project (compilation error of test sources). when changing scope in parent pom from test to default, everything compiles fine. I am using m2eclipse 0.9.7. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/multimodule-project-does-not-include-test-scope-dependencies-tp22541200p22541205.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: evaluation report-history tools (e.g. xradar, sonar)
OK, thanks. Will give a try, though the last publish date (Sept. 2006) doesn't look that project is maintained. Michael McCallum-3 wrote: http://qalab.sourceforge.net/ no experience but from having looked at the projects they all follow a similar flawed approach... store the results of runs in a database somewhere the tools are good according to people i know who have used them... On Wed, 08 Oct 2008 10:52:41 aldana wrote: hi, we need some historic tracking for metrics. for that i considered using http://sonar.codehaus.org/ and http://xradar.sourceforge.net/issue-tracking.html. before doing an evaluation, has anybody had good/bad experience with these products? or can you recommend any other similar tool? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/evaluation-report-history-tools-%28e.g.-xradar%2C-sonar%29-tp19868127p19876559.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
evaluation report-history tools (e.g. xradar, sonar)
hi, we need some historic tracking for metrics. for that i considered using http://sonar.codehaus.org/ and http://xradar.sourceforge.net/issue-tracking.html. before doing an evaluation, has anybody had good/bad experience with these products? or can you recommend any other similar tool? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/evaluation-report-history-tools-%28e.g.-xradar%2C-sonar%29-tp19868127p19868127.html 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 release-plugin: create-branch and behaviour of update dependencies
hi, i am using maven-release plugin to create branches. updating its own version and creating project in scm works fine. what i do miss is that the update of snapshot versions of dependencies is not asked for. but when branching sometimes the actual branch should update snapshot dependencies too, because sometimes they are branched also (for isolation reasons). what i expect is that after executing release:branch, maven asks me if i want to upgrade version for each snapshot dependency. the parameter of goal release:branch 'updateDependencies' does not seem to give me this option. has anybody succeeded or does somebody know whether this works at all? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/maven-release-plugin%3A-create-branch-and-behaviour-of-update-dependencies-tp18026487p18026487.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven release-plugin: create-branch and behaviour of update dependencies
hi marco, thanks for your thoughts. of course i wouldn't want the plugin to automatically decide what to upgrade. what i would like is that it asks me in command-line dialog way which dependency-snapshots i want to upgrade in dependant project. you're right to map the coupling of branch-packages by maven multimodule concept. so far we didn't go for it for historic and IDE plugin reasons, but we are thinking to migrate soon. Beelen, M. - SPLXL wrote: Hello Manuel, I'm not surprised that the maven-release-plugin doesn't interfere with the versions of dependencies in a project. IMHO you should change your expectations of the release:branche. The maven-release-plugin works on the current artifact. Whether or not other artifacts have been changed is out-of-scope for the release-plugin. I just wonder if you really would want maven to 'guess' which dependencies should be updated as well and if so: based on what argument should dependencies be allegeable for 'automatic updating'. It appairs to me that you want your projects to have a strong link concerning the versionNumbers of the artifacts. - Project A version 1.0-SNAPSHOT depends on Project B version version 1.0-SNAPSHOT - Project A version 1.1-SNAPSHOT depends on Project B version version 1.1-SNAPSHOT If that assumption is correct and you really want your artifact to be that tightly coupled, I would suggest that you move to a multi-module-project-structure[1], with all related modules in the same trunk/brances. HTH. [1] : http://docs.codehaus.org/display/MAVENUSER/Multi-modules+projects With kind regards, Marco Beelen ~Software Engineer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -Original Message- From: aldana [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:20 PM To: users@maven.apache.org Subject: maven release-plugin: create-branch and behaviour of update dependencies hi, i am using maven-release plugin to create branches. updating its own version and creating project in scm works fine. what i do miss is that the update of snapshot versions of dependencies is not asked for. but when branching sometimes the actual branch should update snapshot dependencies too, because sometimes they are branched also (for isolation reasons). what i expect is that after executing release:branch, maven asks me if i want to upgrade version for each snapshot dependency. the parameter of goal release:branch 'updateDependencies' does not seem to give me this option. has anybody succeeded or does somebody know whether this works at all? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/maven-release-plugin%3A-create-branch-and-behaviou r-of-update-dependencies-tp18026487p18026487.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/maven-release-plugin%3A-create-branch-and-behaviour-of-update-dependencies-tp18026487p18030877.html 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: problems with snapshot-timestamp though uniqueVersion is set to false
thanks, that worked. i see, there are already issues for that: http://jira.codehaus.org/browse/MNG-3144 and maybe duplicate http://jira.codehaus.org/browse/MNG-2839. i voted for it. Brett Porter wrote: ... In the mean time, removing the old snapshots from Archiva should resolve the issue. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problems-with-snapshot-timestamp-though-uniqueVersion-is-set-to-false-tp17212577p17226551.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classpath entries in maven-archiver generated MANIFEST.MF cannot be referenced
hi, i got problems with the classpath entries MANIFEST.MF. some classes cannot be found, though they exist as entry in MANIFEST.MF. weird thing is, that some jars are included correctly (i get some basic startup, which needs some dependency jars, but in the end all crashes). startup, which tells me it cannot find a certain type: 'java -classpath .:mainJar.jar de..Main' startup, which gets further, but still crashes afterwards: 'java -classpath .:mainJar.jar:../lib/myfaces-impl-1.1.5.jar de..Main' this tells me that not all class-path entries are included correctly. the weird thing is, that the generated class-path of MANIFEST.MF (see below) looks fine. maybe there are too many entries (~80), which is causing problems... has anybody faced similar symptoms when using maven-jar plugin and addClasspath option? ---Generated MANIFEST.MF CLASSPATH by maven-jar-plugin- Class-Path: ../lib/hibernate-commons-annotations-3.3.0.ga.jar ../lib/h ibernate-3.2.5.ga.jar ../lib/ehcache-1.2.3.jar ../lib/commons-logging -1.1.jar ../lib/commons-collections-3.1.jar ../lib/jta-1.0.1B.jar ../ lib/asm-attrs-1.5.3.jar ../lib/dom4j-1.6.1.jar ../lib/antlr-2.7.6.jar ../lib/cglib-2.1_3.jar ../lib/asm-1.5.3.jar ../lib/persistence-api-1 .0.jar ../lib/tomahawk-1.1.5.jar ../lib/commons-validator-1.3.1.jar . ./lib/commons-beanutils-1.7.0.jar ../lib/commons-digester-1.6.jar ../ lib/xml-apis-1.0.b2.jar ../lib/commons-fileupload-1.0.jar ../lib/comm ons-el-1.0.jar ../lib/commons-codec-1.3.jar ../lib/oro-2.0.8.jar ../l ib/commons-lang-2.1.jar ../lib/jstl-1.1.0.jar ../lib/log4j-1.2.12.jar ../lib/castor-0.9.5.4.jar ../lib/openjms-0.7.7.jar ../lib/openjms-co mmon-0.7.7.jar ../lib/hibernate-annotations-3.3.0.ga.jar ../lib/myfac es-api-1.1.5.jar ../lib/spring-2.0.6.jar ../lib/logkit-1.0.1.jar ../l ib/avalon-framework-4.1.3.jar ../lib/common-konnektor-1.1-SNAPSHOT.ja r ../lib/managementPersistence-1.0-SNAPSHOT.jar ../lib/commons-dbcp-1 .2.1.jar ../lib/commons-pool-1.2.jar ../lib/hsqldb-1.8.0.7.jar ../lib /baseUtilities-1.1-SNAPSHOT.jar ../lib/jaxb-api-2.1.jar ../lib/stax-a pi-1.0-2.jar ../lib/activation-1.1.jar ../lib/jaxb-impl-2.1.jar ../li b/xml-sec-1.3.jar ../lib/bcprov-1.35.jar ../lib/saaj-impl-1.3.jar ../ lib/saaj-api-1.3.jar ../lib/xsom-1.0.1.jar ../lib/relaxngDatatype-200 20414.jar ../lib/xalan-2.7.0.jar ../lib/jcalendar-1.3.2.jar ../lib/co mmons-httpclient-3.0.jar ../lib/common-gematik-1.1-SNAPSHOT.jar ../li b/jaxws-rt-2.1.3.jar ../lib/axiom-api-1.2.2.jar ../lib/mail-1.4.jar . ./lib/jaxen-1.1-beta-9.jar ../lib/xercesImpl-2.0.2.jar ../lib/stax-ap i-1.0.1.jar ../lib/release-2.2.1-1.0-SNAPSHOT.jar ../lib/axiom-impl-1 .2.2.jar ../lib/axis2-adb-1.1.1.jar ../lib/axis2-kernel-1.1.1.jar ../ lib/wsdl4j-1.6.1.jar ../lib/jms-1.1.jar ../lib/openjms-net-0.7.7.jar ../lib/jsp-2.1-6.1.7.jar ../lib/core-3.1.1.jar ../lib/jsp-api-2.1-6.1 .7.jar ../lib/servlet-api-2.5-6.1.7.jar ../lib/ant-1.6.5.jar ../lib/m yfaces-impl-1.1.5.jar ../lib/concurrent-1.3.4.jar ../lib/jetty-plus-6 .1.7.jar ../lib/geronimo-spec-jta-1.0.1B-rc4.jar ../lib/jetty-6.1.7.j ar ../lib/jetty-util-6.1.7.jar ../lib/spice-jndikit-1.2.jar ../lib/In tegrityManager-1.0.0-SNAPSHOT.jar - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/classpath-entries-in-maven-archiver-generated-MANIFEST.MF-cannot-be-referenced-tp17229567p17229567.html 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: classpath entries in maven-archiver generated MANIFEST.MF cannot be referenced
no, i copy/pasted the Class-Path bit from my maven-jar-plugin generated MANIFEST.MF and it is a multi-liner. it follows the 72 bytes block. all lines have maximum 72 bytes length and each newline starts with a white space. maybe this seems more to be a java as a maven-jar-plugin issue. i am using jre1.6.0_02. will investigate further... [EMAIL PROTECTED] wrote: If this is all on one line, then that is a violation of the java Manifest-file specification. See: http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Manifest%20Specification * Line length: No line may be longer than 72 bytes (not characters), in its UTF8-encoded form. If a value would make the initial line longer than this, it should be continued on extra lines (each starting with a single SPACE). - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/classpath-entries-in-maven-archiver-generated-MANIFEST.MF-cannot-be-referenced-tp17229567p17230602.html 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: classpath entries in maven-archiver generated MANIFEST.MF cannot be referenced
i tried different things and my guess is that the problems occur because the problematic module is a webapplication running in the lightweight jetty container. it seems that the jetty-classloader cannot cope with some classpath entries. all other non-webapp components i am using with the generated MANIFEST.MF are working fine. i heard already some issues about webcontainers and referencing classpaths, so i suspect the same problem with my app. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/classpath-entries-in-maven-archiver-generated-MANIFEST.MF-cannot-be-referenced-tp17229567p17232146.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with snapshot-timestamp though uniqueVersion is set to false
hi, i want to reference external libs by having classpath entries in the MANIFEST.MF. it is set by configuring the maven-jar-plugin (add classpath): plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration finalName${artifactId}/finalName archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive /configuration /plugin of course this would only work if there are no timestamps attached to the snapshot-jar filenames. i tried to switch it off by setting uniqueVersionfalse/uniqueVersion in my parent-pom. never the less maven still downloads the jars with these annoying snapshot timestamps, so classpath referencing from MANIFEST.MF does not work. to exclude problems with my local repository i deleted it, but this did not solve the timestamp issue either. i am using archiva as my internal repository-proxy. could this be a archiva or a maven issue? has anybody solved a similar problem? i am using archiva 1.0.1 and maven 2.0.8 command line. thanks for help. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problems-with-snapshot-timestamp-though-uniqueVersion-is-set-to-false-tp17212577p17212577.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
metrics report-plugin (for cyclomatic complexity + loc)
hi, to make code smells more visible and to better find out refactoring targets amongst others i want to introduce some metrics. for that i miss a plugin which measures the cyclomatic complexity and loc (for classes, methods). surprisingly i did not find any maven plugin which offers this... maybe somebody can point me out to one? thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/metrics-report-plugin-%28for-cyclomatic-complexity-%2B-loc%29-tp16823833s177p16823833.html 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: metrics report-plugin (for cyclomatic complexity + loc)
great, i already integrated jdepend and your other mentioned report plugins, but did not know of javancss. this exactly seems to be the last thing i looked for. Paolo Compieta wrote: Hi, give a try to these 2 plugins (insert the following snippet in your pom.xml): reporting plugins [...] plugin !-- JavaNCSS - A Source Measurement Suite for Java [...] - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/metrics-report-plugin-%28for-cyclomatic-complexity-%2B-loc%29-tp16823833s177p16824263.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to keep manage resources that are outside of jars
hi, you should have a look at the assembly plugin http://maven.apache.org/plugins/maven-assembly-plugin/. there you can decide what to place next to your jar. for an example have a look at http://www.jfrog.org/viewvc/dep-analyzer/trunk/viewer/src/main/assembly/assembly.xml?view=markup. Michael Smith wrote: I figured out how to delete resources from my JARs using the antrun plugin (the excludes with the jar plugin aren't working, I filed a JIRA issue for that). But now I don't know how to get the dependencies for my assembly. Maven thinks all the resources I need are in my jars but they're not. I've found discussions about this in the archives but I haven't found a good solution. How can I prepare an assembly and include the resources that I don't want in my jars? It seems like a common thing to do. Thanks - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/How-to-keep-manage-resources-that-are-outside-of-jars-tp16824722s177p16824955.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ivy configuration concept in future maven?
hi, maven provides scope (test, runtime etc.) filter certain dependencies. never the less sometimes it is quite helpful to have a another configuration option, where you decide what to include transitively. This way you wouldn't need to use the exclude maven construct to avoid getting all transitive deps you are not interested in. as an example ivy follows this interesting approach (http://ant.apache.org/ivy/m2comparison.html) maybe this could be a nice feature for future releases of maven2? - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/ivy-configuration-concept-in-future-maven--tp16762944s177p16762944.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly-plugin behaviour for duplicate dependency (but with different version)
hi, i am using dependency analyzer to pack my app. currently i want to remove some not-needed dependencies. what happened was that respective dependency was not included any longer but instead the same dependency but with different version got packed. so i guess that assembly plugin includes only one library with a certain groupId:artifactId. if it resolves two dependencies with same groupId:artifactId it only includes the latest one. am i right with this assumption? i got a custom assembly-distribution file (never the less it only slightly differs from the standard one - outputFileNameMapping is different): assembly idbinary/id formats formatzip/format /formats includeBaseDirectoryfalse/includeBaseDirectory baseDirectoryall/baseDirectory fileSets fileSet includes include*.jar/include /includes excludes exclude*-sources.jar/exclude /excludes directory${basedir}/target/directory outputDirectory/outputDirectory lineEndingkeep/lineEnding fileMode0644/fileMode /fileSet /fileSets dependencySets dependencySet outputFileNameMapping${groupId}-${artifactId}-${version}.${extension}/outputFileNameMapping outputDirectorylib/outputDirectory /dependencySet /dependencySets /assembly - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/assembly-plugin-behaviour-for-duplicate-dependency-%28but-with-different-version%29-tp16718250s177p16718250.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
timeouts configuration
hi, currently proxy repository of http://repository.codehaus.org/ had been very slow in respondance. this made archiva hang (see log below). after removing this repository as proxy connector everything worked fine again. instead of deleting this another setting would be nice, so if there are download problems or a certain timeout has been reached, respective proxy connector should be ignored for a certain time gap. 1150450336 [Thread-5] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:database-update - Error executing task edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.lang.NullPointerException at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127) Caused by: java.lang.NullPointerException at org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClosure.execute(ProcessArchivaArtifactClosure.java:56) at org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388) at org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateProcessed(JdoDatabaseUpdater.java:170) at org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateAllProcessed(JdoDatabaseUpdater.java:111) at org.apache.maven.archiva.scheduled.executors.ArchivaDatabaseUpdateTaskExecutor.executeTask(ArchivaDatabaseUpdateTaskExecutor.java:78) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:619) - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/timeouts-configuration-tp16558750p16558750.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: limit size of local repository, limit number of snapshots
done: http://jira.codehaus.org/browse/MNG-3472 Wendy Smoak-3 wrote: On Wed, Mar 19, 2008 at 4:52 PM, Wayne Fay [EMAIL PROTECTED] wrote: Please do file a JIRA and reply back with the number. I'll see about implementing a plugin to help with this issue, but no guarantees. ;-) That would be great! We're also getting requests for cleaning up the local repository on CI servers such as Continuum: http://jira.codehaus.org/browse/CONTINUUM-1693 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16175376.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
limit size of local repository, limit number of snapshots
hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html 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: limit size of local repository, limit number of snapshots
yes, we got a corporate repository with archvia, which cashes dependencies, so it is not such a pain as waiting very long time when deleting .m2/repository without having a repository proxy. never the less i think that all these cleanup-scripts hanging around (cron or similar) are just as always a workaround which do not solve the source of the problem. me, at least as a user would like to have solved this memory-size problem (currently 2GB sized repository is growing larger and larger just because of snapshots) by maven2 itself. i think i will go to open a jira issue for that, so setting the number of snapshots kept in local repository can be configured. Wayne Fay wrote: This is not currently configurable. Most people have a corporate repository where they download their artifacts from, and so simply deleting ~/.m2 is less painful than if you are just downloading direct from the Internet. I know people have discussed scripts to clear out their repo (eg find latest snapshot and delete the rest) on this list but I don't have a link to Nabble for one of them. If you search, you can probably find one or more of them. But they may not work on your platform (eg script is bash or korn and you're on Windows). Wayne On 3/19/08, aldana [EMAIL PROTECTED] wrote: hi, is it possible to limit the size of local repository? especially keeping all snapshots of a version in my view often is not neccessary. so a setting, where the maximum number of snapshots can be set (others would then be discarded) would be nice. currently we sometimes get very annoying problems that roaming-win xp profiles get crashed because maven local repository takes too much space. the workaround to regularly delete local repository does not seem a good solution to me do others face similar problems? - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16147475.html 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] - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/limit-size-of-local-repository%2C-limit-number-of-snapshots-tp16147475s177p16163260.html 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: problem downloading dependencies of pom-type
one thing which could have helped had been a maven command-line log (though this is hardly feasible for dependency resolving is transparently done by repository maven settings). maybe the more practical hint could have been given through a logging statement in archiva. something like: (check resolution-policies (Never, Once, Always) in archiva configuration) Brett Porter wrote: thanks - is there some way Archiva could have helped troubleshoot this better? On 12/02/2008, aldana [EMAIL PROTECTED] wrote: hi, sorry, i forgot to close this topic. it was a configuration error: i worked with snapshot-pom and forgot to set the download policies for snapshots from 'Never' to 'Always'. Brett Porter wrote: I successfully download POM files all the time - you might need to check that it works from the web iinterface in case this is a problem on the Maven side. If it doesn't, you can review the Archiva logs to give further information. Cheers, Brett On 05/02/2008, aldana [EMAIL PROTECTED] wrote: hi, downloading jar's using archiva (as proxy) works fine (both release and snapshots). but downloading referenced pom (as parent) fails. i had a look at 'Repository Scanning' menu and pom is included (**/*.pom). could this be a bug or do i need to set pom download somewhere else too? i am using archiva 1.0.1. -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15268095.html Sent from the archiva-users mailing list archive at Nabble.com. -- Brett Porter Blog: http://blogs.exist.com/bporter/ - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15411250.html Sent from the archiva-users mailing list archive at Nabble.com. -- Brett Porter Blog: http://blogs.exist.com/bporter/ - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15411499.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: problem downloading dependencies of pom-type
hi, sorry, i forgot to close this topic. it was a configuration error: i worked with snapshot-pom and forgot to set the download policies for snapshots from 'Never' to 'Always'. Brett Porter wrote: I successfully download POM files all the time - you might need to check that it works from the web iinterface in case this is a problem on the Maven side. If it doesn't, you can review the Archiva logs to give further information. Cheers, Brett On 05/02/2008, aldana [EMAIL PROTECTED] wrote: hi, downloading jar's using archiva (as proxy) works fine (both release and snapshots). but downloading referenced pom (as parent) fails. i had a look at 'Repository Scanning' menu and pom is included (**/*.pom). could this be a bug or do i need to set pom download somewhere else too? i am using archiva 1.0.1. -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15268095.html Sent from the archiva-users mailing list archive at Nabble.com. -- Brett Porter Blog: http://blogs.exist.com/bporter/ - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15411250.html Sent from the archiva-users mailing list archive at Nabble.com.
stability problems
hi, we are using cruise control which is doing nigthly checks (around 20 projects). with this the builds are crashing and archiva stops to respond at given port (connection refused). i need to restart the server and then it works again. i guess that continuum is having problems with parallel requests. the first thing i can think of is to set the time gap of single projects' builds a bit higher (currently it is 1 minute, which doesn't seem to be enough to prevent collisions). never the less in future it would be nice if archiva could handle such settings. do you think that this could be an issue for JIRA? following error-log bits: *** INFO | jvm 1| 2008/02/08 23:00:18 | 2008-02-08 23:00:18,732 [Thread-5] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:database-update - Error executing task INFO | jvm 1| 2008/02/08 23:00:18 | edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.lang.NullPointerException INFO | jvm 1| 2008/02/08 23:00:18 | at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299) INFO | jvm 1| 2008/02/08 23:00:18 | at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118) INFO | jvm 1| 2008/02/08 23:00:18 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) INFO | jvm 1| 2008/02/08 23:00:18 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127) INFO | jvm 1| 2008/02/08 23:00:18 | Caused by: java.lang.NullPointerException INFO | jvm 1| 2008/02/08 23:00:18 | at org.apache.maven.archiva.database.updater.ProcessArchivaArtifactClosure.execute(ProcessArchivaArtifactClosure.java:56) INFO | jvm 1| 2008/02/08 23:00:18 | at org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388) INFO | jvm 1| 2008/02/08 23:00:18 | at org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateProcessed(JdoDatabaseUpdater.java:170) INFO | jvm 1| 2008/02/08 23:00:18 | at org.apache.maven.archiva.database.updater.JdoDatabaseUpdater.updateAllProcessed(JdoDatabaseUpdater.java:111) INFO | jvm 1| 2008/02/08 23:00:18 | at org.apache.maven.archiva.scheduled.executors.ArchivaDatabaseUpdateTaskExecutor.executeTask(ArchivaDatabaseUpdateTaskExecutor.java:78) INFO | jvm 1| 2008/02/08 23:00:18 | at ** INFO | jvm 2| 2008/02/09 10:30:54 | Caused by: java.io.IOException: File C:\Programme\apache-archiva-1.0.1\bin\windows-x86-32\..\..\services\plexus-appserver-service-jetty-2.0-alpha-8\lib\servlet-api-2.4.jar unable to be deleted. INFO | jvm 2| 2008/02/09 10:30:54 | at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1165) INFO | jvm 2| 2008/02/09 10:30:54 | at org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java:1371) INFO | jvm 2| 2008/02/09 10:30:54 | at org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java:1328) INFO | jvm 2| 2008/02/09 10:30:54 | at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java:1158) - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/stability-problems-tp15407339p15407339.html Sent from the archiva-users mailing list archive at Nabble.com.
performance issue of built-in container
hi, the archiva responding sometimes is a bit slow (especially deploy through webdav and browsing inside web-admin area). i know 'a bit slow' is very unprecise but i just want to ask whether performance generally could be speeded up when switching from built in to another container like tomcat? thanks. - manuel aldana aldana((at))gmx.de homepage: http://www.aldana-online.de -- View this message in context: http://www.nabble.com/performance-issue-of-built-in-container-tp15351794p15351794.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: disable default repository http://repo1.maven.org
stupid me, forgot to search correctly. i just need to override repository id 'central'. aldana wrote: i am trying to speed up builds with archiva (-caching of dependencies), so lookup of them won't take so long. problem is that default repository (http://repo1.maven.org) is still directly included. is there a way to switch this off? direct connection is not neccessary because archiva is referencing it indirectly as a repository proxy connector already. thanks for information. -- View this message in context: http://www.nabble.com/disable-default-repository-http%3A--repo1.maven.org-tp15265669s177p15265672.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
disable default repository http://repo1.maven.org
i am trying to speed up builds with archiva (-caching of dependencies), so lookup of them won't take so long. problem is that default repository (http://repo1.maven.org) is still directly included. is there a way to switch this off? direct connection is not neccessary because archiva is referencing it indirectly as a repository proxy connector already. thanks for information. -- View this message in context: http://www.nabble.com/disable-default-repository-http%3A--repo1.maven.org-tp15265669s177p15265669.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem downloading dependencies of pom-type
hi, downloading jar's using archiva (as proxy) works fine (both release and snapshots). but downloading referenced pom (as parent) fails. i had a look at 'Repository Scanning' menu and pom is included (**/*.pom). could this be a bug or do i need to set pom download somewhere else too? i am using archiva 1.0.1. -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15268095.html Sent from the archiva-users mailing list archive at Nabble.com.
howto include library for defined task in antrun-plugin?
for reasons as explained in http://forums.java.net/jive/thread.jspa?threadID=35708tstart=15 i need to generate my jax-ws sources through antrun plugin. for that i need to include the jax-ws library. how is the import of neccessary ant-task libraries for the antrun plugin done? as explained in http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html i could reference classpath through id ${maven.plugin.classpath}, but i will replace the wsimport maven2 plugin with the ant task so the jaxws-tools library won't be included any longer in pom.xml. what is the best practice to include third party libraries for ant tasks which are not included through pom.xml? i can only think of copying the library of the ant build.xml, but doubt that this is the right way... -- View this message in context: http://www.nabble.com/howto-include-library-for-defined-task-in-antrun-plugin--tp15038204s177p15038204.html 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: howto include library for defined task in antrun-plugin?
i solved it with a workaround: i included jaxws-tools as optional depedency in pom.xml and referenced it from ant-buildfile through ${maven.compile.classpath}. aldana wrote: for reasons as explained in http://forums.java.net/jive/thread.jspa?threadID=35708tstart=15 i need to generate my jax-ws sources through antrun plugin. for that i need to include the jax-ws library. how is the import of neccessary ant-task libraries for the antrun plugin done? as explained in http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html i could reference classpath through id ${maven.plugin.classpath}, but i will replace the wsimport maven2 plugin with the ant task so the jaxws-tools library won't be included any longer in pom.xml. what is the best practice to include third party libraries for ant tasks which are not included through pom.xml? i can only think of copying the library of the ant build.xml, but doubt that this is the right way... -- View this message in context: http://www.nabble.com/howto-include-library-for-defined-task-in-antrun-plugin--tp15038204s177p15047047.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
task from antrun plugin executed multiple times
when i execute ant script through antrun plugin from maven2 the ant task gets executed twice. why is that? i only attached it to generate-sources phase. the task gets executed once before test-phase and once after test-phase. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks property name=compile_classpath refid=maven.compile.classpath / ant antfile=${basedir}/src/main/resources/wsimportBuild.xml target name=generateJAXWS-WithMappings / /ant /tasks sourceRoot${project.build.directory}/jaxws/java/sourceRoot /configuration goals goalrun/goal /goals /execution /executions /plugin -- View this message in context: http://www.nabble.com/task-from-antrun-plugin-executed-multiple-times-tp15047625s177p15047625.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
invalid poms/pom-references break my build, howto ignore?
i am having problems with depedency com.sun.xml.stream.buffer:streambuffer:jar:0.4 whose dependencies cannot be validated. in this case i don't want to have my build broken (it happens in package phase) merely a warning-display is enough to me. in general this setting should be the default for you seldom have control over dependencies from the outside world so it is quite tricky to make the build succeed in this case. i could use the mvn --fail-never but following this my build would succeed even if test-phase fails, which i don't want. i am looking for an option which ignores pom-validations. -- View this message in context: http://www.nabble.com/invalid-poms-pom-references-break-my-build%2C-howto-ignore--tp15048014s177p15048014.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
possible to import two versions at the same time?
hi, currently i am having problems with importing maven dependencies. we've got different datastructures (from xsd) from different versions, so i am mapping these to the version flag of pom. bla:datastructures:1.0 bla:datastructures:1.1 inside a project i want to import both: ... dependency groupIdbla/groupId artifactIddatastructures/artifactId version1.0/version /dependency dependency groupIdbla/groupId artifactIddatastructures/artifactId version1.1/version /dependency ... this configuration gives me problems. maven cannot find types from 1.1. before opening an issue for that i would first ask, whether importing two dependencies where only version flag differs is possible in maven2 at all? thanks for information. -- View this message in context: http://www.nabble.com/possible-to-import-two-versions-at-the-same-time--tp14995799s177p14995799.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
poll for 'way of integrating' dependency-analyzer graph report
hi, we already provide a rich-client app (see http://www.jfrog.org/sites/dep-analyzer/latest/), which does visualize the maven dependency graph. we think it would be a good way to provide this through a report plugin, too. but we are a bit uncertain about the way what kind of integration we should choose. we thought of three alternatives: 1) include graph report as applet, where you can tweak and reorganize the graph like in the rich-client app. pros: you can use jung-framework, so vizualization gets very comfortable and you can filter and tweak the graph, this is especially interesting if you got a very big graph and want to see something through the jungle. cons: the obious problems which come along with applets (download time of jars - will be around 5MB , incompatability with many browsers). 2) export the graph to a simple image (jpg,png) and include it inside report, where you can enlarge it pros: compatible with all browsers cons: if the graph is big, it is quite tricky to see anything, for the image is static moving vertices and filtering won't be possible. only solution could be to generate a good default layout whilst exporting the graph. but this is quite tricky for humble automation often cannot judge if a graph-layout is human readable. 3) embed a kind of flash/javascript graph visualization app, where moving vertices and fitlering is possible pros: flash/javascript supported by nearly all browsers, often quicker to load as applets. cons: we lose very good jung-framework for report, further more we haven't yet found a graph flash/javascript app similar capable to jung :P any favorites or other suggestions? we want to provide the most convenient solution for maven developers and architects who want to grasp dependency complexity with visualization by just looking to the report. hope we get some input by you maven-users :) thanks! -- View this message in context: http://www.nabble.com/poll-for-%27way-of-integrating%27-dependency-analyzer-graph-report-tp14814997s177p14814997.html 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: maven2 way to hide transitive dependencies
Heinrich Nirschl wrote: mvn dependency:analyze may also help to detect situations where transitive dependencies should better be declared as direct dependencies. great! eveyday to learn something new. Heinrich Nirschl wrote: No, the optional library may be needed for compiling. It can still be optional if it is never loaded at runtime for a certain use case. but how should someone know if a certain use case is not executed on runtime (to me that sounds more like a hint to dead code...). do you know a real maven2 project where this optional is used and makes sense? -- View this message in context: http://www.nabble.com/maven2-way-to-hide-transitive-dependencies-tp14495957s177p14502190.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2 way to hide transitive dependencies
hi, in former eclipse times where everything got included by a build-path and residing lib/ folder inclusions of libraries exploded. especially the export=true option for all libraries lead to an inclusion nigthmare. example: -project A got dependencies to libraries x,y,z. -project B imported A and at the same time libraries x,y,z were visible too (could use classes x's for compile time). in my point of view the automatic inclusion of transitive dependencies should be avoided and directly used libraries should be included explicitly. this makes maintenance in view of dependencies more feasible: -so project B must include library x explicitly to use x's features, i.e. transitive dependencies surely must be provided at runtime but should not be visible for compile-time. when we switched to maven2 we enforced this through marking all dependencies as optional. this made dependencies of project A invisible for project B so project B was enforced to include all directly used libraries to. having read http://maven.apache.org/pom.html and explanation for optional flag tells me that i misused optional: In the shortest terms, optional lets other projects know that, when you use this project, you do not require this dependency in order to work correctly. what i think a bit confusing is the snippet (you do not require this dependency in order to work correctly.), why should i then include this dependency at all, if i do not need it...? so, what is the correct maven2 way to make transitive dependencies invisible by importing project? -- View this message in context: http://www.nabble.com/maven2-way-to-hide-transitive-dependencies-tp14495957s177p14495957.html 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: maven2 way to hide transitive dependencies
that makes sense... so it seems that these checks will only be possible on syntax level (check, if used types are from direct or transitive dependencies), maybe i will give this check a try with a syntax analyzer integrated in a continous integration build. of course this won't save me from dynamic level (reflection). well, let's see what can be done to at least reduce the direct access of transitive libraries for this really makes maintaining difficult (e.g. site-effects when removing library with loads of dependencies). Heinrich Nirschl wrote: Unfortunately, this does not work. There are situations where the transitive dependencies are needed even during compile time (e.g. B uses a class from A that inherits from something in x). so optional libraries only make sense if scope-marked as runtime...? Heinrich Nirschl wrote: The module with the optional dependency could check at runtime if it is available in the class path and only use it if it can be found. -- View this message in context: http://www.nabble.com/maven2-way-to-hide-transitive-dependencies-tp14495957s177p14496621.html 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 embedder: build up model with transitive dependencies
hi, i am using maven embedder access maven from outside application. for testing purposes i want to build a model-instance with transitive dependencies, but am unsure how to do this. first i thought that MavenProject mp=new MavenProject(); mp.setDependencies(...); would do this. but after having a look at source code it follows MavenProject.setDependencies(ListDependency) and type Dependency is not implemented as CompositePattern, so transitive dependency cannot be expressed through setDependencies. maybe transitive dependencies do get build up through MavenProject.setArtifacts(ListArtifact)? though Artifact does not look as a Composite to me either... so how do i build a MavenProject instance with transitive dependency (example dependency a-b-c)? some code snippets (similar to above) would be cool. thanks. -- View this message in context: http://www.nabble.com/maven-embedder%3A-build-up-model-with-transitive-dependencies-tp14469529s177p14469529.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to retrieving remote repositorie information from MavenEmbedder?
hi, i would like to have access to remote repositories through MavenEmbedder. i need that for i want to iterate some poms from internal repository. how is this possible? i cannot see any methods of MavenEmbedder to get a list of remote repositories. MavenEmbedder.getLocalRepository() is provided, but something like MavenEmbedder.getRepositoryFromId(String) is not. is there something i have not noticed yet? surely i could parse the local settings.xml or a pom.xml to get the remote repository url but there must be a simpler way to get to this information through MavenEmbedder... thanks. -- View this message in context: http://www.nabble.com/how-to-retrieving-remote-repositorie-information-from-MavenEmbedder--tf4888367s177.html#a13991798 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-javadoc report fails
i had a look at http://jira.codehaus.org/browse/MJAVADOC-101, it was told to be resolved, but still occurs in my project (though i am using version 2.3). aldana wrote: hi, i've got problems with javadoc report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page generation (see below). log mentions 1 error. but i only see warnings from javadoc, no hint what the real breaking error is. some more informations: 1) report works in other projects (that means, with other poms) 2) generation of javadoc of failing project works fine, when executed inside eclipse 3) when executing maven with -e flag i do not get more detailed information, just stack-trace shown with MavenReportException. what is going wrong, too many warnings to handle? any workarounds? 1 error 103 warnings [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 -- View this message in context: http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13854143 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-javadoc report fails
hi, i've got problems with javadoc report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page generation (see below). log mentions 1 error. but i only see warnings from javadoc, no hint what the real breaking error is. some more informations: 1) report works in other projects (that means, with other poms) 2) generation of javadoc of failing project works fine, when executed inside eclipse 3) when executing maven with -e flag i do not get more detailed information, just stack-trace shown with MavenReportException. what is going wrong, too many warnings to handle? any workarounds? 1 error 103 warnings [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 -- View this message in context: http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13853959 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-javadoc report fails
i seemed to have resolved the error. was my mistake, there was a wrong html document inside my package.html so it was failing. the eclipse javadoc processor went through because it did not scan the src/main/javadoc folder. sorry, wrong alert. aldana wrote: i had a look at http://jira.codehaus.org/browse/MJAVADOC-101, it was told to be resolved, but still occurs in my project (though i am using version 2.3). aldana wrote: hi, i've got problems with javadoc report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.3. it breaks during page generation (see below). log mentions 1 error. but i only see warnings from javadoc, no hint what the real breaking error is. some more informations: 1) report works in other projects (that means, with other poms) 2) generation of javadoc of failing project works fine, when executed inside eclipse 3) when executing maven with -e flag i do not get more detailed information, just stack-trace shown with MavenReportException. what is going wrong, too many warnings to handle? any workarounds? 1 error 103 warnings [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 -- View this message in context: http://www.nabble.com/maven-javadoc-report-fails-tf4842387s177.html#a13854518 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 phase to be executed in and continuous integration
hi, we are working with maven and cruise control. until now i always executed 'mvn clean verify'. we are working with snapshots and we experienced problems that the artifacts on the internal repository weren't up to date (they would succeed verify but developers sometimes forgot to execute a deploy afterwards). one simple solution would be to always execute 'mvn clean deploy' so fresh . has somembody done this and thought it right/wrong? i am a bit uncomfortable with it, because i think that not every commit should lead to a deploy. thanks for your thoughts. -- View this message in context: http://www.nabble.com/maven-phase-to-be-executed-in-and-continuous-integration-tf4691138s177.html#a13407639 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven phase to be executed in and continuous integration
forgot some more reservation. when working with SNAPSHOTS and doing lots of has somebody experienced problems with just too many SNAPSHOT-libraries? aldana wrote: hi, we are working with maven and cruise control. until now i always executed 'mvn clean verify'. we are working with snapshots and we experienced problems that the artifacts on the internal repository weren't up to date (they would succeed verify but developers sometimes forgot to execute a deploy afterwards). one simple solution would be to always execute 'mvn clean deploy' so fresh . has somembody done this and thought it right/wrong? i am a bit uncomfortable with it, because i think that not every commit should lead to a deploy. thanks for your thoughts. -- View this message in context: http://www.nabble.com/maven-phase-to-be-executed-in-and-continuous-integration-tf4691138s177.html#a13407845 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: stuck state when downloading snapshots
i still could not solve my snapshot problem, now with a slight different issue: when having downloaded a snapshot and there must be another update done (for the library changed), maven does not lookup the repository where the snapshot is sitting. when deleting the whole snapshot folder a fresh lookup is done and it works fine. i set the updatePolicy for the respective repository to always: repository idinternal/id urlfile://myInteralURL/url snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots /repository what is going wrong here? thanks. aldana wrote: sometimes i am having problems with downloading snapshots. for instance when trying to download dependencies from an internal repository to local one the folder gets created like xxx/bla/1.0-SNAPSHOT but inside this folder i only see metadata.xml files. maven tells me a BUILD ERROR and says that xxx:bla:1.0-SNAPSHOT:jar could not be located. my workaround is to delete the complete bla/ folder and after that download goes fine. does anybody know something about this stuck download state or is there a special configuration to be done? this download behaviour is especially annoying for integration tools like cruise control which gives me work hindering wrong failure (false positive) messages. -- View this message in context: http://www.nabble.com/stuck-state-when-downloading-snapshots-tf4672399s177.html#a13362338 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
potential bug (urgent): snapshot download not working
hi already started a thread, see http://www.nabble.com/stuck-state-when-downloading-snapshots-tf4672399s177.html where i thought i did a configuration error. but now i really think i am heading to a bug, which is very critical and severe (in fact it makes working with snapshots impossible!). after downloading a snapshot apart from jar maven-metadata-internal.xml gets created in local rep too. after that it does not compare to a new snapshot release from internal repository, though the timestamp and respective jar from interal rep could be newer. when deleting maven-metadata-internal.xml from local rep, maven is willing again to compare metadata and to get latest snapshot. this is weird, it should always compare metadata with internal rep. has anybody got similar problems? maven2 jira showed me some issues regarding this but they are told to be fixed. i am using maven 2.0.7. apart from above problems i noticed that the timestamps in maven-metadata-internal.xml are not correct. funny thing is that the timestamp is set two hours earlier as my system clock. -- View this message in context: http://www.nabble.com/potential-bug-%28urgent%29%3A-snapshot-download-not-working-tf4677786s177.html#a13365339 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: potential bug (urgent): snapshot download not working
Tim Kettler wrote: The default update-checking frequency for artifacts is once per day. You can configure this on a per repository basis in your repository definitions with the updatePolicy tag. See here [1] for an description. sorry for being too unprecise (i forgot to copy this from the other thread). i am already using the updatePolicy flag, but still it does not work: repository idinternal/id urlfile:///myInteralURL/url snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots /repository the always flag just gets ignored. -- View this message in context: http://www.nabble.com/potential-bug-%28urgent%29%3A-snapshot-download-not-working-tf4677786s177.html#a13369473 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with version ranges
hi, i am working with version ranges, which is making problems. if i mark a version range like version[1.0,)/version and there is only 2.0 and no 1.0 version in my local repository, maven gives me an error that it cannot find range [1.0,). if i download 1.0 version it goes fine. i would expect that maven just picks the version of the local repository as long as it is included in the range. or am i misguided? thanks. -- View this message in context: http://www.nabble.com/problem-with-version-ranges-tf4671291s177.html#a13344785 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: Internal (company) repository layout best practices
we are not splitting repositories for releases and snapshots. in our case we are modularizing our bigger application to single maven artifacts, so when developing for a new release, changes (fixes, features) are often added often to more than one project. as soon there is a change we switch from release mode to snapshot mode for the new release. i think the main reason to split repositories is if you have got public libraries which external organisations/companies are using. i think in that case it is senseful to have a strict isolated view. but if you're developing for a new release and if you've got many modules, which are forming one bigger application i would not split repositories, because in that situation i do not want to have a separated snapshot vs. release view. the first post mentioned hygiene: i still look for a way to get an overview of the dependencies of all my internal modules (release or snapshot version). especially when working with lots of modules and still supporting older releases in branches an overview of module-couplings could be invaluable. i know that in the standard report of a project you can see the library-dependencies of one module. what i miss is the bigger pictures of the dependencies between all modules you are working on during development. -- View this message in context: http://www.nabble.com/Internal-%28company%29-repository-layout-best-practices-tf4645351s177.html#a13347335 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stuck state when downloading snapshots
sometimes i am having problems with downloading snapshots. for instance when trying to download dependencies from an internal repository to local one the folder gets created like xxx/bla/1.0-SNAPSHOT but inside this folder i only see metadata.xml files. maven tells me a BUILD ERROR and says that xxx:bla:1.0-SNAPSHOT:jar could not be located. my workaround is to delete the complete bla/ folder and after that download goes fine. does anybody know something about this stuck download state or is there a special configuration to be done? this download behaviour is especially annoying for integration tools like cruise control which gives me work hindering wrong failure (false positive) messages. -- View this message in context: http://www.nabble.com/stuck-state-when-downloading-snapshots-tf4672399s177.html#a13348182 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to disable implicit plugin execution order of inherited poms?
hi, my app is from type war so implicitly the war-plugin gets executed as first plugin in package phase. problem is that before building the war i need to package my axis2 webservice-app as aar (which exists as own task). aar-plugin must therefore execute before war plugin. thus i cannot work with inherited behaviour of war-packaging :( is there a workaround how to execute aar plugin before war plugin. my first ideas were to bind aar-plugin to phase before package which is not nice, because aar task belongs to package phase. second idea was to mark my webapp as jar-packaging, this makes configuration more lengthy but should somehow solve my problem. i already searched the mailinglist and this seems to be an issue, especially with war-packing. i think ordering of inherited plugins should be possible to control. -- View this message in context: http://www.nabble.com/how-to-disable-implicit-plugin-execution-order-of-inherited-poms--tf4534393s177.html#a12940156 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: enable plugins for other packaging types
this does not work because tomcat plugin not looks on the archive-name, merely to the packaging type defined in the head of pom.xml. Wayne Fay wrote: I'm not sure if it would work, but could you use finalName to specify a .war, and leave packaging as type jar? Wayne On 9/28/07, aldana [EMAIL PROTECTED] wrote: hi, as described in post (see link http://www.nabble.com/how-to-disable-implicit-plugin-execution-order-of-inherited-poms--tf4534393s177.html) i cannot use the packaging type war, because inherited plugin execution makes war packaging of axis2 app fail. my workaround is to use the packaging type jar, so plugin execution does not get inherited. unfortunately this makes tomcat plugin not run, because it expects a packaging war (it skips with message 'Skipping non-war project). does somebody know whether it is possible to use tomcat plugin though packaging jar is set? -- View this message in context: http://www.nabble.com/enable-plugins-for-other-packaging-types-tf4535051s177.html#a12942247 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] -- View this message in context: http://www.nabble.com/enable-plugins-for-other-packaging-types-tf4535051s177.html#a12942672 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin devlopment to compose other plugins
hi, is it possible to reuse plugins in that way that i can call them through a new plugin (composing plugins). that means define dependency in pom.xml to respective plugins and being able to call them with certain configurations inside a new developed custom plugin. an alternative is to define a new parent pom.xml where chaining plugins could be done. but i want to avoid, that parent hierachies are getting to deep and too many parents exist. further more i would like to introduce a new pom packaging type (tomcat-axis2) which is as far i know only possible through a custom plugin. in current situation it is neccessary to chain 4-5 different plugins, which should express themselves as one big one. the task is to deploy a built axis2 app on tomcat. following flow must be achieved: 1) calling assembly plugin for getting all dependencies and being able to express depedencySets through assembly descriptor 2) calling aar plugin to pack axis2 app (maybe mar plugin on top of that too). 3) calling war plugin to get a j2ee webapp (aar/mar inside) 4) calling tomcat plugin to deploy all stuff thanks for your thoughts. -- View this message in context: http://www.nabble.com/plugin-devlopment-to-compose-other-plugins-tf4535168s177.html#a12942607 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
enable plugins for other packaging types
hi, as described in post (see link http://www.nabble.com/how-to-disable-implicit-plugin-execution-order-of-inherited-poms--tf4534393s177.html) i cannot use the packaging type war, because inherited plugin execution makes war packaging of axis2 app fail. my workaround is to use the packaging type jar, so plugin execution does not get inherited. unfortunately this makes tomcat plugin not run, because it expects a packaging war (it skips with message 'Skipping non-war project). does somebody know whether it is possible to use tomcat plugin though packaging jar is set? -- View this message in context: http://www.nabble.com/enable-plugins-for-other-packaging-types-tf4535051s177.html#a12942247 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to inherit scopeprovided/scope to transitive dependencies
no, i checked this already by including neethi as the only dependency. have you tried the same and the result was different? for collecting the libraries for the release i am using latest snapshot of assembly plugin. with this setting transitive dependencies get included, though belonging to provided dependency. Tim Kettler wrote: Hi, can it be, that the unwanted dependencies get pulled in as transitive depenendencies of some other depenendency than 'neethi', that has not scope 'provided'? -Tim aldana schrieb: hi, i am deploying an axis2 app to tomcat. i need some libraries for compile time but do not need to package them because they are provided by webapp-container. that's why i use scopeprovided/scope. in my case this is for instance: dependency groupIdorg.apache.ws.commons.neethi/groupId artifactIdneethi/artifactId version2.0/version optionaltrue/optional scopeprovided/scope /dependency neethi gets excluded in package-phase but very unfortunately the transitive dependencies from neethi get included :( this is not what i want: when marking a dependency as provided of course transitive dependencies should not be included either for they are provided from container already... what am i doing wrong? is there another way to achieve this or do i misunderstand the use of scope-provided? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/how-to-inherit-%3Cscope%3Eprovided%3C-scope%3E-to-transitive-dependencies-tf4516735s177.html#a12904167 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to inherit scopeprovided/scope to transitive dependencies
the war task would not work in the first place (this would be the second step). in axis2 apps i need to package first my stuff with the maven-aar-plugin and maven-mar-plugin. further more i wanted to avoid tweaking around with excludes pattern, because i want to simplify my configuration with just marking dependency as provided. but if i do not find the solution or maybe it is a bug, i will have to live with first and do a workaround with excluding axis2 libraries explicitly. in case of being a bug will have a look whether i can fix it... never the less, many thanks for your solutions. Michael McCallum-3 wrote: solution 1 try... standard OO principles to encapsulate the depedency you wish to mask and use excludes to keep it from the war e.g. war - b - a gives you war(a,b) to war - c - (exlude a) b -a gives you war(c,b) c can be a jar or even just a pom project, jars are better cause you end up with the pom.properties which can be useful for knowing exactly what a deployed war contains Personally I've only had trouble with the provided target. The key failing for me is that a war should theoretically be portable and as such you don't know whats provided until later... And really you should be able to bundle all you libraries as the container reads bottom up... commons logging breaks this though which is why i use slf4j solution 2 -- produce the war (a) as an underlay by excluding all the jars from it... groupIda.b.c/groupId artifactida.b.c.web/artifactId plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration archiveClassestrue/archiveClasses classifierunderlay/classifier warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes /configuration executions execution goals goalwar/goal /goals /execution /executions /plugin create a new war for the specific target e.g. tomcat that depends upon the underlay + its primary jar (needed for transitions) groupIda.b.c/groupId artifactIda.b.c.web.tomcat/artifactId dependencies dependency groupIda.b.c/groupId artifactida.b.c.web/artifactId versionX/version /dependency dependency groupIda.b.c/groupId artifactida.b.c.web/artifactId versionX/version classifierunderlay/classifier /dependency /dependencies plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceExcludesWEB-INF/lib/***provided jar name here***.jar/warSourceExcludes /configuration executions execution goals goalwar/goal /goals /execution /executions /plugin On Wednesday 26 September 2007 04:24, aldana wrote: hi, i am deploying an axis2 app to tomcat. i need some libraries for compile time but do not need to package them because they are provided by webapp-container. that's why i use scopeprovided/scope. in my case this is for instance: dependency groupIdorg.apache.ws.commons.neethi/groupId artifactIdneethi/artifactId version2.0/version optionaltrue/optional scopeprovided/scope /dependency neethi gets excluded in package-phase but very unfortunately the transitive dependencies from neethi get included :( this is not what i want: when marking a dependency as provided of course transitive dependencies should not be included either for they are provided from container already... what am i doing wrong? is there another way to achieve this or do i misunderstand the use of scope-provided? thanks. -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/how
RE: fresh lookup for snapshots with pom-packaging fails
yes, true. did not know that there was an option for that. but your post and pom-reference build-settings (see http://maven.apache.org/pom.html#Build_Settings) told me better :) Brian E Fox wrote: By default maven only looks for new snapshots once a day. You can force it to check by using the -U flag and you can adjust the frequency in your repository section of pom or settings. -Original Message- From: aldana [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 1:02 PM To: users@maven.apache.org Subject: fresh lookup for snapshots with pom-packaging fails hi, working with snapshots with packaging pom type does not work. it does not lookup on internal repository whether there is a new snapshot version available. is that a wished behaviour? i would expect the same lookup semantics as with package type 'jar' (every build servers are looked if there is a new snapshot available). i am working with such snapshots for i sometimes adjust a parent pom whose changes the others should be notified from. -- View this message in context: http://www.nabble.com/fresh-lookup-for-snapshots-with-pom-packaging-fail s-tf4516887s177.html#a12883986 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] -- View this message in context: http://www.nabble.com/fresh-lookup-for-snapshots-with-pom-packaging-fails-tf4516887s177.html#a12904529 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to inherit scopeprovided/scope to transitive dependencies
hi, i am deploying an axis2 app to tomcat. i need some libraries for compile time but do not need to package them because they are provided by webapp-container. that's why i use scopeprovided/scope. in my case this is for instance: dependency groupIdorg.apache.ws.commons.neethi/groupId artifactIdneethi/artifactId version2.0/version optionaltrue/optional scopeprovided/scope /dependency neethi gets excluded in package-phase but very unfortunately the transitive dependencies from neethi get included :( this is not what i want: when marking a dependency as provided of course transitive dependencies should not be included either for they are provided from container already... what am i doing wrong? is there another way to achieve this or do i misunderstand the use of scope-provided? thanks. -- View this message in context: http://www.nabble.com/how-to-inherit-%3Cscope%3Eprovided%3C-scope%3E-to-transitive-dependencies-tf4516735s177.html#a12883347 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fresh lookup for snapshots with pom-packaging fails
hi, working with snapshots with packaging pom type does not work. it does not lookup on internal repository whether there is a new snapshot version available. is that a wished behaviour? i would expect the same lookup semantics as with package type 'jar' (every build servers are looked if there is a new snapshot available). i am working with such snapshots for i sometimes adjust a parent pom whose changes the others should be notified from. -- View this message in context: http://www.nabble.com/fresh-lookup-for-snapshots-with-pom-packaging-fails-tf4516887s177.html#a12883986 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
howto express that plugin should only execute with certain package type
i want to execute/load a plugin only if a pom is of a certain packaging. i want to express this in a parent pom which all my projects are inheriting from. for instance: my assembly plugin should use a different assembly descriptor if the packaging is set to war. for avoiding duplication i would like to set this in one parent pom. so is it possible to set conditional (in view of packaging type) plugin execution? the pom.xml reference did not give me a hint for this... thanks. -- View this message in context: http://www.nabble.com/howto-express-that-plugin-should-only-execute-with-certain-package-type-tf4516960s177.html#a12884223 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems downloading internal SNAPSHOTs
hi, i am running CruiseControl for integrate testing my projects (command-line tool 'mvn verify' is executed for each project). but the results are very unreliable because Cruise Control sometimes gives me errors with downloading snapshot-dependencies. dependencies are sitting in an internal repository which is accessed by simple remote file system on windows xp. it is very difficult to reproduce this error, because downloading other snapshots from same internal repository works, so repository settings should be fine (otherwise no downloads would work). in cases of failure of snapshot-download it manages to download the meta-data.xml to the local repository but nothing of the rest. manually copying dependencies work, so file system permissions should be fine. another weird thing is, that when logging in as a different user and executing 'mvn verify' works. the only way to get the problem fixed is by manually executing 'mvn install' on server under the same account which cruise control is run, so local repository gets filled with respective dependency. this workaround is no option to me because resolution needs to be done fully automatically. i know with above explanation i give you a hard time to figure out what is going wrong that's it what i can see as symptoms. just wanted get some help where to search for the solution. maybe somebody has had same problems... thanks. -- View this message in context: http://www.nabble.com/problems-downloading-internal-SNAPSHOTs-tf4488180s177.html#a12799198 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly-plugin: how to tell to use lib-xx-SNAPSHOT.jar and not lib-xx-{timeStamp}.jar
hi, i am using assembly:assembly to pack my release. inside jar plugin i enable classpath setting with addClasspath. this way when working with snapshots inside MANIFEST.MF lib-xx-SNAPSHOT.jar gets added. conversely when executing assembly goal i get a timestamp added to libary. mainJar -lib/ lib-xx-20070881.065 this way i cannot access the library by name. weird thing is that sometimes timestamp gets included and sometimes it appends the expected SNAPSHOT. so, how do i tell assembly plugin to always include libraries with name lib-xx-SNAPSHOT? or why is this behaviour that maven includes timestamp and sometimes not? thanks. -- View this message in context: http://www.nabble.com/assembly-plugin%3A-how-to-tell-to-use-lib-xx-SNAPSHOT.jar-and-not-lib-xx-%7BtimeStamp%7D.jar-tf4359662s177.html#a12424929 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-jar-plugin: how to avoid conflicts in addClasspath
hi, maven amongst others is using groupId to avoid name clashes between libraries (a:x.jar is different to b:x.jar). now the problem arises when adding Classpath to MANIFEST.MF with following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath classpathPrefixlib/classpathPrefix /manifest /archive /configuration /plugin with addClasspath in MANIFEST.MF it is unclear wheter to reference a:x.jar or b:x.jar because there is only one jar listed - Class-Path: lib/x.jar how is it possible to tell the MANIFEST.MF to include the groupId too? Something like Class-Path: lib/a-x.jar lib/b-x.jar. thanks in advance -- View this message in context: http://www.nabble.com/maven-jar-plugin%3A-how-to-avoid-conflicts-in-%3CaddClasspath%3E-tf4334430s177.html#a12344543 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jar-plugin: how to avoid conflicts in addClasspath
yes, for a workaround i did this too. but hoped there would be a tweak in maven-jar-plugin, so artifactId could standalone because information of a.b.c.d is already provided. this way i could avoid duplication. Michael McCallum-3 wrote: i name my projects groupIda.b.c/groupId artifactIda.b.c.d/artifactId that way all the aggregations never have clashes... I only wish library providers would to the same... it seems all the simple things are overlooked On Monday 27 August 2007 22:25, aldana wrote: hi, maven amongst others is using groupId to avoid name clashes between libraries (a:x.jar is different to b:x.jar). now the problem arises when adding Classpath to MANIFEST.MF with following: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath classpathPrefixlib/classpathPrefix /manifest /archive /configuration /plugin with addClasspath in MANIFEST.MF it is unclear wheter to reference a:x.jar or b:x.jar because there is only one jar listed - Class-Path: lib/x.jar how is it possible to tell the MANIFEST.MF to include the groupId too? Something like Class-Path: lib/a-x.jar lib/b-x.jar. thanks in advance -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-jar-plugin%3A-how-to-avoid-conflicts-in-%3CaddClasspath%3E-tf4334430s177.html#a12344732 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 jar+assembly plugin: transitive dependencies sometimes not resolved correctly
hi, i am packing my release with assembly and jar plugin. sometimes transitive dependencies do not get resolved correctly. they either are not included as libs in my lib/ folder (-assembly plugin) or classpath does not get added (- jar plugin). when doing 'mvn compile' everything gets resolved correctly, so it must be an issue with jar/assembly plugin. before trying to reproduce above behaviour as an issue/bug (quite tricky, because of the general dependency to my internal repository, which i cannot publish + it fails only sometimes) i would like to ask, whether someone has faced similar problem? if true, i'll try to give an example with published libraries. i am using maven 2.0.7. (+ plugins jar 2.1, assembly 2.2-beta1). -- View this message in context: http://www.nabble.com/maven-jar%2Bassembly-plugin%3A-transitive-dependencies-sometimes-not-resolved-correctly-tf4334948s177.html#a12345934 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: assembly plugin: transitive dependencies do not get included
thought that this tweak makes pattern of include/exclude be imported to transitive dependencies (see http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet). never the less i tried it, but still same issue :( Stephane Nicoll-2 wrote: useTransitiveFiltering/ sorry. On 8/23/07, aldana [EMAIL PROTECTED] wrote: where do i set option includeTransitiveDeps to true? cannot find it in assembly descriptor schema. Stephane Nicoll-2 wrote: Mmm. This might be a bug. Check that includeTransitiveDeps is set to true. HTH, Stéphane On 8/23/07, aldana [EMAIL PROTECTED] wrote: hi, i am using assembly plugin with standard descriptor jar-with-dependencies. problem is that transitive dependencies do not get included. pom.xml from project A: ... groupIda/groupId artifactIda/artifactId version1.0/version dependencies dependency groupIdtran/groupId artifactIddep/artifactId version1.0/version /dependency /dependencies ... pom.xml from project B: ... groupIdb/groupId artifactIdb/artifactId version1.0/version build ... enabling assembly-plugin with jar-with-dependencies... /build dependencies dependency groupIda/groupId artifactIda/artifactId version1.0/version /dependency /dependencies ... i am doing assembly:assembly on b:b. now tran:dep does not get included though it is defined in a:a. that means: if i open the assembled jar-file (from b:b) i cannot see any artifacts from tran:dep. what is going wrong here? thought that default behaviour of jar-with-dependencies includes everything as told in http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485? i am using plugin in version 2.2-beta-1. thanks for your help. -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12301837 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12308820 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven plugin alternative to assembly plugin
thanks, saved my day! one little correction and suggestion (and a last question for maven-jar plugin): assembly ... fileSets fileSet includes include${artifactId}-*.jar/include /includes directory${basedir}/target/directory !-- output directory empty, so does get copied to root (you wrote lib/)-- outputDirectory/outputDirectory /fileSet /fileSets dependencySet !-- there could be conflicts (hence there are often libs called commons-xxx.jar, prepend groupId to ensure that nothing gets overwritten -- outputFileNameMapping${groupId}-${artifactId}-${version}-${classifier}.${extension}/outputFileNameMapping outputDirectorylib/outputDirectory /dependencySet /dependencySets ... /assembly for outputFileNameMapping${groupId}-${artifactId}-${version}-${classifier}.${extension}/outputFileNameMapping i need to adjust the classpath string in MANIFEST.MF. unfortunately making classpathPrefixlib/${groupId}-${artifactId}-${version}-${classifier}.${extension}./classpathPrefix does not work, because it is interpreted as a directory. how is it possible to set the classpath equal to the library names in lib/ folder configured in assembly plugin? -- View this message in context: http://www.nabble.com/maven-plugin-alternative-to-assembly-plugin-tf4262116s177.html#a12311490 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly plugin: ordering of dependencies
hi, i am facing following problem: when building assembly there are two libraries (A.jar+B.jar) which contain same classes (packageName + className). looking at this library A.jar contains a class which offers different public methods as B.jar. assembly plugin now overrides this A.jar class with B.jar classes. result of this, that application gives me a NotSuchMethodException. unfortunately i cannot replace A with B or otherwise. both need to be assembled into one jar. so how is it possible to configure following in assembly plugin: -dependency X defined in pom.xml of project P1 should be preferred over dependency Y in pom.xml of project P2, when running assembly:assembly thanks in advance! besides: i know i should change my architecture to avoid such a library conflict (there should exist only one class version). but before refactoring i need a quick solution to make a running release. -- View this message in context: http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12289677 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly plugin: transitive dependencies do not get included
hi, i am using assembly plugin with standard descriptor jar-with-dependencies. problem is that transitive dependencies do not get included. pom.xml from project A: ... groupIda/groupId artifactIda/artifactId version1.0/version dependencies dependency groupIdtran/groupId artifactIddep/artifactId version1.0/version /dependency /dependencies ... pom.xml from project B: ... groupIdb/groupId artifactIdb/artifactId version1.0/version build ... enabling assembly-plugin with jar-with-dependencies... /build dependencies dependency groupIda/groupId artifactIda/artifactId version1.0/version /dependency /dependencies ... i am doing assembly:assembly on b:b. now tran:dep does not get included though it is defined in a:a. that means: if i open the assembled jar-file (from b:b) i cannot see any artifacts from tran:dep. what is going wrong here? thought that default behaviour of jar-with-dependencies includes everything as told in http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485? i am using plugin in version 2.2-beta-1. thanks for your help. -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820 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: assembly plugin: ordering of dependencies
alright, i'll try that as a quick solution. after having refactored i hope i get rid of this evil duplicate class-dependency. Tim Kettler wrote: Hi, As far as I know this is not supported by the assembly-plugin directly. If the two jars contain exactly the same set of classes (just different versions) you can just exclude one of them via the excludes/ tag. Or you can try to define two distinct dependencySet respectivly moduleSet/ definitions. One containing the dependencies pulling in A.jar, one with the dependencies pulling in B.jar and then try to switch the order of the two definitions in your assembly descriptor and hope that that switches the order in which the jars get copied. -Tim aldana schrieb: hi, i am facing following problem: when building assembly there are two libraries (A.jar+B.jar) which contain same classes (packageName + className). looking at this library A.jar contains a class which offers different public methods as B.jar. assembly plugin now overrides this A.jar class with B.jar classes. result of this, that application gives me a NotSuchMethodException. unfortunately i cannot replace A with B or otherwise. both need to be assembled into one jar. so how is it possible to configure following in assembly plugin: -dependency X defined in pom.xml of project P1 should be preferred over dependency Y in pom.xml of project P2, when running assembly:assembly thanks in advance! besides: i know i should change my architecture to avoid such a library conflict (there should exist only one class version). but before refactoring i need a quick solution to make a running release. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/assembly-plugin%3A-ordering-of-dependencies-tf4316169s177.html#a12293947 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven plugin alternative to assembly plugin
hi again, i tried to search in archive to find out how to achieve packaging a release like stated below. no success (maybe wrong keywords...). that's why i would like to ask you for an example how to do this. i really need to get rid of this muddy copy all into one jar assembly... many thanks again. Dirk Olmes-4 wrote: hi, does anybody know an alternative to assembly plugin which is mainly putting all stuff into a single jar. would prefer a layout where libraries are organized as following: -mainJar.jar -lib/ -dependentJar1 -dependentJar2 -... the main task would be to set up Manifest.MF from mainJar.jar correctly so neccessary classpaths are set correctly and reference to outside living lib/*.jar. That's perfectly doable with the assembly plugin and the jar plugin. I'm not at my machine right now so I cannot provide you with the exaxt details. Search the archive, though, this has been done before. Or bug me per mail next week when I'm back home to send you the example config. -dirk -- Anyway kids, have fun, play nicely, be good. And remember - if it ain't broke, hit it again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-plugin-alternative-to-assembly-plugin-tf4262116s177.html#a12294278 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: assembly plugin: transitive dependencies do not get included
where do i set option includeTransitiveDeps to true? cannot find it in assembly descriptor schema. Stephane Nicoll-2 wrote: Mmm. This might be a bug. Check that includeTransitiveDeps is set to true. HTH, Stéphane On 8/23/07, aldana [EMAIL PROTECTED] wrote: hi, i am using assembly plugin with standard descriptor jar-with-dependencies. problem is that transitive dependencies do not get included. pom.xml from project A: ... groupIda/groupId artifactIda/artifactId version1.0/version dependencies dependency groupIdtran/groupId artifactIddep/artifactId version1.0/version /dependency /dependencies ... pom.xml from project B: ... groupIdb/groupId artifactIdb/artifactId version1.0/version build ... enabling assembly-plugin with jar-with-dependencies... /build dependencies dependency groupIda/groupId artifactIda/artifactId version1.0/version /dependency /dependencies ... i am doing assembly:assembly on b:b. now tran:dep does not get included though it is defined in a:a. that means: if i open the assembled jar-file (from b:b) i cannot see any artifacts from tran:dep. what is going wrong here? thought that default behaviour of jar-with-dependencies includes everything as told in http://www.nabble.com/-M2--How-to-include-transitive-dependencies-with-Assembly-plugin-tf2177453s177.html#a6020485? i am using plugin in version 2.2-beta-1. thanks for your help. -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12293820 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/assembly-plugin%3A-transitive-dependencies-do-not-get-included-tf4317601s177.html#a12301837 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]