Hi Everyone, I am receiving the below error when I try to use the maven plugin for eclipse. Could you please take a look and let me know what is that I am doing wrong.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project chapter6: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. NullPointerException -> [Help 1] LogFile contents; Apache Maven 3.0.3 (r1075438; 2011-02-28 23:01:09+0530) Maven home: F:\Maven\apache-maven-3.0.3 Java version: 1.7.0, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from F:\Maven\apache-maven-3.0.3\conf\settings.xml [DEBUG] Reading user settings from C:\Users\pankaj\.m2\settings.xml [DEBUG] Using local repository at C:\Users\pankaj\.m2\repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for C:\Users\pankaj\.m2\repository [INFO] Scanning for projects... [DEBUG] Extension realms for project ruleplayer:chapter6:jar:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [WARNING] [WARNING] Some problems were encountered while building the effective model for ruleplayer:chapter6:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 78, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 69, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [DEBUG] Resolving plugin version for org.apache.maven.plugins:maven-eclipse-plugin [DEBUG] Could not find metadata org.apache.maven.plugins:maven-eclipse-plugin/maven-metadata.xml in local (C:\Users\pankaj\.m2\repository) [DEBUG] Skipped remote update check for org.apache.maven.plugins:maven-eclipse-plugin/maven-metadata.xml, locally cached metadata up-to-date. [DEBUG] Resolved plugin version for org.apache.maven.plugins:maven-eclipse-plugin to 2.8 from repository central (http://repo1.maven.org/maven2, releases) [DEBUG] Resolving plugin prefix eclipse from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix eclipse to org.apache.maven.plugins:maven-eclipse-plugin from POM ruleplayer:chapter6:jar:1.0-SNAPSHOT [DEBUG] Resolving plugin prefix eclipse from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix eclipse to org.apache.maven.plugins:maven-eclipse-plugin from POM ruleplayer:chapter6:jar:1.0-SNAPSHOT [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: ruleplayer:chapter6:jar:1.0-SNAPSHOT [DEBUG] Tasks: [eclipse:clean, eclipse:eclipse] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Drools-book-samples 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Resolving plugin prefix eclipse from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix eclipse to org.apache.maven.plugins:maven-eclipse-plugin from POM ruleplayer:chapter6:jar:1.0-SNAPSHOT [DEBUG] Resolving plugin prefix eclipse from [org.apache.maven.plugins, org.codehaus.mojo] [DEBUG] Resolved plugin prefix eclipse to org.apache.maven.plugins:maven-eclipse-plugin from POM ruleplayer:chapter6:jar:1.0-SNAPSHOT [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: ruleplayer:chapter6:1.0-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] Repositories (dependencies): [central (http://repo1.maven.org/maven2, releases)] [DEBUG] Repositories (plugins) : [central (http://repo1.maven.org/maven2, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-eclipse-plugin:2.8:clean (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <basedir>${basedir}</basedir> <packaging>${project.packaging}</packaging> <skip default-value="false">${eclipse.skip}</skip> </configuration> [DEBUG] --- init fork of ruleplayer:chapter6:1.0-SNAPSHOT for org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) --- [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [] [DEBUG] --- exit fork of ruleplayer:chapter6:1.0-SNAPSHOT for org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) --- [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?> <configuration> <addGroupIdToProjectName default-value="false">${eclipse.addGroupIdToProjectName}</addGroupIdToProjectName> <addVersionToProjectName default-value="false">${eclipse.addVersionToProjectName}</addVersionToProjectName> <additionalBuildcommands> <buildcommand>org.drools.eclipse.droolsbuilder</buildcommand> </additionalBuildcommands> <ajdtVersion default-value="none">${eclipse.ajdtVersion}</ajdtVersion> <buildOutputDirectory default-value="${project.build.outputDirectory}">${outputDirectory}</buildOutputDirectory> <downloadJavadocs>${downloadJavadocs}</downloadJavadocs> <downloadSources>${downloadSources}</downloadSources> <eclipseDownloadSources>${eclipse.downloadSources}</eclipseDownloadSources> <eclipseProjectDir>${eclipse.projectDir}</eclipseProjectDir> <executedProject>${executedProject}</executedProject> <forceRecheck>${forceRecheck}</forceRecheck> <limitProjectReferencesToWorkspace default-value="false">${eclipse.limitProjectReferencesToWorkspace}</limitProjectReferencesToWorkspace> <localRepository>${localRepository}</localRepository> <manifest default-value="${basedir}/META-INF/MANIFEST.MF">${eclipse.manifest}</manifest> <packaging>${project.packaging}</packaging> <pde default-value="false">${eclipse.pde}</pde> <project>${project}</project> <projectNameTemplate>${eclipse.projectNameTemplate}</projectNameTemplate> <reactorProjects>${reactorProjects}</reactorProjects> <remoteArtifactRepositories>${project.remoteArtifactRepositories}</remoteArtifactRepositories> <skip default-value="false">${eclipse.skip}</skip> <useProjectReferences default-value="true">${eclipse.useProjectReferences}</useProjectReferences> <workspace>${eclipse.workspace}</workspace> <wtpContextName>${wtpContextName}</wtpContextName> <wtpapplicationxml default-value="false">${eclipse.wtpapplicationxml}</wtpapplicationxml> <wtpdefaultserver>${eclipse.wtpdefaultserver}</wtpdefaultserver> <wtpmanifest default-value="false">${eclipse.wtpmanifest}</wtpmanifest> <wtpversion default-value="none">${wtpversion}</wtpversion> </configuration> [DEBUG] ======================================================================= [INFO] [INFO] --- maven-eclipse-plugin:2.8:clean (default-cli) @ chapter6 --- [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.sonatype.aether.transfer < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.sonatype.aether.metadata < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.sonatype.aether.collection < plexus.core [DEBUG] Imported: org.sonatype.aether.version < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.sonatype.aether.repository < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.sonatype.aether.artifact < plexus.core [DEBUG] Imported: org.sonatype.aether.spi < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.graph < plexus.core [DEBUG] Imported: org.sonatype.aether.* < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.impl < plexus.core [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.sonatype.aether.deployment < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.sonatype.aether.installation < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.* < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.sonatype.aether.resolution < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.codehaus.plexus.* < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Populating class realm maven.api [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2 Downloading: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom 2 KB Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom(2 KB at 0.9 KB/sec) [DEBUG] Reading resolution tracking file C:\Users\pankaj\.m2\repository\org\eclipse\core\resources\3.3.0-v20070604\resources-3.3.0-v20070604.pom.lastUpdated [DEBUG] Writing resolution tracking file C:\Users\pankaj\.m2\repository\org\eclipse\core\resources\3.3.0-v20070604\resources-3.3.0-v20070604.pom.lastUpdated [DEBUG] org.apache.maven.plugins:maven-eclipse-plugin:jar:2.8: [DEBUG] commons-io:commons-io:jar:1.4:compile [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:compile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] org.apache.maven:maven-project:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-settings:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-profile:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-model:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-core:jar:2.0.8:compile [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile [DEBUG] commons-cli:commons-cli:jar:1.0:compile [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile [DEBUG] org.apache.maven:maven-monitor:jar:2.0.8:compile [DEBUG] classworlds:classworlds:jar:1.1:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile [DEBUG] org.codehaus.plexus:plexus-interactivity-jline:jar:1.0-alpha-5:compile [DEBUG] jline:jline:jar:0.9.1:compile [DEBUG] org.apache.maven:maven-archiver:jar:2.2:compile [DEBUG] org.codehaus.plexus:plexus-resources:jar:1.0-alpha-7:compile [DEBUG] biz.aQute:bndlib:jar:0.0.145:compile [DEBUG] org.apache.maven.shared:maven-osgi:jar:0.2.0:compile [DEBUG] org.eclipse.core:resources:jar:3.3.0-v20070604:compile [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2 Downloading: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar 11 B 523 B 2 KB 2 KB 3 KB 3 KB 4 KB 4 KB 5 KB 5 KB 6 KB 6 KB 7 KB 7 KB 8 KB 8 KB 8 KB 9 KB 9 KB 10 KB 10 KB 11 KB 11 KB 12 KB 12 KB 13 KB 13 KB 14 KB 14 KB 15 KB 15 KB 16 KB 16 KB 16 KB 17 KB 17 KB 17 KB 18 KB 18 KB 19 KB 19 KB 20 KB 20 KB 21 KB 21 KB 22 KB 22 KB 23 KB 23 KB 24 KB 24 KB 25 KB 26 KB 27 KB 28 KB 28 KB 29 KB 29 KB 30 KB 30 KB 30 KB 31 KB 31 KB 32 KB 32 KB 33 KB 33 KB 34 KB 34 KB 35 KB 35 KB 36 KB 36 KB 37 KB 37 KB 38 KB 38 KB 39 KB 39 KB 40 KB 40 KB 41 KB 41 KB 42 KB 42 KB 43 KB 43 KB 44 KB 44 KB 45 KB 45 KB 46 KB 46 KB 47 KB 47 KB 48 KB 48 KB 49 KB 49 KB 50 KB 50 KB 50 KB 51 KB 51 KB 52 KB 52 KB 53 KB 53 KB 54 KB 54 KB 55 KB 55 KB 56 KB 56 KB 57 KB 57 KB 58 KB 58 KB 59 KB 59 KB 60 KB 60 KB 61 KB 61 KB 62 KB 62 KB 63 KB 63 KB 64 KB 64 KB 65 KB 65 KB 66 KB 66 KB 67 KB 67 KB 68 KB 68 KB 69 KB 69 KB 70 KB 70 KB 71 KB 71 KB 72 KB 72 KB 73 KB 74 KB 74 KB 75 KB 75 KB 75 KB 76 KB 76 KB 77 KB 77 KB 78 KB 78 KB 79 KB 79 KB 80 KB 80 KB 81 KB 81 KB 82 KB 82 KB 83 KB 83 KB 83 KB 83 KB 84 KB 84 KB 85 KB 85 KB 86 KB 86 KB 87 KB 87 KB 88 KB 88 KB 89 KB 89 KB 90 KB 90 KB 91 KB 92 KB 92 KB 93 KB 93 KB 93 KB 94 KB 94 KB 95 KB 96 KB 96 KB 96 KB 97 KB 98 KB 98 KB 99 KB 99 KB 100 KB 100 KB 101 KB 101 KB 102 KB 102 KB 103 KB 103 KB 104 KB 104 KB 105 KB 105 KB 106 KB 106 KB 107 KB 107 KB 108 KB 108 KB 109 KB 109 KB 110 KB 110 KB 111 KB 111 KB 112 KB 112 KB 113 KB 113 KB 114 KB 114 KB 115 KB 115 KB 116 KB 116 KB 117 KB 117 KB 117 KB 117 KB 118 KB 118 KB 119 KB 119 KB 120 KB 120 KB 121 KB 121 KB 122 KB 122 KB 123 KB 123 KB 124 KB 124 KB 125 KB 125 KB 126 KB 126 KB 127 KB 127 KB 128 KB 128 KB 129 KB 129 KB 130 KB 130 KB 131 KB 131 KB 132 KB 132 KB 133 KB 133 KB 134 KB 134 KB 135 KB 135 KB 136 KB 136 KB 137 KB 137 KB 138 KB 138 KB 139 KB 139 KB 140 KB 140 KB 141 KB 141 KB 142 KB 142 KB 143 KB 143 KB 144 KB 144 KB 145 KB 145 KB 146 KB 147 KB 147 KB 148 KB 148 KB 149 KB 149 KB 150 KB 150 KB 150 KB 151 KB 151 KB 152 KB 152 KB 153 KB 153 KB 154 KB 154 KB 155 KB 155 KB 156 KB 156 KB 157 KB 157 KB 158 KB 159 KB 159 KB 160 KB 160 KB 161 KB 161 KB 162 KB 162 KB 163 KB 163 KB 164 KB 164 KB 165 KB 165 KB 166 KB 166 KB 167 KB 167 KB 167 KB 168 KB 168 KB 169 KB 169 KB 170 KB 170 KB 171 KB 171 KB 172 KB 172 KB 173 KB 173 KB 174 KB 174 KB 175 KB 175 KB 176 KB 176 KB 177 KB 177 KB 178 KB 178 KB 179 KB 179 KB 180 KB 180 KB 181 KB 181 KB 182 KB 182 KB 183 KB 183 KB 184 KB 184 KB 185 KB 185 KB 186 KB 187 KB 187 KB 188 KB 188 KB 189 KB 189 KB 190 KB 190 KB 191 KB 191 KB 192 KB 192 KB 193 KB 193 KB 194 KB 194 KB 195 KB 195 KB 196 KB 196 KB 197 KB 197 KB 198 KB 199 KB 199 KB 200 KB 200 KB 200 KB 201 KB 201 KB 201 KB 202 KB 202 KB 203 KB 203 KB 204 KB 204 KB 205 KB 205 KB 206 KB 206 KB 207 KB 207 KB 208 KB 208 KB 209 KB 209 KB 210 KB 210 KB 211 KB 212 KB 212 KB 213 KB 213 KB 214 KB 214 KB 215 KB 215 KB 216 KB 216 KB 217 KB 217 KB 218 KB 218 KB 219 KB 219 KB 219 KB 220 KB 221 KB 221 KB 222 KB 222 KB 223 KB 223 KB 224 KB 224 KB 225 KB 225 KB 226 KB 226 KB 227 KB 227 KB 228 KB 228 KB 229 KB 229 KB 230 KB 230 KB 231 KB 231 KB 232 KB 232 KB 233 KB 233 KB 234 KB 234 KB 235 KB 235 KB 236 KB 236 KB 237 KB 237 KB 238 KB 238 KB 239 KB 239 KB 240 KB 240 KB 241 KB 241 KB 242 KB 242 KB 243 KB 243 KB 244 KB 244 KB 245 KB 245 KB 246 KB 246 KB 247 KB 247 KB 248 KB 248 KB 249 KB 249 KB 250 KB 250 KB 250 KB 250 KB 251 KB 251 KB 252 KB 252 KB 253 KB 253 KB 254 KB 254 KB 254 KB 254 KB 255 KB 255 KB 256 KB 256 KB 256 KB 257 KB 257 KB 258 KB 258 KB 259 KB 260 KB 260 KB 261 KB 261 KB 262 KB 262 KB 263 KB 263 KB 264 KB 264 KB 265 KB 265 KB 266 KB 266 KB 267 KB 268 KB 268 KB 268 KB 269 KB 269 KB 270 KB 271 KB 271 KB 272 KB 272 KB 272 KB 273 KB 273 KB 274 KB 274 KB 275 KB 275 KB 276 KB 276 KB 277 KB 277 KB 278 KB 278 KB 279 KB 279 KB 280 KB 280 KB 281 KB 281 KB 282 KB 282 KB 283 KB 283 KB 284 KB 284 KB 285 KB 285 KB 286 KB 286 KB 287 KB 287 KB 288 KB 288 KB 289 KB 289 KB 290 KB 290 KB 291 KB 291 KB 292 KB 292 KB 293 KB 293 KB 294 KB 294 KB 295 KB 296 KB 296 KB 296 KB 297 KB 297 KB 298 KB 298 KB 299 KB 299 KB 300 KB 300 KB 301 KB 301 KB 302 KB 302 KB 303 KB 303 KB 304 KB 304 KB 305 KB 305 KB 306 KB 306 KB 307 KB 307 KB 308 KB 309 KB 309 KB 310 KB 310 KB 311 KB 311 KB 312 KB 312 KB 313 KB 313 KB 314 KB 314 KB 315 KB 315 KB 316 KB 316 KB 316 KB 317 KB 317 KB 318 KB 318 KB 319 KB 319 KB 320 KB 320 KB 320 KB 321 KB 321 KB 322 KB 322 KB 323 KB 323 KB 324 KB 324 KB 325 KB 325 KB 326 KB 326 KB 327 KB 328 KB 328 KB 329 KB 329 KB 330 KB 330 KB 331 KB 331 KB 332 KB 332 KB 333 KB 333 KB 334 KB 334 KB 335 KB 335 KB 336 KB 336 KB 337 KB 337 KB 338 KB 338 KB 339 KB 339 KB 340 KB 340 KB 341 KB 341 KB 342 KB 342 KB 343 KB 343 KB 344 KB 344 KB 345 KB 346 KB 346 KB 347 KB 347 KB 348 KB 348 KB 348 KB 349 KB 349 KB 350 KB 350 KB 351 KB 351 KB 352 KB 352 KB 353 KB 353 KB 354 KB 354 KB 355 KB 355 KB 356 KB 356 KB 357 KB 357 KB 358 KB 358 KB 359 KB 359 KB 360 KB 360 KB 361 KB 361 KB 362 KB 362 KB 363 KB 363 KB 364 KB 364 KB 365 KB 365 KB 365 KB 365 KB 366 KB 366 KB 367 KB 367 KB 368 KB 368 KB 369 KB 369 KB 369 KB 370 KB 370 KB 371 KB 371 KB 372 KB 372 KB 373 KB 373 KB 374 KB 375 KB 375 KB 375 KB 376 KB 376 KB 377 KB 377 KB 378 KB 379 KB 379 KB 380 KB 380 KB 381 KB 381 KB 382 KB 382 KB 383 KB 383 KB 384 KB 384 KB 385 KB 385 KB 386 KB 386 KB 386 KB 386 KB 386 KB 387 KB 387 KB 388 KB 389 KB 389 KB 390 KB 390 KB 391 KB 391 KB 392 KB 392 KB 393 KB 393 KB 394 KB 394 KB 395 KB 395 KB 396 KB 396 KB 397 KB 397 KB 398 KB 398 KB 399 KB 399 KB 400 KB 400 KB 401 KB 401 KB 401 KB 402 KB 402 KB 403 KB 403 KB 404 KB 404 KB 405 KB 405 KB 406 KB 406 KB 407 KB 407 KB 408 KB 408 KB 409 KB 409 KB 410 KB 410 KB 411 KB 411 KB 412 KB 412 KB 413 KB 413 KB 414 KB 414 KB 415 KB 415 KB 416 KB 416 KB 417 KB 417 KB 418 KB 418 KB 419 KB 419 KB 420 KB 420 KB 421 KB 421 KB 422 KB 422 KB 423 KB 423 KB 424 KB 424 KB 425 KB 425 KB 426 KB 426 KB 427 KB 427 KB 428 KB 428 KB 429 KB 429 KB 430 KB 430 KB 431 KB 431 KB 432 KB 432 KB 433 KB 433 KB 434 KB 434 KB 435 KB 435 KB 435 KB 436 KB 436 KB 436 KB 437 KB 437 KB 438 KB 438 KB 439 KB 439 KB 440 KB 440 KB 441 KB 441 KB 442 KB 442 KB 443 KB 443 KB 444 KB 444 KB 445 KB 445 KB 446 KB 446 KB 447 KB 447 KB 448 KB 448 KB 449 KB 449 KB 449 KB 450 KB 450 KB 451 KB 451 KB 451 KB 452 KB 452 KB 453 KB 453 KB 453 KB 454 KB 454 KB 455 KB 455 KB 456 KB 456 KB 457 KB 457 KB 458 KB 458 KB 459 KB 459 KB 460 KB 460 KB 461 KB 461 KB 462 KB 463 KB 463 KB 464 KB 464 KB 465 KB 465 KB 466 KB 466 KB 467 KB 467 KB 468 KB 468 KB 469 KB 469 KB 470 KB 470 KB 471 KB 471 KB 472 KB 472 KB 473 KB 473 KB 474 KB 474 KB 475 KB 475 KB 476 KB 477 KB 477 KB 478 KB 478 KB 479 KB 479 KB 480 KB 480 KB 481 KB 481 KB 481 KB 482 KB 482 KB 483 KB 483 KB 484 KB 484 KB 485 KB 485 KB 486 KB 486 KB 487 KB 487 KB 488 KB 488 KB 489 KB 489 KB 490 KB 490 KB 491 KB 491 KB 492 KB 492 KB 493 KB 493 KB 494 KB 494 KB 495 KB 495 KB 496 KB 496 KB 497 KB 497 KB 498 KB 498 KB 498 KB 499 KB 500 KB 500 KB 501 KB 501 KB 501 KB 501 KB 502 KB 502 KB 502 KB 503 KB 504 KB 504 KB 505 KB 505 KB 505 KB 506 KB 506 KB 507 KB 507 KB 508 KB 508 KB 509 KB 509 KB 510 KB 511 KB 511 KB 512 KB 512 KB 512 KB 513 KB 513 KB 514 KB 515 KB 515 KB 516 KB 516 KB 516 KB 517 KB 517 KB 517 KB 518 KB 518 KB 519 KB 519 KB 519 KB 520 KB 520 KB 521 KB 521 KB 522 KB 523 KB 523 KB 524 KB 524 KB 525 KB 525 KB 526 KB 526 KB 527 KB 527 KB 528 KB 528 KB 529 KB 529 KB 530 KB 530 KB 531 KB 531 KB 532 KB 532 KB 533 KB 533 KB 534 KB 534 KB 535 KB 535 KB 536 KB 536 KB 537 KB 537 KB 538 KB 538 KB 539 KB 540 KB 540 KB 540 KB 541 KB 541 KB 542 KB 543 KB 543 KB 544 KB 544 KB 544 KB 545 KB 546 KB 546 KB 547 KB 547 KB 548 KB 548 KB 548 KB 549 KB 549 KB 550 KB 551 KB 551 KB 551 KB 552 KB 552 KB 553 KB 553 KB 554 KB 554 KB 555 KB 555 KB 556 KB 557 KB 557 KB 558 KB 558 KB 558 KB 559 KB 560 KB 560 KB 561 KB 561 KB 562 KB 562 KB 562 KB 563 KB 564 KB 564 KB 565 KB 565 KB 565 KB 566 KB 566 KB 567 KB 567 KB 567 KB 568 KB 568 KB 569 KB 569 KB 569 KB 570 KB 571 KB 571 KB 572 KB 572 KB 572 KB 573 KB 573 KB 574 KB 574 KB 575 KB 575 KB 576 KB 576 KB 577 KB 577 KB 578 KB 579 KB 579 KB 579 KB 580 KB 581 KB 581 KB 582 KB 582 KB 583 KB 583 KB 584 KB 584 KB 584 KB 585 KB 585 KB 586 KB 586 KB 587 KB 587 KB 588 KB 588 KB 589 KB 589 KB 590 KB 591 KB 591 KB 592 KB 592 KB 593 KB 593 KB 594 KB 594 KB 595 KB 595 KB 596 KB 597 KB 597 KB 598 KB 598 KB 599 KB 600 KB 600 KB 601 KB 601 KB 602 KB 602 KB 603 KB 603 KB 604 KB 604 KB 605 KB 605 KB 606 KB 606 KB 607 KB 607 KB 608 KB 609 KB 609 KB 610 KB 610 KB 611 KB 611 KB 612 KB 612 KB 613 KB 613 KB 614 KB 615 KB 615 KB 616 KB 616 KB 617 KB 617 KB 618 KB 618 KB 619 KB 619 KB 620 KB 620 KB 620 KB 620 KB 621 KB 622 KB 622 KB 623 KB 623 KB 624 KB 624 KB 625 KB 625 KB 626 KB 626 KB 627 KB 627 KB 628 KB 629 KB 631 KB 633 KB 636 KB 638 KB 640 KB 643 KB 645 KB 647 KB 650 KB 652 KB 655 KB 657 KB 659 KB 661 KB 663 KB Downloaded: http://repo1.maven.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar(663 KB at 76.6 KB/sec) [DEBUG] Reading resolution tracking file C:\Users\pankaj\.m2\repository\org\eclipse\core\resources\3.3.0-v20070604\resources-3.3.0-v20070604.jar.lastUpdated [DEBUG] Writing resolution tracking file C:\Users\pankaj\.m2\repository\org\eclipse\core\resources\3.3.0-v20070604\resources-3.3.0-v20070604.jar.lastUpdated [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.8 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.8 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.8 [DEBUG] Included: org.apache.maven.plugins:maven-eclipse-plugin:jar:2.8 [DEBUG] Included: commons-io:commons-io:jar:1.4 [DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.8 [DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9 [DEBUG] Included: commons-cli:commons-cli:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.6 [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-jline:jar:1.0-alpha-5 [DEBUG] Included: jline:jline:jar:0.9.1 [DEBUG] Included: org.apache.maven:maven-archiver:jar:2.2 [DEBUG] Included: org.codehaus.plexus:plexus-resources:jar:1.0-alpha-7 [DEBUG] Included: biz.aQute:bndlib:jar:0.0.145 [DEBUG] Included: org.apache.maven.shared:maven-osgi:jar:0.2.0 [DEBUG] Included: org.eclipse.core:resources:jar:3.3.0-v20070604 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.8 [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.8 [DEBUG] Excluded: classworlds:classworlds:jar:1.1 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-eclipse-plugin:2.8:clean from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.8, parent: sun.misc.Launcher$AppClassLoader@37af78ce] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.8:clean' with basic configurator --> [DEBUG] (s) basedir = F:\Drools\book-examples\chap6-sample [DEBUG] (s) packaging = jar [DEBUG] (f) skip = false [DEBUG] -- end configuration -- [INFO] Deleting file: .project [DEBUG] No .project file found [INFO] Deleting file: .classpath [DEBUG] No .classpath file found [INFO] Deleting file: .wtpmodules [DEBUG] No .wtpmodules file found [INFO] Deleting file: .component [DEBUG] No .component file found [INFO] Deleting file: org.eclipse.wst.common.component [DEBUG] No org.eclipse.wst.common.component file found [INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml [DEBUG] No org.eclipse.wst.common.project.facet.core.xml file found [INFO] Deleting file: org.eclipse.jdt.core.prefs [DEBUG] No org.eclipse.jdt.core.prefs file found [INFO] Deleting file: org.eclipse.ajdt.ui.prefs [DEBUG] No org.eclipse.ajdt.ui.prefs file found [INFO] [INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ chapter6 >>> [INFO] [INFO] <<< maven-eclipse-plugin:2.8:eclipse (default-cli) @ chapter6 <<< [INFO] [INFO] --- maven-eclipse-plugin:2.8:eclipse (default-cli) @ chapter6 --- [DEBUG] Configuring mojo org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.8, parent: sun.misc.Launcher$AppClassLoader@37af78ce] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse' with basic configurator --> [DEBUG] (s) addGroupIdToProjectName = false [DEBUG] (s) addVersionToProjectName = false [DEBUG] (s) additionalBuildcommands = [org.drools.eclipse.droolsbuilder] [DEBUG] (f) ajdtVersion = none [DEBUG] (s) buildOutputDirectory = F:\Drools\book-examples\chap6-sample\target\classes [DEBUG] (s) executedProject = MavenProject: ruleplayer:chapter6:1.0-SNAPSHOT @ F:\Drools\book-examples\chap6-sample\pom.xml [DEBUG] (f) limitProjectReferencesToWorkspace = false [DEBUG] (s) localRepository = id: local url: file:///C:/Users/pankaj/.m2/repository/ layout: none [DEBUG] (f) manifest = F:\Drools\book-examples\chap6-sample\META-INF\MANIFEST.MF [DEBUG] (f) packaging = jar [DEBUG] (f) pde = false [DEBUG] (s) project = MavenProject: ruleplayer:chapter6:1.0-SNAPSHOT @ F:\Drools\book-examples\chap6-sample\pom.xml [DEBUG] (s) reactorProjects = [MavenProject: ruleplayer:chapter6:1.0-SNAPSHOT @ F:\Drools\book-examples\chap6-sample\pom.xml] [DEBUG] (s) remoteArtifactRepositories = [ id: central url: http://repo1.maven.org/maven2 layout: default snapshots: [enabled => false, update => daily] releases: [enabled => true, update => daily] ] [DEBUG] (f) skip = false [DEBUG] (s) useProjectReferences = true [DEBUG] (f) workspace = C:\Users\pankaj\Eclipse [DEBUG] (f) wtpapplicationxml = false [DEBUG] (f) wtpmanifest = false [DEBUG] (s) wtpversion = none [DEBUG] -- end configuration -- [INFO] Using Eclipse Workspace: C:\Users\pankaj\Eclipse [WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre7 [DEBUG] detected executable: C:\Program Files\Java\jdk1.7.0\bin\javac [DEBUG] detected executable: C:\Program Files\Java\jdk1.7.0\jre [DEBUG] read workpsace project C:\Users\pankaj\Eclipse\JavaTraining [DEBUG] ignored workspace project NO pom available C:\Users\pankaj\Eclipse\JavaTraining [DEBUG] 0 from workspace C:\Users\pankaj\Eclipse [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.242s [INFO] Finished at: Fri Nov 04 01:54:49 IST 2011 [INFO] Final Memory: 8M/78M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project chapter6: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project chapter6: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.NullPointerException at org.apache.maven.artifact.versioning.ComparableVersion.parseVersion(ComparableVersion.java:353) at org.apache.maven.artifact.versioning.ComparableVersion.<init>(ComparableVersion.java:344) at org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion(DefaultArtifactVersion.java:111) at org.apache.maven.artifact.versioning.DefaultArtifactVersion.<init>(DefaultArtifactVersion.java:47) at org.apache.maven.artifact.DefaultArtifact.compareTo(DefaultArtifact.java:433) at org.apache.maven.artifact.DefaultArtifact.compareTo(DefaultArtifact.java:43) at java.util.TreeMap.compare(TreeMap.java:1188) at java.util.TreeMap.put(TreeMap.java:531) at java.util.TreeSet.add(TreeSet.java:255) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.getProjectArtifacts(AbstractIdeSupportMojo.java:786) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolution(AbstractIdeSupportMojo.java:560) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:507) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException Regards, Pankaj Pai PPAI