Hi,
I have searched the error via google,there is a discussion about the
same error,you can have a look.http://jira.codehaus.org/browse/MANTRUN-37
My pom about build is here:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<tasks>
<copy file="WEB-INF/lib/*.*"
todir="D:\jboss-4.0.4.GA\server\claim\lib" overwrite="true" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>claim</warName>
<webXml>src/main/config/web/web.xml</webXml>
<outputDirectory>
D:\jboss-4.0.4.GA\server\claim\deploy
</outputDirectory>
<warSourceExcludes>
WEB-INF/lib/*.jar,
WEB-INF/classes/com/sinosafe/bom/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/biz/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/dto/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/flow/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/integration/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/util/,
WEB-INF/classes/com/sinosafe/claim/common/biz/,
WEB-INF/classes/com/sinosafe/claim/common/*.class,
WEB-INF/classes/com/sinosafe/claim/common/dto/,
WEB-INF/classes/com/sinosafe/claim/common/integration/,
WEB-INF/classes/com/sinosafe/claim/life/biz/,
WEB-INF/classes/com/sinosafe/claim/life/dto/,
WEB-INF/classes/com/sinosafe/claim/life/flow/,
WEB-INF/classes/com/sinosafe/claim/life/integration/,
WEB-INF/classes/com/sinosafe/claim/property/biz/,
WEB-INF/classes/com/sinosafe/claim/property/dto/,
WEB-INF/classes/com/sinosafe/claim/property/flow/,
WEB-INF/classes/com/sinosafe/claim/property/integration/,
WEB-INF/classes/com/sinosafe/claim/setting/biz/,
WEB-INF/classes/com/sinosafe/claim/setting/dto/,
WEB-INF/classes/com/sinosafe/claim/setting/integration/,
WEB-INF/classes/com/sinosafe/claim/test/,
WEB-INF/classes/com/sinosafe/claim/util/
</warSourceExcludes>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/config/web/</directory>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
<!-- the list has a default value of ** -->
<includes>
<include>*.xml</include>
</includes>
<!-- there's no default value for this -->
</resource>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/config/</directory>
<targetPath>WEB-INF/classes/</targetPath>
<filtering>true</filtering>
<!-- the list has a default value of ** -->
<includes>
<include>
context-claim.properties
</include>
</includes>
<!-- there's no default value for this -->
</resource>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>
src/main/config/printtemplate/
</directory>
<targetPath>WEB-INF/classes/</targetPath>
<filtering>true</filtering>
<!-- the list has a default value of ** -->
</resource>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/config/web/</directory>
<targetPath>WEB-INF/classes/</targetPath>
<filtering>true</filtering>
<!-- the list has a default value of ** -->
<includes>
<include>*.properties</include>
</includes>
<!-- there's no default value for this -->
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
2007/2/13, jiangshachina <[EMAIL PROTECTED]>:
Hello,
May the downloading wasn't completed successfully?
Or please show your POM.
Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang
秋秋 wrote:
>
> Hi,
> It still report a error when I excute compile or antrun:run.
> ERROR:
> Internal error in the plugin manager executing goal '
> org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Unable to find
the
> mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the
plugin
> '
> org.apache.maven.plugins:maven-antrun-plugin'
> org/apache/tools/ant/PropertyHelper
>
> What the error means?
>
>
> 2007/2/13, sam <[EMAIL PROTECTED]>:
>>
>> Hi,
>> Oh, I have excuted the "antrun:run" successfully just now.It may be
>> the the problem of network.
>>
>>
>> 2007/2/13, sam <[EMAIL PROTECTED]>:
>> >
>> > HI,
>> > I have excuted the "antrun:run", but it report the same error.
>> >
>> > [INFO]
>> >
>>
----------------------------------------------------------------------------
>> > [INFO] Building maven_itms Maven Webapp
>> > [INFO] task-segment: [antrun:run]
>> > [INFO]
>> >
>>
----------------------------------------------------------------------------
>> > [INFO] Searching repository for plugin with prefix: 'antrun'.
>> > [INFO] artifact org.apache.maven.plugins:maven-antrun-plugin:checking
>> > for updates from central
>> > [WARN] repository metadata for: 'artifact
>> > org.apache.maven.plugins:maven-antrun-plugin' could not be retrieved
>> > from repository: central due to an error: Error transferring file
>> > [INFO] Repository 'central' will be blacklisted
>> > [ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 (
>> > task-segment: [antrun:run] )
>> > 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 is seems like the antrun plugin can't be downloaded from the
central
>> > repository.
>> > 2007/2/13, jiangshachina <[EMAIL PROTECTED]>:
>> > >
>> > >
>> > > 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 <http://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<http://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
>> > > <http://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<http://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#a8940110
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]