I think this is the class where Java is exiting with 1 /ctakes-ytex/src/test/java/org/apache/ctakes/jdl/AppMainTest.java
btw my environment is MacOS and I notice yours is Windows, so the root cause why this class is giving you trouble is something I wouldn't be able to help you with. But some debug statements rather than asserts would tell you, I think. Peter On Mon, Apr 29, 2024 at 8:43 AM Peter Abramowitsch <pabramowit...@gmail.com> wrote: > Hi Gandhi > This project is an odd one in the sense that when you tell it to skip the > tests, it still goes through the effort in building up the db environment > that the tests would use. But in any case, for me it does build either > way. In the attached log, I've run a maven clean before doing the build > without tests. > > However, check my previous email about your issue. Whereas you'd narrowed > it down to a script, I found a line in your email which showed the error > within that script's execution: A java program: jdl running as App.Main > threw an assertion on one of the tasks connected with the mysql database it > was trying to configure. You could put some debugging statements in there > to see which one. > > Peter > > On Mon, Apr 29, 2024 at 4:55 AM gandhi rajan <gandhiraja...@gmail.com> > wrote: > >> Thanks for the insights Peter. I dint make it clear that I did ran the >> install on ytex module with test case execution toggled off. I used the >> following command - "mvn -e clean install -Dmaven.test.skip=true" and I >> still hit the same error. >> >> On digging deep, I could find that the build process is trying to execute >> "<ant antfile="build-setup.xml" dir="scripts" target="test.setup">" in >> build-main.xml which in turn is trying to invoke the following target in >> build.setup.xml: >> >> <target name="test.setup" description="setup properties and database for >> unit tests" >> depends="generateTestYtexProperties,templateToConfig,deleteTestDb"> >> <ant dir="data" target="all" inheritAll="true"/> >> </target> >> >> Did you try running this on a fresh setup Peter? >> >> On Sun, 28 Apr 2024 at 01:17, Peter Abramowitsch <pabramowit...@gmail.com >> > >> wrote: >> >> > Hi Gandhi >> > Your error appears to be at this line >> > >> > C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\scripts\data\build.xml:456: >> Java >> > returned: 1 >> > >> > A test application being run here: AppMain is in charge of loading a >> > temporary mysqldb that is used to test that part of ytex. For me it is >> > working, but if you can find a way to run that surefire test in the >> > debugger, you can find out why it's failing on one of the assertions. >> > Otherwise you can take this shortcut >> > >> > mvn <goal> -Dmaven.test.skip=true >> > >> > To build the project without running any tests. >> > >> > On Sat, Apr 27, 2024 at 7:35 AM gandhi rajan <gandhiraja...@gmail.com> >> > wrote: >> > >> > > Hi Sean, >> > > >> > > When I tried to build the complete ctakes suite, i get build failure >> for >> > > ctakes-ytex module with the following error: >> > > >> > > [ERROR] Failed to execute goal >> > > org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run >> > > (generate-test-config) on project ctakes-ytex: An Ant BuildException >> has >> > > occured: The following error occurred while executing this line: >> > > [ERROR] >> > > >> C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\scripts\build-setup.xml:149: >> > The >> > > following error occurred while executing this line: >> > > [ERROR] >> > > C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\scripts\data\build.xml:148: >> > The >> > > following error occurred while executing this line: >> > > [ERROR] >> > > C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\scripts\data\build.xml:295: >> > The >> > > following error occurred while executing this line: >> > > [ERROR] >> > > C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\scripts\data\build.xml:456: >> > Java >> > > returned: 1 >> > > [ERROR] around Ant part ...<ant antfile="build-setup.xml" >> dir="scripts" >> > > target="test.setup">... @ 5:70 in >> > > >> C:\Gandhi\Project\ctakes-5.1.0\ctakes-ytex\target\antrun\build-main.xml >> > > >> > > Is this expected Sean? >> > > >> > > On Fri, 26 Apr 2024 at 21:30, Finan, Sean >> > > <sean.fi...@childrens.harvard.edu.invalid> wrote: >> > > >> > > > Hi all, >> > > > >> > > > There is a candidate for version 5.1.0 of Apache cTAKES source code >> in >> > a >> > > > staging repository: >> > > > >> > > > >> > > >> > >> https://repository.apache.org/content/repositories/staging/org/apache/ctakes/ctakes/5.1.0/ >> > > > >> > > > The code is contained within the file: >> > > > ctakes-5.1.0-source-release.zip< >> > > > >> > > >> > >> https://repository.apache.org/content/repositories/staging/org/apache/ctakes/ctakes/5.1.0/ctakes-5.1.0-source-release.zip >> > > > > >> > > > >> > > > I welcome you all to test your favorite pipeline(s) and report any >> > > issues. >> > > > I am calling a vote from the PMC to finish by 12:nn Eastern time, >> next >> > > > Wednesday May 1. Please report any issues before that time. If any >> > > > 'road-block' issues are found they will need to be addressed before >> a >> > > > release. >> > > > >> > > > Thank you, >> > > > Sean >> > > > >> > > > >> > > > p.s. >> > > > >> > > > The 5.1.0 candidate is based upon the source code in the >> ctakes-5.1.0 >> > > tag: >> > > > https://github.com/apache/ctakes/releases/tag/ctakes-5.1.0 >> > > > >> > > > The ctakes-5.1.0 tag was made from the 5.1.0 branch: >> > > > https://github.com/apache/ctakes/tree/5.1.0 >> > > > >> > > > The 5.1.0 branch is a copy of the main branch: >> > > > https://github.com/apache/ctakes/tree/main >> > > > The version number in the 5.1.0 branch is different, but there are >> no >> > > code >> > > > differences between the two branches. >> > > > >> > > > >> > > > >> > > >> > > -- >> > > Regards, >> > > Gandhi >> > > >> > > "The best way to find urself is to lose urself in the service of >> others >> > > !!!" >> > > >> > >> >> >> -- >> Regards, >> Gandhi >> >> "The best way to find urself is to lose urself in the service of others >> !!!" >> >