Spring boot - Maven - Exclude folder not working -
i have spring boot app , project structure follows.
project |__src/main/java |__src/main/resources |_static | |_css | |_fonts | |_node_modules | |_src |_templates
i exclude node_modules build. have entry in pom exclude folder, not working.
pom.xml,
<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.xxxx</groupid> <artifactid>xxxx</artifactid> <version>0.0.1-snapshot</version> <packaging>jar</packaging> <name>xxxx</name> <description>test</description> <parent> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>1.3.0.release</version> <relativepath /> <!-- lookup parent repository --> </parent> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <start-class>com.nervytech.dialer.dialerapplication</start-class> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-security</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-thymeleaf</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-jdbc</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-data-jpa</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-websocket</artifactid> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-messaging</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-test</artifactid> <scope>test</scope> </dependency> <dependency> <groupid>net.sourceforge.nekohtml</groupid> <artifactid>nekohtml</artifactid> </dependency> <dependency> <groupid>javax.inject</groupid> <artifactid>javax.inject</artifactid> <version>1</version> </dependency> <dependency> <groupid>findbugs</groupid> <artifactid>annotations</artifactid> <version>1.0.0</version> </dependency> <dependency> <groupid>javax.mail</groupid> <artifactid>mail</artifactid> <version>1.4.1</version> </dependency> <dependency> <groupid>org.springframework.security</groupid> <artifactid>spring-security-messaging</artifactid> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-websocket</artifactid> </dependency> <dependency> <groupid>org.springframework.integration</groupid> <artifactid>spring-integration-mail</artifactid> </dependency> <dependency> <groupid>org.scala-lang</groupid> <artifactid>scala-library</artifactid> <version>2.10.4</version> </dependency> <dependency> <groupid>org.neo4j</groupid> <artifactid>neo4j-cypher-compiler-2.1</artifactid> <version>2.1.2</version> </dependency> <dependency> <groupid>javax.json</groupid> <artifactid>javax.json-api</artifactid> <version>1.0</version> </dependency> <dependency> <groupid>org.glassfish</groupid> <artifactid>javax.json</artifactid> <version>1.0.4</version> </dependency> <dependency> <groupid>commons-lang</groupid> <artifactid>commons-lang</artifactid> <version>2.4</version> </dependency> <dependency> <groupid>commons-collections</groupid> <artifactid>commons-collections</artifactid> <!-- <version>3.2.1</version> --> </dependency> <dependency> <groupid>com.oracle</groupid> <artifactid>ucp</artifactid> <version>11.2.0.3</version> </dependency> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> </dependency> <dependency> <groupid>javax.json</groupid> <artifactid>javax.json-api</artifactid> <version>1.0</version> </dependency> <dependency> <groupid>com.amazonaws</groupid> <artifactid>aws-java-sdk</artifactid> <version>1.10.37</version> </dependency> <dependency> <groupid>com.fasterxml.uuid</groupid> <artifactid>java-uuid-generator</artifactid> <version>3.1.3</version> </dependency> <dependency> <groupid>com.eaio.uuid</groupid> <artifactid>uuid</artifactid> <version>3.2</version> </dependency> <dependency> <groupid>org.neo4j</groupid> <artifactid>neo4j-cypher-compiler-2.1</artifactid> <version>2.1.5</version> </dependency> <dependency> <groupid>com.twilio.sdk</groupid> <artifactid>twilio-java-sdk</artifactid> <version>4.0.1</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.apache.httpcomponents</groupid> <artifactid>httpclient</artifactid> </dependency> <dependency> <groupid>org.apache.httpcomponents</groupid> <artifactid>httpcore</artifactid> </dependency> <dependency> <groupid>com.google.code.gson</groupid> <artifactid>gson</artifactid> </dependency> <dependency> <groupid>com.thoughtworks.xstream</groupid> <artifactid>xstream</artifactid> <version>1.4.8</version> </dependency> <dependency> <groupid>org.opensaml</groupid> <artifactid>opensaml</artifactid> <version>2.5.1-1</version> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-tomcat</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-data-rest</artifactid> </dependency> <dependency> <groupid>org.neo4j</groupid> <artifactid>neo4j-cypher-compiler-2.0</artifactid> <version>2.0.3</version> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-batch</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-social-facebook</artifactid> </dependency> <dependency> <groupid>org.neo4j</groupid> <artifactid>neo4j-graph-algo</artifactid> <version>2.1.5</version> </dependency> <dependency> <groupid>net.wimpi</groupid> <artifactid>telnetd-x</artifactid> <version>2.1.1</version> </dependency> <dependency> <groupid>org.neo4j</groupid> <artifactid>neo4j-cypher-commons</artifactid> <version>2.1.5</version> </dependency> <dependency> <groupid>net.sf.ehcache</groupid> <artifactid>ehcache-core</artifactid> <version>2.4.3</version> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-jersey</artifactid> </dependency> <dependency> <groupid>commons-httpclient</groupid> <artifactid>commons-httpclient</artifactid> <version>3.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> </plugin> <plugin> <artifactid>maven-resources-plugin</artifactid> <version>2.7</version> </plugin> </plugins> </build> <repositories> <repository> <id>spring-snapshots</id> <name>spring snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>spring milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginrepositories> <pluginrepository> <id>spring-snapshots</id> <name>spring snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginrepository> <pluginrepository> <id>spring-milestones</id> <name>spring milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginrepository> </pluginrepositories> <profiles> <profile> <id>prod</id> <build> **<resources> <resource> <filtering>true</filtering> <directory>src/main/resources/static/node_modules</directory> <excludes> <exclude>**/*.*</exclude> </excludes> </resource> </resources>** </build> </profile> </profiles> </project>
<directory>src/main/resourecs/static</directory>
do have typo in real pom ? resources ?
Comments
Post a Comment