我有一个由JHipster生成的maven项目,我将其放置在虚拟机上,当我使用./mvnw命令运行该项目时,一切正常,我没有错误,并且应用程序运行良好。
但是当我尝试创建项目的docker映像时,运行此命令sudo ./mvnw软件包-Pprod验证jib:build 我收到以下错误:
错误解析模板中的错误:意外的结束标记“按钮”。如果该标签已经被另一个标签关闭,则可能会发生这种情况。
这是发生问题的HTML文件:
<div class="row justify-content-center">
<div class="col-8">
<div *ngIf="user">
<h2>
<span jhiTranslate="userManagement.detail.title">User</span> [<b>{{ user.login }}</b>]
</h2>
<dl class="row-md jh-entity-details">
<dt><span jhiTranslate="userManagement.login">Login</span></dt>
<dd>
<span>{{ user.login }}</span>
<jhi-boolean
[value]="user.activated"
[textTrue]="'userManagement.activated' | translate"
[textFalse]="'userManagement.deactivated' | translate">
</jhi-boolean>
</dd>
<dt><span jhiTranslate="userManagement.firstName">First Name</span></dt>
<dd>{{ user.firstName }}</dd>
<dt><span jhiTranslate="userManagement.lastName">Last Name</span></dt>
<dd>{{ user.lastName }}</dd>
<dt><span jhiTranslate="userManagement.email">Email</span></dt>
<dd>{{ user.email }}</dd>
<dt><span jhiTranslate="userManagement.langKey">Lang Key</span></dt>
<dd>{{ user.langKey }}</dd>
<dt><span jhiTranslate="userManagement.createdBy">Created By</span></dt>
<dd>{{ user.createdBy }}</dd>
<dt><span jhiTranslate="userManagement.createdDate">Created Date</span></dt>
<dd>{{ user.createdDate | date:'dd/MM/yy HH:mm' }}</dd>
<dt><span jhiTranslate="userManagement.lastModifiedBy">Last Modified By</span></dt>
<dd>{{ user.lastModifiedBy }}</dd>
<dt><span jhiTranslate="userManagement.lastModifiedDate">Last Modified Date</span></dt>
<dd>{{ user.lastModifiedDate | date:'dd/MM/yy HH:mm' }}</dd>
<dt><span jhiTranslate="userManagement.profiles">Profiles</span></dt>
<dd>
<ul class="list-unstyled">
<li *ngFor="let authority of user.authorities">
<span class="badge badge-info">{{ authority }}</span>
</li>
</ul>
</dd>
</dl>
<button type="submit" routerLink="../../" class="btn btn-info">
<fa-icon icon="arrow-left"></fa-icon> <span jhiTranslate="entity.action.back">Back</span>
</button>
</div>
</div>
</div>
如果有人知道如何解决这个问题,那对我会很好。
谢谢