Maven не встраивает файлы activjs в мой jar-файл - PullRequest
0 голосов
/ 01 октября 2018

Я использую exec-maven-plugin для запуска моей сборки maven, чтобы встроить мой проект activjs в мой jar-файл, однако он работает нормально, но когда я захожу в jar-файл, ни один из файлов activjs отсутствует - только мои классы javaприсутствуют.


Мой pom.xml выглядит следующим образом:

<plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>exec-maven-plugin</artifactId>
     <executions>
         <execution>
             <id>exec-npm-install</id>
             <phase>generate-sources</phase>
             <configuration>                  
                  <workingDirectory>${project.basedir}src\main\app</workingDirectory>
                  <executable>npm.cmd</executable>
                  <arguments>
                       <argument>install</argument>
                  </arguments>
             </configuration>
             <goals>
                 <goal>exec</goal>
             </goals>
        </execution>
        <execution>
                    <id>exec npm build</id>
                    <phase>generate-sources</phase>
                    <configuration>
                        <workingDirectory>${project.basedir}/src/main/app</workingDirectory>
                        <executable>npm.cmd</executable>
                        <arguments>
                            <argument>run-script</argument>
                            <argument>build</argument>                      
                        </arguments>
                    </configuration>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                </execution>
    </executions>
</plugin>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...