1
0
-1

Hi guys, are ok ?


I´m trying to install and build source-code community edition, for develop, debug and test bean shell features im my pc, but the build failure in step "6. Skipping Build Test" to compile wflow-plugin-base, from "Build Source Code on Windows" manual (Build Source Code on Windows).


See error below:

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

[INFO] Reactor Summary for wflow-app 7.0-SNAPSHOT:

[INFO]

[INFO] wflow-jdbc ......................................... SUCCESS [  1.013 s]

[INFO] wflow-commons ...................................... SUCCESS [  3.985 s]

[INFO] wflow-plugin-base .................................. FAILURE [  5.195 s]

[INFO] wflow-plugin-archetype ............................. SKIPPED

[INFO] wflow-directory .................................... SKIPPED

[INFO] wflow-wfengine ..................................... SKIPPED

[INFO] wflow-core ......................................... SKIPPED

[INFO] wflow-consoleweb ................................... SKIPPED

[INFO] wflow-app .......................................... SKIPPED

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

[INFO] BUILD FAILURE

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

[INFO] Total time:  10.468 s

[INFO] Finished at: 2022-09-29T12:36:55-03:00

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

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project wflow-plugin-base: There are test failures.


My pom in wflow-commons directory below:

<build>

        <plugins>

            <plugin>

                <artifactId>maven-compiler-plugin</artifactId>

                <version>2.0.2</version>

                <configuration>

                    <source>1.7</source>

                    <target>1.7</target>

                </configuration>

            </plugin>

            <plugin>

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

                <artifactId>maven-surefire-plugin</artifactId>

                <version>2.4.3</version>

                <configuration>

                    <skipTests>true</skipTests>

                </configuration>

            </plugin>

        </plugins>


My pom in wflow-plugin-base directory below:

 <plugin>

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

                <artifactId>maven-surefire-plugin</artifactId>

                <version>2.4.3</version>

                <configuration>

                    <skipTests>false</skipTests>

                </configuration>

                <executions>

                    <execution>

                        <id>integration-test</id>

                        <phase>integration-test</phase>

                        <goals>

                            <goal>test</goal>

                        </goals>

                        <configuration>

                            <skipTests>true</skipTests>

                        </configuration>

                    </execution>

                </executions>

            </plugin>


My pom in wflow-consoleweb directory below:


<plugin>

                <groupId>org.codehaus.mojo</groupId>

                <artifactId>tomcat-maven-plugin</artifactId>

                <version>1.0</version>

                <configuration>

                    <port>8080</port>

                    <warSourceDirectory>${project.basedir}/target/jw</warSourceDirectory>

                </configuration>

            </plugin>

            <plugin>

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

                <artifactId>maven-war-plugin</artifactId>

                <version>3.8.6</version>

                <configuration>

                    <archive>

                        <manifestEntries>

                            <Dependencies>org.omg.api</Dependencies>

                        </manifestEntries>

                    </archive>

                </configuration>

            </plugin>            


  1. Bastiana

    Can you find the exact error printout? Not enough info to go through.

  2. Paulo

    Hi, the top of TEST execution error below:

    -------------------------------------------------------

     T E S T S

    -------------------------------------------------------

    Running org.joget.plugin.base.TestPluginManager

    15:26:16.577 [main] ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@3c818ac4] to prepare test instance [org.joget.plugin.base.TestPluginManager@5b69d40d]

    java.lang.IllegalStateException: Failed to load ApplicationContext

CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1

    Hi, did you set up the datasource correctly for the test cases? Try to complete all the steps in Build Source Code on Windows#4.ConfigureDatasourceforTestCase.

      CommentAdd your comment...