Hello,
Okay so I have found out what the problem was. I have in my pom.xml
the following (snippet here)
<dependency>
<groupId>acegisecurity</groupId>
<artifactId>acegi-security</artifactId>
<version>0.7.0</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>spring-core</artifactId>
<groupId>springframework</groupId>
</exclusion>
</exclusions>
</dependency>
This causes site a problem. I assume it is because I am using
exclusions to not include the version of Spring this guy depends on,
which is 1.3. We use a later version of Spring (it is not an option to
upgrade to a later version of acegi nor is it an option to downgrade
Spring).
Any idea how I can compile and run site using the above?
Regards,
Douglas WF Acheson
On Fri, 2006-05-12 at 13:43 -0500, Wayne Fay wrote:
> Just for now, yes, I would exclude those dependencies manually in your
> pom, and specifically include the proper (relocated) dependencies.
>
> This is all trying to get your site generated properly. Once that
> works, then you can start optimizing your pom.
>
> Wayne
>
> On 5/12/06, Douglas WF Acheson <[EMAIL PROTECTED]> wrote:
> > Thx for the input! I have thought of that, but quickly realized I do
> > not directly depend upon those artifats, they are transient
> > dependencies. Does it make sense that I modify the pom files in my
> > local repo to use exclude those dependencies? That could be a lot of
> > work, just to have it change when a new update comes in. And how would
> > that work for others on my team who need to run site?
> >
> > Thanks again ...
> >
> > dwfa
> >
> >
> > On Fri, 2006-05-12 at 12:51 -0500, Wayne Fay wrote:
> > > Based on those "... has been relocated..." statements, I would modify
> > > your dependencies to pull the artifacts from the org.springframework,
> > > javax.servlet, etc locations and see if that doesn't resolve your
> > > problems.
> > >
> > > Wayne
> > >
> > > On 5/12/06, Douglas WF Acheson <[EMAIL PROTECTED]> wrote:
> > > > I am really stuck on this site thing (like a dog with a bone).
> > > >
> > > > I need to get a site up and running to show my boss :-(). I have gotten
> > > > a little farther. When I run mvn site:site I get one html file
> > > > integration.html
> > > > But, the goal fails on creating the dependencies.html file (report) with
> > > > the exception
> > > >
> > > > [INFO] Generate "Dependencies" report.
> > > > [DEBUG] While downloading springframework:spring-context:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-context:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading servletapi:servletapi:2.3
> > > > This artifact has been relocated to javax.servlet:servlet-api:2.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-webmvc:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-webmvc:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading xml-apis:xml-apis:2.0.2
> > > > This artifact has been relocated to xml-apis:xml-apis:1.0.b2.
> > > >
> > > >
> > > > [DEBUG] While downloading jstl:jstl:1.0.2
> > > > This artifact has been relocated to javax.servlet:jstl:1.0.2.
> > > >
> > > >
> > > > [DEBUG] While downloading servletapi:servletapi:2.3
> > > > This artifact has been relocated to javax.servlet:servlet-api:2.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-mock:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-mock:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-web:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-web:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-orm:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-orm:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-dao:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-dao:1.1.3.
> > > >
> > > >
> > > > [DEBUG] While downloading springframework:spring-aop:1.1.3
> > > > This artifact has been relocated to
> > > > org.springframework:spring-aop:1.1.3.
> > > >
> > > >
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [ERROR] FATAL ERROR
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [INFO] null
> > > > [INFO]
> > > > ------------------------------------------------------------------------
> > > > [DEBUG] Trace
> > > > java.lang.NullPointerException
> > > > at
> > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:82)
> > > > at
> > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
> > > > at
> > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:467)
> > > > at
> > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:225)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.getMavenProjectFromRepository(DependenciesReport.java:456)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.printDescriptionsAndURLs(DependenciesReport.java:392)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.printDescriptionsAndURLs(DependenciesReport.java:429)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.printDescriptionsAndURLs(DependenciesReport.java:429)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.printDescriptionsAndURLs(DependenciesReport.java:429)
> > > > at org.apache.maven.report.projectinfo.DependenciesReport
> > > > $DependenciesRenderer.renderBody(DependenciesReport.java:277)
> > > > at
> > > > org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
> > > > at
> > > > org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:97)
> > > > at
> > > > org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101)
> > > > at
> > > > org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67)
> > > > at
> > > > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
> > > > at
> > > > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
> > > > at
> > > > org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
> > > > at
> > > > org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
> > > > at
> > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> > > > at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> > > > at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
> > > > at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> > > > at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> > > > at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.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)
> > > >
> > > >
> > > > If I could get a hold of the source I would try and trace through it,
> > > > but I cannot get access to svn.apache.org.
> > > >
> > > > dwfa
> > > >
> > > >
> > > > On Thu, 2006-05-11 at 21:19 +0530, Vinod Panicker wrote:
> > > > > Hi,
> > > > >
> > > > > On 5/11/06, Douglas WF Acheson <[EMAIL PROTECTED]> wrote:
> > > > > > Okay, now I am more confused :-). I have been trying run the goal
> > > > > > site
> > > > > > for a few days with no luck. I believe I have tried all the
> > > > > > suggestions
> > > > > > that have been provided (thanks to everyone).
> > > > > >
> > > > > > I have the latest plugins, got this by using the -U option and
> > > > > > added
> > > > > > the snapshot repository to my pom. But, I am still getting the same
> > > > > > NPE. It seems there are arguments that need to be provided to use
> > > > > > site
> > > > > > (or one of its dependencies), but I do not know where to find this
> > > > > > out
> > > > > > this information.
> > > > >
> > > > > Whatever snapshots you are using in your project, please download the
> > > > > sources and for each of them, do an 'mvn install'. This should take
> > > > > care of the NPE, IMO. I was having a similar problem and it went away
> > > > > when I compiled and installed the snapshot jars myself.
> > > > >
> > > > > Regards,
> > > > > Vinod.
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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]
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]