Hi,

Instead of supplying my arguments to maven deploy plugin deploy-file goal 
at the command line, I would like to configure them in my project pom as 
below. That way nobody has to remember what vm parameters to type and I 
don't have to invent a batch file to store in source control to call it 
either.

        <build>
                <plugins>
                        <plugin>
 <artifactId>maven-deploy-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <id>slf4j</id>
                                                <goals>
 <goal>deploy-file</goal>
                                                </goals>
                                                <configuration>
                                                        <file>
 ${uploaddir}/slf4j-jdk14/slf4j-jdk14-1.3.0.jar
                                                        </file>
                                                        <pomFile>
 ${uploaddir}/slf4j-jdk14/pom.xml
                                                        </pomFile>
                                                        <url>${repo}</url>
 <repositoryId>site</repositoryId>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
...

However when I run 'mvn deploy:deploy-file' I get a complaint that I 
haven't supplied the required vm parameters. How can I get it to use the 
values I've specified inside the pom.xml? Also can I be sure that my 
configuration above won't affect the deploy phase of the normal build for 
this artifact - I really just want a one off task that I can call from 
time to time, a bit like a static method in a java class.

- Ashley

---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Reply via email to