Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
4.2.1, 4.2.2, 4.2.3, 4.2.4
Description
I download the confluence source distribution from:
unpack it, and run ./build.sh, which goes through without a hitch. However this is using my local maven repo, and using my settings.xml, which has access to the private maven repos.
If I modify the maven command in build.sh to have "-Dmaven.repo.local=localrepo" and "-s ./maven/conf/settings.xml", this should emulate what a customer experiences.
After adding the restricted jars (javamail-1.3.3 etc), I get the following output:
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.2.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2 2) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.2.1 2) com.atlassian.plugins.rest:com.atlassian.jersey-library:pom:2.6.2.1 Path to dependency: 1) com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2 2) com.atlassian.plugins.rest:com.atlassian.jersey-library:pom:2.6.2.1 ---------- 2 required artifacts are missing. for artifact: com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), atlassian-m1-repository (https://maven.atlassian.com/repository/m1/), atlassian-proxy (https://m2proxy.atlassian.com/repository/public)
The confluence rest plugin is dependent on rest-common-2.6.2.1, which when I go looking for it I only find in our private repo.
There are newer versions of rest-common in public, maybe the dependency can be bumped?
Attachments
Issue Links
- relates to
-
CONFSERVER-20379 Can't build Confluence 3.3 from source distribution
- Closed
-
CONFSERVER-22081 Building Confluence Source Release Fails due to Missing Files (artifacts)
- Closed
- mentioned in
-
Wiki Page Loading...