jira-importer commented on issue #26:
URL: 
https://github.com/apache/maven-jdeps-plugin/issues/26#issuecomment-2955087144

   **[Mathieu 
DREANO](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mathieudreano)**
 commented
   
   Hello [Robert 
Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte),
   
   I modified the plugin to use ProcessBuilder API instead of plexus-util. 
(https://stackoverflow.com/questions/55123717/shorten-classpath-cp-for-command-line)
   It seems to solves the problem.
   But I don't really understand how to handle the results (I commented 
everything in executeJDepsCommandLine method)
   Hope this helps! (i see you commited to the repository recently)
   
   ```java
   private void executeWithProcessBuilderAPI( final Commandline cmd ) throws 
MojoExecutionException
   {
       System.out.println( "START: execute command Line with ProcessBuilder" );
       ProcessBuilder processBuilder = new ProcessBuilder( cmd.getCommandline() 
);
       try
       {
           processBuilder.start();
       }
       catch ( IOException e )
       {
           e.printStackTrace();
           throw new MojoExecutionException( e.getMessage() );
       }
       System.out.println( "END: execute command Line with ProcessBuilder" );
   
   }
   ```
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to