-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't configure nested configuration properties #158
Comments
@maxonfjvipon did you try it with |
@yegor256 I tried this: f.build()
.plugins()
.append(
"maven-jar-plugin",
"3.4.2"
)
.configuration()
.set(
"archive", Map.of(
"manifest", Map.of(
"addClasspath", "true",
"mainClass", "org.eolang.Main"
)
)
); I got such xml <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>{mainClass=org.eolang.Main, addClasspath=true}</manifest>
</archive>
</configuration>
</plugin> Then I tried this: f.build()
.plugins()
.append(
"maven-jar-plugin",
"3.4.2"
)
.configuration()
.set(
"archive", Map.of(
"manifest", Map.of(
Map.of("addClasspath", "true"),
Map.of("mainClass", "org.eolang.Main")
)
)
); And got this: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>{{addClasspath=true}={mainClass=org.eolang.Main}}</manifest>
</archive>
</configuration>
</plugin> Both are wrong. What's right way to do it? |
@rultor release, tag is |
@rultor release, tag is |
@maxonfjvipon try 0.15.2, this should work:
|
@yegor256 I still get this: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>{mainClass=org.eolang.Main, addClasspath=true}</manifest>
</archive>
</configuration>
</plugin> |
@rultor release, tag is |
@maxonfjvipon my mistake, please try 0.15.3 (when it's released) |
@maxonfjvipon please, try |
I want to build the next structure in
pom.xml
with FareaHere you may see configuration with nested elements
<archive><manifest><addClasspath>...
. It seems it's not possible to build such structure withFarea
. The only available API afterf.build().plugins().append().configuration()
is.set()
which allows to set property only on the first level.The text was updated successfully, but these errors were encountered: