mvn verify not working -- missing pom.xml for bonita-test-toolkit

 

Issue with missing POM.xml for bonitasoft-test-toolkit

 

When I try to run the mvn verify command I’m getting this error from toolkit

 

 

However I have extracted (using winzip) the pom.xml from the executable jar file

 

 

 

and placed it inside the same folder as the jar for toolkit

 

 

But I still get this error message

 

[WARNING] The POM for com.bonitasoft:bonita-test-toolkit:jar:1.0.1 is missing, no dependency information available

 

And it appears my test doesn’t actually run…

 

(all the test > target folders are empty… no class files are created)

 

 

================  the terminal stdout ===============

 

PS C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject> mvn verify -f "C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\pom.xml"

[INFO] Scanning for projects...

[INFO]

[INFO] ------------< com.company.bonita.test:bonita-process-test >-------------

[INFO] Building Bonita process test 1.0.0-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[WARNING] The POM for com.bonitasoft:bonita-test-toolkit:jar:1.0.1 is missing, no dependency information available

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bonita-process-test ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\src\main\resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bonita-process-test ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bonita-process-test ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\src\test\resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ bonita-process-test ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bonita-process-test ---

[INFO]

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ bonita-process-test ---

[INFO] Building jar: C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\target\bonita-process-test-1.0.0-SNAt\bonita-process-test-1.0.0-SN

[INFO] Building jar: C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\targe

t\bonita-process-test-1.0.                                                            st ---

[INFO] Building jar: C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject\target\bonita-process-test-1.0.0-SNAPSHOT.jar

[INFO]

[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (default) @ bonita-process-test ---[INFO]

[INFO] --- maven-failsafe-plugin:2.22.2:verify (default) @ bonita-process-test ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  20.567 s

[INFO] Finished at: 2022-12-30T17:05:42-05:00

[INFO] ------------------------------------------------------------------------

PS C:\BonitaStudioCommunity-2022.2-u0\workspace\testingproject>

 

================  the pom for testingproject

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.company.bonita.test</groupId>

    <artifactId>bonita-process-test</artifactId>

    <version>1.0.0-SNAPSHOT</version>

    <name>Bonita process test</name>

    <description>Maven project to test Bonita processes</description>

 

    <properties>

        <!-- maven -->

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <maven.compiler.source>11</maven.compiler.source>

        <maven.compiler.target>11</maven.compiler.target>

        <maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>

        <maven-dependency-plugin.version>3.2.0</maven-dependency-plugin.version>

 

        <!-- Bonita -->

        <bonita-test-toolkit.version>1.0.1</bonita-test-toolkit.version>

 

        <!-- Test -->

        <junit.version>5.9.1</junit.version>

        <assertj-core.version>3.23.1</assertj-core.version>

        <awaitility.version>4.2.0</awaitility.version>

    </properties>

 

    <dependencyManagement>

        <dependencies>

            <dependency>

                <groupId>org.junit</groupId>

                <artifactId>junit-bom</artifactId>

                <version>${junit.version}</version>

                <type>pom</type>

                <scope>import</scope>

            </dependency>

        </dependencies>

    </dependencyManagement>

 

    <dependencies>

        <dependency>

            <groupId>com.bonitasoft</groupId>

            <artifactId>bonita-test-toolkit</artifactId>

            <version>1.0.1</version>

            <scope>test</scope>

        </dependency>

        <dependency>

            <groupId>org.junit.jupiter</groupId>

            <artifactId>junit-jupiter-engine</artifactId>

            <scope>test</scope>

        </dependency>

        <dependency>

            <groupId>org.assertj</groupId>

            <artifactId>assertj-core</artifactId>

            <version>${assertj-core.version}</version>

            <scope>test</scope>

        </dependency>

        <dependency>

            <groupId>org.awaitility</groupId>

            <artifactId>awaitility</artifactId>

            <version>${awaitility.version}</version>

            <scope>test</scope>

        </dependency>

        <dependency>

        <groupId>ch.qos.logback</groupId>

        <artifactId>logback-classic</artifactId>

        <version>1.2.10</version>

        <scope>test</scope>

        </dependency>

    </dependencies>

 

    <build>

        <pluginManagement>

            <plugins>

                <plugin>

                    <groupId>org.apache.maven.plugins</groupId>

                    <artifactId>maven-failsafe-plugin</artifactId>

                    <version>${maven-failsafe-plugin.version}</version>

                </plugin>

            </plugins>

        </pluginManagement>

 

        <plugins>

          <plugin>

            <groupId>org.apache.maven.plugins</groupId>

            <artifactId>maven-failsafe-plugin</artifactId>

            <executions>

                <execution>

                    <goals>

                        <goal>integration-test</goal>

                        <goal>verify</goal>

                    </goals>

                </execution>

            </executions>

          </plugin>

        </plugins>

    </build>

</project>

 

 

 

=================  the LeaveRequestIT.java test file

 

package com.company.bonita.test;

 

import static com.bonitasoft.test.toolkit.predicate.ProcessInstancePredicates.*;

import static com.bonitasoft.test.toolkit.predicate.UserTaskPredicates.*;

import static org.assertj.core.api.Assertions.assertThat;

import static org.awaitility.Awaitility.await;

 

import java.util.List;

import com.bonitasoft.test.toolkit.BonitaTestToolkit;

import com.bonitasoft.test.toolkit.contract.ComplexInputBuilder;

import com.bonitasoft.test.toolkit.contract.ContractBuilder;

import com.bonitasoft.test.toolkit.junit.extension.BonitaTests;

import com.bonitasoft.test.toolkit.model.BusinessData;

import com.bonitasoft.test.toolkit.model.BusinessObjectDAO;

import com.bonitasoft.test.toolkit.model.Task;

import com.bonitasoft.test.toolkit.model.QueryParameter;

import org.junit.jupiter.api.BeforeEach;

import org.junit.jupiter.api.Test;

import org.junit.jupiter.api.extension.RegisterExtension;

 

@BonitaTests

class LeaveRequestIT {

 

    @BeforeEach

    void beforeEach(BonitaTestToolkit toolkit){

        toolkit.deleteBDMContent();

        toolkit.deleteProcessInstances();

    }

 

    @RegisterExtension

    static BonitaTestExtension bonitaExtension = new BonitaTestExtension();

 

    @Test

    void should_create_an_approved_leave_request(BonitaTestToolkit toolkit) { 

        var user = toolkit.getUser("walter.bates");

        var processDef = toolkit.getProcessDefinition("LeaveRequest");

        final BusinessObjectDAO<BusinessData> businessObjectDAO = toolkit.getBusinessObjectDAO("com.company.bonitasoft.model.LeaveRequest");

 

        assertThat(businessObjectDAO.find(0, 10)).isEmpty();

 

        var processInstance = processDef.startProcessFor(user);

 

        await().until(processInstance, processInstanceStarted()

                .and(containsPendingUserTasks("Validate request")));

 

        var complexInputBuilder = ComplexInputBuilder.complexInput()

                .booleanInput("isApproved", true);

        var task1Contract = ContractBuilder.newContract().complexInput("requestInput", complexInputBuilder).build();

        var task1 = processInstance.getFirstPendingUserTask("Validate request");

 

        await().until(task1, hasCandidates(user)

                .and(taskReady()));

 

        task1.execute(user, task1Contract);

 

        await().until(task1, taskArchived());

        await().until(processInstance, processInstanceArchived());

        // assertThat(processInstance.searchTasks()).map(Task::getName).containsExactlyInAnyOrder("Validate request");

        assertThat(processInstance.getFirstTask("Notify request rejected").isArchived()).isTrue();

 

        // Data assertions

        final List<BusinessData> result = businessObjectDAO.query("findRequestorId",

                        List.of(QueryParameter.stringParameter("requestorId")), 0, 10);

 

                assertThat(request.getBooleanField("isApproved")).isTrue();

            };

    }

 

 

 

Hi,

The bonita-test-toolkit is an Enterprise only value. You’ll need to request an access token for the Bonita Artifact Repository.

HTH
Romain

so I have the Bonita Artifact Repository now... but the toolkit is not compiling...

================  

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.069 s
[INFO] Finished at: 2023-01-19T16:41:56-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify "C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\tests\LeaveRequestCheck\pom.xml"
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 42 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 60 kB/s)       
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.104 s
[INFO] Finished at: 2023-01-19T16:46:04-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\RRegner\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

==============  

these are my java and maven versions 

 


C:\Users\RRegner>java -version
java version "11.0.16.1" 2022-08-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

C:\Users\RRegner>mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

 

so I have the Bonita Artifact Repository now... but the toolkit is not compiling...

================  

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.069 s
[INFO] Finished at: 2023-01-19T16:41:56-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify "C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\tests\LeaveRequestCheck\pom.xml"
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 42 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 60 kB/s)       
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.104 s
[INFO] Finished at: 2023-01-19T16:46:04-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\RRegner\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

==============  

these are my java and maven versions 

 


C:\Users\RRegner>java -version
java version "11.0.16.1" 2022-08-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

C:\Users\RRegner>mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

 

Hi Rudy,

as explained in documentation, 
https://documentation.bonitasoft.com/test-toolkit/1.0/quick-start

just run `mvn verify`

You must invoke the verify goal in your command.

mvn verify

Reference documentation

HTH.
Romain

Hi,

Did you configure your settings.xml to have access to the bonita-test-toolkit dependency ?

Hi Rudy,

Did you solve your issue ? Do you have an Enterprise subscription or did you think the lib was available for community edition ?

Thanks for the follow up.
Romain

Hi, as explained by Romain,

Bonita Test Toolkit is not available on maven Central.

The Bonita Artifact Repository requires credential, included in Bonita Subscription. Please open an issue in your Customer Service Center to get them.

Regards,

Laurent

thank you... I have the bonita test-toolkit repo artifact now.

it's failing to build:

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.069 s
[INFO] Finished at: 2023-01-19T16:41:56-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify "C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\tests\LeaveRequestCheck\pom.xml"
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 42 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 60 kB/s)       
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.104 s
[INFO] Finished at: 2023-01-19T16:46:04-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\RRegner\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

============  here are my versions of mvn and java

C:\Users\RRegner>java -version
java version "11.0.16.1" 2022-08-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

C:\Users\RRegner>mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

thank you... I have the bonita test-toolkit repo artifact now.

it's failing to build:

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.069 s
[INFO] Finished at: 2023-01-19T16:41:56-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify "C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\tests\LeaveRequestCheck\pom.xml"
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 42 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 kB at 60 kB/s)       
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.104 s
[INFO] Finished at: 2023-01-19T16:46:04-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\RRegner\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

============  here are my versions of mvn and java

C:\Users\RRegner>java -version
java version "11.0.16.1" 2022-08-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

C:\Users\RRegner>mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Users\RRegner\Downloads\apache-maven-3.8.6
Java version: 11.0.16.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11.0.16.1
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

thanks Laurent... 

now the build is successful

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------< LeaveRequestTest:LeaveRequestCheck >-----------------
[INFO] Building MVC 1.0 Blank Project (from https://github.com/making/mvc-1.0-blank) 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ LeaveRequestCheck ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ LeaveRequestCheck ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ LeaveRequestCheck ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ LeaveRequestCheck ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ LeaveRequestCheck ---
[INFO] 
[INFO] --- maven-war-plugin:2.3:war (default-war) @ LeaveRequestCheck ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.converters.collections.TreeMapConverter (file:/C:/Users/RRegner/.m2/repository/com/thoughtworks/xstream/xstream/1.4.3/xstream-1.4.3.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.converters.collections.TreeMapConverter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Packaging webapp
[INFO] Assembling webapp [LeaveRequestCheck] in [C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\target\LeaveRequestCheck-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in [28 msecs]
[INFO] Building war: C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\target\LeaveRequestCheck-1.0-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.925 s
[INFO] Finished at: 2023-01-20T13:35:39-05:00
[INFO] ------------------------------------------------------------------------

 

thanks Laurent... 

now the build is successful

PS C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject> mvn verify
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------< LeaveRequestTest:LeaveRequestCheck >-----------------
[INFO] Building MVC 1.0 Blank Project (from https://github.com/making/mvc-1.0-blank) 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ LeaveRequestCheck ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ LeaveRequestCheck ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ LeaveRequestCheck ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ LeaveRequestCheck ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ LeaveRequestCheck ---
[INFO] 
[INFO] --- maven-war-plugin:2.3:war (default-war) @ LeaveRequestCheck ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.converters.collections.TreeMapConverter (file:/C:/Users/RRegner/.m2/repository/com/thoughtworks/xstream/xstream/1.4.3/xstream-1.4.3.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.converters.collections.TreeMapConverter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Packaging webapp
[INFO] Assembling webapp [LeaveRequestCheck] in [C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\target\LeaveRequestCheck-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in [28 msecs]
[INFO] Building war: C:\BonitaStudioSubscription-2022.2-u1\workspace\testingproject\target\LeaveRequestCheck-1.0-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.925 s
[INFO] Finished at: 2023-01-20T13:35:39-05:00
[INFO] ------------------------------------------------------------------------