vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
205 stars 127 forks source link

Trace properties used in build process #3842

Open chenejac opened 1 year ago

chenejac commented 1 year ago

Print (echo) properties used by Maven such as java version, maven version, tomcat-dir, vivo-dir.

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>echo-properties</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <skip>false</skip>
                            <target>
                                <echo message="###################################################################" />
                                <echo message="Displaying value of '${project.artifactId}' properties" />
                                <echo message="###################################################################" />
                                <echo message="[app-name]                   ${app-name}" />
                                <echo message="[vivo-dir]                   ${vivo-dir}" />
                                <echo message="[tomcat-dir]                 ${tomcat-dir}" />
                                <echo message="[default-theme]              ${default-theme}" />
                                <echo message="[vitro-version]              ${vitro-version}" />
                                <echo message="[vivo-version]               ${vivo-version}" />
                                <echo message="[vivo-dir]                   ${vivo-dir}" />
                                <echo message="[project.version]            ${project.version}" />
                                <echo message="[java.vendor.version]        ${java.vendor.version}" />
                                <echo message="[java.version]               ${java.version}" />
                                <echo message="[java.specification.version] ${java.specification.version}" />
                                <echo message="[maven.compiler.release]     ${maven.compiler.release}" />
                                <echo message="###################################################################" />
                                <echo message="###################################################################" />
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!--Allows you to list all the properties used by Maven. Do <skip>false</skip> to activate the plugin-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>echo-all-properties</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <skip>true</skip>
                            <target>
                                <echoproperties />
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>