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

rocker-maven-plugin templateDirectory #145

Open
sysmat opened this issue Sep 28, 2020 · 0 comments
Open

rocker-maven-plugin templateDirectory #145

sysmat opened this issue Sep 28, 2020 · 0 comments

Comments

@sysmat
Copy link

sysmat commented Sep 28, 2020

  • plugin version: 1.3.0

  • rocker compiler version: 1.3.0

  • java: 1.8

  • pom.xml

<plugin>
                <groupId>com.fizzed</groupId>
                <artifactId>rocker-maven-plugin</artifactId>
                <version>1.3.0</version>
                <configuration>                    
                    <templateDirectory>./src/main/resources/rockerview</templateDirectory>
                    <classDirectory>./src/main/java/rockerview</classDirectory>
                    <outputDirectory>./src/main/java/rockerview</outputDirectory>
                </configuration>                
                 <executions>                   
                    <execution>
                        <id>generate-rocker-templates</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
  • I have templates in resources/rockerview package and referring to templates with rockerview

I got a build error:

  bad source file: C:\Users\tomaz\Documents\NetBeansProjects\GitLab_Arnes\portal-hub\arnes-guest-account\kdo\src\main\java\rockerview\contactsFrag.java
    file does not contain class rockerview.contactsFrag
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.

Is there any documentation of plugin, how to have a folder structure, pom configuration, and template referencing?

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

1 participant