Bonjour, j'essaye d'utiliser le plugin exec-maven-plugin
Voici mon code
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <version>1.6.0</version> <executions> <execution> <id>npm install</id> <goals> <goal>exec</goal> </goals> <phase>generate-resources</phase> <configuration> <executable>${node.directory}/${npm.executable}</executable> <arguments> <argument>install</argument> </arguments> <workingDirectory>src/main/angular2/tourism</workingDirectory> <target> <echo message="Npm install" /> </target> </configuration> </execution> </executions> </plugin>
Et voici mon arborescence
Et j'ai l'erreur suivante
Pourriez vous m'aider ? Merci/Users/admin/Application-Marwen/workspace/Tourism/Tourism-Web/node/npm: line 34: node: command not found
Partager