IntelliJ IDEA says <systemProperties / "> element is not allowed inside <configuration /">
I am using a plugin in maven that uses Jetty.
In this plugin, I need to set up the configuration maxFormContentSize
:
<plugin>
<groupId>com.organization.example</groupId>
<artifactId>maven-example-plugin</artifactId>
<version>${example.version}</version>
<dependencies>
<!-- -->
</dependencies>
<configuration>
<systemProperties>
<systemProperty>
<name>org.mortbay.jetty.Request.maxFormContentSize</name>
<value>500000</value>
</systemProperty>
</systemProperties>
<script>${example.script}</script>
</configuration>
</plugin>
The problem is that Intellij IDEA says the systemProperties element is not allowed here:
Element systemProperties is not allowed here
What's the correct config for IntelliJ IDEA not showing this error? I've already done research on this , but it seems like this is the only possible configuration.
I am using maven 2.2.1 and IntelliJ IDEA 2017.1.4. Jetty version is 7.6.8.v20121106.
source to share
The <configuration>
maven plugin section can only contain what that particular plugin supports for its various purposes.
Not all maven plugins support <systemProperties>
only some of them.
Since you missed the actual plugin you are struggling with, I cannot link you to a specific plugin documentation page for their purposes and configurations.
Look for something like this ...
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
... but for your specific plugin
Ask Maven
You can also ask maven on the command line to describe the plugin and even a specific target in the plugin.
Note: The example command lines below work with
maven-help-plugin
v2.2 or better.
Describe all goals:
$ mvn help:describe -DgroupId=org.eclipse.jetty \
-DartifactId=jetty-maven-plugin \
-Dversion=9.4.6.v20170531
Describe your specific goal in detail (with parameters):
$ mvn help:describe -DgroupId=org.eclipse.jetty \
-DartifactId=jetty-maven-plugin \
-Dversion=9.4.6.v20170531 \
-Dgoal=start \
-Ddetail=true
source to share