Skip to content

Commit

Permalink
Fix failing maven builds (fix #108) (#109)
Browse files Browse the repository at this point in the history
Key changes:
 - add bower_components and other front-end build folders into the clean list for mvn clean (to avoid the same issue in the future)
 - set the version of WebComponents polyfills to ^1.0.0 to match with the requirements of vaadin-board 1.0.1
  • Loading branch information
Viktor Lukashov authored Jul 18, 2017
1 parent 1f97ad6 commit eb4614f
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 44 deletions.
113 changes: 70 additions & 43 deletions precompiled/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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">
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.vaadin</groupId>
Expand All @@ -19,6 +19,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<frontend.working.directory>src/main/frontend</frontend.working.directory>
</properties>

<repositories>
Expand All @@ -36,48 +38,73 @@
</dependencies>

<build>
<resources>
<resource> <directory>src/main/generated-resources</directory></resource>
</resources>
<plugins>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-frontend-maven-plugin</artifactId>
<version>0.1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<nodeVersion>v6.9.1</nodeVersion>
<yarnVersion>v0.22.0</yarnVersion>
<workingDirectory>src/main/frontend</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration></configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/generated-resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${frontend.working.directory}/bower_components</directory>
</fileset>
<fileset>
<directory>${frontend.working.directory}/build</directory>
</fileset>
<fileset>
<directory>${frontend.working.directory}/etc</directory>
</fileset>
<fileset>
<directory>${frontend.working.directory}/node</directory>
</fileset>
<fileset>
<directory>${frontend.working.directory}/node_modules</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-frontend-maven-plugin</artifactId>
<version>0.1-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<nodeVersion>v6.9.1</nodeVersion>
<yarnVersion>v0.22.0</yarnVersion>
<workingDirectory>${frontend.working.directory}</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration></configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 1 addition & 1 deletion precompiled/src/main/frontend/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"dependencies": {
"vaadin-addons": "./vaadin-addons/bower.json",
"webcomponentsjs": "v1.0.0-rc.11"
"webcomponentsjs": "^1.0.0"
}
}

2 changes: 2 additions & 0 deletions precompiled/src/main/frontend/vaadin-addons/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# automatically generated by update-addons-html.js (part of `npm install`)
bower.json

0 comments on commit eb4614f

Please sign in to comment.