Estou fazendo deploy de uma aplicação no heroku usando java 7 e tomcat 8.0.27. Quando tento inserir a classe:
package com.app.apiexpotaxi;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/*
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
*/
/**
*
- @author bruno
*/
@Entity(name = “index”)
public class Index{
@Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id;
@Column(nullable = false) private String nome;
public Index(String nome) { this.nome = nome; }
public Index() { }
public Integer getId() { return id; }
public void setId(Integer id) { this.id = id; }
public String getNome() { return nome; }
public void setNome(String nome) { this.nome = nome; }
}
Aparece esse erro no heroku:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project apiexpotaxi: Fatal error compiling:
java.lang.RuntimeException:
javax.annotation.processing.FilerException: Attempt to recreate a file
for type com.app.apiexpotaxi.Index_ -> [Help 1]
Esse é o meu persistence.xml:
Quando mudo a a tag < exclude-unlisted-classes > para TRUE, o deploy é feito normalmente mas a classe não é executada. Como posso consertar esse erro?