You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by "Haag, Scott M" <HA...@chop.edu.INVALID> on 2023/02/03 15:10:33 UTC

Issuing compiling from the main branch using github

I was wondering if anybody had any advice for me on the following error, I am trying to clean install from the head of the main branch in git.

Below are my commands; this error start with commit d998331c1cfef48d792c78a8d3c1670498a8b925
The commands below work for the previous commit a97258b01d455f7816994070cf64deb311b29acc


git clone https://github.com/apache/ctakes.git;
cd ctakes;

mvn clean install -ff -DskipTests=true;


error message
/root/projects/ctakes/ctakes-ytex/scripts/build-setup.xml:149: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:148: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:531: Warning: Could not find file /root/projects/ctakes/ctakes-ytex/scripts/data/${project.basedir}/conn.xml.template to copy.


 mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_282, vendor: AdoptOpenJDK, runtime: /opt/java/openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.147+", arch: "amd64", family: "unix"


Re: Issuing compiling from the main branch using github [EXTERNAL] [SUSPICIOUS] [SUSPICIOUS]

Posted by "Finan, Sean" <Se...@childrens.harvard.edu.INVALID>.
By the way, for all who are using "mvn install" and aren't interested in creating a binary installation:

There is a new maven profile called "no-zips-build" in ctakes 5.  When enabled it will skip the creation of src and binary tar.gz and .zip files during the package phase.  This significantly speeds up build-time and sometimes you just want the jars - such as for mvn install.

In addition, there are 2 new profiles in ctakes 5 for web war creation: "web-rest-build" and "ytex-web-build".  When enabled, these will build the corresponding war files.  By default the wars are not built.  Why?  Because doing so creates 2 or 3 extra copies of ctakes.  One copy of jars, one copy in the .war, and then a 3rd in the binary .zip file.  This all leads to a longer build time and much larger disk footprint.  In addition, most users do not use the web projects, and if they do they usually want one, not both.  With proper documentation (coming soon) this should not cause any confusion.

Sean

________________________________
From: Finan, Sean <Se...@childrens.harvard.edu.INVALID>
Sent: Friday, February 3, 2023 11:24 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Re: Issuing compiling from the main branch using github [EXTERNAL] [SUSPICIOUS] [SUSPICIOUS]

* External Email - Caution *


I just checked in the revert on ctakes-ytex/scripts/data/build.xml

Packaging works on my machine, but it had also worked for all previous tests so maybe there is still an issue.

Sean

________________________________
From: Finan, Sean <Se...@childrens.harvard.edu.INVALID>
Sent: Friday, February 3, 2023 11:09 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Re: Issuing compiling from the main branch using github [EXTERNAL] [SUSPICIOUS]

* External Email - Caution *


Hi Scott,

Thanks for the report - especially the setup, failure message and commit details.  Would you mind copying it into the GitHub issues area?  https://urldefense.com/v3/__https://github.com/apache/ctakes/issues__;!!NZvER7FxgEiBAiR_!r_NQsbbnDqD-QGMwq_ofjWAsCeeR1pGVKoB2EVnideNr2t6t24yCwJmoibSXDSf6F40_bEadTeF5AGH5NItUpOBViKAQtNUFoJM9wlumGFqmeqbv-A$

I think that I know what happened ...

The pom files for several modules used ${basedir} instead of the preferred ${project.basedir}.  I updated them to standard.  I also changed ${basedir} in the ytex scripts and apparently, they don't have substitution for that expression.  I will have it fixed in a few minutes and try again.

Sean


________________________________
From: Haag, Scott M <HA...@chop.edu.INVALID>
Sent: Friday, February 3, 2023 10:10 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Issuing compiling from the main branch using github [EXTERNAL]

* External Email - Caution *


I was wondering if anybody had any advice for me on the following error, I am trying to clean install from the head of the main branch in git.

Below are my commands; this error start with commit d998331c1cfef48d792c78a8d3c1670498a8b925
The commands below work for the previous commit a97258b01d455f7816994070cf64deb311b29acc


git clone https://urldefense.com/v3/__https://github.com/apache/ctakes.git__;!!NZvER7FxgEiBAiR_!sNj-I6E9pJQ9g0k3JrJ_jk_1ye5PiGtLKrJi5vDzO4sZPBphb4sRIYrS9VEgT3JyiT79ME4Gnt7MZmOviJWN825Tpq417uZr$ ;
cd ctakes;

mvn clean install -ff -DskipTests=true;


error message
/root/projects/ctakes/ctakes-ytex/scripts/build-setup.xml:149: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:148: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:531: Warning: Could not find file /root/projects/ctakes/ctakes-ytex/scripts/data/${project.basedir}/conn.xml.template to copy.


 mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_282, vendor: AdoptOpenJDK, runtime: /opt/java/openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.147+", arch: "amd64", family: "unix"


Re: Issuing compiling from the main branch using github [EXTERNAL] [SUSPICIOUS]

Posted by "Finan, Sean" <Se...@childrens.harvard.edu.INVALID>.
I just checked in the revert on ctakes-ytex/scripts/data/build.xml

Packaging works on my machine, but it had also worked for all previous tests so maybe there is still an issue.

Sean

________________________________
From: Finan, Sean <Se...@childrens.harvard.edu.INVALID>
Sent: Friday, February 3, 2023 11:09 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Re: Issuing compiling from the main branch using github [EXTERNAL] [SUSPICIOUS]

* External Email - Caution *


Hi Scott,

Thanks for the report - especially the setup, failure message and commit details.  Would you mind copying it into the GitHub issues area?  https://urldefense.com/v3/__https://github.com/apache/ctakes/issues__;!!NZvER7FxgEiBAiR_!r_NQsbbnDqD-QGMwq_ofjWAsCeeR1pGVKoB2EVnideNr2t6t24yCwJmoibSXDSf6F40_bEadTeF5AGH5NItUpOBViKAQtNUFoJM9wlumGFqmeqbv-A$

I think that I know what happened ...

The pom files for several modules used ${basedir} instead of the preferred ${project.basedir}.  I updated them to standard.  I also changed ${basedir} in the ytex scripts and apparently, they don't have substitution for that expression.  I will have it fixed in a few minutes and try again.

Sean


________________________________
From: Haag, Scott M <HA...@chop.edu.INVALID>
Sent: Friday, February 3, 2023 10:10 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Issuing compiling from the main branch using github [EXTERNAL]

* External Email - Caution *


I was wondering if anybody had any advice for me on the following error, I am trying to clean install from the head of the main branch in git.

Below are my commands; this error start with commit d998331c1cfef48d792c78a8d3c1670498a8b925
The commands below work for the previous commit a97258b01d455f7816994070cf64deb311b29acc


git clone https://urldefense.com/v3/__https://github.com/apache/ctakes.git__;!!NZvER7FxgEiBAiR_!sNj-I6E9pJQ9g0k3JrJ_jk_1ye5PiGtLKrJi5vDzO4sZPBphb4sRIYrS9VEgT3JyiT79ME4Gnt7MZmOviJWN825Tpq417uZr$ ;
cd ctakes;

mvn clean install -ff -DskipTests=true;


error message
/root/projects/ctakes/ctakes-ytex/scripts/build-setup.xml:149: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:148: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:531: Warning: Could not find file /root/projects/ctakes/ctakes-ytex/scripts/data/${project.basedir}/conn.xml.template to copy.


 mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_282, vendor: AdoptOpenJDK, runtime: /opt/java/openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.147+", arch: "amd64", family: "unix"


Re: Issuing compiling from the main branch using github [EXTERNAL]

Posted by "Finan, Sean" <Se...@childrens.harvard.edu.INVALID>.
Hi Scott,

Thanks for the report - especially the setup, failure message and commit details.  Would you mind copying it into the GitHub issues area?  https://github.com/apache/ctakes/issues

I think that I know what happened ...

The pom files for several modules used ${basedir} instead of the preferred ${project.basedir}.  I updated them to standard.  I also changed ${basedir} in the ytex scripts and apparently, they don't have substitution for that expression.  I will have it fixed in a few minutes and try again.

Sean


________________________________
From: Haag, Scott M <HA...@chop.edu.INVALID>
Sent: Friday, February 3, 2023 10:10 AM
To: dev@ctakes.apache.org <de...@ctakes.apache.org>
Subject: Issuing compiling from the main branch using github [EXTERNAL]

* External Email - Caution *


I was wondering if anybody had any advice for me on the following error, I am trying to clean install from the head of the main branch in git.

Below are my commands; this error start with commit d998331c1cfef48d792c78a8d3c1670498a8b925
The commands below work for the previous commit a97258b01d455f7816994070cf64deb311b29acc


git clone https://urldefense.com/v3/__https://github.com/apache/ctakes.git__;!!NZvER7FxgEiBAiR_!sNj-I6E9pJQ9g0k3JrJ_jk_1ye5PiGtLKrJi5vDzO4sZPBphb4sRIYrS9VEgT3JyiT79ME4Gnt7MZmOviJWN825Tpq417uZr$ ;
cd ctakes;

mvn clean install -ff -DskipTests=true;


error message
/root/projects/ctakes/ctakes-ytex/scripts/build-setup.xml:149: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:148: The following error occurred while executing this line:
[ERROR] /root/projects/ctakes/ctakes-ytex/scripts/data/build.xml:531: Warning: Could not find file /root/projects/ctakes/ctakes-ytex/scripts/data/${project.basedir}/conn.xml.template to copy.


 mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_282, vendor: AdoptOpenJDK, runtime: /opt/java/openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.147+", arch: "amd64", family: "unix"