I created an OSGi plugin for Confluence, using the command line:
mvn archetype:generate -DarchetypeCatalog=http://svn.atlassian.com/svn/public/atlassian/maven-plugins/archetype-catalog
I then tried building once with "atlas-mvn install" to populate the .m2 cache with non-standard dependencies. The build failed with the missing dependency tangosol-coherence:coherence:jar:3.3.
Should I run the archetype in a different way? Can i fix this missing dependency somehow?
Thanks!
Here's the full output from "atlas-mvn install" in the freshly created OSGi plugin project:
C:\Users\steinarb\temp\sb_macro>atlas-mvn install
Executing: "C:\Users\steinarb\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" -gs C:\Users\steinarb\atlassian-plugin-sdk\apache-maven/conf/settings.xml install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
Downloading: https://maven.atlassian.com/repository/public/tangosol-coherence/tangosol/3.3/tangosol-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:tangosol:pom:3.3' in repository atlassian-public (https://maven.atlassian.com/repository/public)
Downloading: file://C:\Users\steinarb\atlassian-plugin-sdk/repository/tangosol-coherence/tangosol/3.3/tangosol-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:tangosol:pom:3.3' in repository atlassian-plugin-sdk (file://C:\Users\steinarb\atlassian-plugin-sdk/repository)
Downloading: http://repo1.maven.org/maven2/tangosol-coherence/tangosol/3.3/tangosol-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:tangosol:pom:3.3' in repository central (http://repo1.maven.org/maven2)
Downloading: https://maven.atlassian.com/repository/public/tangosol-coherence/coherence/3.3/coherence-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:coherence:pom:3.3' in repository atlassian-public (https://maven.atlassian.com/repository/public)
Downloading: file://C:\Users\steinarb\atlassian-plugin-sdk/repository/tangosol-coherence/coherence/3.3/coherence-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:coherence:pom:3.3' in repository atlassian-plugin-sdk (file://C:\Users\steinarb\atlassian-plugin-sdk/repository)
Downloading: http://repo1.maven.org/maven2/tangosol-coherence/coherence/3.3/coherence-3.3.pom
[INFO] Unable to find resource 'tangosol-coherence:coherence:pom:3.3' in repository central (http://repo1.maven.org/maven2)
Downloading: https://maven.atlassian.com/repository/public/tangosol-coherence/tangosol/3.3/tangosol-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:tangosol:jar:3.3' in repository atlassian-public (https://maven.atlassian.com/repository/public)
Downloading: file://C:\Users\steinarb\atlassian-plugin-sdk/repository/tangosol-coherence/tangosol/3.3/tangosol-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:tangosol:jar:3.3' in repository atlassian-plugin-sdk (file://C:\Users\steinarb\atlassian-plugin-sdk/repository)
Downloading: http://repo1.maven.org/maven2/tangosol-coherence/tangosol/3.3/tangosol-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:tangosol:jar:3.3' in repository central (http://repo1.maven.org/maven2)
Downloading: https://maven.atlassian.com/repository/public/tangosol-coherence/coherence/3.3/coherence-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:coherence:jar:3.3' in repository atlassian-public (https://maven.atlassian.com/repository/public)
Downloading: file://C:\Users\steinarb\atlassian-plugin-sdk/repository/tangosol-coherence/coherence/3.3/coherence-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:coherence:jar:3.3' in repository atlassian-plugin-sdk (file://C:\Users\steinarb\atlassian-plugin-sdk/repository)
Downloading: http://repo1.maven.org/maven2/tangosol-coherence/coherence/3.3/coherence-3.3.jar
[INFO] Unable to find resource 'tangosol-coherence:coherence:jar:3.3' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) tangosol-coherence:tangosol:jar:3.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=tangosol-coherence -DartifactId=tangosol -Dversion=3.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=tangosol-coherence -DartifactId=tangosol -Dversion=3.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[i
d]
Path to dependency:
1) no.steria.confluence.macros:sb_macro:atlassian-plugin:1.0-SNAPSHOT
2) com.atlassian.confluence:confluence:jar:2.10
3) tangosol-coherence:tangosol:jar:3.3
2) tangosol-coherence:coherence:jar:3.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=tangosol-coherence -DartifactId=coherence -Dversion=3.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=tangosol-coherence -DartifactId=coherence -Dversion=3.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[
id]
Path to dependency:
1) no.steria.confluence.macros:sb_macro:atlassian-plugin:1.0-SNAPSHOT
2) com.atlassian.confluence:confluence:jar:2.10
3) tangosol-coherence:coherence:jar:3.3
----------
2 required artifacts are missing.
for artifact:
no.steria.confluence.macros:sb_macro:atlassian-plugin:1.0-SNAPSHOT
from the specified remote repositories:
atlassian-plugin-sdk (file://C:\Users\steinarb\atlassian-plugin-sdk/repository),
central (http://repo1.maven.org/maven2),
atlassian-public (https://maven.atlassian.com/repository/public)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon May 26 16:12:01 CEST 2014
[INFO] Final Memory: 29M/303M
[INFO] ------------------------------------------------------------------------
C:\Users\steinarb\temp\sb_macro>