Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-20379

Can't build Confluence 3.3 from source distribution

    XMLWordPrintable

Details

    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:

      1. Download the Java mail JAR from Sun's web site.
      2. Download the standalone edition of Confluence from our download site and unpack it to a local drive.
      3. 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/
        
      4. 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
        
      5. 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
        
      6. 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 
        
      7. 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/
        
      8. Download the Oracle OJDBC driver from http://otn.oracle.com/.
      9. 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

          Activity

            People

              Unassigned Unassigned
              sleberrigaud Samuel Le Berrigaud
              Votes:
              8 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: