You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fernando Lindner (JIRA)" <ji...@codehaus.org> on 2007/01/25 15:35:44 UTC
[jira] Created: (MJXR-21) Jxr plugin fails if xdoclet executed
without sources generation
Jxr plugin fails if xdoclet executed without sources generation
---------------------------------------------------------------
Key: MJXR-21
URL: http://jira.codehaus.org/browse/MJXR-21
Project: Maven 2.x JXR Plugin
Issue Type: Bug
Reporter: Fernando Lindner
Priority: Critical
JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Commented: (JXR-37) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Patrice Bertrand (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/JXR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98567 ]
Patrice Bertrand commented on JXR-37:
-------------------------------------
mvn site by istelf runs fine.
The problem occurs when the site is built during a mvn release:perform.
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: JXR-37
> URL: http://jira.codehaus.org/browse/JXR-37
> Project: Maven JXR
> Issue Type: Bug
> Components: maven2 jxr plugin
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Updated: (MJXR-21) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJXR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MJXR-21:
--------------------------------
Attachment: MJXR-21.zip
Here's a complete test project based on Fernando's webdoclet config. When I run
mvn site
on this project it works without any errors. Note that the workaround has been commented out in the pom.
Unless someone can produce a complete test-case for this I am going to postpone this issue to a later release.
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: MJXR-21
> URL: http://jira.codehaus.org/browse/MJXR-21
> Project: Maven 2.x JXR Plugin
> Issue Type: Bug
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Commented: (MJXR-21) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Fernando Lindner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJXR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88578 ]
Fernando Lindner commented on MJXR-21:
--------------------------------------
Dennis,
here comes a build tag example for this bug (It includes the workaround):
{code:xml}
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xdoclet-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<tasks>
<!-- start: workaround for MJXR-21 -->
<mkdir dir = "${project.build.directory}/generated-sources/xdoclet"/>
<!-- end: workaround for MJXR-21 -->
<webdoclet destdir = "${project.build.directory}/${project.build.finalName}/WEB-INF">
<fileset dir = "src/main/java">
<include name = "**/*.java"/>
</fileset>
<strutsconfigxml
version = "1.1"
destDir = "${project.build.directory}/${project.build.finalName}/WEB-INF"
mergeDir = "src/main/config/xdoclet-merge"/>
</webdoclet>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
{code}
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: MJXR-21
> URL: http://jira.codehaus.org/browse/MJXR-21
> Project: Maven 2.x JXR Plugin
> Issue Type: Bug
> Reporter: Fernando Lindner
> Priority: Critical
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Commented: (MJXR-21) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Fernando Lindner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJXR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85999 ]
Fernando Lindner commented on MJXR-21:
--------------------------------------
error log for "mvn site" execution, using a webdoclet task:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation
Embedded error: Error rendering Maven report: Error while generating the HTML source code of the projet.
basedir C:\projects\myProject\web\target\generated-sources\xdoclet does not exist
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: MJXR-21
> URL: http://jira.codehaus.org/browse/MJXR-21
> Project: Maven 2.x JXR Plugin
> Issue Type: Bug
> Reporter: Fernando Lindner
> Priority: Critical
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Moved: (JXR-37) Jxr plugin fails if xdoclet executed without
sources generation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/JXR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg moved MJXR-21 to JXR-37:
----------------------------------------
Key: JXR-37 (was: MJXR-21)
Project: Maven JXR (was: Maven 2.x JXR Plugin)
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: JXR-37
> URL: http://jira.codehaus.org/browse/JXR-37
> Project: Maven JXR
> Issue Type: Bug
> Components: maven2 jxr plugin
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Updated: (JXR-37) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/JXR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated JXR-37:
-------------------------------
Component/s: maven2 jxr plugin
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: JXR-37
> URL: http://jira.codehaus.org/browse/JXR-37
> Project: Maven JXR
> Issue Type: Bug
> Components: maven2 jxr plugin
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Commented: (MJXR-21) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJXR-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87783 ]
Dennis Lundberg commented on MJXR-21:
-------------------------------------
Can someone please provide an example pom.xml for this issue?
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: MJXR-21
> URL: http://jira.codehaus.org/browse/MJXR-21
> Project: Maven 2.x JXR Plugin
> Issue Type: Bug
> Reporter: Fernando Lindner
> Priority: Critical
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Closed: (JXR-37) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Fernando Lindner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/JXR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fernando Lindner closed JXR-37.
-------------------------------
Resolution: Won't Fix
Error occurs only in *org.codehaus.mojo* distribution plugin.
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: JXR-37
> URL: http://jira.codehaus.org/browse/JXR-37
> Project: Maven JXR
> Issue Type: Bug
> Components: maven2 jxr plugin
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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
[jira] Commented: (JXR-37) Jxr plugin fails if xdoclet executed
without sources generation
Posted by "Fernando Lindner (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/JXR-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99856 ]
Fernando Lindner commented on JXR-37:
-------------------------------------
Dennis,
Looking in your test project I got the solution for this issue: we are using different jxr plugin distributions.
My reporting/plugins tag was using the same *artifactId* and *groupId* from build/plugins tag (mojo):
{code:xml}
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jxr-maven-plugin</artifactId>
</plugin>
...
{code}
I changed to your sample project plugin configuration that uses a different *groupId* and *artifactId* in the reporting/plugin tag:
{code:xml}
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
...
{code}
Now my project is generating site without workaround.
Thanks a lot, I'll close the issue now.
> Jxr plugin fails if xdoclet executed without sources generation
> ---------------------------------------------------------------
>
> Key: JXR-37
> URL: http://jira.codehaus.org/browse/JXR-37
> Project: Maven JXR
> Issue Type: Bug
> Components: maven2 jxr plugin
> Reporter: Fernando Lindner
> Priority: Critical
> Attachments: MJXR-21.zip
>
>
> JXR plugin always tries to find directory "target/generated-sources/xdoclet" if a xdoclet execution is set. For instance, if a webdoclet task is used, no "target/generated-sources/xdoclet" directory should be created, resulting in a build error.
--
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