August 9, 2016

Include Aparapi into maven local repository

1. Clone the aparapi from the github and build
% git clone https://github.com/aparapi/aparapi.git
% cd aparapi
% ant -Dapp.sdk.dir=/home/edward.yoon/AMDAPPSDK-3.0/

2. Install the file 
% mvn install:install-file -Dfile=/home/edward.yoon/aparapi/com.amd.aparapi/dist/aparapi.jar -DgroupId=com.amd.aparapi -DartifactId=aparapi -Dversion=1.0 -Dpackaging=jar

3. Edits pom.xml file 
After installed, just declares the aparapi coordinate in pom.xml.
    <dependency>
      <groupid>com.amd.aparapi</groupid>
      <artifactid>aparapi</artifactid>
      <version>1.0</version>
    </dependency>
Build it, now the "aparapi" jar is able to retrieve from your Maven local repository.

No comments:

Post a Comment