maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Komal Agrawal <>
Subject maven: How to include third party library to existing maven project
Date Wed, 01 Dec 2010 14:23:54 GMT
Hello there,

I want to include external jar to my existing maven project. I used
following command to install it to local maven repository:

mvn -e install:install
-Dfile="D:\test\com.project.MyApp.externalLib-1.0.jar" -DgroupId=com.project
-DartifactId=MyApp -Dversion=1.0 -Dpackaging=jar

and got following exception:

org.apache.maven.lifecycle.LifecycleExecutionException: The packaging for
this p
roject did not assign a file to the build artifact

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.main(
at org.apache.maven.cli.compat.CompatibleMain.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java <>:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at org.codehaus.classworlds.Launcher.launchEnhanced(
at org.codehaus.classworlds.Launcher.launch(
at org.codehaus.classworlds.Launcher.mainWithExitCode(

at org.codehaus.classworlds.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: The packaging for
s project did not assign a file to the build artifact
at org.apache.maven.plugin.install.InstallMojo.execute(
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
... 17 more

What needs to be done in this case ? I am not getting any useful articles on
internet as well.

Basic question : It "should" be possible to add a third party non maven
library to a maven project. Is this correct ?

Also, what can I check to have this working ? Its very urgent for me , any
help is highly appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message