I have done installation steps to develop plugins:
- JAVA SDK,
- JAVA_HOME
- Jira Plugin SDK
When trying to run the example archetipe I get an exception, no one character written by my hand.
- atlas-create-jira-plugin
- cd <plugin-dir>
- atlas-run
Can anyone help?
After 15 minutes:
[INFO] [talledLocalContainer] 2018-11-30 11:13:18,384 localhost-startStop-1 INFO [o.o.c.entity.jdbc.DatabaseUtil] Created function based indices for entity "IssueSecurityScheme"
[INFO] [talledLocalContainer] 2018-11-30 11:13:18,398 localhost-startStop-1 INFO [c.a.j.config.database.DatabaseConfigurationManagerImpl] The database is configured. Now running Database Checklist Launcher
[INFO] [talledLocalContainer] 2018-11-30 11:13:18,424 localhost-startStop-1 INFO [c.a.jira.startup.DatabaseChecklistLauncher] JIRA database startup checks completed successfully.
[INFO] [talledLocalContainer] 2018-11-30 11:13:18,424 localhost-startStop-1 INFO [c.a.j.config.database.DatabaseConfigurationManagerImpl] The database is configured. Now running Post database-configuration launchers
[INFO] [talledLocalContainer] 2018-11-30 11:13:25,409 localhost-startStop-1 INFO [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from C:\Users\Juan\workspace\noc-jira-plugin\target\jira\home\dbconfig.xml
[INFO] [talledLocalContainer] 2018-11-30 11:13:29,317 localhost-startStop-1 INFO [c.a.j.c.embedded.ofbiz.OfBizUserDao] Using full user cache
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,142 localhost-startStop-1 WARN [c.a.jira.startup.DatabaseLauncher]
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] **************************************************************************************
[INFO] [talledLocalContainer] h2 is an in-memory database, and susceptible to corruption when abnormally terminated.
[INFO] [talledLocalContainer] DO NOT USE IN PRODUCTION, please switch to a regular database.
[INFO] [talledLocalContainer] **************************************************************************************
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,142 localhost-startStop-1 INFO [c.a.jira.startup.DatabaseLauncher] Database transactions enabled: true
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,145 localhost-startStop-1 INFO [c.a.jira.startup.DatabaseLauncher] Using JIRA's default for database transaction isolation level: 2
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,163 localhost-startStop-1 INFO [c.a.jira.startup.JiraStartupLogger]
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Database configuration OK
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] ___ Database Configuration ________________
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] Loading entityengine.xml from : file:/C:/Users/Juan/workspace/noc-jira-plugin/target/container/tomcat8x/cargo-jira-home/webapps/jira/WEB-INF/classes/entityengine.xml
[INFO] [talledLocalContainer] Entity model field type name : h2
[INFO] [talledLocalContainer] Entity model schema name : PUBLIC
[INFO] [talledLocalContainer] Database Version : H2 - 1.4.185 (2015-01-16)
[INFO] [talledLocalContainer] Database Driver : H2 JDBC Driver - 1.4.185 (2015-01-16)
[INFO] [talledLocalContainer] Database URL : jdbc:h2:file:C:/Users/Juan/workspace/noc-jira-plugin/target/jira/home/database/h2db
[INFO] [talledLocalContainer] Database JNDI config : h2 java:comp/env/jdbc/JiraDS
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,192 localhost-startStop-1 WARN [c.a.jira.diagnostic.PluginDiagnostics] Registering PluginDiagnostics with the event manager.
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,740 localhost-startStop-1 INFO [c.a.jira.startup.JiraStartupLogger]
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] ___ Starting the JIRA Plugin System _________________
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] 2018-11-30 11:13:36,741 localhost-startStop-1 INFO [c.a.plugin.manager.DefaultPluginManager] Plugin system earlyStartup begun
[INFO] [talledLocalContainer] 2018-11-30 11:13:42,171 localhost-startStop-1 WARN [o.twdata.pkgscanner.ExportPackageListBuilder] Package Scanner found duplicates for package 'javax.transaction.xa' with different versions. Files: jta-1.0.1.jar and jta-1.0.1B.jar
[INFO] [talledLocalContainer] 'C:\Users\Juan\workspace\noc-jira-plugin\target\container\tomcat8x\cargo-jira-home\webapps\jira\WEB-INF\lib\jta-1.0.1.jar'
[INFO] [talledLocalContainer] 'C:\Users\Juan\workspace\noc-jira-plugin\target\container\tomcat8x\cargo-jira-home\common\lib\jta-1.0.1B.jar'
[INFO] [talledLocalContainer] 2018-11-30 11:13:42,171 localhost-startStop-1 WARN [o.twdata.pkgscanner.ExportPackageListBuilder] Package Scanner found duplicates for package 'javax.transaction' with different versions. Files: jta-1.0.1.jar and jta-1.0.1B.jar
[INFO] [talledLocalContainer] 'C:\Users\Juan\workspace\noc-jira-plugin\target\container\tomcat8x\cargo-jira-home\webapps\jira\WEB-INF\lib\jta-1.0.1.jar'
[INFO] [talledLocalContainer] 'C:\Users\Juan\workspace\noc-jira-plugin\target\container\tomcat8x\cargo-jira-home\common\lib\jta-1.0.1B.jar'
[INFO] [talledLocalContainer] Tomcat 8.x is stopped
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43:04 min
[INFO] Finished at: 2018-11-30T11:14:14+01:00
[INFO] Final Memory: 52M/331M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:6.3.21:run (default-cli) on project noc-jira-plugin: Unable to execute mojo: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@5c00de0d]: Deployable [http://localhost:2990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown. -> [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
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: com/google/common/collect/Lists$ReverseList
at com.google.common.collect.Lists.reverse(Lists.java:729)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:907)
at com.atlassian.maven.plugins.amps.RunMojo$1.run(RunMojo.java:107)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists$ReverseList
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 4 more