Hi Team,
We are upgrading Confluence version from 5.10 to 7.1.2. Here we have used a customized apps(plugin) for some official functionalities. We have updated the version in POM file and tried to package using atlas-package.bat, the build successfully packaged without 100%.
Actual customized app size is near 7 MB(working). But now the size is near 2 MB after update the version.
atlassian-plugin-sdk-8.0.16 version used for build the plugin.
Also I have tried to add the existing plugin into the Confluence server, but throwing attached error. So i am trying to upgrade the plugin version.
Kindly check the attached POM file and error image and Let us know how to fix the problem and build the apps with 100%.
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.ncs.ilp.taxonomy.confluence</groupId>
<artifactId>ilp-taxonomy-confluence-plugin</artifactId>
<!-- <version>1.0-SNAPSHOT</version> -->
<version>1.0-SNAPSHOT-${timestamp}</version>
<organization>
<name>NCS PTE LTD</name>
<url>http://www.ncs.com.sg/</url>
</organization>
<name>ilp-taxonomy-confluence-plugin</name>
<description>This is the com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin plugin for Atlassian Confluence.</description>
<properties>
<confluence.version>7.1.2</confluence.version>
<confluence.data.version>7.1.2</confluence.data.version>
<amps.version>6.3.21</amps.version>
<plugin.testrunner.version>1.2.3</plugin.testrunner.version>
<atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
<!-- This key is used to keep the consistency between the key in atlassian-plugin.xml
and the key to generate bundle. -->
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
<create.content.version>4.0.9</create.content.version>
<springframework.version>5.1.7.RELEASE</springframework.version>
<json-simple-version>1.1.1</json-simple-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<jackson.version>1.9.8</jackson.version>
<jvm.args.custom /> <!-- Allows to specify custom arguments in build scripts -->
<jvm.args.xmx>1024m</jvm.args.xmx>
<jvm.args>-Xmx${jvm.args.xmx} ${jvm.args.custom}</jvm.args>
<containerId>tomcat9x</containerId>
<webdriver.browser>chrome</webdriver.browser>
<atlassian.dev.mode>false</atlassian.dev.mode>
<glassfish.jersey.version>2.25</glassfish.jersey.version>
</properties>
<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>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-annotation</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-runtime</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</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>com.atlassian.plugins.rest</groupId>
<artifactId>atlassian-rest-common</artifactId>
<version>2.8.0-confluence3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.sal</groupId>
<artifactId>sal-api</artifactId>
<version>2.0.17</version>
<scope>provided</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.8.6</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-client</artifactId>
<version>3.2.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb1-impl</artifactId>
<version>2.0.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.fastinfoset</groupId>
<artifactId>FastInfoset</artifactId>
<version>1.2.13</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.1.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>2.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.bundles.repackaged</groupId>
<artifactId>jersey-guava</artifactId>
<version>2.26-b03</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.bundles.repackaged</groupId>
<artifactId>jersey-jsr166e</artifactId>
<version>2.26-b02</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>${glassfish.jersey.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>${glassfish.jersey.version}</version>
<scope>compile</scope>
</dependency>
<!-- My dependencies -->
<dependency>
<groupId>com.atlassian.confluence.plugins</groupId>
<artifactId>confluence-create-content-plugin</artifactId>
<version>${create.content.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.39</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.2.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.comalatech.workflow</groupId>
<artifactId>adhocapi</artifactId>
<version>1.17.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.welemski</groupId>
<artifactId>gobblerparty</artifactId>
<version>1.1.10</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<groupId>com.github.mfornos</groupId>
<artifactId>humanize-slim</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.2</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>
<enableQuickReload>true</enableQuickReload>
<compressResources>true</compressResources>
<enableFastdev>false</enableFastdev>
<!-- See here for an explanation of default instructions: -->
<!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
<instructions>
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
<!-- Add package to export here -->
<Export-Package> com.my.confluence.myplugin.api, </Export-Package>
<!-- Add package import here -->
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional", *
</Import-Package>
<!-- Ensure plugin is spring powered -->
<Spring-Context>*</Spring-Context>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<executions>
<execution>
<goals>
<goal>atlassian-spring-scanner</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
<configuration>
<scannedDependencies>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-external-jar</artifactId>
</dependency>
</scannedDependencies>
<verbose>false</verbose>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
</pluginRepository>
</pluginRepositories>
<profiles>
<profile>
<id>profile-dev</id>
<properties>
<env>dev</env>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
</profile>
<profile>
<id>profile-sit</id>
<properties>
<env>sit</env>
</properties>
<activation>
<property>
<name>env</name>
<value>sit</value>
</property>
</activation>
</profile>
<profile>
<id>profile-staging</id>
<properties>
<env>staging</env>
</properties>
<activation>
<property>
<name>env</name>
<value>staging</value>
</property>
</activation>
</profile>
<profile>
<id>profile-prod</id>
<properties>
<env>prod</env>
</properties>
<activation>
<property>
<name>env</name>
<value>prod</value>
</property>
</activation>
</profile>
<profile>
<id>profile-excelsit</id>
<properties>
<env>excelsit</env>
</properties>
<activation>
<property>
<name>env</name>
<value>excelsit</value>
</property>
</activation>
</profile>
</profiles>
</project>
Error File:
Thanks & Regards:)
Natarajan Vijayan.
What is the error logs when building the plugin?
Use additional arguments '-e -X' to output greater detail of the error. This might help debug why the build was incomplete.
Thanks your reply.
I have tried the arguments and couldn't find out any issue. Also build success..
I will share the both build messages If you want to debug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After update POM file build- Incomplete one
P0102668@NCS-080120MZ04 MINGW64 /d/tool/Taxonomy/Taxo-TaxonomyForm (dev/gccupgrade)
$ atlas-package.bat -Denv=sit
[INFO] Project POM found
'else' is not recognized as an internal or external command,
operable program or batch file.
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin\mvn.cmd" package -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml -Denv=sit
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:jar:1.0-SNAPSHOT-20200218-030221
[WARNING] 'version' contains an expression but should be a constant. @ com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:1.0-SNAPSHOT-${timestamp}, D:\tool\Taxonomy\Taxo-TaxonomyForm\pom.xml, line 11, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---< com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin >---
[INFO] Building ilp-taxonomy-confluence-plugin 1.0-SNAPSHOT-20200218-030221
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ilp-taxonomy-confluence-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 193 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ilp-taxonomy-confluence-plugin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 174 source files to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes
[WARNING] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/plugin/profiles/action/EditJobRoleProfileAction.java: Some input files use or override a deprecated API.
[WARNING] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/plugin/profiles/action/EditJobRoleProfileAction.java: Recompile with -Xlint:deprecation for details.
[WARNING] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/action/BaseAction.java: Some input files use unchecked or unsafe operations.
[WARNING] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/action/BaseAction.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- atlassian-spring-scanner-maven-plugin:1.2.13:atlassian-spring-scanner (default) @ ilp-taxonomy-confluence-plugin ---
[INFO] Starting Atlassian Spring Byte Code Scanner...
[INFO]
[INFO]
[INFO] Analysis ran in 866 ms.
[INFO] Encountered 209 total classes
[INFO] Processed 7 annotated classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ilp-taxonomy-confluence-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\tool\Taxonomy\Taxo-TaxonomyForm\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ilp-taxonomy-confluence-plugin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ilp-taxonomy-confluence-plugin ---
[INFO] Surefire report directory: D:\tool\Taxonomy\Taxo-TaxonomyForm\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ ilp-taxonomy-confluence-plugin ---
[INFO] Building jar: D:\tool\Taxonomy\Taxo-TaxonomyForm\target\ilp-taxonomy-confluence-plugin-1.0-SNAPSHOT-20200218-030221.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:38 min
[INFO] Finished at: 2020-02-18T11:03:59+08:00
[INFO] ------------------------------------------------------------------------
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Before update POM file build- Complete one
P0102668@NCS-080120MZ04 MINGW64 /d/tool/Taxonomy/Taxo-TaxonomyForm (SIT)
$ atlas-package.bat -Denv=sit
[INFO] Project POM found
'else' is not recognized as an internal or external command,
operable program or batch file.
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin\mvn.cmd" package -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml -Denv=sit
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:atlassian-plugin:1.0-SNAPSHOT-20200218-045941
[WARNING] 'version' contains an expression but should be a constant. @ com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:1.0-SNAPSHOT-${timestamp}, D:\tool\Taxonomy\Taxo-TaxonomyForm\pom.xml, line 10, column 11
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:1.0-SNAPSHOT-${timestamp}, D:\tool\Taxonomy\Taxo-TaxonomyForm\pom.xml, line 211, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---< com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin >---
[INFO] Building ilp taxonomy confluence plugin 1.0-SNAPSHOT-20200218-045941
[INFO] --------------------------[ atlassian-plugin ]--------------------------
[WARNING] The POM for com.atlassian.analytics:analytics-api:jar:5.0.2-hashfix is missing, no dependency information available
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:compress-resources (default-compress-resources) @ ilp-taxonomy-confluence-plugin ---
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[INFO] Compiling javascript using YUI
[INFO] 27 Javascript file(s) were minified into target directory D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes
[INFO] 16 CSS file(s) were minified into target directory D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes
[INFO] Compressing XML files
[INFO] 2 XML file(s) were minified into target directory D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ ilp-taxonomy-confluence-plugin ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 195 resources
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:filter-plugin-descriptor (default-filter-plugin-descriptor) @ ilp-taxonomy-confluence-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ ilp-taxonomy-confluence-plugin ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 174 source files to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes
[INFO] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/plugin/profiles/action/EditJobRoleProfileAction.java: Some input files use or override a deprecated API.
[INFO] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/plugin/profiles/action/EditJobRoleProfileAction.java: Recompile with -Xlint:deprecation for details.
[INFO] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/action/BaseAction.java: Some input files use unchecked or unsafe operations.
[INFO] /D:/tool/Taxonomy/Taxo-TaxonomyForm/src/main/java/com/ncs/ilp/taxonomy/confluence/action/BaseAction.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:generate-rest-docs (default-generate-rest-docs) @ ilp-taxonomy-confluence-plugin ---
[INFO]
[INFO] --- atlassian-spring-scanner-maven-plugin:1.2.6:atlassian-spring-scanner (default) @ ilp-taxonomy-confluence-plugin ---
[INFO] Starting Atlassian Spring Byte Code Scanner...
[INFO]
[INFO]
[INFO] Analysis ran in 460 ms.
[INFO] Encountered 183 total classes
[INFO] Processed 3 annotated classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ ilp-taxonomy-confluence-plugin ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\tool\Taxonomy\Taxo-TaxonomyForm\src\test\resources
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ ilp-taxonomy-confluence-plugin ---
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ ilp-taxonomy-confluence-plugin ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\test-classes
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:unit-test (default-unit-test) @ ilp-taxonomy-confluence-plugin ---
[INFO] Surefire report directory: D:\tool\Taxonomy\Taxo-TaxonomyForm\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:copy-bundled-dependencies (default-copy-bundled-dependencies) @ ilp-taxonomy-confluence-plugin ---
[INFO] Unpacking C:\Users\P0102668\.m2\repository\mysql\mysql-connector-java\5.1.39\mysql-connector-java-5.1.39.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\org\apache\httpcomponents\httpcore\4.4.1\httpcore-4.4.1.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\google\code\gson\gson\2.7\gson-2.7.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\net\sourceforge\jtds\jtds\1.2.2\jtds-1.2.2.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\org\apache\httpcomponents\httpmime\4.5.2\httpmime-4.5.2.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\atlassian\plugin\atlassian-spring-scanner-runtime\1.2.6\atlassian-spring-scanner-runtime-1.2.6.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\atlassian\plugin\atlassian-spring-scanner-annotation\1.2.6\atlassian-spring-scanner-annotation-1.2.6.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\welemski\gobblerparty\1.1.10\gobblerparty-1.1.10.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\me\xuender\unidecode\0.0.7\unidecode-0.0.7.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\github\mfornos\humanize-slim\1.2.2\humanize-slim-1.2.2.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\welemski\gobbler\1.0.20\gobbler-1.0.20.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\google\guava\guava\11.0.2\guava-11.0.2.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\commons-codec\commons-codec\1.8\commons-codec-1.8.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\google\code\findbugs\jsr305\3.0.0\jsr305-3.0.0.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\com\welemski\wrench\1.0.13\wrench-1.0.13.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\org\ocpsoft\prettytime\prettytime\3.2.5.Final\prettytime-3.2.5.Final.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO] Unpacking C:\Users\P0102668\.m2\repository\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar to D:\tool\Taxonomy\Taxo-TaxonomyForm\target\classes with includes "" and excludes "atlassian-plugin.xml,META-INF/MANIFEST.MF,META-INF/*.DSA,META-INF/*.SF"
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ ilp-taxonomy-confluence-plugin ---
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:generate-manifest (default-generate-manifest) @ ilp-taxonomy-confluence-plugin ---
[INFO] Generating a manifest for this plugin
[INFO] using maven-bundle-plugin v2.5.3
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:generate-test-manifest (default-generate-test-manifest) @ ilp-taxonomy-confluence-plugin ---
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:validate-manifest (default-validate-manifest) @ ilp-taxonomy-confluence-plugin ---
[INFO] Manifest found, validating...
[INFO] Manifest validated
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:jar (default-jar) @ ilp-taxonomy-confluence-plugin ---
[INFO] Building jar: D:\tool\Taxonomy\Taxo-TaxonomyForm\target\ilp-taxonomy-confluence-plugin-1.0-SNAPSHOT-20200218-045941.jar
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:generate-obr-artifact (default-generate-obr-artifact) @ ilp-taxonomy-confluence-plugin ---
[INFO] using maven-bundle-plugin v2.5.3
[INFO] Writing OBR metadata
[INFO] Installing ilp-taxonomy-confluence-plugin-1.0-SNAPSHOT-20200218-045941.jar
[INFO] Writing OBR metadata
[INFO] Building jar: D:\tool\Taxonomy\Taxo-TaxonomyForm\target\ilp-taxonomy-confluence-plugin-1.0-SNAPSHOT-20200218-045941.obr
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:validate-test-manifest (default-validate-test-manifest) @ ilp-taxonomy-confluence-plugin ---
[INFO]
[INFO] --- maven-confluence-plugin:6.2.4:test-jar (default-test-jar) @ ilp-taxonomy-confluence-plugin ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:09 min
[INFO] Finished at: 2020-02-18T13:01:50+08:00
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have compared both build and find out the below differences in Incmplete plugin
Kindly help to add the above plugin in new POM file.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The build log has a warning that is hinting to potential problem.
[WARNING] Some problems were encountered while building the effective model for com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:atlassian-plugin:1.0-SNAPSHOT-20200218-045941
[WARNING] 'version' contains an expression but should be a constant. @ com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:1.0-SNAPSHOT-${timestamp}, D:\tool\Taxonomy\Taxo-TaxonomyForm\pom.xml, line 10, column 11
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ com.ncs.ilp.taxonomy.confluence:ilp-taxonomy-confluence-plugin:1.0-SNAPSHOT-${timestamp}, D:\tool\Taxonomy\Taxo-TaxonomyForm\pom.xml, line 211, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Perhaps first change the version for your plugin in the pom
from
<version>1.0-SNAPSHOT-${timestamp}</version>
to
<version>1.0-SNAPSHOT</version>
And see if this makes a difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got this exception after changed the version...
--------------------------
Attributes
--------------------------
javax.servlet.forward.request_uri: /taxonomy/profiles/render-edit-job-role-profile-page-action.action
javax.servlet.forward.context_path:
javax.servlet.forward.servlet_path: /taxonomy/profiles/render-edit-job-role-profile-page-action.action
javax.servlet.forward.query_string: pageId=26640518
javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@15242af
javax.servlet.error.status_code: 500
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@38fedd4e
com.opensymphony.sitemesh.APPLIED_ONCE: true
__cleanup_recursion_counter: 0
com.atlassian.confluence.util.message.MessagesDecoratorFilter__already_filtered__: true
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true
atlassian.core.seraph.original.url: /500page.jsp?pageId=26640518
com.atlassian.labs.botkiller.BotKillerFilter: true
com.atlassian.gzipfilter.GzipFilter_already_filtered: true
Confluence-Request-Time: 1582012704390
com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true
com.atlassian.seraph.auth.LoginReason: OK
confluence.messages: {websudo-message=com.atlassian.confluence.security.websudo.WebSudoMessage@152aa971}
webwork.valueStack: com.opensymphony.xwork.util.OgnlValueStack@29b3abd4
confluence.themecontext: com.atlassian.confluence.themes.ThemeContext@3ae7d377
javax.servlet.error.message:
javax.servlet.error.servlet_name: action
com.opensymphony.sitemesh.USINGSTREAM: false
B3-TraceId: f732fd8ca5eac5
loginfilter.already.filtered: true
javax.servlet.jsp.jspException: java.lang.ClassNotFoundException: not found by com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [290]
javax.servlet.error.request_uri: /taxonomy/profiles/render-edit-job-role-profile-page-action.action
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true
com.comalatech.pageapprovals: com.comalatech.confluence.workflow.DefaultWorkflowAccessor$PageWorkflowsContainer@743d6dc8
javax.servlet.error.exception: java.lang.ClassNotFoundException: not found by com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [290]
os_securityfilter_already_filtered: true
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true
--------------------------
Parameters
--------------------------
pageId : 26640518
caused by: java.lang.ClassNotFoundException: not found by com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [290]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There would appear to be some error in how your atlassian-plugn.xml is defining things and the dependencies you declare in your pom.
javax.servlet.forward.request_uri: /taxonomy/profiles/render-edit-job-role-profile-page-action.action
You are moving from Confluence 5.10 to 7.1.2, which is a large change. The API has likely change significantly. Even when upgrading from JIRA 6.4 to 7.4, I had to rewire some of the dependencies and update some of the component-imports in the plugin definitions.
I would suggest you restart from your original working baseline and progressively step through the Confluence versions 5.10 to 6(?) then finally 7.1.2. Each step, update your pom and source for any errors and warnings, and commit back to the version control under a feature branch - this help preserve a working baseline.
If possible, test each step's build with a confluence of the same version. You can do it either by lifting up an evaluation server each time and destroying after use, or use the standalone run via the SDK
Side note
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your suggestion and I will restart the version upgrade from next week..
Now I have upgraded the pom and can built the complete jar file. The below exception is throwing when i tried to import the jar in confluence server. Kindly check it and let us know if you have any suggestion...
-- url: /rest/plugins/1.0/ | referer: http://vms0116:8090/plugins/servlet/upm | traceId: ded10f70a3249123 | userName: admin
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin
.
.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.osgi.framework.BundleException: Unable to resolve com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [287](R 287.0): missing requirement [com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [287](R 287.0)] osgi.wiring.package; (osgi.wiring.package=com.mchange.v2.c3p0) Unresolved requirements: [[com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin [287](R 287.0)] osgi.wiring.package; (osgi.wiring.package=com.mchange.v2.c3p0)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:405)
... 113 more
2020-02-18 19:14:17,849 ERROR [UpmAsynchronousTaskManager:thread-2] [atlassian.plugin.manager.PluginEnabler] actualEnable Unable to enable plugin com.ncs.ilp.taxonomy.confluence.ilp-taxonomy-confluence-plugin
Thank You.
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.