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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked But now i'm getting below issue My java version is 10
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.