Thanks alot Neeraj for your response.. :) I believe you understood my issue.

Our requirement doesn't allow us to use manual procedure. :(

Now, regarding the ant task for Maven, I have been trying "Antlib for Maven
2.0" [http://maven.apache.org/ant-tasks.html].. Unfortunately, this isn't
working for me.  I am facing two issues with it.

First, "maven-artifact-ant-2.0.4-dep.jar" required for this task is
available for Maven 2.0.4 not for Maven 2.0.5. Even with Maven 2.0.4, I am
getting following error:-

C:\>mvn install

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
org.apache.maven.profiles.ProfileManager.loadSettingsProfiles(Lorg/apache/maven/settings/Settings;)V
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError:
org.apache.maven.profiles.ProfileManager.loadSettingsProfiles(Lorg/apache/maven/settings/Se
ttings;)V
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Mar 12 18:11:25 IST 2007
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------

This happens after I place "maven-artifact-ant-2.0.4-dep.jar" into the
Maven's lib directory. And if I remove this jar file, I get following
error:-


[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: Could not create task or type of type: artifact:install.

Ant could not find the task or a class this task relies upon.

Kindly let me where I am going wrong?

Thanks & regards,
SR



Neeraj Bisht wrote:
> 
> There are two solution
> 
> 1)put that jar manually in the Repository
> 
> 2) or use ANT task inside the Pom.xml (use copy task of ant)
> 
> On 3/12/07, Gregory Kick <[EMAIL PROTECTED]> wrote:
>>
>> It doesn't look like it because you can't override artifactId,
>> groupId, file, etc.
>>
>> On 3/12/07, sirji <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi all,
>> >
>> > I have project requirement where we need to install custom jar file
>> > (generated using another project) into the maven local repository using
>> mvn
>> > install command.
>> >
>> > My question is: How can we run mvn install command from POM.xml? Kindly
>> let
>> > me know if this is not possible.
>> >
>> > Thanks & regards,
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/use-mvn-install-inside-POM.xml-tf3388796s177.html#a9432558
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Gregory Kick
>> [EMAIL PROTECTED]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/use-mvn-install-inside-POM.xml-tf3388796s177.html#a9434064
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