Re: Enforce rules defined outside the pom.xml or its parent

2019-03-27 Thread Anthony Whitford
Personally, I have done this with a Parent POM. Every corporate project must directly, or indirectly, inherit a Corporate Parent POM. This is generally useful because you can define common properties that Maven can leverage, even for local builds. For example, one can declare properties for y

Re: Enforce rules defined outside the pom.xml or its parent

2019-03-27 Thread Bernd Eckenfels
It’s not what you where asking, but many rules can and should be put into a common parent - helps with local builds as well. Maven enforcer can use rules on the command line it seems: https://issues.apache.org/jira/plugins/servlet/mobile#issue/MENFORCER-142 Besides that some static analysis wi

Enforce rules defined outside the pom.xml or its parent

2019-03-27 Thread Martin D'Aloia
Hello, Is it possible to enforce a set of rules defined outside the pom.xml being built (i.e. not defined in the current pom or in a parent pom)? Ideally, I would like to define maven-enforcer-plugin rules in an external pom.xml and evaluate them over the pom.xml being build in order to not force

Re: A import B and B should import A where it is included

2019-03-27 Thread Matthieu BROUILLARD
As Anthony said as you have a chicken-egg problem and you need to break the cycle somehow. To cut the loop I would eventually either: Solution 1: split the projects into: 1. the library itself without tests 2. the test library, depending on the lib 3. the library tests depending on both

Maven sure fire report skip count issue

2019-03-27 Thread Atul Hake
Dear team, I am re running failed TC using IRetryAnalyzer. If i have 3 TC . 1st pass 2nd fail..retried.again fail. so run count is 3 , pass=1,fail =1 , skip =1. Its correct. now i want to remove skip count from report so i have written code at OnFinish method [see attachmen] to remove skip cou

Maven Release Plugin : SCM- Jazz

2019-03-27 Thread Anisha Rahamathullah (RBEI/ETB2)
Hello, We use Maven release plugin with Jazz repository for automated release. While performing deliver operation below command is used. "scm deliver --repository-uri --username --password * --source --target --overwrite-uncommitted" Internally we have configured commit rules in our r

Continuous Delivery / Continuous Deployment with the Maven Release Plugin

2019-03-27 Thread Stephen Connolly
So I wrote a blog post on how we use the Maven Release Plugin with Jenkins to do Continuous Delivery and Continuous Deployment in the DevOptics team of CloudBees. If you are interested it's at: https://www.cloudbees.com/blog/apache-maven-continuous-deliverydeployment-devoptics-teams-approach The