2021-05-12 23:47:03 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2021-08-02 14:57:15 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2021-05-12 23:47:03 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>maven-printing-plugins</artifactId>
|
|
|
|
<name>maven-printing-plugins</name>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>parent-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
<relativePath>../..</relativePath>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2024-03-15 17:37:49 -04:00
|
|
|
<version>${maven-antrun-plugin.version}</version>
|
2021-05-12 23:47:03 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>antrun-plugin</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
2023-05-23 12:32:15 -04:00
|
|
|
<echo message="Hello, world"/>
|
|
|
|
<echo message="Embed a line break: ${line.separator}"/>
|
2021-08-02 14:57:15 -04:00
|
|
|
<echo message="Build dir: ${project.build.directory}"
|
2023-05-23 12:32:15 -04:00
|
|
|
level="info"/>
|
2021-05-12 23:47:03 -04:00
|
|
|
<echo file="${basedir}/logs/log-ant-run.txt" append="true"
|
2023-05-23 12:32:15 -04:00
|
|
|
message="Save to file!"/>
|
2021-05-12 23:47:03 -04:00
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.ekryd.echo-maven-plugin</groupId>
|
|
|
|
<artifactId>echo-maven-plugin</artifactId>
|
2024-03-15 17:37:49 -04:00
|
|
|
<version>${echo-maven-plugin.version}</version>
|
2021-05-12 23:47:03 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>echo-maven-plugin-1</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>echo</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2021-05-19 21:27:09 -04:00
|
|
|
<message>
|
|
|
|
Hello, world
|
|
|
|
Embed a line break: ${line.separator}
|
2021-09-19 14:34:26 -04:00
|
|
|
ArtifactId is
|
|
|
|
${project.artifactId}
|
2021-05-19 21:27:09 -04:00
|
|
|
</message>
|
2021-05-12 23:47:03 -04:00
|
|
|
<level>INFO</level>
|
|
|
|
<toFile>/logs/log-echo.txt</toFile>
|
|
|
|
<append>true</append>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.gmaven</groupId>
|
|
|
|
<artifactId>groovy-maven-plugin</artifactId>
|
2024-03-15 17:37:49 -04:00
|
|
|
<version>${groovy-maven-plugin.version}</version>
|
2021-05-12 23:47:03 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>execute</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<source>
|
|
|
|
log.info('Test message: {}', 'Hello, World!')
|
|
|
|
log.info('Embed a line break {}', System.lineSeparator())
|
2021-09-19 14:34:26 -04:00
|
|
|
log.info('ArtifactId is: ${project.artifactId}')
|
2021-05-12 23:47:03 -04:00
|
|
|
log.warn('Message only in debug mode')
|
|
|
|
</source>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2021-08-02 14:57:15 -04:00
|
|
|
|
2024-03-15 17:37:49 -04:00
|
|
|
<properties>
|
|
|
|
<maven-antrun-plugin.version>3.0.0</maven-antrun-plugin.version>
|
|
|
|
<echo-maven-plugin.version>1.3.2</echo-maven-plugin.version>
|
|
|
|
<groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version>
|
|
|
|
</properties>
|
|
|
|
|
2021-08-02 14:57:15 -04:00
|
|
|
</project>
|