You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2005/12/03 02:48:50 UTC

Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Lukas, I see that you've closed
http://jira.codehaus.org/browse/MPPDF-53 as fixed in 2.5.

I must be doing something *else* wrong... I tried both updating from
svn and building it (maven plugin:install), and also declaring a
dependency on 2.5-SNAPSHOT, (which downloaded a new version) and all I
get is:

/svn/struts/current/tiles
$ maven pdf
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Attempting to download maven-pdf-plugin-2.5-SNAPSHOT.jar.
BUILD FAILED
Goal "pdf" does not exist in this project.
Total time: 2 seconds
Finished at: Fri Dec 02 18:40:42 MST 2005

I'm using Maven 1.0.2.  Any ideas what to try to get it to work?

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin

Posted by Lukas Theussl <lt...@apache.org>.
Done.

maven plugin:download 
-Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ 
-DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=2.5-SNAPSHOT


-Lukas


Wendy Smoak wrote:
> On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT
>>yet.
> 
> 
> Lukas, can you please publish a new snapshot of the m1 pdf plugin? 
> The 2.5-SNAPSHOT on cvs.apache.org is from October and does not
> include the fix for the title and copyright date.
> 
> Thank you!
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT
> yet.

Lukas, can you please publish a new snapshot of the m1 pdf plugin? 
The 2.5-SNAPSHOT on cvs.apache.org is from October and does not
include the fix for the title and copyright date.

Thank you!
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hmm, I see. I'm not sure but I don't think it's possible to do what you 
want because the pdf plugin is not multiproject aware - you cannot 
reference doc files from different sub-projects. You may try to use some 
pre- or post-goal to copy the needed files to the right location or try 
to generate the taglib reference in the build directory, if that's possible.

Let me know if you find a solution.

-Lukas



Wendy Smoak wrote:
> On 12/4/05, Lukas Theussl <lt...@apache.org> wrote:
> 
> 
>>>I've added this to xdocs/pdf-navigation.xml:
>>><item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>
>>
>>Where is the file shale-core/tagreference-taglib.xml located? I can't
>>find it anywhere in the checkout tree.
> 
> 
> It's not part of the source, it's generated by the taglib plugin.
> 
> After 'maven multiproject:site pdf' I have:
> 
> /svn/struts/current/shale/build
> $ find . -name tagreference-taglib.xml
> ./core-library/target/generated-xdocs/tagreference-taglib.xml
> 
> No idea where I got the path I mentioned above. :/
> 
> The HTML version does get copied:
> 
> /svn/struts/current/shale/build
> $ find . -name tagreference-taglib.html
> ./core-library/target/docs/tagreference-taglib.html
> ./target/docs/shale-core/tagreference-taglib.html
> 
> But that's not what the PDF plugin is looking for.
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/4/05, Lukas Theussl <lt...@apache.org> wrote:

> > I've added this to xdocs/pdf-navigation.xml:
> > <item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>
>
> Where is the file shale-core/tagreference-taglib.xml located? I can't
> find it anywhere in the checkout tree.

It's not part of the source, it's generated by the taglib plugin.

After 'maven multiproject:site pdf' I have:

/svn/struts/current/shale/build
$ find . -name tagreference-taglib.xml
./core-library/target/generated-xdocs/tagreference-taglib.xml

No idea where I got the path I mentioned above. :/

The HTML version does get copied:

/svn/struts/current/shale/build
$ find . -name tagreference-taglib.html
./core-library/target/docs/tagreference-taglib.html
./target/docs/shale-core/tagreference-taglib.html

But that's not what the PDF plugin is looking for.

Thanks,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.


> I've added this to xdocs/pdf-navigation.xml:
> <item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>

Where is the file shale-core/tagreference-taglib.xml located? I can't 
find it anywhere in the checkout tree.

> Thanks.  Really, checking out the source code and trying this yourself
> is going above and beyond the call of duty, 

It's easier than having to guess what you are doing... ;)

-Lukas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> Make that
>
> maven.docs.src=${basedir}/../xdocs
>
> but then it still fails with a duplicate id (sounds familiar by now,
> no?). I recommend again a pdf-navigation file and put ./ in front of the
> hrefs.

That works!  Thanks again. :)  I have (finally) changed the hrefs, and
I did add a separate pdf navigation file.  The PDF of the 'top level'
site is here:
   http://struts.apache.org/struts-shale/struts-shale.pdf

If you can stand Yet Another Question... now I'm having trouble
picking up a tagreference page from one of the sub-projects.

I've added this to xdocs/pdf-navigation.xml:
<item name="Core Tags"       href="/shale-core/tagreference-taglib.html"/>

$maven multiproject:site pdf

[java]     [java]
file:///c:/java/m1-repository/cache/maven-pdf-plugin-2.5-SNAPSHOT/plugin-resources/project2fo.xslt;
Line #175; Column #97; Can not load requested doc:
e:\svn\struts\current\shale\build\target\pdf\shale-core\tagreference-taglib.xml
(The system cannot find the file specified)

I think the file it's looking for starts out in:
E:\svn\struts\current\shale\build\core-library\target\pdf
But it doesn't seem to get copied to the right place, and you can see
that the page is blank in the pdf above.

Thanks.  Really, checking out the source code and trying this yourself
is going above and beyond the call of duty, but... it's here if you
are so inclined, again. :)

$ svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale
$ cd shale/build
$ maven pdf

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
> 
> It must be picking up maven.docs.src=../xdocs from the
> project.properties file, but that doesn't make sense when appended to
> target/pdf.

Make that

maven.docs.src=${basedir}/../xdocs

but then it still fails with a duplicate id (sounds familiar by now, 
no?). I recommend again a pdf-navigation file and put ./ in front of the 
hrefs.

Have fun!
-Lukas




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Wendy Smoak <ws...@gmail.com>.
On 12/2/05, Lukas Theussl <lt...@apache.org> wrote:

> I wanted to ask Arnaud about that, i saw the same thing too but thought
> it would be something special about my setup. It only happens right
> after upgrading the plugin.

Clearing the cache seems to be what fixed it here.  Strange... but it
WORKS!  The right title and date and everything.  This is great! 
Thanks so much for your work on this. :)

But... I've got one project where the build files live in a separate
directory structure, and it's not working for that one:

/svn/struts/current/shale/build
$ maven pdf
...
fo:fo:
    [echo] Generating e:\svn\struts\current\shale\build/target/pdf/project.fo fr
om ../xdocs/navigation.xml ...
    [java]
    [java] (Location of error unknown)XSLT Error (javax.xml.transform.Transforme
rException): java.io.FileNotFoundException: E:\svn\struts\current\shale\build\ta
rget\pdf\..\xdocs\navigation.xml (The system cannot find the path specified)

BUILD FAILED

It must be picking up maven.docs.src=../xdocs from the
project.properties file, but that doesn't make sense when appended to
target/pdf.

If you want to try it:
$ svn co http://svn.apache.org/repos/asf/struts/shale/trunk/ shale
$ cd shale/build
$ maven pdf

Thanks again,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: [m1] PDF Plugin (was: Re: Using the latest xdoc and multiproject plugins together)

Posted by Lukas Theussl <lt...@apache.org>.
Hi Wendy,

I wanted to ask Arnaud about that, i saw the same thing too but thought 
it would be something special about my setup. It only happens right 
after upgrading the plugin. I don't know what exactly fixed it, but 
after playing around a bit, running other goals, uninstalling and 
re-installing, clearing cache, etc., eventually it started working 
again. Sounds weird, but I really couldn't tell what made it run again.

Good luck and patience! :)
-Lukas

PS Don't declare a dependency on 2.5 as I haven't published the SNAPSHOT 
yet.



Wendy Smoak wrote:
> Lukas, I see that you've closed
> http://jira.codehaus.org/browse/MPPDF-53 as fixed in 2.5.
> 
> I must be doing something *else* wrong... I tried both updating from
> svn and building it (maven plugin:install), and also declaring a
> dependency on 2.5-SNAPSHOT, (which downloaded a new version) and all I
> get is:
> 
> /svn/struts/current/tiles
> $ maven pdf
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> 
> Attempting to download maven-pdf-plugin-2.5-SNAPSHOT.jar.
> BUILD FAILED
> Goal "pdf" does not exist in this project.
> Total time: 2 seconds
> Finished at: Fri Dec 02 18:40:42 MST 2005
> 
> I'm using Maven 1.0.2.  Any ideas what to try to get it to work?
> 
> Thanks,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org