Skip to content

rocker-maven-plugin templateDirectory #145

@sysmat

Description

@sysmat
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions