I am using the maven plugin minify-maven-pluginto minimize my frontend project. This works fine when I go through the dos window to the frontend project and execute mvn clean install, but when I execute mvn clean installin the main pom in my reactor project, I get the following exception:
Failed to execute target com.samaxes.maven: minify-maven-plugin: 1.7.4: minify (default-minify) in my.project-frontend project: Run default-minify target com.samaxes.maven: minify -maven-plugin : 1.7.4: minify failed: basedir./src/main/resources/public/app/. not exis
Does anyone know what to do to make this work?
Below is the corresponding plugin configuration:
<plugin>
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7.4</version>
<executions>
<execution>
<id>default-minify</id>
<phase>prepare-package</phase>
<configuration>
<charset>UTF-8</charset>
<skipMerge>true</skipMerge>
<nosuffix>true</nosuffix>
<closureCompilationLevel>WHITESPACE_ONLY</closureCompilationLevel>
<webappSourceDir>src/main/resources/public/app</webappSourceDir>
<webappTargetDir>${project.build.outputDirectory}/public/app</webappTargetDir>
<cssSourceDir>./</cssSourceDir>
<cssSourceIncludes>
<cssSourceInclude>**/*.css</cssSourceInclude>
</cssSourceIncludes>
<jsSourceDir>./</jsSourceDir>
<jsSourceIncludes>
<jsSourceInclude>**/*.js</jsSourceInclude>
</jsSourceIncludes>
<jsEngine>CLOSURE</jsEngine>
</configuration>
<goals>
<goal>minify</goal>
</goals>
</execution>
</executions>
</plugin>