[ http://jira.codehaus.org/browse/MSITE-20?page=all ]
Jason van Zyl moved MNG-945 to MSITE-20:
----------------------------------------
Version: (was: 2.0-beta-1)
Fix Version: (was: 2.0 (RC))
Component: (was: Plugins and Lifecycle)
(was: maven-site-plugin)
Workflow: jira (was: Maven)
Key: MSITE-20 (was: MNG-945)
Project: Maven 2.x Site Plugin (was: Maven 2)
> Handle project that contains no source
> --------------------------------------
>
> Key: MSITE-20
> URL: http://jira.codehaus.org/browse/MSITE-20
> Project: Maven 2.x Site Plugin
> Type: Bug
> Environment: trunk (290857)
> Reporter: Vincent Siveton
> Assignee: Brett Porter
>
>
> In a specific case, site plugin throws IllegalArgumentException if no source
> was defined.
> My project is a *main* parent project with the following structure:
> +- test/
> +- pom.xml
> In this case, the following exception is thrown when site:site is call.
> java.lang.IllegalStateException: basedir C:\temp\test\src\main\java does not
> exist
> at
> org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:539)
> at
> org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1343)
> at
> org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1309)
> at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1281)
> at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1275)
> at
> org.apache.maven.plugin.checkstyle.CheckstyleReport.getFilesToProcess(CheckstyleReport.java:387)
> at
> org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:244)
> at
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117)
> at
> org.apache.maven.doxia.DoxiaMojo.generateReportsPages(DoxiaMojo.java:813)
> at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:332)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:367)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:502)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:465)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:447)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:136)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
> 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: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)
> In my opinion, if no source was defined, I don't need a report.
> The proposed that the patch applies this rule but the generated site has
> project report link in the nav bar (so checkstyle.html is empty and
> apidocs\index.html doesnt exist)
> Thoughts?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]