I run appfuse:gen followed by appfuse:install in my core project, and it runs
to completion with no issues. I then cd to my web project and run
mvn appfuse:gen -Dentity=SecuredObject -Dentity.check=false -e
and it fails with the following complaint:
C:\<myprojectdir>\web\target\appfuse\generated-sources not found.
Yes, the pojo SecuredObject.java does exist. No, there is no appfuse
directory under web\target. There is an appfuse directory under
core\target. I tried copying that over to web\target, but then when I run
appfuse:gen is complains that SecuredObject-beans.xml doesn't exist.
Here is SecuredObject.java:
package <my_company_and_project_name>.model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Transient;
import org.appfuse.model.BaseObject;
import org.appfuse.model.Role;
import org.appfuse.model.User;
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@Entity(name="secured_objects")
public class SecuredObject extends BaseObject {
protected Long id;
protected List<User> users;
protected List<Role> roles;
@Id @GeneratedValue(strategy = GenerationType.AUTO)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/**
* Transient list of roles, used to transfer/populate role type SIDS in
ACL
* @return a list of roles
*/
@Transient
public List<Role> getRoles() {
return roles;
}
public void setRoles(List<Role> roles) {
this.roles = roles;
}
/**
* Transient list of users, used to transfer/populate user type
(principal) SIDS in ACL
* @return
*/
@Transient
public List<User> getUsers() {
return users;
}
public void setUsers(List<User> users) {
this.users = users;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final SecuredObject other = (SecuredObject) obj;
if (this.id != other.id && (this.id == null ||
!this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public int hashCode() {
int hash = 7;
hash = 11 * hash + (this.id != null ? this.id.hashCode() : 0);
return hash;
}
@Override
public String toString() {
return id.toString();
}
}
Any idea what I'm doing wrong?
--
View this message in context:
http://www.nabble.com/Appfuse%3Agen-%22full-source-not-found%22-issue-in-modular-project-tp21486682s2369p21486682.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]