Environment variables set by maven-surefire-plugin not available in test
L.S., We are trying to set an environment variable for a unit test by adding it to the maven-surefire-plugin configuration as in : org.apache.maven.plugins maven-surefire-plugin pertest ${port1} However, the environment variable is not available in the unit test, doing a System.getenv("activemq.port1") returns null. This only happens on AIX (V5.3, using Java 6), it seems to work fine on Windows and Linux. I have already run mvn with -X flag and see the log when the environment variable is being set: [DEBUG] Using JVM: /opt/tools/pfm/jdk16_64_sr6/jre/bin/java [DEBUG] Setting environment variable [activemq.port1]=[61811] Any suggestions on what else I can do to fix/troubleshoot the issue? Regards, Gert - --- Gert Vanthienen http://gertvanthienen.blogspot.com -- View this message in context: http://old.nabble.com/Environment-variables-set-by-maven-surefire-plugin-not-available-in-test-tp27077406p27077406.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
Get list of provided dependencies in own Mojo
L.S., I'm writing a plugin and would like to get a list of artifacts for the provided dependencies (including transitive dependencies) for the project. How can I get this? I was using project.getArtifacts() to get all dependencies, but this does not include the provided one (running the mojo during compile phase). Regards, Gert - --- Gert Vanthienen http://gertvanthienen.blogspot.com -- View this message in context: http://www.nabble.com/Get-list-of-provided-dependencies-in-own-Mojo-tp23074976p23074976.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
[maven-archetype-plugin] Possible to add a role-hint to the ArchetypeGenerationQueryer interface
L.S., Would it be possible to add a role-hint to the components.xml for the ArchetypeGenerationQueryer to allow replacing it with another implementation (providing better defaults for users)? I guess there is no other way to plug in my own implementation without that (cfr. http://jira.codehaus.org/browse/MNG-2771) Regards, Gert - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/-maven-archetype-plugin--Possible-to-add-a-role-hint-to-the-ArchetypeGenerationQueryer-interface-tp17276067p17276067.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]
archetype:generate: how-to override builtin Configurator?
L.S., How can I override the built-in ArchetypeGenerationConfigurator with my own variant? I have built a custom Configurator class, created a plexus/components.xml (see below) and added some information to the pom.xml where I want to use the custom Configuraor (see below). What am I missing in order to get this working? Thanks in advance for any help/suggestions? Components.xml org.apache.maven.archetype.ui.ArchetypeGenerationConfigurator org.apache.servicemix.tooling.catalog.ServicemixArchetypeGenerationConfigurator Snippet from pom.xml maven-archetype-plugin http://servicemix.apache.org/tooling/${servicemix-version} true org.apache.servicemix.tooling catalog ${servicemix-version} - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/archetype%3Agenerate%3A-how-to-override-builtin-Configurator--tp17124862p17124862.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]
archetype:crawl generates multiple entries when used on a snapshot repository
L.S., When you use archetype:crawl on local Maven repository that contains multiple snapshot builds (e.g. by Bamboo/Continuum), it generates multiple entries in the catalog with the exact same groupId/artifactId/version. For now, I have used an XSL stylesheet in our ServiceMix build to deduplicate the entries, but I don't think the plugin should generate these kind of duplicates anyway. I would like to open a JIRA issue for it, but just checking here first to see if anyone has a good use case for having these duplicates somehow. Thanks - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/archetype%3Acrawl-generates-multiple-entries-when-used-on-a-snapshot-repository-tp17120170p17120170.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: Developing an archetype: delegation/access to parent?
Raphaël, Thanks for your input! As you suggested, I have raised issue ARCHETYPE-163 on the subproject built by a secondary maven archetype. For the second question: I have looked at the Appfuse multimodule archetypes, but they generated the contents of the subproject's pom.xml together with the parent so if the child pom refers to ${artifactId}, that is the Maven archetype command line parameter instead of the parent pom's, right? But that actually isn't what I was looking for here... When I run an archetype in a folder that already contains a pom.xml, I would like to be able to access the information in this pom. An example: if this pom.xml contains a project name of 'Hello world', I would like to be able to access this in my archetype, so the subproject could be called 'Hello world :: Service Assembly' or something like that. Gert Raphaël wrote: > > Hi Gert > > 2008/4/25 Gert Vanthienen <[EMAIL PROTECTED]>: >> >> L.S., >> >> I'm developing a new archetype for Apache ServiceMix and have two >> questions >> >> We already have a fair amount of Maven archetypes and it would be nice >> if I >> could reuse those within my new archetype. Is there a way to run >> another >> archetype as part of the archetype generation process somehow? > > Not yet. > Feel free to raise a enhancement jira. > >> >> Second, is there a way to access information in the parent pom.xml file >> while running my archetype? An example: I would like to generate the >> project name based on the parent pom.xml name. How can I do this? > > There is something like this when one generate a project with a > multi-module archetype. > > > Regards, > > Raphaël > >> >> Thanks in advance for any help on this, >> >> Gert >> >> - >> --- >> Gert Vanthienen >> http://www.anova.be >> -- >> View this message in context: >> http://www.nabble.com/Developing-an-archetype%3A-delegation-access-to-parent--tp16895144s177p16895144.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] >> >> > > - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/Developing-an-archetype%3A-delegation-access-to-parent--tp16895144s177p16930319.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]
Developing an archetype: delegation/access to parent?
L.S., I'm developing a new archetype for Apache ServiceMix and have two questions We already have a fair amount of Maven archetypes and it would be nice if I could reuse those within my new archetype. Is there a way to run another archetype as part of the archetype generation process somehow? Second, is there a way to access information in the parent pom.xml file while running my archetype? An example: I would like to generate the project name based on the parent pom.xml name. How can I do this? Thanks in advance for any help on this, Gert - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/Developing-an-archetype%3A-delegation-access-to-parent--tp16895144s177p16895144.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]
Tool for generating an archetype catalog
L.S., I would like to create an archetype catalog for the Apache ServiceMix project. Is there a tool available for making this task a bit easier or can I e.g. add a filter to the archetype:crawl goal to crawl only a part of the local repository? Thanks in advance, Gert - --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/Tool-for-generating-an-archetype-catalog-tp15799921s177p15799921.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]
Access information in parent pom.xml in archetype
L.S., Is it possible to access information in the parent pom.xml while creating a new project with an Maven archetype? We often have a directory with a parent pom.xml which already contains the name, groupId, url, ... If I execute mvn archetype:create in this directory, some properties are copied automatically (e.g. if you do not specify a groupId on the command line, it will inherit the one from the parent if you add ${groupId} to the pom.xml in the archetype), but for others this doesn't seem to work (e.g. ${url} does nothing). Is there a way to do the same thing for the other information in the parent pom.xml, using some other expression? Thanks, Gert -- View this message in context: http://www.nabble.com/Access-information-in-parent-pom.xml-in-archetype-tf4120471s177.html#a11718603 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]