You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Chandrika <ch...@wipro.com> on 2006/06/06 12:18:26 UTC

maven-jar-plugin does not exist error

Hi, 
I am trying 'mvn -o package' from command and my packaging attribute is set
to jar in pom.xml.
I get error as 
"the plugin org.apache.maven.plugins:mavan-jar-plugin" does not exist.
but i have the plugin under my local_repo/org/apache/maven/plugins/2.0
I tried adding it under dependencies section of pom with version as 2.0 ..i
still get the same error...
im trying it offline...any ideas on why?

Thanks
--
View this message in context: http://www.nabble.com/maven-jar-plugin-does-not-exist-error-t1740909.html#a4730700
Sent from the Maven - Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-jar-plugin does not exist error

Posted by Chandrika <ch...@wipro.com>.

Here is the final portion of the error trace i get when i do 'mvn -o
package'

Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

-----------------------------------------------------
this realm = app0.child-container[org.apache.maven.plugins:maven-jar-plugin]
urls[0] =
file:/Users/anamicaramanujam/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
urls[1] =
file:/Users/anamicaramanujam/.m2/repository/org/apache/maven/maven-archiver/2.0/maven-archiver-2.0.jar
Number of imports: 0


this realm = plexus.core.maven
urls[0] = file:/Applications/MyApps/maven-2.0.4/lib/commons-cli-1.0.jar
urls[1] =
file:/Applications/MyApps/maven-2.0.4/lib/doxia-sink-api-1.0-alpha-7.jar
urls[2] = file:/Applications/MyApps/maven-2.0.4/lib/jsch-0.1.24.jar
urls[3] = file:/Applications/MyApps/maven-2.0.4/lib/maven-artifact-2.0.4.jar
urls[4] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-artifact-manager-2.0.4.jar
urls[5] = file:/Applications/MyApps/maven-2.0.4/lib/maven-core-2.0.4.jar
urls[6] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-error-diagnostics-2.0.4.jar
urls[7] = file:/Applications/MyApps/maven-2.0.4/lib/maven-model-2.0.4.jar
urls[8] = file:/Applications/MyApps/maven-2.0.4/lib/maven-monitor-2.0.4.jar
urls[9] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-plugin-api-2.0.4.jar
urls[10] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-plugin-descriptor-2.0.4.jar
urls[11] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-plugin-parameter-documenter-2.0.4.jar
urls[12] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-plugin-registry-2.0.4.jar
urls[13] = file:/Applications/MyApps/maven-2.0.4/lib/maven-profile-2.0.4.jar
urls[14] = file:/Applications/MyApps/maven-2.0.4/lib/maven-project-2.0.4.jar
urls[15] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-reporting-api-2.0.4.jar
urls[16] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-repository-metadata-2.0.4.jar
urls[17] =
file:/Applications/MyApps/maven-2.0.4/lib/maven-settings-2.0.4.jar
urls[18] =
file:/Applications/MyApps/maven-2.0.4/lib/plexus-interactivity-api-1.0-alpha-4.jar
urls[19] =
file:/Applications/MyApps/maven-2.0.4/lib/wagon-file-1.0-alpha-7.jar
urls[20] =
file:/Applications/MyApps/maven-2.0.4/lib/wagon-http-lightweight-1.0-alpha-6.jar
urls[21] =
file:/Applications/MyApps/maven-2.0.4/lib/wagon-provider-api-1.0-alpha-6.jar
urls[22] =
file:/Applications/MyApps/maven-2.0.4/lib/wagon-ssh-1.0-alpha-7.jar
urls[23] =
file:/Applications/MyApps/maven-2.0.4/lib/wagon-ssh-external-1.0-alpha-6.jar
Number of imports: 0


this realm = plexus.core
urls[0] =
file:/Applications/MyApps/maven-2.0.4/core/plexus-container-default-1.0-alpha-9.jar
urls[1] = file:/Applications/MyApps/maven-2.0.4/core/plexus-utils-1.1.jar
Number of imports: 0
-----------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-jar-plugin:2.0:jar': Unable to find the mojo
'org.apache.maven.plugins:maven-jar-plugin:2.0:jar' in the plugin
'org.apache.maven.plugins:maven-jar-plugin'
org/codehaus/plexus/archiver/AbstractArchiver
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Jun 06 18:32:04 IST 2006
[INFO] Final Memory: 3M/6M

I have checked maven-jar-plugin is available in my local_repo
Any idea on ho to resolve?

Thanks
chandrika
--
View this message in context: http://www.nabble.com/maven-jar-plugin-does-not-exist-error-t1740909.html#a4733211
Sent from the Maven - Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-jar-plugin does not exist error

Posted by Chandrika <ch...@wipro.com>.
ya...im trying it offline ..since downloading from remote fails due to
network problem...n i dont wish to download from remote...i had ensured that
i have maven-jar-plugin in my local repo...but im not sure on y this is not
detected?
is there any dependencies need to be added in pom file?...i had even a added
it as 
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>

yet, im unable to get it...if possible could u send me
maven-archiver-2.0.jar...coz, i have maven archiver 2.0.1 jar n i
hope,maven-jar-plugin is dependent on 2.0

Thanks
Chandrika
--
View this message in context: http://www.nabble.com/maven-jar-plugin-does-not-exist-error-t1740909.html#a4731534
Sent from the Maven - Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: maven-jar-plugin does not exist error

Posted by ben short <be...@benshort.co.uk>.
Dosent the -o flag mean run offline?  You probably dont have the
maven-jar-plugin in your local repo. Remove the -o flag and try again.

Ben

On 6/6/06, Chandrika <ch...@wipro.com> wrote:
>
> Hi,
> I am trying 'mvn -o package' from command and my packaging attribute is set
> to jar in pom.xml.
> I get error as
> "the plugin org.apache.maven.plugins:mavan-jar-plugin" does not exist.
> but i have the plugin under my local_repo/org/apache/maven/plugins/2.0
> I tried adding it under dependencies section of pom with version as 2.0 ..i
> still get the same error...
> im trying it offline...any ideas on why?
>
> Thanks
> --
> View this message in context: http://www.nabble.com/maven-jar-plugin-does-not-exist-error-t1740909.html#a4730700
> Sent from the Maven - Dev forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org