You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tony Truong <to...@atlassian.com> on 2006/10/09 04:21:01 UTC

[m2] Artifact not resolving for internal repository

Hi,

I am currently creating a plugin that runs on an empty directory (i.e. no
pom.xml).

When I run this mojo, it tries to find the plugin in the central repository
only.

I want Maven 2 to find my plugin in an internal repository without needing
to specify a pom.xml. 

I have tried the following for settings.xml:
* created <pluginRepository> configuration
* created <repository> configuration along with <pluginRepository>

Here is the stacktrace:

> mvn atlassian-archetype:create -X
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\x\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'c:\maven-2.0.4\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'atlassian-archetype'.
[DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST
[DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin
'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist
or no valid version could be found
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist
or no valid ver
sion could be found
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        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:585)
        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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does
not ex
ist or no valid version could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
        ... 14 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Oct 09 12:17:55 EST 2006
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6710806
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: [m2] Artifact not resolving for internal repository

Posted by Tony Truong <to...@atlassian.com>.
thanks for the help. I found the bug

http://jira.codehaus.org/browse/MNG-714

Changes will be commited in 2.1



Wayne Fay wrote:
> 
> Have you tried -o for offline, just to see if it works? Or perhaps
> instead -npu as this is a plugin and not a random artifact/dependency?
> 
> Wayne
> 
> On 10/8/06, Tony Truong <to...@atlassian.com> wrote:
>>
>> Hi,
>>
>> I am currently creating a plugin that runs on an empty directory (i.e. no
>> pom.xml).
>>
>> When I run this mojo, it tries to find the plugin in the central
>> repository
>> only.
>>
>> I want Maven 2 to find my plugin in an internal repository without
>> needing
>> to specify a pom.xml.
>>
>> I have tried the following for settings.xml:
>> * created <pluginRepository> configuration
>> * created <repository> configuration along with <pluginRepository>
>>
>> Here is the stacktrace:
>>
>> > mvn atlassian-archetype:create -X
>> + Error stacktraces are turned on.
>> Maven version: 2.0.4
>> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
>> Settings\x\.m2\plugin-registry.xml'
>> [DEBUG] Building Maven global-level plugin registry from:
>> 'c:\maven-2.0.4\conf\plugin-registry.xml'
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix:
>> 'atlassian-archetype'.
>> [DEBUG] maven-atlassian-archetype-plugin: using locally installed
>> snapshot
>> [DEBUG] Artifact not found - using stub model: Unable to determine the
>> latest version
>>
>>  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST
>>
>>
>> [DEBUG] Using defaults for missing POM
>> org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST
>> [DEBUG] maven-atlassian-archetype-plugin: using locally installed
>> snapshot
>> [DEBUG] Artifact not found - using stub model: Unable to determine the
>> release version
>>
>>  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE
>>
>>
>> [DEBUG] Using defaults for missing POM
>> org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin
>> 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not
>> exist
>> or no valid version could be found
>> [INFO]
>> ------------------------------------------------------------------------
>> [DEBUG] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not
>> exist
>> or no valid ver
>> sion could be found
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>        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:585)
>>        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)
>> Caused by:
>> org.apache.maven.plugin.version.PluginVersionNotFoundException:
>> The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin'
>> does
>> not ex
>> ist or no valid version could be found
>>        at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
>>        at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>>        at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>>        ... 14 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Mon Oct 09 12:17:55 EST 2006
>> [INFO] Final Memory: 1M/2M
>> [INFO]
>> ------------------------------------------------------------------------
>> --
>> View this message in context:
>> http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6710806
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6712448
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: [m2] Artifact not resolving for internal repository

Posted by Wayne Fay <wa...@gmail.com>.
Have you tried -o for offline, just to see if it works? Or perhaps
instead -npu as this is a plugin and not a random artifact/dependency?

Wayne

On 10/8/06, Tony Truong <to...@atlassian.com> wrote:
>
> Hi,
>
> I am currently creating a plugin that runs on an empty directory (i.e. no
> pom.xml).
>
> When I run this mojo, it tries to find the plugin in the central repository
> only.
>
> I want Maven 2 to find my plugin in an internal repository without needing
> to specify a pom.xml.
>
> I have tried the following for settings.xml:
> * created <pluginRepository> configuration
> * created <repository> configuration along with <pluginRepository>
>
> Here is the stacktrace:
>
> > mvn atlassian-archetype:create -X
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
> Settings\x\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'c:\maven-2.0.4\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'atlassian-archetype'.
> [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> latest version
>
>  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST
> [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot
> [DEBUG] Artifact not found - using stub model: Unable to determine the
> release version
>
>  org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE
>
>
> [DEBUG] Using defaults for missing POM
> org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin
> 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist
> or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist
> or no valid ver
> sion could be found
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>        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:585)
>        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)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does
> not ex
> ist or no valid version could be found
>        at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
>        at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
>        ... 14 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Oct 09 12:17:55 EST 2006
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
> --
> View this message in context: http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6710806
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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