Skip to content

Commit

Permalink
[KOGITO-9434] Running requirements automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Jul 3, 2023
1 parent 84fd121 commit bcdbe6f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id>
<kogito.bom.version>2.0.0-SNAPSHOT</kogito.bom.version>
<maven.compiler.release>11</maven.compiler.release>
<maven.exec.plugin>1.6.0</maven.exec.plugin>
<version.compiler.plugin>3.8.1</version.compiler.plugin>
<version.failsafe.plugin>3.0.0-M7</version.failsafe.plugin>
<version.org.assertj>3.22.0</version.org.assertj>
Expand Down Expand Up @@ -123,7 +124,29 @@
</execution>
</executions>
</plugin>
</plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${maven.exec.plugin}</version>
<executions>
<execution>
<id>pip-install</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>-r</argument>
<argument>${project.basedir}/requirements.txt</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<kogito.bom.artifact-id>kogito-bom</kogito.bom.artifact-id>
<kogito.bom.version>2.0.0-SNAPSHOT</kogito.bom.version>
<maven.compiler.release>11</maven.compiler.release>
<maven.exec.plugin>1.6.0</maven.exec.plugin>
<version.compiler.plugin>3.8.1</version.compiler.plugin>
<version.failsafe.plugin>3.0.0-M7</version.failsafe.plugin>
<version.org.assertj>3.22.0</version.org.assertj>
Expand Down Expand Up @@ -123,6 +124,28 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${maven.exec.plugin}</version>
<executions>
<execution>
<id>pip-install</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>pip</executable>
<arguments>
<argument>install</argument>
<argument>-r</argument>
<argument>${project.basedir}/requirements.txt</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit bcdbe6f

Please sign in to comment.