Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trying to create sample plugin getting error

Define value for groupId: : com.atlassian.tutorial
Define value for artifactId: : myplugin
Define value for version: 1.0.0-SNAPSHOT: : 1.0.0-SNAPSHOT
Define value for package: com.atlassian.tutorial: : com.atlassian.tutorial.myplugin
Confirm properties configuration:
groupId: com.atlassian.tutorial
artifactId: myplugin
version: 1.0.0-SNAPSHOT
package: com.atlassian.tutorial.myplugin
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'.
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from [com.atlassian.maven.archetypes:jira-plugin-archetype:5 -> https://maven.atlassian.com/public] found in catalog internal
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.887 s
[INFO] Finished at: 2018-05-09T16:10:13+05:30
[INFO] Final Memory: 12M/29M
[INFO] ------------------------------------------------------------------------
'cmd' is not recognized as an internal or external command,
operable program or batch file.

 

Let me know where i did mistake.

7 answers

0 votes

Hi! 

 

Why do you think you meet with errors? 

Build success, nothing logs with mark ERROR, WARN. 

 

Yes, only archetype suggestion. To my understand you can do it without concerns.

 

Cheers,

Gonchik Tsymzhitov 

Downloaded: https://maven.atlassian.com/repository/public/org/codehaus/plexus/plexus-compiler-javac/2.8.2/plexus-compiler-javac-2.8.2.jar (20 KB at 28.6 KB/sec)
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\myplugin\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:34 min
[INFO] Finished at: 2018-05-09T17:00:16+05:30
[INFO] Final Memory: 26M/63M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project myplugin: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
'cmd' is not recognized as an internal or external command,
operable program or batch file.

 

Again this stops me Help me with solution

0 votes

Hello,

You need to install Java Jdk, but your installed Java Jre. Install Java 1.8 JDK and set JAVA_HOME environment variable to the java JDK home.

It worked But now i'm getting below issue  My java version is 10 

  • JIRA had problems starting up
  •  
  • JIRA encountered the following problems during startup. You need to fix any errors before you start JIRA again.
  • System plugins failed to start: We haven't been able to start all the required system plugins
  • We couldn't start the following plugins:
  •  
  • JIRA Projects Plugin (com.atlassian.jira.jira-projects-plugin)
  • Atlassian OAuth Consumer Plugin (com.atlassian.oauth.consumer)
  • Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
  • Atlassian JIRA - Plugins - OAuth Service Provider SPI (com.atlassian.jira.oauth.serviceprovider)
  • Atlassian JIRA - Plugins - Project Config Plugin (com.atlassian.jira.jira-project-config-plugin)
  • Applinks - Plugin - Core (com.atlassian.applinks.applinks-plugin)
  • Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider)
  • Embedded Gadgets Plugin (com.atlassian.gadgets.embedded)
  • Gadget Directory Plugin (com.atlassian.gadgets.directory)
  • Atlassian Plugins - JavaScript libraries (com.atlassian.plugin.jslibs)
  • Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
  • Atlassian JIRA - Plugins - Global Issue Navigator (com.atlassian.jira.jira-issue-nav-plugin)
  • Atlassian JIRA - Plugins - File viewer plugin (com.atlassian.jira.jira-fileviewer-plugin)
  • Atlassian Pretty URLs Plugin (com.atlassian.prettyurls.atlassian-pretty-urls-plugin)
  • Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
  • Atlassian OAuth Admin Plugin (com.atlassian.oauth.admin)
  • Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module)
  • Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest)
  • Opensocial Plugin (com.atlassian.gadgets.opensocial)
  • atlassian-servlet-plugin (com.atlassian.web.atlassian-servlet-plugin)
  • Atlassian JIRA - Plugins - Look And Feel Logo Upload Plugin (com.atlassian.jira.lookandfeel)
  • Gadget Spec Publisher Plugin (com.atlassian.gadgets.publisher)
  • Atlassian JIRA - Plugins - OAuth Consumer SPI (com.atlassian.jira.oauth.consumer)
  • Atlassian JIRA - Plugins - SAL Plugin (com.atlassian.sal.jira)
  • Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard)
  • Help me on this

Hi! 

Please, install

1. Let's install JDK 8.  -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htm

2. Then set env variables https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/

 

Cheers,

Gonchik Tsymzhitov

0 votes

Hi! 

Please, install

1. Let's install JDK 8.  -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htm

2. Then set env variables https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/

 

Cheers,

Gonchik Tsymzhitov

Please help me on this

C:\jira-custom-field-example>atlas-run
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.10\apache-maven-3.2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:"6.3.15":run -gs C:\Applications\Atlassian\atlassian-plugin-sdk-6.3.10\apache-maven-3.2.1/conf/settings.xml
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jira-custom-field-example 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-amps-dispatcher-plugin:6.3.15:run (default-cli) @ jira-custom-field-example >>>
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:compress-resources (default-compress-resources) @ jira-custom-field-example ---
[INFO] Compiling javascript using YUI
[INFO] 0 Javascript file(s) were minified into target directory C:\jira-custom-field-example\target\classes
[INFO] 0 CSS file(s) were minified into target directory C:\jira-custom-field-example\target\classes
[INFO] Compressing XML files
[INFO] 0 XML file(s) were minified into target directory C:\jira-custom-field-example\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ jira-custom-field-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:filter-plugin-descriptor (default-filter-plugin-descriptor) @ jira-custom-field-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ jira-custom-field-example ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:generate-rest-docs (default-generate-rest-docs) @ jira-custom-field-example ---
[INFO]
[INFO] --- atlassian-spring-scanner-maven-plugin:1.2.13:atlassian-spring-scanner (default) @ jira-custom-field-example ---
[INFO] Starting Atlassian Spring Byte Code Scanner...
[INFO]
[INFO]
[INFO] Analysis ran in 148 ms.
[INFO] Encountered 2 total classes
[INFO] Processed 0 annotated classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ jira-custom-field-example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\jira-custom-field-example\src\test\resources
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ jira-custom-field-example ---
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ jira-custom-field-example ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:unit-test (default-unit-test) @ jira-custom-field-example ---
[INFO] Surefire report directory: C:\jira-custom-field-example\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running ut.com.example.plugins.tutorial.customfields.URLFIELDTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jira-plugin:6.3.15:copy-bundled-dependencies (default-copy-bundled-dependencies) @ jira-custom-field-example ---
[INFO] gson-2.2.2-atlassian-1.jar already exists in destination.
[INFO] atlassian-spring-scanner-runtime-1.2.13.jar already exists in destination.
[INFO] atlassian-spring-scanner-annotation-1.2.13.jar already exists in destination.
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ jira-custom-field-example ---
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:generate-manifest (default-generate-manifest) @ jira-custom-field-example ---
[INFO] Generating a manifest for this plugin
[INFO] using maven-bundle-plugin v2.5.3
[WARNING] Manifest com.atlassian.jira.plugin.customfield.example:jira-custom-field-example:atlassian-plugin:1.0-SNAPSHOT : Unused Import-Package instructions: [org.springframework.osgi.*, org.eclipse.gemini.blueprint.*]
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:generate-test-manifest (default-generate-test-manifest) @ jira-custom-field-example ---
[INFO]
[INFO] --- maven-jira-plugin:6.3.15:validate-manifest (default-validate-manifest) @ jira-custom-field-example ---
[INFO] Manifest found, validating...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.237 s
[INFO] Finished at: 2018-05-11T16:40:39+05:30
[INFO] Final Memory: 26M/127M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-jira-plugin:6.3.15:validate-manifest (default-validate-manifest) on project jira-custom-field-example:
[ERROR]
[ERROR] atlassian-plugin.xml contains a definition of component-import. This is not allowed when Atlassian-Plugin-Key is set.
[ERROR]
[ERROR] Please check the documentation of https://bitbucket.org/atlassian/atlassian-spring-scanner or https://developer.atlassian.com/display/DOCS/Configuration+of+Instructions+in+Atlassian+Plugins for further details.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
'cmd' is not recognized as an internal or external command,
operable program or batch file.

This problem popped up on my screen because JAVA_HOME was not set. It got reset somehow during a system shutdown.

First to check if you have set JAVA_HOME, try this in your favorite command prompt (Putty, CMDer, iTerm, etc.) on the server where you have installed the Atlassian product:

 

echo $JAVA_HOME

 
If it does not return anything, try to set the JAVA_HOME as follow with the two command below; run them separate from eachother in the following order:

export JAVA_HOME=the-installation-location-of-jdk 
export PATH=$JAVA_HOME/bin:$PATH

The location of the JDK usually is found somewhere at:

/usr/lib/jvm/jdk-YOUR_VERSION_RELEASE_OF_JDK

That definitely helped me get it back up and running.

Hi,

In my case JAVA_HOME and PATH varibales are properly set but even then I am getting an error. Would you please suggest some solution.

 

[INFO]
[INFO] --- confluence-maven-plugin:8.0.0:generate-manifest (default-generate-manifest) @ confluence ---
[INFO] Generating a manifest for this plugin
[INFO] using maven-bundle-plugin v3.5.0
[WARNING] Manifest com.cadence.confluence.helper:confluence:atlassian-plugin:1.1.3 : Unused Import-Package instructions: [org.springframework.osgi.*, org.eclipse.gemini.blueprint.*, com.sun.*, javax.*, *~]
[ERROR] Manifest com.cadence.confluence.helper:confluence:atlassian-plugin:1.1.3 : The default package '.' is not permitted by the Import-Package syntax.
This can be caused by compile errors in Eclipse because Eclipse creates
valid class files regardless of compile errors.
The following package(s) import from the default package [com.cadence.confluence.helper.serviceImpl, com.cadence.confluence.helper.listner, com.cadence.confluence.helper.service, com.cadence.confluence.helper.condition]
[ERROR] Error(s) found in manifest configuration
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2019-08-21T13:26:21+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:confluence-maven-plugin:8.0.0:generate-manifest (default-generate-manifest) on project confluence: Error(s) found in manifest configuration -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

D:\JIRA-SD\wiki-plugin\confluence>echo %JAVA_HOME%
C:\Program Files\Amazon Corretto\jdk1.8.0_202

Regards

Shradha

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

451 views 5 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you