I have created skeleton plugin and I can see it on "localhost:9090"......now i want to write my own classes.....the problem is I am not getting from where should I start.....should I write my code into....src\main\java\Examplemacro.java....or I should create another class for my code......plz help.....ASAP
Technically, it doesn't really matter where you put the code, as long as your atlassian-plugin.xml points to the right place. But src\main\java\ is the right directory if you want to follow standards. You can call it whatever you like, but make sure you make the right changes to atlassian-plugin.xml
When starting out, you might find it easier to start coding by amending the files it's created for you, but you'll need to change them eventually, so I'd suggest doing that first. Make sure the skeleton compiles and runs ok, then have a go at renaming it without making other changes. Once you've got the hang of renaming it, you'll see how it all works.
> Examplemacro.java
This makes me think you used the confluence, and not the jira archetype?
But it doesn't make a great deal of difference, Nic is right.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes by mistake i did atlas-create-confluence-plugin......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you've picked the wrong archetype, it's worth going back to the right one. Although they're similar and you can convert them, it's easier to redo from start. (Yes, I've done exactly the same. Many times. I blame starting new code before I've had enough coffee)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.