Vaadin 7 works with Maven how to prevent style.css from changing style

I am using vaadin 7 and I am building it with maven.

There is a CSS file called 'the_name_of_myProject' / src / main / webapp / VAADIN / themes / mytheme / styles.css If I modify it in any way, my modifications are overridden by the next maven assembly. It seems that the file is always regenerated from cans.

What should I do if I want these modifications to survive?

I created my own theme with a different name, but that did not help, because its .css were redefined the same way.

Any advice is appreciated.

+4
source share
2 answers

Sass - CSS. :
Maven CSS Sass. css styles.scss.

+7

exec-maven-plugin pom.xml css maven. style.scss scss

<build>
<plugins>
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2.1</version>
        <executions>
            <execution>
                <phase>prepare-package</phase>
                <configuration>
                    <mainClass>com.vaadin.sass.SassCompiler</mainClass>
                    <workingDirectory>${project.basedir}</workingDirectory>
                    <arguments>
                        <argument>${project.build.directory}/${project.artifactId}-${project.version}/VAADIN/themes/myTheme/styles.scss</argument>
                        <argument>${project.build.directory}/${project.artifactId}-${project.version}/VAADIN/themes/myTheme/styles.css</argument>
                    </arguments>
                </configuration>
                <goals>
                    <goal>java</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>

+2

All Articles