Linux: maven resources:copy-resources plugin. Parameter with space character -
i have pom resources:copy-resources plugin:
<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>example</groupid> <artifactid>preprocess</artifactid> <version>1.0-snapshot</version> <build> <plugins> <plugin> <artifactid>maven-resources-plugin</artifactid> <version>3.0.1</version> <executions> <execution> <id>copy-resources</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputdirectory>.</outputdirectory> <resources> <resource> <directory>source</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
and try run plugin param:
sudo bash mvnw.sh process-resources -dvalidationquery="select 1 sysibm.sysdummy1"
error is:
[error] unknown lifecycle phase "1". must specify valid lifecycle phase or goal in format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [help 1]
-dvalidationquery="\"select 1 sysibm.sysdummy1\"" -dvalidationquery="""select 1 sysibm.sysdummy1""" "-dvalidationquery=select 1 sysibm.sysdummy1"
doesn't work
sudo bash mvnw.sh process-resources -dvalidationquery="blabla"
- works
with windows os don't have similar problem.
how can use param space?
sudo bash mvnw.sh process-resources "\"-dvalidationquery=select 1 sysibm.sysdummy1\""
works
Comments
Post a Comment