david-truong / liferay-workspace

6 stars 11 forks source link

Cannot compile sample-model-listener #31

Closed sustacek closed 8 years ago

sustacek commented 8 years ago

The modules/extensions/sample-model-listener cannot be compiled, seems like the API in Liferay 7.0.0 has recently changed, the exception class being moved:

https://github.com/liferay/liferay-portal/commit/3a42d59d25ed44fd46ebbcb264e900c8f6641cb4

Compilation produces following error:

:modules:extensions:sample-model-listener:compileJava
/opt/devel/liferay/github/lfrgs-liferay-ironman.master/liferay-build-tool/liferay-workspace-gs/build/liferay-workspace-DistBundleSpec-1454946448420/modules/extensions/sample-model-listener/src/main/java/sample/model/listener/CustomLayoutListener.java:5: error: cannot find symbol
import com.liferay.portal.ModelListenerException;
                         ^
  symbol:   class ModelListenerException
  location: package com.liferay.portal
/opt/devel/liferay/github/lfrgs-liferay-ironman.master/liferay-build-tool/liferay-workspace-gs/build/liferay-workspace-DistBundleSpec-1454946448420/modules/extensions/sample-model-listener/src/main/java/sample/model/listener/CustomLayoutListener.java:19: error: cannot find symbol
        throws ModelListenerException {
               ^
  symbol:   class ModelListenerException
  location: class CustomLayoutListener
2 errors
:modules:extensions:sample-model-listener:compileJava FAILED
sustacek commented 8 years ago

Should be fixed by https://github.com/david-truong/liferay-workspace/pull/32