Who can explain me this warning ?
hi, when i execute mvn clean site (with 2.1-SNAPSHOT) i get this warning (i don't get it with 2.0.9): DEPRECATED: Binding aggregator mojos to lifecycle phases in the POM is considered dangerous. This feature has been deprecated. Please adjust your POM files accordingly. Offending mojo: org.apache.maven.plugins:maven-project-info-reports-plugin:2.1:dependency-convergence i hope somebody can explain what this means thanks. kuku -- View this message in context: http://www.nabble.com/Who-can-explain-me-this-warning---tp21997978p21997978.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
Diffrend behavior mvn clean site between M 2.0.9 and M 2.1-SNAPSHOT
hi, when i run mvn clean site with M 2.0.9 everything goes well as expected. However when i do the same with M 2.1-SNAPSHOT it cant find a dependency on the maven repository. I looked it up my self and the dependency is there. Somebody expierinced anything alike? thx kukudas -- View this message in context: http://www.nabble.com/Diffrend-behavior-mvn-clean-site-between-M-2.0.9-and-M-2.1-SNAPSHOT-tp21994023p21994023.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
Mavenium browser specification
hi, is it possible to set up the mavenium plugin that the testsuits will be run in more than one browser ? For example my configuration now is like this: com.agilepirates mavenium 0.1 launch-selenium validate-selenium-tests 80 ${basedir}/src/selenium opera Atm this will execute my test in opera, how do i have to change the configuration that opera,firefox,iexplore and custom browsers get executed one by one ? Is this even possbile by configuration? thanks kukudas -- View this message in context: http://www.nabble.com/Mavenium-browser-specification-tp21934224p21934224.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: selenium-maven-plugin howto specifie multiple browsers
Hi thanks for your response. I want to run the Selenium tests as html suits in the integration-test lifecycle, which works perfect but just in one browser. I thought that there is somehow a way to tell maven that he has to launch the tests in diffrend browsers aswell. Mick Knutson-4 wrote: > > I use TestNG to do this. > I have my test method to start the server: > > *...@beforeclass(groups = {"selenium" }) > @Parameters( > { "selenium-server-address", "browser-type", "application-address" > } > ) > protected void startSeleniumServer(String seleniumServerAddress, > String browserType, String applicationAddress) throws Exception { > log.info("Starting Selenium client"); > selenium = new DefaultSelenium(seleniumServerAddress, > SeleniumServer.getDefaultPort(), browserType, > applicationAddress); > selenium.start(); > }* > > Then in my testng.xml: > >* > > > > > > * > > > Note this is para-phrased. I actually need to write a blog on this. But > hopefully this can help get you started. > > > --- > 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 > Twitter: http://twitter.com/mickknutson > Vacation Rental: http://tahoe.baselogic.com > --- > > > > On Wed, Feb 4, 2009 at 8:55 AM, kukudas wrote: > >> >> hi, >> >> how can i run selenese command with more than one browser ? Atm i use >> *opera for example. I couldn't find any hint in the >> documentation i hope somebody can help me. >> >> Thanks kukudas >> -- >> View this message in context: >> http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-browsers-tp21830943p21830943.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > -- View this message in context: http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-browsers-tp21830943p21847008.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
selenium-maven-plugin howto specifie multiple browsers
hi, how can i run selenese command with more than one browser ? Atm i use *opera for example. I couldn't find any hint in the documentation i hope somebody can help me. Thanks kukudas -- View this message in context: http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-browsers-tp21830943p21830943.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: Maven 2 inheritance which elements get inherited ?
Thanks i did that too but the profiles were missing so i wanted to be sure and asked here. Thanks for your help. Jörg Schaible-2 wrote: > > Hi kuku, > > kukudas wrote at Mittwoch, 28. Januar 2009 15:20: > >> >> Thanks, so when i activate a profile by using the command line (ex.: mvn >> clean install -P int) within a child and the profile (int) is definied in >> the parent it should work right? > > Yes, but why don't you simply setup two minimal POMs and use "mvn > effetive:pom" to explore the results ? > > - Jörg > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21722535.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: Maven 2 inheritance which elements get inherited ?
Thanks, so when i activate a profile by using the command line (ex.: mvn clean install -P int) within a child and the profile (int) is definied in the parent it should work right? Jörg Schaible-2 wrote: > > Hi kuku, > > kukudas wrote at Mittwoch, 28. Januar 2009 13:37: > >> >> Ok so lets say i have a profile in my parent which is not activated. If i >> now call this profile with my child it will work right? I've tried it and >> it seems to work but i'm asking to be sure. > > No. If the profile is activated (i.e. by an activate element in the > profile > itself) in the child, none of the profile stuff of the parent is used. > Parents are resolved first (incl. profiles). If you activate a profile > from > command line the case is different, then the profile activation happens > before any of the POMs are resolved independently from an activate > section. > > - Jörg > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21706617.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: Maven 2 inheritance which elements get inherited ?
Ok so lets say i have a profile in my parent which is not activated. If i now call this profile with my child it will work right? I've tried it and it seems to work but i'm asking to be sure. Jörg Schaible-2 wrote: > > Hi kuku, > > kukudas wrote at Mittwoch, 28. Januar 2009 09:24: > >> >> I have read in the documentation that the following elements get >> inherited >> (merged) : >> >> * dependencies >> * developers and contributors >> * plugin lists (including reports) >> * plugin executions with matching ids >> * plugin configuration >> * resources >> >> Is it possible to inherit other elements too like certain profiles ? >> Thanks in advance .. kuku > > Profiles are not inherited, they get activated. I.e. if a profile get's > activated in a parent pom, anything that is part of this profile > definition > will be inherited as if it had been declared outside of the profile. > However, the activation of the profile is inherited i.e. if you child POM > declares a profile with the same profile id but without any activation > section, it is nevertheless active and you can add or modify other POM > elements. > > Those commands will help you to visualize the effects: > > mvn help:active-profiles > mvn help:effective-pom > > - Jörg > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21704915.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 2 inheritance which elements get inherited ?
I have read in the documentation that the following elements get inherited (merged) : * dependencies * developers and contributors * plugin lists (including reports) * plugin executions with matching ids * plugin configuration * resources Is it possible to inherit other elements too like certain profiles ? Thanks in advance .. kuku -- View this message in context: http://www.nabble.com/Maven-2-inheritance-which-elements-get-inherited---tp21701498p21701498.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: Question about excluding parts of parent to be inherited
nvm i found it out myself you can do it with false. kukudas wrote: > > Is it possible to exclude for example a plugin to be inherited by a child > which i use in the parent? If so could you give me an example or refere to > a source where i could read up this feature? > Thanks in advance for your help kukudas. > > edit: Do i understand it right that Profiles don't get inherited btw. ? > -- View this message in context: http://www.nabble.com/Question-about-excluding-parts-of-parent-to-be-inherited-tp21686034p21687550.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: Maven inheritence works with 2.1-SNAPSHOT but not with 2.0.9
Thanks for the clearing Brian, i have read your tutorial and it seems a good approach, however i thought about an alternative aproach maybe you can give me your opinion about it. What i want to archive is simply that i fetch every duplicate configuration within my projects make a parent pom and inherit those things to them. With this i will save redundency and i think my configuration files will be better to read. My problem was that with this aproach i could not set the path for a custom xml file which would contain my checkstyle rules within the parents reporting node, because when i inherited the xml file which was reachable in the parent is not in the children. For example in my parent project the custom.xml file (for checkstyle) was in src/main/resources and my parent pom referenced to it. When inherited this for the child, the child will look in his own src/main/resources and not into the parents one which is pretty clear will result into a file not found exception unless i inherit somehow those xml files too. So my first guess was i need to somehow inherit those xml files too or make them available on compile/run time which i thought would work as i descirbed in my first posting, the problem is that i now found out (with your help) that it isnt possible, because i have to use packaging pom and can not provide a jar. However i could just do it like this: org.apache.maven.plugins maven-checkstyle-plugin file:../checkstyle.xml placing the custom checkstyle.xml on a server so every project which inherits this can access it. I don't know if this aproach brings any disadvantages or is recommendable for my use case. Thanks kukudas. Brian E Fox wrote: > > You found a bug in 2.1-SNAPSHOT. The parents must be pom packaging types. > > If you want to share checkstyle, just bundle it into a jar with assembly, > and then you can add that jar as a dependency to your checkstyle config. > You > don't need to inherit from the checkstyle jar itself, Checkstyle will find > the xml on the classpath. I wrote some examples about this here: > http://blogs.sonatype.com/people/2008/04/how-to-share-resources-across-proje > cts-in-maven/ > > http://blogs.sonatype.com/people/2008/04/how-to-override-a-plugins-dependenc > y-in-maven/ > > --Brian > > On 1/20/09 8:03 AM, "kukudas" wrote: > >> Hi, >> >> i have a problem and i hope somebody can help me. I'm kinda new to this >> things so maybe my approach is generaly wrong. >> >> i'm having a parent for example like this: >> >> 4.0.0 >> org.test >> parent >> 1 >> >> >> org.apache.maven.plugins >> maven-checkstyle-plugin >> >> >> ${pom.parent.groupId} >> ${pom.parent.artifactId} >> ${pom.parent.version} >> >> >> >> >> >> org.apache.maven.plugins >> maven-checkstyle-plugin >> >> checkstyle.xml >> >> >> >> >> >> >> And a child like this: >> >> >> org.test >> parent >> 1 >> >> >> 4.0.0 >> org.test >> child >> >> When i use Maven 2.0.9 i get the error that parent packaging has to be >> pom. >> But it has to be jar so my child can access the checkstyle.xml which is >> in >> the parent projects resource folder. >> With Maven 2.1-SNAPSHOT it works as expected (checkstyle runs with my >> rules >> which are in the parents resource folder). Is there maybe a better way to >> solve this or somehow make it work with both versions? I don't want to >> use >> packaging jar, run clean install for my parent and then change it to pom >> so >> that it will work with 2.0.9. >> >> >> Thanks in advance >> >> kukudas > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Maven-inheritence-works-with-2.1-SNAPSHOT-but-not-with-2.0.9-tp21562721p21579235.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 inheritence works with 2.1-SNAPSHOT but not with 2.0.9
Hi, i have a problem and i hope somebody can help me. I'm kinda new to this things so maybe my approach is generaly wrong. i'm having a parent for example like this: 4.0.0 org.test parent 1 org.apache.maven.plugins maven-checkstyle-plugin ${pom.parent.groupId} ${pom.parent.artifactId} ${pom.parent.version} org.apache.maven.plugins maven-checkstyle-plugin checkstyle.xml And a child like this: org.test parent 1 4.0.0 org.test child When i use Maven 2.0.9 i get the error that parent packaging has to be pom. But it has to be jar so my child can access the checkstyle.xml which is in the parent projects resource folder. With Maven 2.1-SNAPSHOT it works as expected (checkstyle runs with my rules which are in the parents resource folder). Is there maybe a better way to solve this or somehow make it work with both versions? I don't want to use packaging jar, run clean install for my parent and then change it to pom so that it will work with 2.0.9. Thanks in advance kukudas
Maven2 Inheritence configuration file path
hi i have a parent pom which contains plugins which have configuration files. For example i use PMD with my own rule sets. So i do specifie in my parent project the location where this file is. For example in my parent projects resources folder the rule sets for PMD can be found. However when my child inherits my parent pom it inherits this path too and will look in its own (child) resource folder for the PMD configuration file. How do i handle such a use case ? I want that the child uses the parents configuration file as well for the plugin. thanks in advance kukudas