Maven compilation error : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 0 -
i getting following error while running mvn compile
[error] failed execute goal org.apache.maven.plugins:maven-compiler- plugin:3. 0:compile (default-compile) on project fitnessadmin: compilation failure: compil ation failure: [error] /d:/appfuse/fitnessadmin/fitnessadmin/src/main/java/com/igate/webapp/con troller/nameformcontroller.java:[24,34] cannot find symbol [error] symbol: class nameid [error] location: class com.igate.webapp.controller.nameformcontroller [error] /d:/appfuse/fitnessadmin/fitnessadmin/src/main/java/com/igate/webapp/con troller/nameformcontroller.java:[27,79] cannot find symbol [error] symbol: class nameid [error] location: class com.igate.webapp.controller.nameformcontroller [error] -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e swit ch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions,
may know how resolve issue?
nameformcontroller class given below
@controller @requestmapping("/nameform*") public class nameformcontroller extends baseformcontroller { private genericmanager<name, nameid> namemanager = null; @autowired public void setnamemanager(@qualifier("namemanager") genericmanager<name, nameid> namemanager) { this.namemanager = namemanager; } public nameformcontroller() { setcancelview("redirect:names"); setsuccessview("redirect:names"); } @modelattribute @requestmapping(method = requestmethod.get) protected name showform(httpservletrequest request) throws exception { string id = request.getparameter("id"); if (!stringutils.isblank(id)) { return namemanager.get(new nameid(id)); } return new name(); } @requestmapping(method = requestmethod.post) public string onsubmit(name name, bindingresult errors, httpservletrequest request, httpservletresponse response) throws exception { if (request.getparameter("cancel") != null) { return getcancelview(); } if (validator != null) { // validator null during testing validator.validate(name, errors); // don't validate when deleting if (errors.haserrors() && request.getparameter("delete") == null) { return "nameform"; } } log.debug("entering 'onsubmit' method..."); boolean isnew = (name.getid() == null); string success = getsuccessview(); locale locale = request.getlocale(); if (request.getparameter("delete") != null) { namemanager.remove(name.getid()); savemessage(request, gettext("name.deleted", locale)); } else { namemanager.save(name); string key = (isnew) ? "name.added" : "name.updated"; savemessage(request, gettext(key, locale)); if (!isnew) { success = "redirect:nameform?id=" + name.getid(); } } return success; } }
Comments
Post a Comment