[fedora-java] Packaging Spago BI

Sandro Bonazzola sbonazzo at redhat.com
Wed Jan 20 13:29:41 UTC 2016


On Tue, Jan 19, 2016 at 6:55 PM, gil <puntogil at libero.it> wrote:

> hi
> now seem landed @ https://github.com/SpagoBILabs/SpagoBI
>
> Il 19/01/2016 12:16, Sandro Bonazzola ha scritto:
>
> Hi,
> I started trying to package Spago BI (  <http://spagobi.com/>
> http://spagobi.com/ ) for Fedora.
>
> An initial spec file I created mostly to understand what's being built is
> here:
> https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
>
> The output of maven install is a set of war files which includes libraries
> and javascript libraries from external sources / projects (maven central
> mostly).
>
> war format is not supported (ask to mizdebsk)
>
> During the build, several jar files are created and not installed by mvn
> install.
>
> can you post somewhere a build.log?
>


Started splitting up some things:
spagobi-parent :
https://gerrit.ovirt.org/#/c/52461/4/specs/spagobi-parent/spagobi-parent.spec.in
spagobi-utils-json :
https://gerrit.ovirt.org/#/c/52500/1/specs/spagobi-utils-json/spagobi-utils-json.spec.in

now following the build sequence, I should build spagobi-utils but just
running "xmvn -o package" in the source tree I have:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/CustomDataSet.java:[26,24]
cannot find symbol
  symbol:   class LogMF
  location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/persist/temporarytable/DatasetTemporaryTableUtils.java:[20,24]
cannot find symbol
  symbol:   class LogMF
  location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[11,29]
package org.apache.log4j.jdbc does not exist
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[21,41]
cannot find symbol
  symbol: class JDBCAppender
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/AbstractCustomDataSet.java:[30,24]
cannot find symbol
  symbol:   class LogMF
  location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[53,48]
cannot find symbol
  symbol:   class ApacheHttpClientExecutor
  location: package org.jboss.resteasy.client.core.executors
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[70,17]
cannot find symbol
  symbol:   class ApacheHttpClientExecutor
  location: class it.eng.spagobi.tools.dataset.ckan.CKANClient
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/security/oauth2/OAuth2Client.java:[19,24]
cannot find symbol
  symbol:   class LogMF
  location: package org.apache.log4j
[INFO] 8 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.124 s
[INFO] Finished at: 2016-01-20T14:28:25+01:00
[INFO] Final Memory: 31M/286M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.3:compile
(default-compile) on project SpagoBIUtils: Compilation failure: Compilation
failure:
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/CustomDataSet.java:[26,24]
cannot find symbol
[ERROR] symbol:   class LogMF
[ERROR] location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/persist/temporarytable/DatasetTemporaryTableUtils.java:[20,24]
cannot find symbol
[ERROR] symbol:   class LogMF
[ERROR] location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[11,29]
package org.apache.log4j.jdbc does not exist
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[21,41]
cannot find symbol
[ERROR] symbol: class JDBCAppender
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/AbstractCustomDataSet.java:[30,24]
cannot find symbol
[ERROR] symbol:   class LogMF
[ERROR] location: package org.apache.log4j
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[53,48]
cannot find symbol
[ERROR] symbol:   class ApacheHttpClientExecutor
[ERROR] location: package org.jboss.resteasy.client.core.executors
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[70,17]
cannot find symbol
[ERROR] symbol:   class ApacheHttpClientExecutor
[ERROR] location: class it.eng.spagobi.tools.dataset.ckan.CKANClient
[ERROR]
/NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/security/oauth2/OAuth2Client.java:[19,24]
cannot find symbol
[ERROR] symbol:   class LogMF
[ERROR] location: package org.apache.log4j
[ERROR] -> [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/MojoFailureException


I suspect something related to log4j API changes, any hint?




>
> I've searched for a packaging guidelines wiki page about packaging wildfly
> webapps and in IRC I've been pointed to thermostat package as example.
> I'm not realy sure to have understood what's expected from the package:
> - is it ok to just have the final war file in the package?
> - is it ok to have libraries (jar and js) from other packages included in
> the war file? (I know, I'm using mvn and not maven-local since I don't have
> packaged dependencies yet, but supposing they're in fedora, is it allowed
> to have them in the war file?
>
> wildfly, if it is not already happened, it should be retired (ask to
> mgoldman)
>
> Help with the packaging effort is welcome :-)
>
> regards
> .g
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
>
>
> --
> java-devel mailing listjava-devel at lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/java-devel
>
>
>
> --
> java-devel mailing list
> java-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel
>



-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20160120/bcbc8a26/attachment.html>


More information about the java-devel mailing list