This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262607 - exec on war pom -> command line is too long
Summary: exec on war pom -> command line is too long
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-28 16:54 UTC by m1k0
Modified: 2016-06-30 08:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1k0 2016-06-28 16:54:14 UTC
[ BUILD # : 201606280002 ]
[ JDK VERSION : 1.8.0_45 ]

STEPS:
   * in pom.xml(<packaging>jar</packaging>) add plugin
org.codehaus.mojo/exec-maven-plugin
   * run goal process-classes org.codehaus.mojo:exec-maven-plugin:1.2.1:

ACTUAL:
   --- exec-maven-plugin:1.3.2:exec (exec-npm-install-webapp) @ demo ---
The command line is too long.

EXPECTED:
   BUILD successful

my nbaction.xml
<?xml version="1.0" encoding="UTF-8"?>
<actions>
</actions>
<action>
<actionName>CUSTOM-m1k0-exec</actionName>
<displayName>m1k0-exec</displayName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>process-classes</goal>
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
</goals>
<properties>
<exec.args>-classpath %classpath com.example.DemoApplication</exec.args>
<exec.executable>java</exec.executable>
</properties>
</action>
Comment 1 Tomas Stupka 2016-06-29 15:02:35 UTC
what happens when you run the same goal from the commandline?