में विशिष्ट कक्षाओं के लिए रिपोर्ट पीढ़ी को अनदेखा करना मैं रिपोर्ट पीढ़ी और वाद्ययंत्र (निश्चित रूप से) के लिए कोबर्टूरा प्लगइन का उपयोग कर रहा हूं। यहां समस्या का सामना करना पड़ रहा है:कोबर्टुरा मेवेन प्लगइन
मैं प्लगइन को मेरी परियोजना में विशिष्ट कक्षाओं के लिए रिपोर्ट पीढ़ी को अनदेखा करने में असमर्थ हूं। pom.xml से संबंधित अंश नीचे
पीएफ, मैं टैग की अनदेखी को शामिल किया है, लेकिन वह सिर्फ नजरअंदाज कर दिया कक्षाओं के लिए उपकरण पर ध्यान नहीं देता।
मैं चाहता हूं कि विशिष्ट परियोजनाओं के लिए रिपोर्ट बिल्कुल उत्पन्न न हो।
सबसे पहले, मेवेन और कॉन्बर्टर दोनों के सीमित ज्ञान के कारण, मैं जानना चाहता हूं कि यह संभव है, और यदि हां, तो मुझे pom.xml में किए जाने वाले परिवर्तनों में क्या परिवर्तन हैं।
pom.xml
<report>
<!-- other plugins exist but are not important to be listed here I guess -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
<systemProperties>
<property>
<name>net.sourceforge.cobertura.datafile</name>
<value>target/cobertura/cobertura.ser</value>
</property>
</systemProperties>
</configuration>
</plugin>
<!-- The following is the plugin for cobertura, which takes care of integration and report generation-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<check>
<branchRate>50</branchRate>
<lineRate>50</lineRate>
<haltOnFailure>true</haltOnFailure>
<totalBranchRate>50</totalBranchRate>
<totalLineRate>50</totalLineRate>
<packageLineRate>50</packageLineRate>
<packageBranchRate>50</packageBranchRate>
</check>
<instrumentation>
<ignores>
<ignore>deshaw.dportal.alert.*</ignore>
<ignore>deshaw.dportal.atc.*</ignore>
<ignore>deshaw.dportal.basket.*</ignore>
<ignore>deshaw.dportal.fcs.*</ignore>
<ignore>deshaw.dportal.event.*</ignore>
<ignore>deshaw.dportal.filings.*</ignore>
<ignore>deshaw.dportal.glg.*</ignore>
<ignore>deshaw.dportal.icp.*</ignore>
</ignores>
</instrumentation>
</configuration>
</plugin>
</report>
संपादित करें:
यह मेरा निर्देशिका संरचना:
module
|
|-apps
| |-alert
| | |-src
| | |-target
| | |-pom.xml
| |-------------------
| |-company
| | |-src
| | |-target
| | |-pom.xml
|-----------------------
|-jobs
| |-job1
| | |-src
| | |-target
| | |-pom.xml
| |-job2
| | |-src
| | |-target
| | |-pom.xml
मैं मॉड्यूल/pom.xml में निम्नलिखित की कोशिश की
<instrumentation>
<excludes>
<exclude>**/apps/*.*</exclude>
</excludes>
</instrumentation>
मुझे अभी भी अलर्ट और कंपनी निर्देशिका दोनों में उत्पन्न होने वाली रिपोर्ट मिलती है।
शायद रीगेक्स को बाहर करना सही नहीं है?
मैं खुद इस मुद्दे को देख रहा हूं। और यह बेहद परेशान है क्योंकि मुझे बहुत सारे कवरेज मिलते हैं जिन्हें अनदेखा नहीं किया जाता है। किसी भी कामकाजी कामकाज? –
अब तक एकमात्र संभावित कामकाज है, जिसमें बच्चे पीओएम में प्लगइन शामिल है, बच्चों के लिए आप रिपोर्ट तैयार करना चाहते हैं। इसके अलावा, ऐसा करने के लिए कोई अन्य व्यवहार्य तरीका AFAIK नहीं है। – Neeraj
यह बग अब हाल ही में कोबर्टुरा मेवेन प्लगइन के संस्करण 2.5.2 में तय किया गया है – Ben