Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please make the output directory configurable #12

Open
everflux opened this issue Jul 6, 2021 · 6 comments
Open

Please make the output directory configurable #12

everflux opened this issue Jul 6, 2021 · 6 comments

Comments

@everflux
Copy link

everflux commented Jul 6, 2021

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

@sualeh
Copy link
Collaborator

sualeh commented Jul 6, 2021

@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
Copy link
Author

everflux commented Jul 6, 2021

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

@sualeh
Copy link
Collaborator

sualeh commented Jul 6, 2021

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

@sualeh
Copy link
Collaborator

sualeh commented Jul 9, 2021

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

@everflux
Copy link
Author

everflux commented Jul 9, 2021

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
Copy link
Collaborator

sualeh commented Jul 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants