inzOprogramowaniaUZ / violetumleditor

Software source code repository
0 stars 3 forks source link

Compilation Errors. Building from CLI #1

Open RoughTomato opened 8 years ago

RoughTomato commented 8 years ago

I'm having folowing error message after running mvn clean && mvn compile and simmilar (less detailed) running mvn clean install which is suppose to work as stated on violetuml development guide.

Error message:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project violetproduct-web: Compilation failure: Compilation failure: [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/UMLEditorWebApplication.java:[39,24] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: class WBootstrapTheme [ERROR] location: package eu.webtoolkit.jwt [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/EditorToolsWidget.java:206: error: incompatible types: WLink cannot be converted to String [ERROR] aPushButton.setIcon(iconLink); [ERROR] ^ [ERROR] [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:[91,19] error: no suitable constructor found for WMenu(WStackedWidget,WContainerWidget) [ERROR] [ERROR] constructor WMenu.WMenu(Orientation,WContainerWidget) is not applicable [ERROR] (argument mismatch; WStackedWidget cannot be converted to Orientation) [ERROR] constructor WMenu.WMenu(WStackedWidget,Orientation) is not applicable [ERROR] (argument mismatch; WContainerWidget cannot be converted to Orientation) [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:[157,36] error: no suitable constructor found for WMenuItem(String) [ERROR] [ERROR] constructor WMenuItem.WMenuItem(CharSequence,WWidget,LoadPolicy) is not applicable [ERROR] (actual and formal argument lists differ in length) [ERROR] constructor WMenuItem.WMenuItem(CharSequence,WWidget) is not applicable [ERROR] (actual and formal argument lists differ in length) [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:[162,17] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: method clicked() [ERROR] location: variable graphToolButton of type WMenuItem [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:173: error: cannot find symbol [ERROR] for (int i = 0; i < menuItem.getCount(); ++i) { [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: method getCount() [ERROR] location: variable menuItem of type WMenuItem [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:174: error: cannot find symbol [ERROR] WAnchor result = ((menuItem.getWidget(i)) instanceof WAnchor ? (WAnchor) (menuItem [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: method getWidget(int) [ERROR] location: variable menuItem of type WMenuItem [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/sidebar/GraphToolsBarWidget.java:175: error: cannot find symbol [ERROR] .getWidget(i)) [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: method getWidget(int) [ERROR] location: variable menuItem of type WMenuItem [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/UMLEditorWebApplication.java:72: error: cannot find symbol [ERROR] setTheme(new WBootstrapTheme()); [ERROR] ^ [ERROR] [ERROR] could not parse error message: symbol: class WBootstrapTheme [ERROR] location: class UMLEditorWebApplication [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/UMLEditorWebApplication.java:73: error: incompatible types: WLink cannot be converted to String [ERROR] useStyleSheet(new WLink(new WResource() { [ERROR] ^ [ERROR] [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/editorpart/behavior/EditSelectedBehavior.java:[99,43] error: cannot find symbol [ERROR] [ERROR] could not parse error message: symbol: method getFooter() [ERROR] location: variable dialog of type WDialog [ERROR] /home/roughtomato/development/Projekty/Violet/violetumleditor/violetproduct-web/src/main/java/com/horstmann/violet/web/workspace/editorpart/behavior/EditSelectedBehavior.java:102: error: method rejectWhenEscapePressed in class WDialog cannot be applied to given types; [ERROR] dialog.rejectWhenEscapePressed(true);

I'm running:

Manjaro Linux 4.4.11-1 x86_64 OpenJDK 1.8.0_92 Apache Maven 3.3.9

Let me know if you run into similar issue so I can confirm it as a bug.

KrystianDziedziola commented 8 years ago

Yep. I've got the same problem.

KrystianDziedziola commented 8 years ago

There's something wrong with two modules: violetproduct-exe and violetproduct-web. For now, if you want to build the project you can exclude them from build. To do this you can simply comment out them like this:

<modules>
        <module>violet-framework</module>
        <module>violetplugin-activitydiagram</module>
        <module>violetplugin-classdiagram</module>
        <module>violetplugin-communicationdiagram</module>
        <module>violetplugin-objectdiagram</module>
        <module>violetplugin-sequencediagram</module>
        <module>violetplugin-statediagram</module>
        <module>violetplugin-usecasediagram</module>
        <module>violetproduct-swing</module>
        <!--module>violetproduct-jnlp</module -->
        <!--<module>violetproduct-exe</module> -->
        <!-- module>violetproduct-rpm</module-->
        <module>violetproduct-deb</module>
        <!-- <module>violetproduct-web</module>-->
    </modules>

You can see that there were already two excluded modules, so I guess that they're causing problems too ;p