atlas-create-jira-plugin ERROR

I follow the tutorial found at https://developer.atlassian.com/display/DOCS/Create+a+HelloWorld+Plugin+Project. when executing 'atlas-create-jira-plugin', it gives the output below:

C:\Users\helen.he>atlas-create-jira-plugin
A new plugin structure is required for JIRA 5 plugins due to significant changes
 in the APIs.
Create a plugin for?
1) JIRA 5
2) JIRA 4 (or earlier)
#?1
Executing: "C:\Users\helen.he\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" com
.atlassian.maven.plugins:maven-jira-plugin:4.1.2:create
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [com.atlassian.maven.plugins:maven-jira-plugin:4.1.2:cre
ate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[WARNING] POM for 'commons-beanutils:commons-beanutils:pom:1.7.0:runtime' is inv
alid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'velocity:velocity:pom:1.4:runtime' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [jira:create]
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by add
ing <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configur
ation in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:jira - Create Plugin
Define value for groupId: : com.atlassian.tutorial
Define value for artifactId: : helloworld
Define value for version:  [1.0-SNAPSHOT]: 1.0
Define value for package:  [com.atlassian.tutorial]: com.atlassian.tutorial.hell
oworld
Confirm properties configuration:
groupId: com.atlassian.tutorial
artifactId: helloworld
version: 1.0
package: com.atlassian.tutorial.helloworld
 [Y]: y
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[ERROR] The specified class for ResourceManager (org.apache.velocity.runtime.res
ource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resour
ce.ResourceManager; Velocity is not initialized correctly.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo

Embedded error: Unable to find the mojo 'generate' (or one of its required compo
nents) in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
The specified class for ResourceManager (org.apache.velocity.runtime.resource.Re
sourceManagerImpl) does not implement org.apache.velocity.runtime.resource.Resou
rceManager; Velocity is not initialized correctly.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 53 seconds
[INFO] Finished at: Mon Jan 07 17:11:56 CST 2013
[INFO] Final Memory: 37M/105M
[INFO] ---------------------------------------------------------

Can anybody tell me how to solve it. Thx~

4 answers

0 votes
Janet Albion Atlassian Team Jan 06, 2013

Hi Helen,

Tested this with SDK 4.1.2 installed using the Ubuntu/Debian way as per https://developer.atlassian.com/display/DOCS/Install+the+Atlassian+SDK+on+a+Linux+or+Mac+System

But not able to reproduce it.

Which method do you use to install the SDK plugin ?

Tried on Windows and it works fine.

Hey Janet you might wanna take a look at the heading for Step 2 on the page below. ConfiguRed

https://developer.atlassian.com/display/DOCS/Install+the+Atlassian+SDK+on+a+Windows+System

I install the SDK 4.1.2 on the Windows System as Bhushan says.

C:\Users\helen.he>atlas-version

ATLAS Version:    4.1.2
ATLAS Home:       C:\Users\helen.he\atlassian-plugin-sdk
ATLAS Scripts:    C:\Users\helen.he\atlassian-plugin-sdk\bin
ATLAS Maven Home: C:\Users\helen.he\atlassian-plugin-sdk\apache-maven
--------
Executing: "C:\Users\helen.he\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" --v
ersion
Apache Maven 2.1.0 (r755702; 2009-03-19 03:10:27+0800)
Java version: 1.6.0_18
Java home: C:\Program Files\jdk1.6.0_18\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"

I think SDK is installed correctly,but still have the atlas-create-jira-plugin ERROR:

[ERROR] The specified class for ResourceManager (org.apache.velocity.runtime.res
ource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resour
ce.ResourceManager; Velocity is not initialized correctly.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo
 
Embedded error: Unable to find the mojo 'generate' (or one of its required compo
nents) in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
The specified class for ResourceManager (org.apache.velocity.runtime.resource.Re
sourceManagerImpl) does not implement org.apache.velocity.runtime.resource.Resou
rceManager; Velocity is not initialized correctly.

I solve it. Because I made a mistake that velocity-1.4.jar cannot be unzip correctly,so I download the right one from http://mvnrepository.com/artifact/velocity/velocity

It's OK now. Thanks all~~

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,308 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you