Hello,
When you use maven-antrun-plugin first time,
Maven would download the plugin and its dependencies to your local repo.
Did you find that?

Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
> 
> HI,
>    Jiangsha,I have added the configurations you gave,but it report a error
> when I run "compile",the error is show following:
> [ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 (
> task-segment: [compile] )
> Diagnosis: The plugin 'org.apache.maven.plugins:maven-antrun-plugin' does
> not exist or no valid version could be found
> FATAL ERROR: Error executing Maven for a project
> ..........
> 
> It seems like maven can't find the plugin of antrun.
> 
> 
> 
> 2007/2/13, jiangshachina <[EMAIL PROTECTED]>:
>>
>>
>> Hello,
>> The following scripts may can help you,
>> <build>
>>        <plugins>
>>                <plugin>
>>                        <groupId>org.apache.maven.plugins</groupId>
>>                        <artifactId>maven-antrun-plugin</artifactId>
>>                        <executions>
>>                                <execution>
>>                                        <id>package</id>
>>                                        <phase>generate-resources</phase>
>>                                        <configuration>
>>                                                <tasks>
>>                                                        <copy
>> file="path_to_jar_file"
>>
>> todir="path_to_lib_directory" overwrite="true" />
>>                                                </tasks>
>>                                        </configuration>
>>                                        <goals>
>>                                                <goal>run</goal>
>>                                        </goals>
>>                                </execution>
>>                        </executions>
>>                </plugin>
>>        </plugins>
>> </build>
>>
>> Happy Spring Festival :-)
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> 秋秋 wrote:
>> >
>> > Hi,
>> >     jiangsha,can you give me the exact url of the subject about
>> > copies specific jars to specific directory?I can't find it to link to
>> > http://maven.apache.org/plugins/maven-antrun-plugin/.
>> >
>> >
>> > 2007/2/13, jiangshachina <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> Hello,
>> >> > How can I deploy the 3th party jar in the directory
>> >> > %JBOSS_HOME%server\ProjectName\lib ?
>> >> I think maven-antrun-plugin may help you,
>> >> http://maven.apache.org/plugins/maven-antrun-plugin/
>> >> copies specific jars to specific directory.
>> >>
>> >> a cup of Java, cheers!
>> >> Sha Jiang
>> >>
>> >>
>> >> 秋秋 wrote:
>> >> >
>> >> > Hi,
>> >> >     Yes ,It's feasible,I have excluded the directory WEB-INF/lib/.
>> >> >
>> >> >     And How can I deploy the 3th party jar in the directory
>> >> > %JBOSS_HOME%server\ProjectName\lib ?
>> >> >
>> >> >
>> >> > 2007/2/13, mraible <[EMAIL PROTECTED]>:
>> >> >>
>> >> >>
>> >> >> Here's how we do this in AppFuse:
>> >> >>
>> >> >>            <plugin>
>> >> >>                <artifactId>maven-war-plugin</artifactId>
>> >> >>                <version>2.0.2</version>
>> >> >>                <executions>
>> >> >>                    <execution>
>> >> >>                        <id>skinny-war</id>
>> >> >>                        <goals>
>> >> >>                            <goal>war</goal>
>> >> >>                        </goals>
>> >> >>                        <phase>post-integration-test</phase>
>> >> >>                        <inherited>false</inherited>
>> >> >>                        <configuration>
>> >> >>
>> >> >> <warSourceExcludes>WEB-INF/lib/**</warSourceExcludes>
>> >> >>                        </configuration>
>> >> >>                    </execution>
>> >> >>                </executions>
>> >> >>            </plugin>
>> >> >>
>> >> >> Hope this helps,
>> >> >>
>> >> >> Matt
>> >> >>
>> >> >> 秋秋 wrote:
>> >> >> >
>> >> >> > HI,
>> >> >> >     I use maven-war-plugin to deploy the war and use
>> >> maven-jar-plugin
>> >> >> to
>> >> >> > deploy the jar for the same project,the project is distributed
>> >> deployed
>> >> >> > ,and
>> >> >> > I use jboss for the server,I want to deploy the 3th party jar in
>> the
>> >> >> > directory %JBOSS_HOME%server\ProjectName\lib,
>> >> >> > and I don't want there is still a WEB-INF/lib directory in the
>> >> >> war,because
>> >> >> > it will breeds strife.How can I do?
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8932025
>> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8936710
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8938921
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8939414
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to