Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
3.3
Description
See forum thread: http://forums.atlassian.com/thread.jspa?threadID=45499&tstart=0 for a bit of background.
There are a handful of JAR files we can't make available on a public maven repository. This results in build errors when using the default build.sh file included with the Confluence 3.3 source distribution:
Missing: ---------- 1) net.jexcell:jxcell:jar:1.2.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.jexcell -DartifactId=jxcell -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.jexcell -DartifactId=jxcell -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.atlassian.confluence:confluence-bundled-plugins:pom:3.3 2) com.atlassian.confluence.officeconnector:OfficeConnector:jar:1.11 3) net.jexcell:jxcell:jar:1.2.2 2) com.aspose:aspose.words:jar:3.2.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.aspose -DartifactId=aspose.words -Dversion=3.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.aspose -DartifactId=aspose.words -Dversion=3.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.atlassian.confluence:confluence-bundled-plugins:pom:3.3 2) com.atlassian.confluence.officeconnector:OfficeConnector:jar:1.11 3) com.aspose:aspose.words:jar:3.2.1
Workaround
To get builds working locally:
- Download the Java mail JAR from Sun's web site.
- Download the standalone edition of Confluence from our download site and unpack it to a local drive.
- Deploy the JAR file to your local repo using command like:
mvn deploy:deploy-file -DgroupId=javax.mail -DartifactId=mail -Dversion=1.3.3 -Dpackaging=jar -Dfile=/opt/installs/javamail-1.3.3_01/mail.jar -Durl=file:///Users/raise-issue/.m2/repository/
- Extract the Office Connector JAR file using a command like:
jar fvx /opt/confluence/3.3/confluence-3.3-std/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip OfficeConnector-1.11.jar
- Unpack the "lib" directory from the Office Connector JAR file using a command like:
jar fvx /opt/confluence/3.3/confluence-3.3-std/confluence-data/bundled-plugins/OfficeConnector-1.11.jar META-INF/lib
- Install the jxcell JAR file using a command like:
mvn install:install-file -DgroupId=net.jexcell -DartifactId=jxcell -Dversion=1.2.2 -Dpackaging=jar -Dfile=META-INF/lib/jxcell-1.2.2.jar
- Install the aspose JAR file to your local maven repository using a command like:
mvn deploy:deploy-file -DgroupId=com.aspose -DartifactId=aspose.words -Dversion=3.2.1 -Dpackaging=jar -Dfile=META-INF/lib/aspose.words-3.2.1.jar -Durl=file:///Users/raise-issue/.m2/repository/
- Download the Oracle OJDBC driver from http://otn.oracle.com/.
- Install the Oracle JAR file to your local maven repository using a command like:
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4 -Dpackaging=jar -Dfile=/opt/installs/db/ojdbc14.jar
If you have a number of developers in your environment, you can use similar steps to install the required files on a local repository.
Attachments
Issue Links
- is related to
-
CONFSERVER-25400 Confluence 4.2.2 source distribution has a dependency on a non public artifact
- Closed