Foros de discusión

Exclude files from src/main/webapp in maven.

shailendra singh, modificado hace 7 años.

Exclude files from src/main/webapp in maven.

New Member Mensajes: 7 Fecha de incorporación: 11/04/16 Mensajes recientes
I am using maven to create theme and want to exclude some files/folders from src/main/webapp but I am not able to do. I have tried below link

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

to do exclude resources but theme-merge is always copying the resources. Is there any way to exclude some of resources?
I am using Liferay 6.2 CE GA6.
thumbnail
Antoine Comble, modificado hace 7 años.

RE: Exclude files from src/main/webapp in maven.

Regular Member Mensajes: 232 Fecha de incorporación: 7/09/12 Mensajes recientes
Hello,

With the code below in my pom.xml file, i am able to exclude the .sass-cache folder and its contents.


<plugin>
				<artifactid>maven-war-plugin</artifactid>
				<configuration>
					<webresources>
						<resource>
							<directory>${basedir}/src/main/webapp/WEB-INF</directory>
							<filtering>true</filtering>
							<targetpath>WEB-INF</targetpath>
							<includes>
								<include>liferay-plugin-package.properties</include>
								<include>liferay-plugin-package.xml</include>
								<include>liferay-look-and-feel.xml</include>
							</includes>
						</resource>
					</webresources>
					<packagingexcludes>**/.sass-cache/**</packagingexcludes>
				</configuration>
			</plugin>


Regards,

Antoine