schemacrawler / SchemaCrawler-Report-Maven-Plugin

Generate SchemaCrawler reports for Maven generated project websites
Eclipse Public License 2.0
8 stars 6 forks source link

Please make the output directory configurable #12

Open everflux opened 3 years ago

everflux commented 3 years ago

Currently the output is always placed in the 'site' directory. I would be great, if that could be customized.

sualeh commented 3 years ago

@everflux - I am happy to consider a pull request for this, since I am not up to date with the Maven site plugin. Would you be able to provide a PR?

everflux commented 3 years ago

I hope it is no big disappointment, but I am afraid it is not my area of expertise to help out on this.

sualeh commented 3 years ago

@everflux - I will take a look, but no promises.

sualeh commented 3 years ago

@everflux - I assumed you tried using '<outputDirectory>'. Please confirm that you tried that.

everflux commented 3 years ago

Thank you for mentioning this, I indeed forgot to point that out. I tried the following configuration:

       <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>us.fatehi</groupId>
                    <artifactId>schemacrawler-maven-plugin</artifactId>
                    <version>16.15.1.2</version>
                    <dependencies>
                        <dependency>
                            <groupId>com.h2database</groupId>
                            <artifactId>h2</artifactId>
                            <version>${h2.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>guru.nidi</groupId>
                            <artifactId>graphviz-java</artifactId>
                            <version>0.18.1</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <outputDirectory>/tmp/foo</outputDirectory>
                    </configuration>
                </plugin>
...
            </plugins>
        </pluginManagement>

Build:

ls -l /tmp/foo;  ./mvnw clean verify site > /dev/null; ls -l /tmp/foo
ls: cannot access '/tmp/foo': No such file or directory
2021-07-09T12:22:55.227+02:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
ls: cannot access '/tmp/foo': No such file or directory

If I do not oversee anything I believe the setting has not the desired effect.

sualeh commented 3 years ago

@everflux - I have marked this issue as "help wanted".