You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/10/28 16:04:43 UTC

[GitHub] [accumulo-website] keith-turner commented on issue #202: Update for 2.0

keith-turner commented on issue #202: Update for 2.0
URL: https://github.com/apache/accumulo-website/pull/202#issuecomment-547018578
 
 
   I tried something locally that seemed to work and I think is simpler.  I used [mvn exec:exec to run java](https://www.mojohaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html) instead of `mvn exec:java`.
   
   So  I changed the pom to the following
   
   ```xml
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>exec-maven-plugin</artifactId>
           <version>1.5.0</version>
           <configuration>
             <executable>java</executable>
             <arguments>
               <argument>-classpath</argument>
               <classpath/>
               <argument>tour.Main</argument>
             </arguments>
             <cleanupDaemonThreads>false</cleanupDaemonThreads>
           </configuration>
         </plugin>
   ```
   
   And ran the tour using `mvn -q clean compile exec:exec` instead of `mvn -q clean compile exec:java`.   Doing this avoided using the special classloader magic that `exec:java` seemed to do and just set the classpath on the java command line.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services