← Back to team overview

dhis2-devs team mailing list archive

Re: Maven compilation failure

 

Hi Roland,

After making change in pom.xml file as indicated by you,
code is getting compiled without any trouble.

Thanks and Regards 

Brajesh Murari

------------------------------------------------------------------------------------------------
A fool can become a genius when he understands he is a fool. But; A genius can become a fool when he understands he is a genius.
----------------------------------------------------------------------------------------------------------------------------------Dr. Abdul Kalam-----------



On Sunday, 17 November 2013 3:24 PM, Lars Kristian Roland <lars@xxxxxxxxx> wrote:
 
Not sure why this happens. Try changing the pom.xml  in the dhis-2 directory, replacing 3.5.3 with 3.5.2-r2307. Just to see if this works. 

You can get the smslib from DHIS2 External repo, but for that you have to change the version number
This is currently mention in pom.xml in dhis-2

<dependency>
        <groupId>org.smslib</groupId>
        <artifactId>smslib</artifactId>
        <version>3.5.3</version>
</dependency>
change it to:
<dependency>
        <groupId>org.smslib</groupId>
        <artifactId>smslib</artifactId>
        <version>3.5.2-r2307</version>
</dependency>



2013/11/17 Brajesh Murari <brajesh.murari@xxxxxxxxx>

Hi Roland,
>
>I have manually downloaded and installed in local maven repository ie. ~/.m2 on my system.
>But still one error is causing all compilation failure, ie.
>
>[ERROR] COMPILATION ERROR :
>[INFO] -------------------------------------------------------------
>
>[ERROR] error: error reading C:\Users\Brajesh\.m2\repository\org\smslib\smslib\3.5.3\smslib-3.5.3.jar; error in opening zip file
>
>It seems the manually downloaded and locally installed smslib-3.5.3.jar file is
>not been opened as required. I tried to open its smalib-3.5.3.jar file manually but its not getting opened. 
>
>How i can remove this problem ? 
>
>
>
>Regards 
>
>Brajesh Murari
>
>------------------------------------------------------------------------------------------------
>A fool can become a genius when he understands he is a fool. But; A genius can become a fool when he understands he is a genius.
>----------------------------------------------------------------------------------------------------------------------------------Dr. Abdul Kalam-----------
>
>
>
>On Sunday, 17 November 2013 2:00 PM, Lars Kristian Roland <lars@xxxxxxxxx> wrote:
> 
>Hi,
>
>the Maven repository containing SMSlib is not stable and keeps on
      going down. This is a workaround:
>
>http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/beskjeder/smslib-error-in-building-dhis2.html
>
>Another is to manually find on the internet and download the
      smslib into your .m2 directory (local maven repository),
      C:\Users\Brajesh\.m2\repository\org\smslib\smslib\3.5.3\smslib-3.5.3.jar
>
>Lars
>
>On 17.11.2013 09:18, Brajesh Murari wrote:
>
>Hello Devs,
>>
>>
>>There comes some problem while building outer core of dhis-2
>>
>>
>> ------------------------------------------------------------------------
>>[INFO] Reactor Summary:
>>[INFO]
>>[INFO] DHIS 2 ............................................
          SUCCESS [2.269s]
>>[INFO] DHIS API ..........................................
          FAILURE [1.349s]
>>[INFO] DHIS Support Parent Project .......................
          SKIPPED
>>[INFO] DHIS Test Support .................................
          SKIPPED
>>[INFO] DHIS External Support .............................
          SKIPPED
>>[INFO] DHIS Hibernate Support ............................
          SKIPPED
>>[INFO] DHIS XML framework services .......................
          SKIPPED
>>[INFO] DHIS System Support ...............................
          SKIPPED
>>[INFO] DHIS JDBC Service .................................
          SKIPPED
>>[INFO] DHIS Services Parent Project ......................
          SKIPPED
>>[INFO] DHIS Core API Implementations .....................
          SKIPPED
>>[INFO] DHIS Administration Service .......................
          SKIPPED
>>[INFO] DHIS DataMart Service - Default ...................
          SKIPPED
>>[INFO] DHIS I18n Static ..................................
          SKIPPED
>>[INFO] DHIS Patient API Implementations ..................
          SKIPPED
>>[INFO] DHIS Data Exchange ................................
          SKIPPED
>>[INFO] DHIS Analytics ....................................
          SKIPPED
>>[INFO] DHIS Mobile Service ...............................
          SKIPPED
>>[INFO] DHIS Map Generation Service .......................
          SKIPPED
>>[INFO] DHIS Event Reporting Service ......................
          SKIPPED
>>[INFO] DHIS Reporting Service ............................
          SKIPPED
>>[INFO] DHIS Import-Export Service ........................
          SKIPPED
>>[INFO] DHIS JDBC / External Test Project .................
          SKIPPED
>>[INFO]
          ------------------------------------------------------------------------
>>[INFO] BUILD FAILURE
>>[INFO]
          ------------------------------------------------------------------------
>>[INFO] Total time: 6.769s
>>[INFO] Finished at: Sun Nov 17 13:41:10 IST 2013
>>[INFO] Final Memory: 19M/166M
>>[INFO]
          ------------------------------------------------------------------------
>>[ERROR] Failed to execute goal
          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
          (default-compile) on project dhis-api: Compilation failure
>>[ERROR] error: error reading
          C:\Users\Brajesh\.m2\repository\org\smslib\smslib\3.5.3\smslib-3.5.3.jar;
          error in opening zip file
>>
>>
>>Is there any help about the problem causes ! 
>>
>>Regards,
>>
>>Brajesh Murari
>>
>>------------------------------------------------------------------------------------------------
>>A fool can become a genius when he understands he is a fool. But; A genius can become a fool when he understands he is a genius.
>>----------------------------------------------------------------------------------------------------------------------------------Dr.
            Abdul Kalam-----------
>>
>>
>>_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx Unsubscribe : https://launchpad.net/~dhis2-devs More help   : https://help.launchpad.net/ListHelp 
>
>
>-- 
Lars Kristian Roland Lars@xxxxxxxxx +47 90733036 www.apus.no - lars.roland.bz 
>
>_______________________________________________
>Mailing list: https://launchpad.net/~dhis2-devs
>Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~dhis2-devs
>More help   : https://help.launchpad.net/ListHelp
>
>
>


-- 

Lars Kristian Roland
Research Fellow, Department of Informatics, University of Oslo
Email: lars@xxxxxxxxx - roland@xxxxxxxxxx
Phone: +47 90733036

References