Skip to content

Commit f9457be

Browse files
committed
feat(build): add exec-maven-plugin for UVA problem execution
1 parent 488f3f6 commit f9457be

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<maven.compiler.source>21</maven.compiler.source>
1616
<maven.compiler.target>21</maven.compiler.target>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<problem>p140</problem>
1819
</properties>
1920

2021
<dependencies>
@@ -113,6 +114,22 @@
113114
<version>3.0.0-M7</version>
114115
</plugin>
115116

117+
<plugin>
118+
<groupId>org.codehaus.mojo</groupId>
119+
<artifactId>exec-maven-plugin</artifactId>
120+
<version>3.5.0</version>
121+
<configuration>
122+
<executable>java</executable>
123+
<arguments>
124+
<argument>-cp</argument>
125+
<argument>${project.build.directory}/classes</argument>
126+
<argument>com.lzw.solutions.uva.${problem}.Main</argument>
127+
<argument>&lt;</argument>
128+
<argument>src/main/resources/uva/${problem}/1.in</argument>
129+
</arguments>
130+
</configuration>
131+
</plugin>
132+
116133
</plugins>
117134
</build>
118135
</project>

0 commit comments

Comments
 (0)