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

Tables page is overwritten when no schema #15

Open
mrpotes opened this issue Aug 24, 2012 · 2 comments
Open

Tables page is overwritten when no schema #15

mrpotes opened this issue Aug 24, 2012 · 2 comments

Comments

@mrpotes
Copy link

mrpotes commented Aug 24, 2012

I'm using the plugin to generate a report on a derby database, and the tables page has been overwritten by a generated by maven report type page. I think this is because when there's no schema, the table information is generated to schemaspy/index.html, but that is also where the AbstractMavenReport generates its output, because of the following in SchemaSpyReport:

public String getOutputName() {
    return "schemaspy/index";
}
@mrpotes
Copy link
Author

mrpotes commented Aug 24, 2012

This is really a bug that has been fixed in core maven - it can be fixed for your plugin by uplifting the maven-reporting-impl version to 2.2.

So to workaround this issue, you can do:

<plugin>
    <groupId>com.wakaleo.schemaspy</groupId>
    <artifactId>maven-schemaspy-plugin</artifactId>
    ...
    <dependencies>
        <dependency>
            <groupId>org.apache.maven.reporting</groupId>
            <artifactId>maven-reporting-impl</artifactId>
            <version>2.2</version>
        </dependency>
    </dependencies>
</plugin>

@ndsurendra
Copy link

Oh, this saved my day! Thanks!

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

No branches or pull requests

2 participants