[
https://issues.apache.org/jira/browse/AMBARI-21273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16052381#comment-16052381
]
Jaimin Jetly commented on AMBARI-21273:
---------------------------------------
Tested by running "mvn clean test -Drat.skip -Dcheckstyle.skip -DskipTests" and
"mvn clean test -Drat.skip -Dcheckstyle.skip -DskipTests
-Dgenerate.swagger.resources" from ambari root project and verified behavior is
as expected
"mvn clean test -Drat.skip -Dcheckstyle.skip -DskipTests" does not create any
files to be edited if no code is changed
"mvn clean test -Drat.skip -Dcheckstyle.skip -DskipTests
-Dgenerate.swagger.resources" will edit ambari-server/docs/api/generated/
files which should be checked in before releasing ambari
> Swagger resources generation for doc purpose should not be part of default
> maven profile
> ----------------------------------------------------------------------------------------
>
> Key: AMBARI-21273
> URL: https://issues.apache.org/jira/browse/AMBARI-21273
> Project: Ambari
> Issue Type: Task
> Components: ambari-server
> Affects Versions: 3.0.0
> Reporter: Jaimin Jetly
> Assignee: Jaimin Jetly
> Fix For: 3.0.0
>
> Attachments: AMBARI-21273.patch
>
>
> On executing mvn compile on ambari-server and then checking with git status,
> following files are automatically added/edited even when no code changes are
> made
> {code}
> modified: ambari-server/docs/api/generated/index.html
> Untracked files:
> (use "git add <file>..." to include in what will be committed)
> docs/api/
> {code}
> As a fix to this issue, swagger resources that are presently checked in to
> ambari project at ambari-server/docs/api/generated/ will be updated only when
> mvn command is executed with -Dgenerate.swagger.resources flag.
> This is expected to be done and resources should be checked in just before
> every new ambari release. with this commit, ambari wiki page for release
> guideline will also be updated
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)