Github user eolivelli commented on the issue:

    https://github.com/apache/bookkeeper/pull/80
  
    @sijie 
    in order to load the native library during JUnit tests I have added these 
lines to bookkeeper-server/pom.xml
    
    ```
    <plugin>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>        
                <argLine>-Xmx2G -Djava.net.preferIPv4Stack=true 
-Djava.library.path=${project.build.directory}/native/target/usr/local/lib</argLine>
            </configuration>
     </plugin>
    ```
    Now:
    - no error in logs
    - tests run like in "production mode"
    
    new logs:
    
    > 2017-04-21 08:53:51,595 - INFO  - [BookieJournal-15001:NativeIO@41] - 
Loading bookkeeper native library.
    > 2017-04-21 08:53:51,596 - INFO  - [BookieJournal-15001:NativeIO@44] - 
Loaded bookkeeper native library. Enabled Native IO.
    
    Do you think we can add that configuration to the pom.xml ?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to