You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Dmitry Goryunov (JIRA)" <ji...@apache.org> on 2018/11/19 11:11:00 UTC

[jira] [Updated] (ATLAS-2974) Docker build: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin...

     [ https://issues.apache.org/jira/browse/ATLAS-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Goryunov updated ATLAS-2974:
-----------------------------------
    Description: 
Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also reproducable with 1.1.0-rc2)

 

Runnign command:
{code:java}
docker build -t atlas_docker .
{code}
Breaks at some point with:
{code:java}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project apache-atlas: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :apache-atlas
The command '/bin/sh -c mvn clean install -DskipTests -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
{code}
The complete logs are attached.

  was:
The complete logs: [^tmp]

Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also reproducable with 1.1.0-rc2)
{code}
docker build -t atlas_docker .
{code}
Breaks at some point with:
{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project apache-atlas: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :apache-atlas
The command '/bin/sh -c mvn clean install -DskipTests -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
{code}


> Docker build: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin...
> --------------------------------------------------------------------------------------
>
>                 Key: ATLAS-2974
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2974
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Dmitry Goryunov
>            Priority: Major
>         Attachments: tmp
>
>
> Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also reproducable with 1.1.0-rc2)
>  
> Runnign command:
> {code:java}
> docker build -t atlas_docker .
> {code}
> Breaks at some point with:
> {code:java}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project apache-atlas: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :apache-atlas
> The command '/bin/sh -c mvn clean install -DskipTests -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
> {code}
> The complete logs are attached.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Re: [jira] [Updated] (ATLAS-2974) Docker build: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin...

Posted by Nigel Jones <ni...@cherrybyte.me.uk>.
Do you have a full log.

Most likely the enforce rules have failed because
 - You are not running with the latest maven. (3.6 is current, 3.5.4 should
be fine. I think the check is only 3.5.0 or above)
 - You are not running with a current version of Java. From *memory* it
might be 1.8 151 or above? Personally I'm running with the 1.8 19x versions
currently

Since this is occuring during the docker build I expect the rules have been
updated, but the Dockerfile hasn't been updated to match

If you post the full log, happy to take a look

I also have a dockerfile for atlas (with a patch we're working on in a
different project) which builds atlas within docker - feel free to compare.
It's at
https://github.com/odpi/egeria/tree/master/open-metadata-resources/open-metadata-deployment/docker/atlas
- but it's not 'plain' atlas

On Mon, 19 Nov 2018 at 11:11, Dmitry Goryunov (JIRA) <ji...@apache.org>
wrote:

>
>      [
> https://issues.apache.org/jira/browse/ATLAS-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Dmitry Goryunov updated ATLAS-2974:
> -----------------------------------
>     Description:
> Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also
> reproducable with 1.1.0-rc2)
>
>
>
> Runnign command:
> {code:java}
> docker build -t atlas_docker .
> {code}
> Breaks at some point with:
> {code:java}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce
> (enforce-versions) on project apache-atlas: Some Enforcer rules have
> failed. Look above for specific messages explaining why the rule failed. ->
> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :apache-atlas
> The command '/bin/sh -c mvn clean install -DskipTests
> -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
> {code}
> The complete logs are attached.
>
>   was:
> The complete logs: [^tmp]
>
> Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also
> reproducable with 1.1.0-rc2)
> {code}
> docker build -t atlas_docker .
> {code}
> Breaks at some point with:
> {code}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce
> (enforce-versions) on project apache-atlas: Some Enforcer rules have
> failed. Look above for specific messages explaining why the rule failed. ->
> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :apache-atlas
> The command '/bin/sh -c mvn clean install -DskipTests
> -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
> {code}
>
>
> > Docker build: Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin...
> >
> --------------------------------------------------------------------------------------
> >
> >                 Key: ATLAS-2974
> >                 URL: https://issues.apache.org/jira/browse/ATLAS-2974
> >             Project: Atlas
> >          Issue Type: Bug
> >            Reporter: Dmitry Goryunov
> >            Priority: Major
> >         Attachments: tmp
> >
> >
> > Version: commit 945de013f5466ffcf71d16c6ec1772fdee83e2f6 (Also
> reproducable with 1.1.0-rc2)
> >
> > Runnign command:
> > {code:java}
> > docker build -t atlas_docker .
> > {code}
> > Breaks at some point with:
> > {code:java}
> > [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce
> (enforce-versions) on project apache-atlas: Some Enforcer rules have
> failed. Look above for specific messages explaining why the rule failed. ->
> [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/MojoExecutionException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> command
> > [ERROR]   mvn <goals> -rf :apache-atlas
> > The command '/bin/sh -c mvn clean install -DskipTests
> -Pdist,embedded-hbase-solr -f ./atlas/pom.xml' returned a non-zero code: 1
> > {code}
> > The complete logs are attached.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)
>


-- 
----
Nigel Jones