Thanks for your feedback Dennis..
We were able to resolve this issue, when we commented out this
particular dependency:
> <dependency>
> <groupId>com.sun</groupId>
> <artifactId>tools</artifactId>
> <version>1.5</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> </dependencies>
However, we are unable to diagnose the exact cause for this. Is this
because of the <scope> or <systemPath> elements that are not readable by
the Maven Project Info Reports Plugin?
Thanks,
Venkat
-----Original Message-----
From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2008 7:34 AM
To: Maven Users List
Subject: Re: Problem with dependencies report generation during
site:site
I tried your POM. Here are my findings:
[WARNING] While downloading javax.xml:jaxws-api:2.0
This artifact has been relocated to javax.xml.ws:jaxws-api:2.0.
suggests that you should change the groupId for that dependency.
The following jars are not available in the central repo, so I had to
comment them out to be able to build:
<dependency>
<groupId>com.sun.xml</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>javax.jws</groupId>
<artifactId>jsr181-api</artifactId>
<version>1.0</version>
</dependency>
I have not seen the exception you had, but the stack trace indicates
that one of the jars are not readable for the Maven Project Info Reports
Plugin, when it is creating the Dependencies report. Since I don't get
the error I suspect that it is one of the three above.
Krishnamurthi, Venkat wrote:
> Thanks a lot for your help! Please find the pom.xml below
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>asap</groupId>
> <artifactId>quasi</artifactId>
> <packaging>jar</packaging>
> <version>2.0-SNAPSHOT</version>
> <name>Quantum Project</name>
>
> <properties>
> <property name="buildNumber" value="${env.label}" />
> </properties>
>
> <dependencies>
>
> <dependency>
> <groupId>com.sun.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0</version>
> </dependency>
>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jsr173</artifactId>
> <version>1.0</version>
> </dependency>
>
> <dependency>
> <groupId>com.sun.xml</groupId>
> <artifactId>jaxws-rt</artifactId>
> <version>2.0</version>
> </dependency>
>
> <dependency>
> <groupId>javax.jms</groupId>
> <artifactId>jms</artifactId>
> <version>1.1</version>
> </dependency>
>
> <dependency>
> <groupId>javax.jws</groupId>
> <artifactId>jsr181-api</artifactId>
> <version>1.0</version>
> </dependency>
>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.0</version>
> </dependency>
>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxws-api</artifactId>
> <version>2.0</version>
> </dependency>
>
> <dependency>
> <groupId>javax.transaction</groupId>
> <artifactId>jta</artifactId>
> <version>1.0.1B</version>
> </dependency>
>
> <dependency>
> <groupId>com.sun</groupId>
> <artifactId>tools</artifactId>
> <version>1.5</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> </dependencies>
>
> <build>
> <finalName>${artifactId}-${version}-${label}</finalName>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> <excludes>
> <exclude>org/**/*.java</exclude>
> </excludes>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <executions>
> <execution>
> <id>distribution-bin</id>
> <phase>package</phase>
> <goals>
> <goal>assembly</goal>
> </goals>
> <configuration>
> <descriptorId>src</descriptorId>
> <descriptors>
>
> <descriptor>etc/qas-bin-assembly.xml</descriptor>
>
> <descriptor>etc/xenv-assembly.xml</descriptor>
> </descriptors>
> <!--
>
> <finalName>qas-${project.version}</finalName>
> -->
>
> <finalName>${artifactId}-${version}-${label}</finalName>
>
> <finalName>${artifactId}-${version}-${label}</finalName>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> </plugins>
> </build>
>
> </project>
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2008 3:20 PM
> To: Maven Users List
> Subject: Re: Problem with dependencies report generation during
> site:site
>
> If you supply us with a POM we might be able to help you.
>
>
> Krishnamurthi, Venkat wrote:
>> Hi,
>>
>> I'm using maven 2.0.7 and I'm getting the following error during
>> dependencies report generation stage of site:site:
>>
>>
>>
>>
>> Maven Site Plugin
>>
>> [INFO] Generating "Dependencies" report.
>>
>> [INFO]
>> ---------------------------------------------------------------------
>> -
>> --
>>
>> [ERROR] FATAL ERROR
>>
>> [INFO]
>> ---------------------------------------------------------------------
>> -
>> --
>>
>> [INFO] null
>>
>> [INFO]
>> ---------------------------------------------------------------------
>> -
>> --
>>
>> [INFO] Trace
>> java.lang.NullPointerException
>>
>> at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:165)
>> at
>> org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarCla
>> s
>> se
>> sAnalysis.java:92) at
>> org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarD
>> e
>> pe
>> ndencyDetails(Dependencies.java:285) at
>> org.apache.maven.report.projectinfo.dependencies.renderer.Dependencie
>> s Re nderer.renderSectionDependencyFileDetails(Depende
>>
>> nciesRenderer.java:426)
>>
>> at
>> org.apache.maven.report.projectinfo.dependencies.renderer.Dependencie
>> s
>> Re
>> nderer.renderBody(DependenciesRenderer.java:233) at
>> org.apache.maven.reporting.AbstractMavenReportRenderer.render(Abstrac
>> t
>> Ma
>> venReportRenderer.java:65) at
>> org.apache.maven.report.projectinfo.DependenciesReport.executeReport(
>> D
>> ep
>> endenciesReport.java:228) at
>> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven
>> R
>> ep
>> ort.java:90) at
>> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(R
>> e
>> po
>> rtDocumentRenderer.java:139) at
>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
>> D
>> ef
>> aultSiteRenderer.java:269) at
>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
>> t
>> Si
>> teRenderer.java:101) at
>> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129
>> )
>>
>> at
>> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
>>
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> n
>> Ma
>> nager.java:447) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> u
>> lt
>> LifecycleExecutor.java:539) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> f
>> ec
>> ycle(DefaultLifecycleExecutor.java:480) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> l
>> tL
>> ifecycleExecutor.java:459) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> d
>> le
>> Failures(DefaultLifecycleExecutor.java:311) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> t
>> s(
>> DefaultLifecycleExecutor.java:278) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> f
>> ec
>> ycleExecutor.java:143)
>>
>> at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>> at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> j
>> av
>> a:39) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> s
>> or
>> Impl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:324)
>>
>> 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)
>>
>>
>> Please help me resolve this issue.
>>
>> Thanks,
>> venkat
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Dennis Lundberg
>
> ---------------------------------------------------------------------
> 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]
>
>
--
Dennis Lundberg
---------------------------------------------------------------------
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]