Hi,
I have a large pl/sql based application and the PL/SQL source is split over multiple directories, one for each schema.
For example
db/schema1/
db/schema2/
db/schema3/
However I can only provide one directory and it wont work if its the top level directory (i.e. db/). I have been able to specify multiple file types fine, ie <includes>.pks,.pkb</includes> but cannot do the same for the directories as it fails.
Could you please enhance the config so that a list can be provided, either via comma separated, or via config in the pom,
perhaps:
<sourcedirectories>
</sourcedirectories>
db/schema1 db/schema2 db/schema3
Thanks.
Last edit: Steve 2013-06-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have not tried the above scenario just yet, but I also work in an environment where our code is split across multiple directories. In our case the code is split by functional module rather than schema, though for the most part that amounts to the same thing.
It would be great if PLDoc would support a more incremental build scenario. Then each Module, or Schema could be processed individually adding (or updating) the requisite object documents and the higher level documentation indexes would be updated to reflect the new and/or changed lower level documentation pages.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Version 3.0.0 and greater allow the normal Maven mechanism for specifying files for processing, allowing multiple source directories and multiple include/exclude filters:-
Great, thanks Stuart! However I'm getting an error when I plug this into my pom:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.1:site (default-cli) on project xxx: failed to get report for net.sourceforge.pldoc:maven-pldoc-plugin: Plugin net.sourceforge.pldoc:maven-pldoc-plugin:3.0.1 or one of its dependencies could not be resolved: Failed to collect dependencies for net.sourceforge.pldoc:maven-pldoc-plugin:jar:3.0.1 (): No versions available for net.sourceforge.pldoc:pldoc:jar:[1.5.5,) within specified range -> [Help 1]
Hi again,
The issue is the open ended version in the deployed pom. I edited this locally to just 1.5.5 and it works. Maven 3.0.3. Could you deploy a version of the plugin that doesnt have the open ended version? Cheers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whilst I am doing that, can you try "mvn -U" - I remember a similar problem at work after a release. I recall that the problem disappeared 3? ways:-
1) explicitly add the pldoc dependency
2) mvn -U (update snapshots)
3) wait - the problem seemed to solve itself, possibly by the Maven cache timing out
Ok yep, forcing the update via -U solved it, and I didnt need to specify the pldoc version. Nice. This was Maven 3.0.3 btw. I encountered a couple of other errors and will file them separately.
Thanks for this Stuart.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a large pl/sql based application and the PL/SQL source is split over multiple directories, one for each schema.
For example
db/schema1/
db/schema2/
db/schema3/
However I can only provide one directory and it wont work if its the top level directory (i.e. db/). I have been able to specify multiple file types fine, ie <includes>.pks,.pkb</includes> but cannot do the same for the directories as it fails.
Could you please enhance the config so that a list can be provided, either via comma separated, or via config in the pom,
perhaps:
<sourcedirectories>
</sourcedirectories>
Thanks.
Last edit: Steve 2013-06-27
That sounds like a good idea - I will look at how the Maven plugin passes parameters to the Ant task.
Amended:
The Ant task was well-behaved and allowed multiple directories.
The Maven plugin was passing in one directory
Last edit: Stuart Turton 2013-07-22
I have not tried the above scenario just yet, but I also work in an environment where our code is split across multiple directories. In our case the code is split by functional module rather than schema, though for the most part that amounts to the same thing.
It would be great if PLDoc would support a more incremental build scenario. Then each Module, or Schema could be processed individually adding (or updating) the requisite object documents and the higher level documentation indexes would be updated to reflect the new and/or changed lower level documentation pages.
I had a quick look at incremental update whilst seeing how to merge PLSCOPE information into the generated application.xml.
I will look at this after checking out the multi-directory Maven plugin
Try version 3.0.1.
Before 3.0.0, only one source directory could be specified.
Version 3.0.0 and greater allow the normal Maven mechanism for specifying files for processing, allowing multiple source directories and multiple include/exclude filters:-
Great, thanks Stuart! However I'm getting an error when I plug this into my pom:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.1:site (default-cli) on project xxx: failed to get report for net.sourceforge.pldoc:maven-pldoc-plugin: Plugin net.sourceforge.pldoc:maven-pldoc-plugin:3.0.1 or one of its dependencies could not be resolved: Failed to collect dependencies for net.sourceforge.pldoc:maven-pldoc-plugin:jar:3.0.1 (): No versions available for net.sourceforge.pldoc:pldoc:jar:[1.5.5,) within specified range -> [Help 1]
This is my build block in my POM:
~~~~~
<build>
<plugins>
<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-site-plugin</artifactid>
<version>3.0</version>
<configuration>
<reportplugins>
<plugin>
<groupid>net.sourceforge.pldoc</groupid>
<artifactid>maven-pldoc-plugin</artifactid>
<version>3.0.1</version>
<configuration>
<applicationtitle>XXX</applicationtitle>
<filesets>
<fileset>
<directory>DatabaseSource/CoreSource</directory>
<includes>
<include>/*.pks</include>
<include></include>/*.pkb
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</reportplugins>
</configuration>
</plugin>
</plugins>
</build>
~~~~~
Hi again,
The issue is the open ended version in the deployed pom. I edited this locally to just 1.5.5 and it works. Maven 3.0.3. Could you deploy a version of the plugin that doesnt have the open ended version? Cheers.
I'll take a look at it.
What Maven version?
Whilst I am doing that, can you try "mvn -U" - I remember a similar problem at work after a release. I recall that the problem disappeared 3? ways:-
1) explicitly add the pldoc dependency
2) mvn -U (update snapshots)
3) wait - the problem seemed to solve itself, possibly by the Maven cache timing out
How I explicitly add the pldoc dependency
...
Ok yep, forcing the update via -U solved it, and I didnt need to specify the pldoc version. Nice. This was Maven 3.0.3 btw. I encountered a couple of other errors and will file them separately.
Thanks for this Stuart.