Skip to content

Commit afff1c5

Browse files
committed
Add server profile
1 parent 6befb0a commit afff1c5

1 file changed

Lines changed: 24 additions & 19 deletions

File tree

‎apache-cxf/cxf-introduction/pom.xml‎

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,28 @@
2424
<version>${cxf.version}</version>
2525
</dependency>
2626
</dependencies>
27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.codehaus.mojo</groupId>
31-
<artifactId>exec-maven-plugin</artifactId>
32-
<executions>
33-
<execution>
34-
<phase>process-test-classes</phase>
35-
<goals>
36-
<goal>java</goal>
37-
</goals>
38-
<configuration>
39-
<mainClass>com.baeldung.cxf.introduction.Server</mainClass>
40-
</configuration>
41-
</execution>
42-
</executions>
43-
</plugin>
44-
</plugins>
45-
</build>
27+
<profiles>
28+
<profile>
29+
<id>server</id>
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.codehaus.mojo</groupId>
34+
<artifactId>exec-maven-plugin</artifactId>
35+
<executions>
36+
<execution>
37+
<phase>process-test-classes</phase>
38+
<goals>
39+
<goal>java</goal>
40+
</goals>
41+
<configuration>
42+
<mainClass>com.baeldung.cxf.introduction.Server</mainClass>
43+
</configuration>
44+
</execution>
45+
</executions>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
</profile>
50+
</profiles>
4651
</project>

0 commit comments

Comments
 (0)