You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Tin Vu <tv...@ucr.edu> on 2021/06/12 15:59:34 UTC

Error when compile the latest code on the master branch

Hi all,

I just cloned the latest version of AsterixDB - master branch
<https://github.com/apache/asterixdb> (0.9.7). When I build the code using
the following command:
```
mvn clean package -DskipTests
```

It always show an error:
```
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
(enforce-versions) on project apache-hyracks: Some Enforcer rules have
failed. Look above for specific messages explaining why the rule failed.
```

I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked well in
the past then the error just happened when I rebased my code with the
latest version on master branch.

I would really appreciate it if someone could help me resolve this issue.

Thanks,

Tin

Re: Error when compile the latest code on the master branch

Posted by Tin Vu <tv...@ucr.edu>.
That works now. Thank you!

On Sat, Jun 12, 2021 at 2:15 PM Ian Maxon <im...@uci.edu> wrote:

> So even though that's outputted as an error, if you let the process
> continue it should complete. I don't know why the npm maven plugin
> puts that to stderr.
>
> On Sat, Jun 12, 2021 at 2:05 PM Tin Vu <tv...@ucr.edu> wrote:
> >
> > Hi Ian,
> >
> > Thanks for your reply. After upgrading to Java 11, I got another error as
> > follow:
> > ```
> > [ERROR] Compiling @angular/cdk/keycodes : es2015 as esm2015
> > [ERROR] Compiling @angular/core : es2015 as esm2015
> > [ERROR] Compiling @angular/animations : es2015 as esm2015
> > [ERROR] Compiling @angular/animations/browser : es2015 as esm2015
> > [ERROR] Compiling @angular/common : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/observers : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/platform : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/bidi : es2015 as esm2015
> > [ERROR] Compiling @angular/platform-browser : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/a11y : es2015 as esm2015
> > [ERROR] Compiling @angular/forms : es2015 as esm2015
> > [ERROR] Compiling @angular/platform-browser/animations : es2015 as
> esm2015
> > [ERROR] Compiling @angular/cdk/collections : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/portal : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/scrolling : es2015 as esm2015
> > [ERROR] Compiling @angular/material/core : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/layout : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/overlay : es2015 as esm2015
> > [ERROR] Compiling @ngrx/store : es2015 as esm2015
> > [ERROR] Compiling @angular/material/form-field : es2015 as esm2015
> > [ERROR] Compiling @angular/material/button : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/text-field : es2015 as esm2015
> > [ERROR] Compiling @angular/material/select : es2015 as esm2015
> > [ERROR] Compiling @angular/material/tooltip : es2015 as esm2015
> > [ERROR] Compiling @angular/common/http : es2015 as esm2015
> > [ERROR] Compiling @angular/cdk/tree : es2015 as esm2015
> > ```
> >
> > On Sat, Jun 12, 2021 at 1:58 PM Ian Maxon <im...@uci.edu> wrote:
> >
> > > You need to upgrade to Java 11. Maven enforcer is restricting it to be
> 11
> > > or newer recently.
> > >
> > > > On Jun 12, 2021, at 09:01, Tin Vu <tv...@ucr.edu> wrote:
> > > >
> > > > Hi all,
> > > >
> > > > I just cloned the latest version of AsterixDB - master branch
> > > > <https://github.com/apache/asterixdb> (0.9.7). When I build the code
> > > using
> > > > the following command:
> > > > ```
> > > > mvn clean package -DskipTests
> > > > ```
> > > >
> > > > It always show an error:
> > > > ```
> > > > [ERROR] Failed to execute goal
> > > > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> > > > (enforce-versions) on project apache-hyracks: Some Enforcer rules
> have
> > > > failed. Look above for specific messages explaining why the rule
> failed.
> > > > ```
> > > >
> > > > I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked
> well
> > > in
> > > > the past then the error just happened when I rebased my code with the
> > > > latest version on master branch.
> > > >
> > > > I would really appreciate it if someone could help me resolve this
> issue.
> > > >
> > > > Thanks,
> > > >
> > > > Tin
> > >
>

Re: Error when compile the latest code on the master branch

Posted by Ian Maxon <im...@uci.edu>.
So even though that's outputted as an error, if you let the process
continue it should complete. I don't know why the npm maven plugin
puts that to stderr.

On Sat, Jun 12, 2021 at 2:05 PM Tin Vu <tv...@ucr.edu> wrote:
>
> Hi Ian,
>
> Thanks for your reply. After upgrading to Java 11, I got another error as
> follow:
> ```
> [ERROR] Compiling @angular/cdk/keycodes : es2015 as esm2015
> [ERROR] Compiling @angular/core : es2015 as esm2015
> [ERROR] Compiling @angular/animations : es2015 as esm2015
> [ERROR] Compiling @angular/animations/browser : es2015 as esm2015
> [ERROR] Compiling @angular/common : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/observers : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/platform : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/bidi : es2015 as esm2015
> [ERROR] Compiling @angular/platform-browser : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/a11y : es2015 as esm2015
> [ERROR] Compiling @angular/forms : es2015 as esm2015
> [ERROR] Compiling @angular/platform-browser/animations : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/collections : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/portal : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/scrolling : es2015 as esm2015
> [ERROR] Compiling @angular/material/core : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/layout : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/overlay : es2015 as esm2015
> [ERROR] Compiling @ngrx/store : es2015 as esm2015
> [ERROR] Compiling @angular/material/form-field : es2015 as esm2015
> [ERROR] Compiling @angular/material/button : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/text-field : es2015 as esm2015
> [ERROR] Compiling @angular/material/select : es2015 as esm2015
> [ERROR] Compiling @angular/material/tooltip : es2015 as esm2015
> [ERROR] Compiling @angular/common/http : es2015 as esm2015
> [ERROR] Compiling @angular/cdk/tree : es2015 as esm2015
> ```
>
> On Sat, Jun 12, 2021 at 1:58 PM Ian Maxon <im...@uci.edu> wrote:
>
> > You need to upgrade to Java 11. Maven enforcer is restricting it to be 11
> > or newer recently.
> >
> > > On Jun 12, 2021, at 09:01, Tin Vu <tv...@ucr.edu> wrote:
> > >
> > > Hi all,
> > >
> > > I just cloned the latest version of AsterixDB - master branch
> > > <https://github.com/apache/asterixdb> (0.9.7). When I build the code
> > using
> > > the following command:
> > > ```
> > > mvn clean package -DskipTests
> > > ```
> > >
> > > It always show an error:
> > > ```
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> > > (enforce-versions) on project apache-hyracks: Some Enforcer rules have
> > > failed. Look above for specific messages explaining why the rule failed.
> > > ```
> > >
> > > I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked well
> > in
> > > the past then the error just happened when I rebased my code with the
> > > latest version on master branch.
> > >
> > > I would really appreciate it if someone could help me resolve this issue.
> > >
> > > Thanks,
> > >
> > > Tin
> >

Re: Error when compile the latest code on the master branch

Posted by Tin Vu <tv...@ucr.edu>.
Hi Ian,

Thanks for your reply. After upgrading to Java 11, I got another error as
follow:
```
[ERROR] Compiling @angular/cdk/keycodes : es2015 as esm2015
[ERROR] Compiling @angular/core : es2015 as esm2015
[ERROR] Compiling @angular/animations : es2015 as esm2015
[ERROR] Compiling @angular/animations/browser : es2015 as esm2015
[ERROR] Compiling @angular/common : es2015 as esm2015
[ERROR] Compiling @angular/cdk/observers : es2015 as esm2015
[ERROR] Compiling @angular/cdk/platform : es2015 as esm2015
[ERROR] Compiling @angular/cdk/bidi : es2015 as esm2015
[ERROR] Compiling @angular/platform-browser : es2015 as esm2015
[ERROR] Compiling @angular/cdk/a11y : es2015 as esm2015
[ERROR] Compiling @angular/forms : es2015 as esm2015
[ERROR] Compiling @angular/platform-browser/animations : es2015 as esm2015
[ERROR] Compiling @angular/cdk/collections : es2015 as esm2015
[ERROR] Compiling @angular/cdk/portal : es2015 as esm2015
[ERROR] Compiling @angular/cdk/scrolling : es2015 as esm2015
[ERROR] Compiling @angular/material/core : es2015 as esm2015
[ERROR] Compiling @angular/cdk/layout : es2015 as esm2015
[ERROR] Compiling @angular/cdk/overlay : es2015 as esm2015
[ERROR] Compiling @ngrx/store : es2015 as esm2015
[ERROR] Compiling @angular/material/form-field : es2015 as esm2015
[ERROR] Compiling @angular/material/button : es2015 as esm2015
[ERROR] Compiling @angular/cdk/text-field : es2015 as esm2015
[ERROR] Compiling @angular/material/select : es2015 as esm2015
[ERROR] Compiling @angular/material/tooltip : es2015 as esm2015
[ERROR] Compiling @angular/common/http : es2015 as esm2015
[ERROR] Compiling @angular/cdk/tree : es2015 as esm2015
```

On Sat, Jun 12, 2021 at 1:58 PM Ian Maxon <im...@uci.edu> wrote:

> You need to upgrade to Java 11. Maven enforcer is restricting it to be 11
> or newer recently.
>
> > On Jun 12, 2021, at 09:01, Tin Vu <tv...@ucr.edu> wrote:
> >
> > Hi all,
> >
> > I just cloned the latest version of AsterixDB - master branch
> > <https://github.com/apache/asterixdb> (0.9.7). When I build the code
> using
> > the following command:
> > ```
> > mvn clean package -DskipTests
> > ```
> >
> > It always show an error:
> > ```
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> > (enforce-versions) on project apache-hyracks: Some Enforcer rules have
> > failed. Look above for specific messages explaining why the rule failed.
> > ```
> >
> > I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked well
> in
> > the past then the error just happened when I rebased my code with the
> > latest version on master branch.
> >
> > I would really appreciate it if someone could help me resolve this issue.
> >
> > Thanks,
> >
> > Tin
>

Re: Error when compile the latest code on the master branch

Posted by Ian Maxon <im...@uci.edu>.
You need to upgrade to Java 11. Maven enforcer is restricting it to be 11 or newer recently.

> On Jun 12, 2021, at 09:01, Tin Vu <tv...@ucr.edu> wrote:
> 
> Hi all,
> 
> I just cloned the latest version of AsterixDB - master branch
> <https://github.com/apache/asterixdb> (0.9.7). When I build the code using
> the following command:
> ```
> mvn clean package -DskipTests
> ```
> 
> It always show an error:
> ```
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> (enforce-versions) on project apache-hyracks: Some Enforcer rules have
> failed. Look above for specific messages explaining why the rule failed.
> ```
> 
> I'm using Java version 1.8.0_241 and Apache Maven 3.6.0. It worked well in
> the past then the error just happened when I rebased my code with the
> latest version on master branch.
> 
> I would really appreciate it if someone could help me resolve this issue.
> 
> Thanks,
> 
> Tin