I am trying integrate bower in my maven webapp here is my pom.xml and and bower.json but i was failed to download the dependencies. this here is my pom.xml and bower.json files.And one more question does i need the nodejs or npm help to download the dependencies ?
bower.json:
{
"name": "Bower1",
"version": "1.0.0",
"description": "javaee7-angular JavaScript dependencies.",
"private": true,
"dependencies": {
"angular": "1.2.0",
"jquery": "1.9.1",
"angular-bootstrap": "0.10.0",
"angular-grid": "2.0.7"
}
}
pom.xml:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>Bower1</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>bower</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>${basedir}/src/main/webapp</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>