|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" |
2 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 3 | <modelVersion>4.0.0</modelVersion> |
5 | 4 |
|
|
117 | 116 | </configuration> |
118 | 117 | </plugin> |
119 | 118 | <plugin> |
120 | | - <groupId>org.codehaus.mojo</groupId> |
121 | | - <artifactId>exec-maven-plugin</artifactId> |
122 | | - <version>3.5.1</version> |
| 119 | + <groupId>org.apache.maven.plugins</groupId> |
| 120 | + <artifactId>maven-antrun-plugin</artifactId> |
| 121 | + <version>3.1.0</version> |
123 | 122 | <executions> |
124 | 123 | <!-- UVA Execution --> |
125 | 124 | <execution> |
126 | 125 | <id>run-uva</id> |
127 | 126 | <phase>verify</phase> |
128 | 127 | <goals> |
129 | | - <goal>exec</goal> |
| 128 | + <goal>run</goal> |
130 | 129 | </goals> |
131 | 130 | <configuration> |
132 | | - <executable>${java.home}/bin/java</executable> |
133 | | - <arguments> |
134 | | - <argument>-cp</argument> |
135 | | - <argument>${project.build.directory}/classes</argument> |
136 | | - <argument>com.lzw.solutions.uva.${problem}.Main</argument> |
137 | | - <argument>< src/main/resources/uva/${problem}/1.in</argument> |
138 | | - </arguments> |
| 131 | + <target> |
| 132 | + <echo message="Running UVA solution for ${problem}..." /> |
| 133 | + <java classname="com.lzw.solutions.uva.${problem}.Main" |
| 134 | + classpath="${project.build.directory}/classes" fork="true" failonerror="true"> |
| 135 | + <jvmarg value="-Djava.awt.headless=true" /> |
| 136 | + <redirector input="${basedir}/src/main/resources/uva/${problem}/1.in" /> |
| 137 | + </java> |
| 138 | + </target> |
139 | 139 | </configuration> |
140 | 140 | </execution> |
141 | 141 | <!-- Codeforces Execution --> |
142 | 142 | <execution> |
143 | 143 | <id>run-codeforces</id> |
144 | 144 | <phase>verify</phase> |
145 | 145 | <goals> |
146 | | - <goal>exec</goal> |
| 146 | + <goal>run</goal> |
147 | 147 | </goals> |
148 | 148 | <configuration> |
149 | | - <executable>${java.home}/bin/java</executable> |
150 | | - <arguments> |
151 | | - <argument>-cp</argument> |
152 | | - <argument>${project.build.directory}/classes</argument> |
153 | | - <argument>com.lzw.solutions.codeforces.${codeforcesProblem}.Main</argument> |
154 | | - <argument>< src/main/resources/codeforces/${codeforcesProblem}/1.in</argument> |
155 | | - </arguments> |
| 149 | + <target> |
| 150 | + <echo message="Running Codeforces solution for ${codeforcesProblem}..." /> |
| 151 | + <java classname="com.lzw.solutions.codeforces.${codeforcesProblem}.Main" |
| 152 | + classpath="${project.build.directory}/classes" fork="true" failonerror="true"> |
| 153 | + <jvmarg value="-Djava.awt.headless=true" /> |
| 154 | + <redirector |
| 155 | + input="${basedir}/src/main/resources/codeforces/${codeforcesProblem}/1.in" /> |
| 156 | + </java> |
| 157 | + </target> |
156 | 158 | </configuration> |
157 | 159 | </execution> |
158 | 160 | </executions> |
|
0 commit comments