Following to this steps: https://developer.atlassian.com/display/DOCS/Getting+Started
Does someone know about these errors? Has somebody the same problems?
After i imported the project into eclipse i get following errors:
Project build error: Unknown packeging:atlassian-plugin Project build error: Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-confluence-plugin:5.0.4 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.7.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar pom.xml /tutorial line 1 Maven pom Loading Problem
pom.xml:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycomp.plugin</groupId> <artifactId>tutorial</artifactId> <version>1.0</version> <organization> <name>Example Company</name> <url>http://www.example.com/</url> </organization> <name>tutorial</name> <description>This is the com.mycomp.plugin:tutorial plugin for Atlassian Confluence.</description> <packaging>atlassian-plugin</packaging> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> <dependency> <groupId>com.atlassian.confluence</groupId> <artifactId>confluence</artifactId> <version>${confluence.version}</version> <scope>provided</scope> </dependency> <!-- WIRED TEST RUNNER DEPENDENCIES --> <dependency> <groupId>com.atlassian.plugins</groupId> <artifactId>atlassian-plugins-osgi-testrunner</artifactId> <version>${plugin.testrunner.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>jsr311-api</artifactId> <version>1.1.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.2.2-atlassian-1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-confluence-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> <configuration> <productVersion>${confluence.version}</productVersion> <productDataVersion>${confluence.data.version}</productDataVersion> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.5</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> <properties> <confluence.version>5.6.4</confluence.version> <confluence.data.version>5.6.4</confluence.data.version> <amps.version>5.0.4</amps.version> <plugin.testrunner.version>1.2.0</plugin.testrunner.version> </properties> </project>
Community moderators have prevented the ability to post new answers.
I deleted the tests and started "atlas-mvn clean install" again, it succieded but the errors are the same
Executing: "C:\Users\brischlej\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" -gs C:\Users\brischlej\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml clean install [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 tutorial 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tutorial --- [INFO] Deleting C:\Users\brischlej\at-confluence\tutorial\target [INFO] [INFO] --- maven-confluence-plugin:5.0.4:copy-bundled-dependencies (default-copy-bundled-dependencies) @ tutorial --- [INFO] Unpacking C:\Users\brischlej\.m2\repository\com\google\code\gson\gson\2.2.2-atlassian-1\gson-2.2.2-atlassian-1.jar to C:\Users\brischlej\at-confluence\tutorial\target\classes with includes "" and excludes "META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF" [INFO] [INFO] --- maven-confluence-plugin:5.0.4:compress-resources (default-compress-resources) @ tutorial --- [INFO] Compiling javascript using YUI [INFO] compressing to C:\Users\brischlej\at-confluence\tutorial\target\classes\js\tutorial-min.js [INFO] compressing to C:\Users\brischlej\at-confluence\tutorial\target\classes\css\tutorial-min.css [INFO] Compressing XML files [INFO] compressing to C:\Users\brischlej\at-confluence\tutorial\target\classes\atlassian-plugin.xml [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ tutorial --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 6 resources [INFO] [INFO] --- maven-confluence-plugin:5.0.4:filter-plugin-descriptor (default-filter-plugin-descriptor) @ tutorial --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ tutorial --- [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compiling 2 source files to C:\Users\brischlej\at-confluence\tutorial\target\classes [INFO] [INFO] --- maven-confluence-plugin:5.0.4:generate-manifest (default-generate-manifest) @ tutorial --- [INFO] No manifest instructions found, adding only non-OSGi manifest attributes [INFO] [INFO] --- maven-confluence-plugin:5.0.4:generate-rest-docs (default-generate-rest-docs) @ tutorial --- [INFO] [INFO] --- maven-confluence-plugin:5.0.4:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ tutorial --- [INFO] [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ tutorial --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\brischlej\at-confluence\tutorial\src\test\resources [INFO] [INFO] --- maven-confluence-plugin:5.0.4:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ tutorial --- [INFO] [INFO] --- maven-confluence-plugin:5.0.4:generate-test-manifest (default-generate-test-manifest) @ tutorial --- [INFO] [INFO] --- maven-compiler-plugin:2.5:testCompile (default-testCompile) @ tutorial --- [INFO] No sources to compile [INFO] [INFO] --- maven-confluence-plugin:5.0.4:unit-test (default-unit-test) @ tutorial --- [INFO] No tests to run. [INFO] [INFO] --- maven-confluence-plugin:5.0.4:validate-manifest (default-validate-manifest) @ tutorial --- [INFO] Manifest found, validating... [INFO] Manifest validated [INFO] [INFO] --- maven-confluence-plugin:5.0.4:jar (default-jar) @ tutorial --- [INFO] Building jar: C:\Users\brischlej\at-confluence\tutorial\target\tutorial-1.0.jar [INFO] [INFO] --- maven-confluence-plugin:5.0.4:generate-obr-artifact (default-generate-obr-artifact) @ tutorial --- [INFO] Skipping OBR generation... no OSGi bundle manifest instructions found in pom.xml [INFO] [INFO] --- maven-confluence-plugin:5.0.4:validate-test-manifest (default-validate-test-manifest) @ tutorial --- [INFO] [INFO] --- maven-confluence-plugin:5.0.4:test-jar (default-test-jar) @ tutorial --- [INFO] [INFO] --- maven-confluence-plugin:5.0.4:integration-test (default-integration-test) @ tutorial --- [INFO] No integration tests found [INFO] [INFO] --- maven-confluence-plugin:5.0.4:mvn-install (default-mvn-install) @ tutorial --- Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom 4/5 KB 5/5 KB Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom (5 KB at 3.4 KB/sec) Downloading: https://maven.atlassian.com/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.jar 4/23 KB 8/23 KB 12/23 KB 14/23 KB 18/23 KB 22/23 KB 23/23 KB Downloaded: https://maven.atlassian.com/repository/public/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.jar (23 KB at 54.8 KB/sec) [INFO] Installing C:\Users\brischlej\at-confluence\tutorial\target\tutorial-1.0.jar to C:\Users\brischlej\.m2\repository\com\brischle\confluence\tutorial\1.0\tutorial-1.0.jar [INFO] Installing C:\Users\brischlej\at-confluence\tutorial\pom.xml to C:\Users\brischlej\.m2\repository\com\brischle\confluence\tutorial\1.0\tutorial-1.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.236 s [INFO] Finished at: 2014-10-17T10:10:17+01:00 [INFO] Final Memory: 63M/288M [INFO] ------------------------------------------------------------------------
I ran first "atlas-mvn clean" then "atlas-mvn install".
at atlas-mvn install i get the errors in the codeblock.
neralconfig, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Search Web Interface (confluence.sections.search.v iew, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Share Page (com.atlassian.confluence.plugins.share -page, Version: 3.2.0, Installed: bundled) [INFO] [talledLocalContainer] Space Admin Sections (confluence.sections.space.ad min, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Advanced Sections (confluence.sections.space .advanced, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Browse Sections (confluence.sections.space.b rowse, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Export Web Interface (confluence.sections.sp ace.export.view, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Item Tabs (confluence.sections.space, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Labels Sections (confluence.sections.space.l abels, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Pages Sections (confluence.sections.space.pa ges, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Tools Sections (confluence.sections.space.to ols, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Spring Interceptor Adapter Plugin (com.atlassian.p lugins.atlassian-spring-interceptor-adapter-plugin-1.1, Version: 1.1, Installed: bundled) [INFO] [talledLocalContainer] Status Macro (com.atlassian.confluence.plugins.sta tus-macro, Version: 2.16, Installed: bundled) [INFO] [talledLocalContainer] Streams API (com.atlassian.streams.streams-api-5.3 .23, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Core Plugin (com.atlassian.streams.core, V ersion: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Inline Actions Plugin (com.atlassian.strea ms.actions, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Plugin (com.atlassian.streams, Version: 5. 3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams SPI (com.atlassian.streams.streams-spi-5.3 .23, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Support Healthcheck Plugin (com.atlassian.support. healthcheck.support-healthcheck-plugin, Version: 1.0.2, Installed: bundled) [INFO] [talledLocalContainer] Support Tools Plugin (com.atlassian.support.stp, V ersion: 3.5.22, Installed: bundled) [INFO] [talledLocalContainer] System Templates (com.atlassian.confluence.plugins .system-templates, Version: 5.6.4, Installed: bundled) [INFO] [talledLocalContainer] System Web Components (confluence.web.components, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Panels (confluence.web.panels, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Panels (confluence.web.panel.renderers, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Resources (confluence.web.resources, Ve rsion: 1.0, Installed: bundled) [INFO] [talledLocalContainer] TDM Merger (com.atlassian.plugins.confluence-tdm-m erger, Version: 5.6.4, Installed: bundled) [INFO] [talledLocalContainer] Table of Contents Plugin (org.randombits.confluenc e.toc, Version: 2.6.12, Installed: bundled) [INFO] [talledLocalContainer] TestRunner OSGI Bundle (com.atlassian.plugins.atla ssian-plugins-osgi-testrunner-bundle, Version: 1.2.0, Installed: bundled) [INFO] [talledLocalContainer] UWC Importer Admin Panel (com.atlassian.confluence .plugins.uwc.uwcimporter-adminpanel, Version: 2.0, Installed: bundled) [INFO] [talledLocalContainer] Upgrade Administration Interface (confluence.secti ons.admin.upgrade, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Administration (confluence.admin.user, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Hover Menu Sections (confluence.user.hover.me nu, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Lister (confluence.extra.userlister, Version: 2.6.1, Installed: bundled) [INFO] [talledLocalContainer] User Menu Sections (confluence.user.menu, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Menu Sections (confluence.user.menu.concise, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Status (confluence.userstatus, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] View Profile Web Interface (confluence.sections.pr ofile.view, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] View follow resources (confluence.sections.user.vi ew.follow, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] WebDAV Plugin (confluence.extra.webdav, Version: 4 .0.9, Installed: bundled) [INFO] [talledLocalContainer] Widget Connector (com.atlassian.confluence.extra.w idgetconnector, Version: 2.3.3, Installed: bundled) [INFO] [talledLocalContainer] Wiki Markup Plugin (confluence.xhtml.wikimarkup, V ersion: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Wiki Renderer Components (confluence.renderer.comp onents, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Common Plugin (com.atlassian.mywork.mywo rk-common-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Confluence Provider Plugin (com.atlassia n.mywork.mywork-confluence-provider-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Host Plugin (com.atlassian.mywork.mywork -confluence-host-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] atlassian-failure-cache-plugin (com.atlassian.atla ssian-failure-cache-plugin, Version: 0.14, Installed: bundled) [INFO] [talledLocalContainer] atlassian-help-tips (com.atlassian.plugins.atlassi an-help-tips, Version: 2.0.1, Installed: bundled) [INFO] [talledLocalContainer] confluence-feature-discovery-plugin (com.atlassian .confluence.plugins.confluence-feature-discovery-plugin, Version: 1.10.1, Instal led: bundled) [INFO] [talledLocalContainer] confluence-ui-components (com.atlassian.confluence .plugins.confluence-ui-components, Version: 1.4.15, Installed: bundled) [INFO] [talledLocalContainer] fastdev-plugin (com.atlassian.labs.fastdev-plugin, Version: 2.4, Installed: bundled) [INFO] [talledLocalContainer] httpservice-bridge (com.atlassian.labs.httpservice .bridge-0.6.2, Version: 0.6.2, Installed: bundled) [INFO] [talledLocalContainer] jquery (com.atlassian.plugins.jquery, Version: 1.7 .2, Installed: bundled) [INFO] [talledLocalContainer] plugin-data-editor (com.atlassian.plugins.plugin-d ata-editor, Version: 1.2, Installed: bundled) [INFO] [talledLocalContainer] tutorial (com.brischle.confluence.tutorial-tests, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] tutorial (com.brischle.confluence.tutorial, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] [INFO] [talledLocalContainer] 2014-10-17 09:49:49,267 INFO [main] [com.atlassian .confluence.lifecycle] init Confluence is ready to serve [INFO] [talledLocalContainer] Okt 17, 2014 9:49:49 AM org.apache.coyote.http11.H ttp11Protocol start [INFO] [talledLocalContainer] INFORMATION: Starting Coyote HTTP/1.1 on http-1990 [INFO] [talledLocalContainer] Tomcat 6.x started on port [1990] [INFO] [talledLocalContainer] Okt 17, 2014 9:49:49 AM org.apache.jk.common.Chann elSocket init [INFO] [talledLocalContainer] INFORMATION: JK: ajp13 listening on /0.0.0.0:8009 [INFO] [talledLocalContainer] Okt 17, 2014 9:49:49 AM org.apache.jk.server.JkMai n start [INFO] [talledLocalContainer] INFORMATION: Jk running ID=0 time=0/16 config=nul l [INFO] [talledLocalContainer] Okt 17, 2014 9:49:49 AM org.apache.catalina.startu p.Catalina start [INFO] [talledLocalContainer] INFORMATION: Server startup in 88541 ms [INFO] [talledLocalContainer] log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.params.DefaultHttpParams). [INFO] [talledLocalContainer] log4j:WARN Please initialize the log4j system prop erly. [INFO] [talledLocalContainer] log4j:WARN No appenders could be found for logger (com.amazonaws.internal.config.InternalConfig). [INFO] [talledLocalContainer] log4j:WARN Please initialize the log4j system prop erly. [INFO] [talledLocalContainer] log4j:WARN See http://logging.apache.org/log4j/1.2 /faq.html#noconfig for more info. [INFO] adding system property to configuration: baseurl.confluence::http://IT016 -D01:1990/confluence [INFO] adding system property to configuration: homedir.confluence::C:\Users\bri schlej\at-confluence\tutorial\target\confluence\home [INFO] adding system property to configuration: plugin.jar::C:\Users\brischlej\a t-confluence\tutorial\target/tutorial-1.0.jar [INFO] adding system property to configuration: http.confluence.url::http://IT01 6-D01:1990/confluence [INFO] adding system property to configuration: context.path::/confluence [INFO] adding system property to configuration: http.confluence.port::1990 [INFO] adding system property to configuration: context.confluence.path::/conflu ence [INFO] adding system property to configuration: homedir::C:\Users\brischlej\at-c onfluence\tutorial\target\confluence\home [INFO] adding system property to configuration: http.port::1990 [INFO] adding system property to configuration: testGroup::__no_test_group__ [INFO] adding system property to configuration: reportsDirectory::C:\Users\brisc hlej\at-confluence\tutorial\target/group-__no_test_group__/tomcat6x/surefire-rep orts [INFO] adding system property to configuration: http.confluence.protocol::http [INFO] adding system property to configuration: baseurl::http://IT016-D01:1990/c onfluence [INFO] Failsafe integration-test configuration: [INFO] <?xml version="1.0" encoding="UTF-8"?> <configuration> <includes> <include>it/**</include> </includes> <excludes> <exclude>**/*$*</exclude> <exclude>**/Abstract*</exclude> </excludes> <systemPropertyVariables> <baseurl.confluence>http://IT016-D01:1990/confluence</baseurl.confluence> <homedir.confluence>C:\Users\brischlej\at-confluence\tutorial\target\conflue nce\home</homedir.confluence> <plugin.jar>C:\Users\brischlej\at-confluence\tutorial\target/tutorial-1.0.ja r</plugin.jar> <http.confluence.url>http://IT016-D01:1990/confluence</http.confluence.url> <context.path>/confluence</context.path> <http.confluence.port>1990</http.confluence.port> <context.confluence.path>/confluence</context.confluence.path> <homedir>C:\Users\brischlej\at-confluence\tutorial\target\confluence\home</h omedir> <http.port>1990</http.port> <testGroup>__no_test_group__</testGroup> <reportsDirectory>C:\Users\brischlej\at-confluence\tutorial\target/group-__n o_test_group__/tomcat6x/surefire-reports</reportsDirectory> <http.confluence.protocol>http</http.confluence.protocol> <baseurl>http://IT016-D01:1990/confluence</baseurl> </systemPropertyVariables> <reportsDirectory>C:\Users\brischlej\at-confluence\tutorial\target/group-__no_ test_group__/tomcat6x/surefire-reports</reportsDirectory> </configuration> [INFO] Failsafe report directory: C:\Users\brischlej\at-confluence\tutorial\targ et\group-__no_test_group__\tomcat6x\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running it.com.brischle.confluence.tutorial.MyComponentWiredTest [INFO] [talledLocalContainer] Okt 17, 2014 9:49:53 AM com.sun.jersey.server.impl .application.WebApplicationImpl _initiate [INFO] [talledLocalContainer] INFORMATION: Initiating Jersey application, versio n 'Jersey: 1.8-atlassian-15 06/27/2014 08:32 AM' [INFO] [talledLocalContainer] Okt 17, 2014 9:49:53 AM com.sun.jersey.api.wadl.co nfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.sun.jersey. server.wadl.generators.WadlGeneratorApplicationDoc [INFO] [talledLocalContainer] Okt 17, 2014 9:49:53 AM com.sun.jersey.api.wadl.co nfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.sun.jersey. server.wadl.generators.WadlGeneratorGrammarsSupport [INFO] [talledLocalContainer] Okt 17, 2014 9:49:53 AM com.sun.jersey.api.wadl.co nfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.atlassian.p lugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSuppo rt log4j:WARN No appenders could be found for logger (org.apache.wink.common.intern al.log.Providers). log4j:WARN Please initialize the log4j system properly. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.249 sec <<< FA ILURE! it.com.brischle.confluence.tutorial.MyComponentWiredTest Time elapsed: 1.249 se c <<< ERROR! java.lang.NoClassDefFoundError: com/atlassian/upm/api/util/Option at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.runViaRest Call(AtlassianPluginsTestRunner.java:114) at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.run(Atlass ianPluginsTestRunner.java:75) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide r.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4 Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider .java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray( ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke (ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi derFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork edBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java: 75) Caused by: java.lang.ClassNotFoundException: com.atlassian.upm.api.util.Option at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 14 more Results : Tests in error: it.com.brischle.confluence.tutorial.MyComponentWiredTest: com/atlassian/upm/ap i/util/Option Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b uild is platform dependent! [INFO] Failsafe report directory: C:\Users\brischlej\at-confluence\tutorial\targ et\group-__no_test_group__\tomcat6x\surefire-reports [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b uild is platform dependent! [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:27 min [INFO] Finished at: 2014-10-17T09:49:53+01:00 [INFO] Final Memory: 53M/308M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plug in:5.0.4:integration-test (default-integration-test) on project tutorial: Unable to execute mojo: There are test failures. [ERROR] [ERROR] Please refer to C:\Users\brischlej\at-confluence\tutorial\target\group-_ _no_test_group__\tomcat6x\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception C:\Users\brischlej\at-confluence\tutorial>
When i type in "atlas-mvn clean install" i get following errors:
neralconfig, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Search Web Interface (confluence.sections.search.v iew, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Share Page (com.atlassian.confluence.plugins.share -page, Version: 3.2.0, Installed: bundled) [INFO] [talledLocalContainer] Space Admin Sections (confluence.sections.space.ad min, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Advanced Sections (confluence.sections.space .advanced, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Browse Sections (confluence.sections.space.b rowse, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Export Web Interface (confluence.sections.sp ace.export.view, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Item Tabs (confluence.sections.space, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Labels Sections (confluence.sections.space.l abels, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Pages Sections (confluence.sections.space.pa ges, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Space Tools Sections (confluence.sections.space.to ols, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Spring Interceptor Adapter Plugin (com.atlassian.p lugins.atlassian-spring-interceptor-adapter-plugin-1.1, Version: 1.1, Installed: bundled) [INFO] [talledLocalContainer] Status Macro (com.atlassian.confluence.plugins.sta tus-macro, Version: 2.16, Installed: bundled) [INFO] [talledLocalContainer] Streams API (com.atlassian.streams.streams-api-5.3 .23, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Core Plugin (com.atlassian.streams.core, V ersion: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Inline Actions Plugin (com.atlassian.strea ms.actions, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams Plugin (com.atlassian.streams, Version: 5. 3.23, Installed: bundled) [INFO] [talledLocalContainer] Streams SPI (com.atlassian.streams.streams-spi-5.3 .23, Version: 5.3.23, Installed: bundled) [INFO] [talledLocalContainer] Support Healthcheck Plugin (com.atlassian.support. healthcheck.support-healthcheck-plugin, Version: 1.0.2, Installed: bundled) [INFO] [talledLocalContainer] Support Tools Plugin (com.atlassian.support.stp, V ersion: 3.5.22, Installed: bundled) [INFO] [talledLocalContainer] System Templates (com.atlassian.confluence.plugins .system-templates, Version: 5.6.4, Installed: bundled) [INFO] [talledLocalContainer] System Web Components (confluence.web.components, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Panels (confluence.web.panels, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Panels (confluence.web.panel.renderers, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] System Web Resources (confluence.web.resources, Ve rsion: 1.0, Installed: bundled) [INFO] [talledLocalContainer] TDM Merger (com.atlassian.plugins.confluence-tdm-m erger, Version: 5.6.4, Installed: bundled) [INFO] [talledLocalContainer] Table of Contents Plugin (org.randombits.confluenc e.toc, Version: 2.6.12, Installed: bundled) [INFO] [talledLocalContainer] TestRunner OSGI Bundle (com.atlassian.plugins.atla ssian-plugins-osgi-testrunner-bundle, Version: 1.2.0, Installed: bundled) [INFO] [talledLocalContainer] UWC Importer Admin Panel (com.atlassian.confluence .plugins.uwc.uwcimporter-adminpanel, Version: 2.0, Installed: bundled) [INFO] [talledLocalContainer] Upgrade Administration Interface (confluence.secti ons.admin.upgrade, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Administration (confluence.admin.user, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Hover Menu Sections (confluence.user.hover.me nu, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Lister (confluence.extra.userlister, Version: 2.6.1, Installed: bundled) [INFO] [talledLocalContainer] User Menu Sections (confluence.user.menu, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Menu Sections (confluence.user.menu.concise, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] User Status (confluence.userstatus, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] View Profile Web Interface (confluence.sections.pr ofile.view, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] View follow resources (confluence.sections.user.vi ew.follow, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] WebDAV Plugin (confluence.extra.webdav, Version: 4 .0.9, Installed: bundled) [INFO] [talledLocalContainer] Widget Connector (com.atlassian.confluence.extra.w idgetconnector, Version: 2.3.3, Installed: bundled) [INFO] [talledLocalContainer] Wiki Markup Plugin (confluence.xhtml.wikimarkup, V ersion: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Wiki Renderer Components (confluence.renderer.comp onents, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Common Plugin (com.atlassian.mywork.mywo rk-common-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Confluence Provider Plugin (com.atlassia n.mywork.mywork-confluence-provider-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] Workbox - Host Plugin (com.atlassian.mywork.mywork -confluence-host-plugin, Version: 2.2.7, Installed: bundled) [INFO] [talledLocalContainer] atlassian-failure-cache-plugin (com.atlassian.atla ssian-failure-cache-plugin, Version: 0.14, Installed: bundled) [INFO] [talledLocalContainer] atlassian-help-tips (com.atlassian.plugins.atlassi an-help-tips, Version: 2.0.1, Installed: bundled) [INFO] [talledLocalContainer] confluence-feature-discovery-plugin (com.atlassian .confluence.plugins.confluence-feature-discovery-plugin, Version: 1.10.1, Instal led: bundled) [INFO] [talledLocalContainer] confluence-ui-components (com.atlassian.confluence .plugins.confluence-ui-components, Version: 1.4.15, Installed: bundled) [INFO] [talledLocalContainer] fastdev-plugin (com.atlassian.labs.fastdev-plugin, Version: 2.4, Installed: bundled) [INFO] [talledLocalContainer] httpservice-bridge (com.atlassian.labs.httpservice .bridge-0.6.2, Version: 0.6.2, Installed: bundled) [INFO] [talledLocalContainer] jquery (com.atlassian.plugins.jquery, Version: 1.7 .2, Installed: bundled) [INFO] [talledLocalContainer] plugin-data-editor (com.atlassian.plugins.plugin-d ata-editor, Version: 1.2, Installed: bundled) [INFO] [talledLocalContainer] tutorial (com.brischle.confluence.tutorial-tests, Version: 1.0, Installed: bundled) [INFO] [talledLocalContainer] tutorial (com.brischle.confluence.tutorial, Versio n: 1.0, Installed: bundled) [INFO] [talledLocalContainer] [INFO] [talledLocalContainer] 2014-10-17 10:00:25,935 INFO [main] [com.atlassian .confluence.lifecycle] init Confluence is ready to serve [INFO] [talledLocalContainer] Okt 17, 2014 10:00:26 AM org.apache.coyote.http11. Http11Protocol start [INFO] [talledLocalContainer] INFORMATION: Starting Coyote HTTP/1.1 on http-1990 [INFO] [talledLocalContainer] Okt 17, 2014 10:00:26 AM org.apache.jk.common.Chan nelSocket init [INFO] [talledLocalContainer] INFORMATION: JK: ajp13 listening on /0.0.0.0:8009 [INFO] [talledLocalContainer] Tomcat 6.x started on port [1990] [INFO] [talledLocalContainer] Okt 17, 2014 10:00:26 AM org.apache.jk.server.JkMa in start [INFO] [talledLocalContainer] INFORMATION: Jk running ID=0 time=0/16 config=nul l [INFO] [talledLocalContainer] Okt 17, 2014 10:00:26 AM org.apache.catalina.start up.Catalina start [INFO] [talledLocalContainer] INFORMATION: Server startup in 91439 ms [INFO] [talledLocalContainer] log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.params.DefaultHttpParams). [INFO] [talledLocalContainer] log4j:WARN Please initialize the log4j system prop erly. [INFO] [talledLocalContainer] log4j:WARN No appenders could be found for logger (com.amazonaws.internal.config.InternalConfig). [INFO] [talledLocalContainer] log4j:WARN Please initialize the log4j system prop erly. [INFO] [talledLocalContainer] log4j:WARN See http://logging.apache.org/log4j/1.2 /faq.html#noconfig for more info. [INFO] adding system property to configuration: baseurl.confluence::http://IT016 -D01:1990/confluence [INFO] adding system property to configuration: homedir.confluence::C:\Users\bri schlej\at-confluence\tutorial\target\confluence\home [INFO] adding system property to configuration: plugin.jar::C:\Users\brischlej\a t-confluence\tutorial\target/tutorial-1.0.jar [INFO] adding system property to configuration: http.confluence.url::http://IT01 6-D01:1990/confluence [INFO] adding system property to configuration: context.path::/confluence [INFO] adding system property to configuration: http.confluence.port::1990 [INFO] adding system property to configuration: context.confluence.path::/conflu ence [INFO] adding system property to configuration: homedir::C:\Users\brischlej\at-c onfluence\tutorial\target\confluence\home [INFO] adding system property to configuration: http.port::1990 [INFO] adding system property to configuration: testGroup::__no_test_group__ [INFO] adding system property to configuration: reportsDirectory::C:\Users\brisc hlej\at-confluence\tutorial\target/group-__no_test_group__/tomcat6x/surefire-rep orts [INFO] adding system property to configuration: http.confluence.protocol::http [INFO] adding system property to configuration: baseurl::http://IT016-D01:1990/c onfluence [INFO] Failsafe integration-test configuration: [INFO] <?xml version="1.0" encoding="UTF-8"?> <configuration> <includes> <include>it/**</include> </includes> <excludes> <exclude>**/*$*</exclude> <exclude>**/Abstract*</exclude> </excludes> <systemPropertyVariables> <baseurl.confluence>http://IT016-D01:1990/confluence</baseurl.confluence> <homedir.confluence>C:\Users\brischlej\at-confluence\tutorial\target\conflue nce\home</homedir.confluence> <plugin.jar>C:\Users\brischlej\at-confluence\tutorial\target/tutorial-1.0.ja r</plugin.jar> <http.confluence.url>http://IT016-D01:1990/confluence</http.confluence.url> <context.path>/confluence</context.path> <http.confluence.port>1990</http.confluence.port> <context.confluence.path>/confluence</context.confluence.path> <homedir>C:\Users\brischlej\at-confluence\tutorial\target\confluence\home</h omedir> <http.port>1990</http.port> <testGroup>__no_test_group__</testGroup> <reportsDirectory>C:\Users\brischlej\at-confluence\tutorial\target/group-__n o_test_group__/tomcat6x/surefire-reports</reportsDirectory> <http.confluence.protocol>http</http.confluence.protocol> <baseurl>http://IT016-D01:1990/confluence</baseurl> </systemPropertyVariables> <reportsDirectory>C:\Users\brischlej\at-confluence\tutorial\target/group-__no_ test_group__/tomcat6x/surefire-reports</reportsDirectory> </configuration> [INFO] Failsafe report directory: C:\Users\brischlej\at-confluence\tutorial\targ et\group-__no_test_group__\tomcat6x\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running it.com.brischle.confluence.tutorial.MyComponentWiredTest [INFO] [talledLocalContainer] Okt 17, 2014 10:00:29 AM com.sun.jersey.server.imp l.application.WebApplicationImpl _initiate [INFO] [talledLocalContainer] INFORMATION: Initiating Jersey application, versio n 'Jersey: 1.8-atlassian-15 06/27/2014 08:32 AM' [INFO] [talledLocalContainer] Okt 17, 2014 10:00:29 AM com.sun.jersey.api.wadl.c onfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.sun.jersey. server.wadl.generators.WadlGeneratorApplicationDoc [INFO] [talledLocalContainer] Okt 17, 2014 10:00:29 AM com.sun.jersey.api.wadl.c onfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.sun.jersey. server.wadl.generators.WadlGeneratorGrammarsSupport [INFO] [talledLocalContainer] Okt 17, 2014 10:00:29 AM com.sun.jersey.api.wadl.c onfig.WadlGeneratorLoader loadWadlGenerator [INFO] [talledLocalContainer] INFORMATION: Loading wadlGenerator com.atlassian.p lugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSuppo rt log4j:WARN No appenders could be found for logger (org.apache.wink.common.intern al.log.Providers). log4j:WARN Please initialize the log4j system properly. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.193 sec <<< FA ILURE! it.com.brischle.confluence.tutorial.MyComponentWiredTest Time elapsed: 1.193 se c <<< ERROR! java.lang.NoClassDefFoundError: com/atlassian/upm/api/util/Option at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.runViaRest Call(AtlassianPluginsTestRunner.java:114) at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.run(Atlass ianPluginsTestRunner.java:75) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide r.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4 Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider .java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray( ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke (ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(Provi derFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork edBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java: 75) Caused by: java.lang.ClassNotFoundException: com.atlassian.upm.api.util.Option at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 14 more Results : Tests in error: it.com.brischle.confluence.tutorial.MyComponentWiredTest: com/atlassian/upm/ap i/util/Option Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b uild is platform dependent! [INFO] Failsafe report directory: C:\Users\brischlej\at-confluence\tutorial\targ et\group-__no_test_group__\tomcat6x\surefire-reports [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b uild is platform dependent! [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:44 min [INFO] Finished at: 2014-10-17T10:00:30+01:00 [INFO] Final Memory: 53M/306M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plug in:5.0.4:integration-test (default-integration-test) on project tutorial: Unable to execute mojo: There are test failures. [ERROR] [ERROR] Please refer to C:\Users\brischlej\at-confluence\tutorial\target\group-_ _no_test_group__\tomcat6x\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception C:\Users\brischlej\at-confluence\tutorial>
I tried the hello world example again, but for jira, this worked straight away.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I set up the environment completely new, yesterday. In the following answers you see the results. And they dont make me happy. It seems for jira it is working but for confluence its not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you ran "mvn clean install", do you still get the same error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.