I am trying my hand at writing baitbucket server plugin, i have successfully created a bamboo plugin; however when i create the default bitbucket plugin via the sdk, i cant get it to compile at all. I have version 7.21.7, any help would be most appreciated
pom
<properties>
<bitbucket.version>7.21.7</bitbucket.version>
[ERROR] Failed to execute goal on project awesomegit: Could not resolve dependencies for project org.my.bitbucket:awesomegit:atlassian-plugin:1.0.0-SNAPSHOT: The following artifacts could not be resolved: com.atlassian.bitbucket.server:bitbucket-git:jar:7.21.7, com.atlassian.bitbucket.server:bitbucket-dmz-api:jar:7.21.7, com.atlassian.bitbucket.mesh:mesh-rpc:jar:1.0.0-m8, com.atlassian.bitbucket.server:bitbucket-mesh-callback:jar:0.9.3, com.atlassian.bitbucket.server:bitbucket-model:jar:7.21.7, com.atlassian.bitbucket.server:bitbucket-platform:jar:7.21.7, com.atlassian.crowd:crowd-ldap:jar:4.3.9, com.atlassian.plugins:atlassian-plugins-osgi:jar:5.8.2-66688336b, org.codehaus.jackson:jackson-core-asl:jar:1.9.13-atlassian-3: Could not transfer artifact com.atlassian.bitbucket.server:bitbucket-git:jar:7.21.7 from/to atlassian-public (https://maven.atlassian.com/repository/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]```
If you were trying to build 12-18 hours ago, Atlassian was having issues with maven.atlassian.com
. They’ve since been resolved, so you may want to try again.
I was build about 3 hrs ago
this is what i have run
PS C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit> atlas-create-bitbucket-plugin
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:bitbucket-maven-plugin:8.1.2:create -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- bitbucket-maven-plugin:8.1.2:create (default-cli) @ standalone-pom ---
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by adding <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configuration in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:bitbucket - Create Plugin
[INFO] using stable product version: 5.16.0
[INFO] using stable data version: 5.16.0
Define value for groupId: : org.my.bitbucket
Define value for artifactId: : awesomegit
Define value for version: 1.0.0-SNAPSHOT: :
Define value for package: org.my.bitbucket: : org.my.bitbucket.awesomegit
Use OSGi Java Config: (Y/N/y/n) N: : y
Confirm properties configuration:
groupId: org.my.bitbucket
artifactId: awesomegit
version: 1.0.0-SNAPSHOT
package: org.my.bitbucket.awesomegit
use OSGi Java Config: y
Y: : y
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repsoitory with id 'archetype' in your settings.xml if archetype's repository is elsewhere.
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: bitbucket-plugin-archetype:8.1.2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.my.bitbucket
[INFO] Parameter: artifactId, Value: awesomegit
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: package, Value: org.my.bitbucket.awesomegit
[INFO] Parameter: packageInPathFormat, Value: org/my/bitbucket/awesomegit
[INFO] Parameter: jiraVersion, Value: 7.13.0
[INFO] Parameter: bitbucketDataVersion, Value: 5.16.0
[INFO] Parameter: package, Value: org.my.bitbucket.awesomegit
[INFO] Parameter: bitbucketVersion, Value: 5.16.0
[INFO] Parameter: confluenceDataVersion, Value: 6.14.0
[INFO] Parameter: refappDataVersion, Value: 5.0.0
[INFO] Parameter: groupId, Value: org.my.bitbucket.bitbucket
[INFO] Parameter: fecruVersion, Value: 4.6.1-20181008080545
[INFO] Parameter: crowdDataVersion, Value: 3.3.3
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: refappVersion, Value: 3.3.6
[INFO] Parameter: jiraDataVersion, Value: 7.13.0
[INFO] Parameter: confluenceVersion, Value: 6.14.0
[INFO] Parameter: bambooDataVersion, Value: 6.8.0
[INFO] Parameter: useOsgiJavaConfig, Value: Y
[INFO] Parameter: fecruDataVersion, Value: 4.6.1-20181008080545
[INFO] Parameter: bambooVersion, Value: 6.8.0
[INFO] Parameter: platformVersion, Value: 5.0.0
[INFO] Parameter: artifactId, Value: awesomegit
[INFO] Parameter: crowdVersion, Value: 3.3.3
[WARNING] CP Don't override file C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\awesomegit\src\main\resources\META-INF
[WARNING] CP Don't override file C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\awesomegit\src\main\resources\META-INF\spring
[INFO] Executing META-INF/archetype-post-generate.groovy post-generation script
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/C:/Users/david-attard/.m2/repository/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Project created from Archetype in dir: C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\awesomegit
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:25 min
[INFO] Finished at: 2023-07-07T14:12:54+10:00
[INFO] ------------------------------------------------------------------------
then
PS C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit> atlas-compile.bat
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\bin\mvn.cmd" compile -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< org.my.bitbucket:awesomegit >-----------------
[INFO] Building awesomegit 1.0.0-SNAPSHOT
[INFO] --------------------------[ atlassian-plugin ]--------------------------
[WARNING] The POM for com.sun.xml.bind:jaxb-impl:jar:2.2.11 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- bitbucket-maven-plugin:8.1.2:compress-resources (default-compress-resources) @ awesomegit ---
[INFO] 1 js file(s) were output to target directory C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\target\classes
[INFO] 1 css file(s) were output to target directory C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\target\classes
[INFO] 2 xml file(s) were output to target directory C:\Users\david-attard\Documents\Develop\bitbucket\plugins\awesomegit\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ awesomegit ---
[INFO] Copying 7 resources from src\main\resources to target\classes
[INFO]
[INFO] --- bitbucket-maven-plugin:8.1.2:filter-plugin-descriptor (default-filter-plugin-descriptor) @ awesomegit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ awesomegit ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 3 source files with javac [debug target 1.8] to target\classes
[WARNING] bootstrap class path not set in conjunction with -source 8
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.470 s
[INFO] Finished at: 2023-07-07T14:17:54+10:00
[INFO] ------------------------------------------------------------------------
then
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.548 s
[INFO] Finished at: 2023-07-07T14:20:02+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:8.1.2:run (default-cli) on project awesomegit: Unable to find/resolve artifact.: Could not transfer artifact com.atlassian.bitbucket.search:embedded-elasticsearch-plugin:jar:6.0.1 from/to atlassian-public (https://maven.atlassian.com/repository/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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
ok i found the solution C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\apache-maven-3.5.4\conf\settings.xml
<repositories>
<!-- <repository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>-->
<repository>
<id>atlassian-public</id>
<url>https://packages.atlassian.com/maven-external</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
and
<pluginRepositories>
<!--<pluginRepository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</pluginRepository> -->
<pluginRepository>
<id>atlassian-public</id>
<url>https://packages.atlassian.com/maven-external</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</pluginRepository>