Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

webwork plugin build error

Olivera Tancheva January 23, 2019

I have went through a tutorial about a webwork. it gives me a compilation error:

[ERROR] /C:/Users/Olivera.Tancheva/olivera19/webwork-soy-require-backbone/src/main/java/ru/matveev/alexey/jira/tutorial/webworkui/jira/webwork/ConfigWebwork.java:[32,3] cannot find symbol
[ERROR] symbol:   class ActionViewData

I have imported the following packages:

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.atlassian.jira.web.action.JiraWebActionSupport;
import ru.matveev.alexey.jira.tutorial.webworkui.api.PluginSettingService;
import com.atlassian.jira.web.action;

but it still gives an error. Do you have an idea?

 

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2019

Hello,

I am not sure why it is not working for you. I just checked it. The code compiles without errors.

Olivera Tancheva January 23, 2019

Maybe I should add some dependecy to the pom file?

Olivera Tancheva January 23, 2019

Can you make a copy of your pom file?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2019

Could you provide the text of your class?

Olivera Tancheva January 23, 2019

Ths the same as in the tutorial:

@ActionViewData
 public String getConfigJson() {
   return pluginSettingService.getConfigJson().isEmpty()?"{}":pluginSettingService.getConfigJson();
  }

 public void setConfigJson(String json) {
 this.configJson = json;
 }

Olivera Tancheva January 23, 2019

Could you please provide your pom file so i can try with it?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2019

Here is the source code. You can find the pom.xml there

https://bitbucket.org/alex1mmm/webwork-soy-require-backbone/src/master/

You can download this source code and run it.

Like Olivera Tancheva likes this
Olivera Tancheva January 24, 2019

Thank you. It works now. I want to add two web-items of type buttons and dynamically load the urls from the parameters fields. Do you have any idea how to apply this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events