Getting problem while building a local module

Hi,

I need a help.
i am trying to build “dhis-web-reports-national”, a local copy on my PC, and i am getting following message on my console window,

----------------------------------------------------------------------------------------------Message detail -----------------------------------------------------------------------------------------------------------------------------------

D:\scm\dhis2svn\local\in\dhis-web-reports-national>mvn clean install
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects…
[INFO] ----------------------------------------------------------------------------

[INFO] Building DHIS National Reports
[INFO] task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] Ignoring available plugin update: 2.3 as it requires Maven version 2.0.6

[INFO] Ignoring available plugin update: 2.4.3 as it requires Maven version 2.0.6
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/bouncycastle/bctsp-jdk14/138/bctsp-jdk14-138.pom

[WARNING] Unable to get resource ‘bouncycastle:bctsp-jdk14:pom:138’ from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/bouncycastle/bctsp-jdk14/138/bctsp-jdk14-138.jar

[WARNING] Unable to get resource ‘bouncycastle:bctsp-jdk14:jar:138’ from repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

···
  1. bouncycastle:bctsp-jdk14:jar:138

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=bouncycastle -DartifactId=bctsp-jdk14
-Dversion=138 -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:

    1) org.hisp.dhis:dhis-web-reports-national:war:2.0.1-SNAPSHOT
    2) jasperreports:jasperreports:jar:2.0.2
    3) com.lowagie:itext:jar:1.4.8
    4) bouncycastle:bctsp-jdk14:jar:138

1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-reports-national:war:2.0.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Sep 01 12:03:36 IST 2009
[INFO] Final Memory: 11M/20M
[INFO] ------------------------------------------------------------------------

D:\scm\dhis2svn\local\in\dhis-web-reports-national>

-----------------------------------------------------------------------------------------------------------end of message on my console-----------------------------------------------------------------------------------------------

I need help, can any body tell me how to solve this problem, if really it exists…


Best Regards,
Brajesh Murari

Hi,

Error message clearly says one dependency is missing and it is transitive dependency of com.lowagie:itext:jar:1.4.8. Look at jasperreport and itext dependencies.

murod

···

From: Brajesh Murari brajesh2murari@gmail.com
To: DHIS 2 developers dhis2-devs@lists.launchpad.net
Sent: Tuesday, September 1, 2009 12:21:58 PM
Subject: [Dhis2-devs] Getting problem while
building a local module

Hi,

I need a help.
i am trying to build “dhis-web-reports-national”, a local copy on my PC, and i am getting following message on my console window,

----------------------------------------------------------------------------------------------Message detail -----------------------------------------------------------------------------------------------------------------------------------

D:\scm\dhis2svn\local\in\dhis-web-reports-national>mvn clean install
Listening for transport dt_socket at address: 8000
[INFO] Scanning for projects…
[INFO] ----------------------------------------------------------------------------

[INFO] Building DHIS National Reports
[INFO] task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] Ignoring available plugin update: 2.3 as it requires Maven version 2.0.6

[INFO] Ignoring available plugin update: 2.4.3 as it requires Maven version 2.0.6
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/bouncycastle/bctsp-jdk14/138/bctsp-jdk14-138.pom

[WARNING] Unable to get resource ‘bouncycastle:bctsp-jdk14:pom:138’ from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/bouncycastle/bctsp-jdk14/138/bctsp-jdk14-138.jar

[WARNING] Unable to get resource ‘bouncycastle:bctsp-jdk14:jar:138’ from repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

  1. bouncycastle:bctsp-jdk14:jar:138

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=bouncycastle -DartifactId=bctsp-jdk14
-Dversion=138 -Dpackaging=jar -Dfile=/path/to/file

Path to dependency:

    1) org.hisp.dhis:dhis-web-reports-national:war:2.0.1-SNAPSHOT
    2) jasperreports:jasperreports:jar:2.0.2
    3) com.lowagie:itext:jar:1.4.8
    4) bouncycastle:bctsp-jdk14:jar:138

1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-reports-national:war:2.0.1-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Sep 01 12:03:36 IST 2009
[INFO] Final Memory: 11M/20M
[INFO] ------------------------------------------------------------------------

D:\scm\dhis2svn\local\in\dhis-web-reports-national>

-----------------------------------------------------------------------------------------------------------end of message on my console-----------------------------------------------------------------------------------------------

I need help, can any body tell me how to solve this problem, if really it exists…


Best Regards,
Brajesh Murari

start: 0000-00-00
end: 0000-00-00

We checked in .m2 folder, there we found itext.jar file.

Please look into content of pom.xml file, tell us if there is any wrong.

<!-- DHIS -->

 <dependency>
  <groupId>org.hisp.dhis</groupId>

  <artifactId>dhis-api</artifactId>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-core</artifactId>

</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-jdbc</artifactId>
</dependency>
  <dependency>

  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-organisationunit</artifactId>
</dependency>         
<dependency>
  <groupId>org.hisp.dhis</groupId>

  <artifactId>dhis-web-commons</artifactId>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-web-commons-resources</artifactId>

  <type>war</type>           
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-reporting</artifactId>

</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-datamart-default</artifactId>
</dependency>
<dependency>

  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-jdbc</artifactId>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>

  <artifactId>dhis-service-user-hibernate</artifactId>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-service-aggregationengine-default</artifactId>       

</dependency>     
<dependency>
  <groupId>net.sourceforge.jexcelapi</groupId>
  <artifactId>jxl</artifactId>
</dependency>
<dependency>

  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-support-external</artifactId>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>

  <artifactId>dhis-in-api</artifactId>
  <version>${version}</version>
</dependency>
<dependency>
  <groupId>org.hisp.dhis</groupId>
  <artifactId>dhis-in-service-survey</artifactId>

  <version>${version}</version>
</dependency>

<!-- Web -->

<dependency>
  <groupId>com.opensymphony</groupId>
  <artifactId>webwork</artifactId>

</dependency>
 <dependency>
  <groupId>commons-fileupload</groupId>
  <artifactId>commons-fileupload</artifactId>
</dependency>

<!-- JasperReports -->

<dependency>
  <groupId>jasperreports</groupId>
  <artifactId>jasperreports</artifactId>
</dependency>
<dependency>
  <groupId>poi</groupId>

  <artifactId>poi</artifactId>
</dependency>
<dependency>
  <groupId>jfree</groupId>
  <artifactId>jfreechart</artifactId>
</dependency>

<dependency>
  <groupId>eclipse</groupId>
  <artifactId>jdtcore</artifactId>
</dependency>


<!-- Other -->

<dependency>

  <groupId>org.springframework</groupId>
  <artifactId>spring</artifactId>
</dependency>
<dependency>
  <groupId>commons-logging</groupId>

  <artifactId>commons-logging</artifactId>
</dependency>
<dependency>
  <groupId>org.amplecode</groupId>
  <artifactId>cave-process</artifactId>

</dependency>
···

Regards,
Bharath Kumar. Ch

The problem here is that a transitive dependency does not exist in the central maven repo:

bouncycastle:bctsp-jdk14:jar:

Use mvnrepository.com to find a itext version which does not rely on this dependency. This is an error on maven’s side.

I have updated my pom.xml about these dependencies like

jasperreports jasperreports 2.0.2
</dependency>
<dependency>
  <groupId>jfree</groupId>
  <artifactId>jfreechart</artifactId>
  <version>1.0.11</version>
  <exclusions>

    <exclusion>
      <groupId>gnujaxp</groupId>
      <artifactId>gnujaxp</artifactId>
    </exclusion>
  </exclusions>
</dependency>

<dependency>
  <groupId>jfree</groupId>
  <artifactId>jcommon</artifactId>
  <version>1.0.14</version>
  <exclusions>
    <exclusion>

      <groupId>gnujaxp</groupId>
      <artifactId>gnujaxp</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>

  <groupId>net.sourceforge.jexcelapi</groupId>
  <artifactId>jxl</artifactId>
  <version>2.6</version>
</dependency>

and now its working fine…

Thanks Lars…
:slight_smile:
Thanks Murud…
:slight_smile:

···

2009/9/1 Lars Helge Øverland larshelge@gmail.com

The problem here is that a transitive dependency does not exist in the central maven repo:

bouncycastle:bctsp-jdk14:jar:

Use mvnrepository.com to find a itext version which does not rely on this dependency. This is an error on maven’s side.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Best Regards,
Brajesh Murari