Hi,

Please see in-line comments below :)

vgpande wrote:
Hey thanx, its working with the maven-surefire-plugin and generating the site
even, but with clover even after geerating the site it shown the error along
with the following warning:

Do you have any idea how this can be resolved?

[INFO] [clover:instrumentInternal]
[WARNING] No Clover instrumentation done as no matching sources files found
The project that you're building here has sources right?

[INFO] [ear:generate-application-xml]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Artifact[jar:com.novartis.ecdms:Common] has 2 candidates, please
provide a classifier.
[INFO]
------------------------------------------------------------------------
Common is one of the submodules of the parent ecdms.And what does it mean by
2 candidates?

I think this means that it was able to get 2 artifacts with the same groupId, artifactId, version and packaging type so its relying on the classifier (e.g. sources, test-sources, etc)
to identify which of the two artifacts it would use.


Thanks,
Deng

Maria Odea Ching-2 wrote:
Hi,

I think surefire-report-maven-plugin is already under Apache (so groupId should be: org.apache.maven.plugins),
that might be the cause of your error :-)

Thanks,
Deng

vgpande wrote:
Hi all,

With maven I have successfully executed the test and got the cobertura
coverage report.But the instance I modified the Project Object Model for
JavaNCSS,Source XRef and Tag List alongwith maven surefire report, the
site
generation fails.My reporting section contains the following :

                
                        
                                org.apache.maven.plugins
                                maven-project-info-reports-plugin
                        
                        
                                org.apache.maven.plugins
                                maven-jxr-plugin
                        
                        
                                org.codehaus.mojo
                                surefire-report-maven-plugin
                        
                        
                                org.codehaus.mojo
                                taglist-maven-plugin
                        
                        
                                org.apache.maven.plugins
                                maven-javadoc-plugin
                        
                        
                                org.apache.maven.plugins
                                maven-checkstyle-plugin
                                
                                        ecdms-checks.xml
                                
                        
                        
                                org.apache.maven.plugins
                                maven-pmd-plugin
                        
                        
                                org.codehaus.mojo
                                cobertura-maven-plugin
                        
                        
                                org.codehaus.mojo
                                javancss-maven-plugin
                                
                        
                        
                                org.codehaus.mojo
                                jdepend-maven-plugin
                                
                        
                        
                                org.codehaus.mojo
                                findbugs-maven-plugin
                        
        

And the error stacktrace is as below:
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.j
ava:198)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java
:487)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleEx
ecutor.java:1292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.j
ava:657)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.j
ava:637)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
.java:512)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec
ycleExecutor.java:475)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
java:454)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
ifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
xecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)



Can anybody please throw some light where am I going wrong?
---------------------------------------------------------------------
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]

Reply via email to