Just a guess, but try leaving off the scope. It's a plugin dependency,
so it shouldn't matter, but the artifact handling code has certain
sensibilities about the different scopes...
-j
Eric Redmond wrote:
Here's the deal. I need to inject a dependency onto a project that I have. I
would like to add an artifact called 'maven-plugin-tools-ruby' into the
dependency list of the artifact 'maven-plugin-plugin'. Currently, my pom
looks like this:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.propellors</groupId>
<artifactId>maven-rubytest-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>0.1-SNAPSHOT</version>
<name>Maven Ruby Plugin Test</name>
<url>http://propellors.net</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>net.propellors</groupId>
<artifactId>maven-plugin-tools-ruby</artifactId>
<version>0.1-alpha-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Compiling the plugin project in debug mode, I never see
'maven-plugin-tools-ruby' be compiled. Here is the output... notice only 2
descriptors (not the 3 I expect) are install. Note also that when I add this
dependency into the maven-plugin-plugin POM dependency list directly,
everything works fine (all 3 descriptors).
C:\Temp\Code Lab\Maven\plugins\maven-rubytest-plugin>mvn -X compile
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\er9125\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\maven-
2.0\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Ruby Plugin Test
[INFO] task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-plugin:maven-plugin:2.0.1-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-parent: using locally installed snapshot
[DEBUG] maven-plugin-plugin: using locally installed snapshot
[DEBUG] maven-resources-plugin: resolved to version 2.2-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-resources-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-resources-plugin:maven-plugin:2.2-SNAPSHOT
[DEBUG] maven-resources-plugin: using locally installed snapshot
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-compiler-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0.1-SNAPSHOT
[DEBUG] maven-compiler-plugin: using locally installed snapshot
[DEBUG] maven-plugin-plugin: using locally installed snapshot
[DEBUG] maven-resources-plugin: using locally installed snapshot
[DEBUG] maven-compiler-plugin: using locally installed snapshot
[DEBUG]
org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-descriptor:jar:2.0
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[INFO] snapshot
org.apache.maven:maven-plugin-tools-java:2.0.1-SNAPSHOT:checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-plugin-tools-java:2.0.1-SNAPSHOT' could not be found
on repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-tools-java: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools-java:jar:2.0.1-SNAPSHOT
[INFO] snapshot org.apache.maven:maven-plugin-tools:2.0.1-SNAPSHOT: checking
for updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-plugin-tools:2.0.1-SNAPSHOT' could not be found on
repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-tools: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools:pom:2.0.1-SNAPSHOT
[INFO] snapshot org.apache.maven:maven:2.0.1-SNAPSHOT: checking for updates
from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven:2.0.1-SNAPSHOT' could not be found on repository:
snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-plugin-tools-java:jar:2.0.1-SNAPSHOT(selected
for runtime)
[INFO] snapshot
org.apache.maven:maven-plugin-descriptor:2.0.1-SNAPSHOT:checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-plugin-descriptor:2.0.1-SNAPSHOT' could not be found
on repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-descriptor: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] qdox:qdox:jar:1.5 (selected for runtime)
[INFO] snapshot
org.apache.maven:maven-plugin-tools-api:2.0.1-SNAPSHOT:checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-plugin-tools-api:2.0.1-SNAPSHOT' could not be found
on repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-tools-api: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools-api:jar:2.0.1-SNAPSHOT
[DEBUG] maven-plugin-tools: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools:pom:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-plugin-tools-api:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG]
org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG]
org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[INFO] snapshot org.apache.maven:maven-project:2.0.1-SNAPSHOT: checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-project:2.0.1-SNAPSHOT' could not be found on
repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-project: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-project:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[INFO] snapshot org.apache.maven:maven-profile:2.0.1-SNAPSHOT: checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-profile:2.0.1-SNAPSHOT' could not be found on
repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-profile: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-profile:jar:2.0.1-SNAPSHOT (selected
for runtime)
[INFO] snapshot org.apache.maven:maven-model:2.0.1-SNAPSHOT: checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-model:2.0.1-SNAPSHOT' could not be found on
repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-model: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[INFO] snapshot org.apache.maven:maven-artifact:2.0.1-SNAPSHOT: checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-artifact:2.0.1-SNAPSHOT' could not be found on
repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-artifact: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (removed
- nearer found: 2.0)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (selected
for runtime)
[INFO] snapshot
org.apache.maven:maven-artifact-manager:2.0.1-SNAPSHOT:checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-artifact-manager:2.0.1-SNAPSHOT' could not be found
on repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-artifact-manager: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG]
org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(removed -
nearer found:
2.0)
[DEBUG]
org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.apache.maven:maven-plugin-tools-api:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (removed -
nearer found: 2.0)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG]
org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-registry:jar:2.0
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[INFO] snapshot
org.apache.maven:maven-plugin-tools-beanshell:2.0.1-SNAPSHOT: checking for
updates from snapshots
[DEBUG] repository metadata for: 'snapshot
org.apache.maven:maven-plugin-tools-beanshell:2.0.1-SNAPSHOT' could not be
found on repository: snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-tools-beanshell: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools-beanshell:jar:2.0.1-SNAPSHOT
[DEBUG] maven-plugin-tools: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-tools:pom:2.0.1-SNAPSHOT
[DEBUG] maven: using locally installed snapshot
[DEBUG]
org.apache.maven:maven-plugin-tools-beanshell:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.apache.maven:maven-plugin-tools-api:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] bsh:bsh:jar:1.3.0 (selected for runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (removed -
nearer found: 2.0)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1-SNAPSHOT (selected for
runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(removed
- nearer found:
2.0)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-reporting-impl:jar:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven.reporting:maven-reporting:pom:2.0
[DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG] org.apache.maven:maven-project:jar:2.0 (removed - nearer found:
2.0.1-SNAPSHOT)
[DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-reporting-api:jar:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven.reporting:maven-reporting:pom:2.0
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0 (selected
for runtime)
[DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for runtime)
[DEBUG] commons-validator:commons-validator:jar:1.1.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG] doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime)
[DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for runtime)
[DEBUG] oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG] maven-plugin-tools-java: using locally installed snapshot
[DEBUG] maven-plugin-tools-api: using locally installed snapshot
[DEBUG] maven-plugin-tools-beanshell: using locally installed snapshot
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-plugin-plugin:2.0.1-SNAPSHOT:descriptor' -->
[DEBUG] (f) outputDirectory = C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\target\classes\META-INF\maven
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 0 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[DEBUG]
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2-SNAPSHOT(selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] commons-io:commons-io:jar:1.0 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-resources-plugin:2.2-SNAPSHOT:resources' -->
[DEBUG] (f) filters = []
[DEBUG] (f) outputDirectory = C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\target\classes
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] (f) resources = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] net.propellors:maven-rubytest-plugin:maven-plugin:0.1-SNAPSHOT(selected
for null)
[DEBUG]
org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1-SNAPSHOT(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[INFO] snapshot
org.codehaus.plexus:plexus-compiler-javac:1.6-SNAPSHOT:checking for
updates from snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-compiler-javac: resolved to version
1.6-20051023.231011-3from repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler-javac:jar:1.6-20051023.231011-3
[INFO] snapshot org.codehaus.plexus:plexus-compilers:1.6-SNAPSHOT: checking
for updates from snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-compilers: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compilers:pom:1.6-SNAPSHOT
[INFO] snapshot org.codehaus.plexus:plexus-compiler:1.6-SNAPSHOT: checking
for updates from snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-compiler: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler:pom:1.6-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[INFO] snapshot
org.codehaus.plexus:plexus-compiler-api:1.6-SNAPSHOT:checking for
updates from snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-compiler-api: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler-api:jar:1.6-20051023.231011-3
[DEBUG] plexus-compiler: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler:pom:1.6-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT(selected
for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] plexus-compiler-api: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler-api:jar:1.6-20051023.231011-3
[DEBUG] plexus-compiler: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler:pom:1.6-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT (selected
for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[INFO] snapshot
org.codehaus.plexus:plexus-compiler-manager:1.6-SNAPSHOT:checking for
updates from snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-compiler-manager: resolved to version
1.6-20051023.231011-3from repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler-manager:jar:1.6-20051023.231011-3
[DEBUG] plexus-compiler: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler:pom:1.6-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT(selected
for runtime)
[DEBUG] plexus-compiler-api: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler-api:jar:1.6-20051023.231011-3
[DEBUG] plexus-compiler: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-compiler:pom:1.6-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT(selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8(selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] plexus-compiler-manager: resolved to version
1.6-20051023.231011-3from repository snapshots
[DEBUG] plexus-compiler-api: resolved to version 1.6-20051023.231011-3 from
repository snapshots
[DEBUG] plexus-compiler-javac: resolved to version
1.6-20051023.231011-3from repository snapshots
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-compiler-plugin:2.0.1-SNAPSHOT:compile' -->
[DEBUG] (f) basedir = C:\Temp\Code Lab\Maven\plugins\maven-rubytest-plugin
[DEBUG] (f) buildDirectory = C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\target
[DEBUG] (f) classpathElements = [C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\target\classes]
[DEBUG] (f) compileSourceRoots = [C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\src\main\java]
[DEBUG] (f) compilerId = javac
[DEBUG] (f) debug = true
[DEBUG] (f) fork = false
[DEBUG] (f) optimize = false
[DEBUG] (f) outputDirectory = C:\Temp\Code
Lab\Maven\plugins\maven-rubytest-plugin\target\classes
[DEBUG] (f) outputFileName = maven-rubytest-plugin-0.1-SNAPSHOT
[DEBUG] (f) projectArtifact =
net.propellors:maven-rubytest-plugin:maven-plugin:0.1-SNAPSHOT
[DEBUG] (f) staleMillis = 0
[DEBUG] (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[INFO] No sources to compile
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Wed Nov 30 14:20:30 CST 2005
[INFO] Final Memory: 3M/7M
[INFO]
----------------------------------------------------------------------------
Now, note this: I have attempted also to inject this artifact into the
project maven-plugin-descriptor and a different effect takes place. With the
POM:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.propellors</groupId>
<artifactId>maven-rubytest-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>0.1-SNAPSHOT</version>
<name>Maven Ruby Plugin Test</name>
<url>http://propellors.net</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-descriptor</artifactId>
<version>2.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>net.propellors</groupId>
<artifactId>maven-plugin-tools-ruby</artifactId>
<version>0.1-alpha-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
The following null pointer exception take place:
C:\Temp\Code Lab\Maven\plugins\maven-rubytest-plugin>mvn -X compile
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\er9125\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\maven-
2.0\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Ruby Plugin Test
[INFO] task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[DEBUG] maven-plugin-plugin: resolved to version 2.0.1-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-plugin:maven-plugin:2.0.1-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-parent: using locally installed snapshot
[DEBUG] maven-plugin-plugin: using locally installed snapshot
[DEBUG] maven-resources-plugin: resolved to version 2.2-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-resources-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-resources-plugin:maven-plugin:2.2-SNAPSHOT
[DEBUG] maven-resources-plugin: using locally installed snapshot
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1-SNAPSHOT from local
repository
[DEBUG] Skipping disabled repository central
[DEBUG] maven-compiler-plugin: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0.1-SNAPSHOT
[DEBUG] maven-compiler-plugin: using locally installed snapshot
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-descriptor: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-descriptor:jar:2.0.1-SNAPSHOT
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] maven: using locally installed snapshot
[DEBUG] maven-plugin-descriptor: using locally installed snapshot
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] null
[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
DefaultPluginManager.java:292)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
DefaultPluginManager.java:198)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
DefaultPluginManager.java:163)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1095)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
DefaultLifecycleExecutor.java:1060)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
(DefaultLifecycleExecutor.java:869)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:582)
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: Wed Nov 30 14:47:03 CST 2005
[INFO] Final Memory: 2M/4M
[INFO]
----------------------------------------------------------------------------
Eerie. Anyone have any ideas?
Sorry for the length!
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]