Maven failsafe plugin does not run testNG XML suite - maven

I'm using maven to run my integration tests which are in a TestNG suite.
When running the suite under eclipse- my test suite runs successfully.
When running "mvn verify" to run my integration tests, I see the failsafe plugin configurations debug prints including the correct path for the suite.xml file and my compiled classes, but it doesn't execute my tests (build process completes successfully).
I've tried to run the same pom configuration but using the surefire plugin instead of the failsafe plugins and my tests executed successfully.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.12.3</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/MyTestNgSuiteFile.xml</suiteXmlFile>
</suiteXmlFiles>
<argLine>-Xmx1024m</argLine>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
Here is the relevant console output:
[DEBUG] Excluded:
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Excluded: junit:junit:jar:3.8.1 [DEBUG] Excluded:
org.apache.maven:maven-core:jar:2.0.9 [DEBUG] Excluded:
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9 [DEBUG]
Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9 [DEBUG]
Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9 [DEBUG]
Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9 [DEBUG]
Excluded: org.apache.maven:maven-monitor:jar:2.0.9 [DEBUG] Excluded:
classworlds:classworlds:jar:1.1 [DEBUG] Excluded:
org.apache.maven:maven-toolchain:jar:2.0.9
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:integration-test
from plugin realm
ClassRealm[plugin>org.apache.maven.plugins:maven-failsafe-plugin:2.12.3,
parent: sun.misc.Launcher$AppClassLoader#121ab80] [DEBUG] Configuring
mojo
'org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:integration-test'
with basic configurator -->
[DEBUG] (s) argLine = -Xmx1024m [DEBUG]
(s) basedir = PathToMyDir\MyProject [DEBUG] (s) childDelegation =
false [DEBUG] (s) classesDirectory =
PathToMyDir\MyProject\target\classes [DEBUG] (s) disableXmlReport =
false [DEBUG] (s) enableAssertions = true [DEBUG] (s) forkMode =
once [DEBUG] (s) junitArtifactName = junit:junit [DEBUG] (s)
localRepository = id: local
url: file:///..../.m2/repository/ layout: none
[DEBUG] (f) parallelMavenExecution = false [DEBUG] (s)
perCoreThreadCount = true [DEBUG] (s) pluginArtifactMap =
{org.apache.maven.plugins:maven-failsafe-plugin=org.apache.maven.plugins:maven-failsafe-plugin:maven-plugin:2.12.3:,
org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.12.3:compile,
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.12.3:compile,
org.apache.maven.surefire:maven-surefire-common=org.apache.maven.surefire:maven-surefire-common:jar:2.12.3:compile,
org.apache.commons:commons-lang3=org.apache.commons:commons-lang3:jar:3.1:compile,
org.apache.maven.shared:maven-common-artifact-filters=org.apache.maven.shared:maven-common-artifact-filters:jar:1.3:compile,
org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:3.0.5:compile,
org.apache.maven.reporting:maven-reporting-api=org.apache.maven.reporting:maven-reporting-api:jar:2.0.9:compile, org.apache.maven.plugin-tools:maven-plugin-annotations=org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1:compile}
[DEBUG] (f) pluginDescriptor = Component Descriptor: role:
'org.apache.maven.plugin.Mojo', implementation:
'org.apache.maven.plugin.failsafe.HelpMojo', role hint:
'org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:help' role:
'org.apache.maven.plugin.Mojo', implementation:
'org.apache.maven.plugin.failsafe.IntegrationTestMojo', role hint:
'org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:integration-test'
role: 'org.apache.maven.plugin.Mojo', implementation:
'org.apache.maven.plugin.failsafe.VerifyMojo', role hint:
'org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:verify'
--- [DEBUG] (s) printSummary = true [DEBUG] (s) projectArtifactMap = {All Artifacts Here} [DEBUG] (s) redirectTestOutputToFile = false [DEBUG] (s) remoteRepositories = [ id: central
url: http://repo1.maven.org/maven2 layout: default snapshots: [enabled => false, update => daily] releases: [enabled => true,
update => never] ] [DEBUG] (s) reportFormat = brief [DEBUG] (s)
reportsDirectory = PathToMyDir\MyProject\target\failsafe-reports
[DEBUG] (s) runOrder = filesystem [DEBUG] (s) skip = false [DEBUG]
(s) skipTests = false [DEBUG] (s) suiteXmlFiles =
[PathToMyDir\MyProject\src\test\resources\MyTestNgSuiteFile.xml]
[DEBUG] (s) summaryFile =
PathToMyDir\MyProject\target\failsafe-reports\failsafe-summary.xml
[DEBUG] (s) testClassesDirectory =
PathToMyDir\MyProject\target\test-classes [DEBUG] (s)
testNGArtifactName = org.testng:testng [DEBUG] (s)
testSourceDirectory = PathToMyDir\MyProject\src\test\java [DEBUG]
(s) trimStackTrace = true [DEBUG] (s) useFile = true [DEBUG] (s)
useManifestOnlyJar = true [DEBUG] (s) useSystemClassLoader = true
[DEBUG] (s) useUnlimitedThreads = false [DEBUG] (s)
workingDirectory = PathToMyDir\MyProject [DEBUG] (s) project =
MavenProject: MyParentProject:MyProject:0.0.1-SNAPSHOT #
PathToMyDir\MyProject\pom.xml [DEBUG] (s) session =
org.apache.maven.execution.MavenSession#bffe59 [DEBUG] -- end
configuration -- [WARNING] File encoding has not been set, using
platform encoding Cp1255, i.e. build is platform dependent! [INFO]
[INFO] --- maven-failsafe-plugin:2.12.3:verify (verify) # MyProject
--- [DEBUG] Configuring mojo org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:verify from
plugin realm
ClassRealm[plugin>org.apache.maven.plugins:maven-failsafe-plugin:2.12.3,
parent: sun.misc.Launcher$AppClassLoader#121ab80] [DEBUG] Configuring
mojo 'org.apache.maven.plugins:maven-failsafe-plugin:2.12.3:verify'
with basic configurator --> [DEBUG] (s) basedir =
PathToMyDir\MyProject [DEBUG] (s) reportsDirectory =
PathToMyDir\MyProject\target\failsafe-reports [DEBUG] (s) skip =
false [DEBUG] (f) summaryFile =
PathToMyDir\MyProject\target\failsafe-reports\failsafe-summary.xml
[DEBUG] (s) testClassesDirectory =
PathToMyDir\MyProject\target\test-classes [DEBUG] (s)
testFailureIgnore = false [DEBUG] -- end configuration -- [INFO]
Failsafe report directory:
PathToMyDir\MyProject\target\failsafe-reports [WARNING] File encoding
has not been set, using platform encoding Cp1255, i.e. build is
platform dependent!
It looks like the "Forking command line: cmd.exe /X /C "C:\Program Files (x86)\Java\jdk1.7.0_04..." command is missing and not getting executed.
I would appreciate any help.

I had a similar issue and downgrading the failsafe plugin to 2.11 worked for me.

Related

Disable preferReactor in Maven versions:update-properties

Is there way to bump versions in a multi-module project while ignoring the reactor's SNAPSHOT of something. The plugin seems very keen to use the local version. Config excludeReactor doesn't seem to be what I thought it was either.
mvn org.codehaus.mojo:versions-maven-plugin:2.12.0:update-properties -DallowMajorUpdates=false -DexcludeReactor=true
[DEBUG] Configuring mojo 'org.codehaus.mojo:versions-maven-plugin:2.12.0:update-properties' with basic configurator -->
[DEBUG] (f) allowDowngrade = false
[DEBUG] (f) allowIncrementalUpdates = true
[DEBUG] (f) allowMajorUpdates = false
[DEBUG] (f) allowMinorUpdates = true
[DEBUG] (f) allowSnapshots = false <<<<
[DEBUG] (f) autoLinkItems = true
[DEBUG] (f) changeRecorderFormat = none
[DEBUG] (f) excludeReactor = true <<<<
...
[DEBUG] Property ${bom.version}: Current winner is: 1.0.185
[DEBUG] Property ${bom.version}: Searching reactor for a valid version...
[DEBUG] Property ${bom.version}: Set of valid available versions from the reactor is [1.0.185-SNAPSHOT]
[DEBUG] Property ${bom.version}: Reactor has version 1.0.185-SNAPSHOT
[DEBUG] Property ${bom.version}: Reactor has a version and we prefer the reactor
[INFO] Updated ${bom.version} from 1.0.181 to 1.0.185-SNAPSHOT <<<< :(

Unable to use Flyway migrations with Google Cloud SQL and Maven

I'm just trying to get a simple Hello World proof of concept set up, using maven, flyway, and Google Cloud SQL. See https://github.com/creyes17/mvn-flyway-cloudsql-test for the full code I'm using. (question posted at commit 3b7bfa8e).
Whenever I run mvn flyway:migrate, regardless of the machine from which I run it from, I get the following error:
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.2:migrate (default-cli) on project mvn-flyway-cloudsql-test: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call rdbms.OpenConnection in a thread that is neither the original request thread nor a thread created by ThreadManager -> [Help 1]
Here's my pom.xml:
<!--
mvn-flyway-cloudsql-test is an example of how to set up a Maven/Flyway/Google CloudSQL integration.
Copyright (C) 2017 Christopher R. Reyes
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>reyes.r.christopher</groupId>
<artifactId>mvn-flyway-cloudsql-test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>mvn-flyway-cloudsql-test</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.9.54</version>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>4.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>4.0.2</version>
<configuration>
<!--
Normally, I would specify these in a flyway.properties file.
Since I don't want to check in my actual instance address, username, and password to a public git repository, I'll do this instead.
-->
<url>jdbc:google:rdbms://${instance}:3306/hello_world?serverTimezone=UTC&useSSL=true&verifyServerCertificate=true&requireSSL=true</url>
<user>${user}</user>
<password>${password}</password>
<driver>com.google.appengine.api.rdbms.AppEngineDriver</driver>
</configuration>
</plugin>
</plugins>
</build>
</project>
Below is the full output from running mvn -X flyway:migrate -Dinstance=$instance -Duser=$user -Dpassword=$password
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T12:39:06-07:00)
Maven home: /usr/local/Cellar/maven/3.5.0/libexec
Java version: 1.8.0_77, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core
[DEBUG] Imported: javax.enterprise.util.* < plexus.core
[DEBUG] Imported: javax.inject.* < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.eclipse.aether.* < plexus.core
[DEBUG] Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG] Imported: org.eclipse.aether.collection < plexus.core
[DEBUG] Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG] Imported: org.eclipse.aether.graph < plexus.core
[DEBUG] Imported: org.eclipse.aether.impl < plexus.core
[DEBUG] Imported: org.eclipse.aether.installation < plexus.core
[DEBUG] Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG] Imported: org.eclipse.aether.repository < plexus.core
[DEBUG] Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG] Imported: org.eclipse.aether.spi < plexus.core
[DEBUG] Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG] Imported: org.eclipse.aether.version < plexus.core
[DEBUG] Imported: org.fusesource.jansi.* < plexus.core
[DEBUG] Imported: org.slf4j.* < plexus.core
[DEBUG] Imported: org.slf4j.helpers.* < plexus.core
[DEBUG] Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from /usr/local/Cellar/maven/3.5.0/libexec/conf/settings.xml
[DEBUG] Reading user settings from /Users/chris.reyes/.m2/settings.xml
[DEBUG] Reading global toolchains from /usr/local/Cellar/maven/3.5.0/libexec/conf/toolchains.xml
[DEBUG] Reading user toolchains from /Users/chris.reyes/.m2/toolchains.xml
[DEBUG] Using local repository at /Users/chris.reyes/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/chris.reyes/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project reyes.r.christopher:mvn-flyway-cloudsql-test:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix flyway from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix flyway to org.flywaydb:flyway-maven-plugin from POM reyes.r.christopher:mvn-flyway-cloudsql-test:jar:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: reyes.r.christopher:mvn-flyway-cloudsql-test:jar:1.0-SNAPSHOT
[DEBUG] Tasks: [flyway:migrate]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mvn-flyway-cloudsql-test 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix flyway from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix flyway to org.flywaydb:flyway-maven-plugin from POM reyes.r.christopher:mvn-flyway-cloudsql-test: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] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: reyes.r.christopher:mvn-flyway-cloudsql-test:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.flywaydb:flyway-maven-plugin:4.0.2:migrate (default-cli)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<baselineDescription>${flyway.baselineDescription}</baselineDescription>
<baselineOnMigrate>${flyway.baselineOnMigrate}</baselineOnMigrate>
<baselineVersion>${flyway.baselineVersion}</baselineVersion>
<cleanDisabled>${flyway.cleanDisabled}</cleanDisabled>
<cleanOnValidationError>${flyway.cleanOnValidationError}</cleanOnValidationError>
<configFile>${flyway.configFile}</configFile>
<driver>com.google.appengine.api.rdbms.AppEngineDriver</driver>
<encoding>${flyway.encoding}</encoding>
<ignoreFailedFutureMigration>${flyway.ignoreFailedFutureMigration}</ignoreFailedFutureMigration>
<ignoreFutureMigrations>${flyway.ignoreFutureMigrations}</ignoreFutureMigrations>
<mavenProject>${project}</mavenProject>
<outOfOrder>${flyway.outOfOrder}</outOfOrder>
<password>REDACTED</password>
<placeholderPrefix>${flyway.placeholderPrefix}</placeholderPrefix>
<placeholderReplacement>${flyway.placeholderReplacement}</placeholderReplacement>
<placeholderSuffix>${flyway.placeholderSuffix}</placeholderSuffix>
<repeatableSqlMigrationPrefix>${flyway.repeatableSqlMigrationPrefix}</repeatableSqlMigrationPrefix>
<schemas>${flyway.schemas}</schemas>
<serverId>${flyway.serverId}</serverId>
<settings>${settings}</settings>
<skip>${flyway.skip}</skip>
<skipDefaultCallbacks>${flyway.skipDefaultCallbacks}</skipDefaultCallbacks>
<skipDefaultResolvers>${flyway.skipDefaultResolvers}</skipDefaultResolvers>
<sqlMigrationPrefix>${flyway.sqlMigrationPrefix}</sqlMigrationPrefix>
<sqlMigrationSeparator>${flyway.sqlMigrationSeparator}</sqlMigrationSeparator>
<sqlMigrationSuffix>${flyway.sqlMigrationSuffix}</sqlMigrationSuffix>
<table>${flyway.table}</table>
<target>${flyway.target}</target>
<url>jdbc:google:rdbms://REDACTED:3306/hello_world?serverTimezone=UTC&useSSL=true&verifyServerCertificate=true&requireSSL=true</url>
<user>REDACTED</user>
<validateOnMigrate>${flyway.validateOnMigrate}</validateOnMigrate>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=1, ConflictMarker.nodeCount=4, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=1, ConflictIdSorter.conflictIdCount=3, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=3, DefaultDependencyCollector.collectTime=49, DefaultDependencyCollector.transformTime=9}
[DEBUG] reyes.r.christopher:mvn-flyway-cloudsql-test:jar:1.0-SNAPSHOT
[DEBUG] mysql:mysql-connector-java:jar:6.0.6:compile
[DEBUG] com.google.appengine:appengine-api-1.0-sdk:jar:1.9.54:compile
[DEBUG] org.flywaydb:flyway-core:jar:4.0:compile
[INFO]
[INFO] --- flyway-maven-plugin:4.0.2:migrate (default-cli) # mvn-flyway-cloudsql-test ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=83, ConflictIdSorter.graphTime=1, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=34, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3, ConflictResolver.conflictItemCount=76, DefaultDependencyCollector.collectTime=220, DefaultDependencyCollector.transformTime=4}
[DEBUG] org.flywaydb:flyway-maven-plugin:jar:4.0.2:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:4.11:test
[DEBUG] org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG] org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-core:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile
[DEBUG] org.slf4j:slf4j-jdk14:jar:1.7.16:runtime
[DEBUG] org.slf4j:slf4j-api:jar:1.7.16:runtime
[DEBUG] org.slf4j:jcl-over-slf4j:jar:1.7.16:runtime
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile
[DEBUG] org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile
[DEBUG] commons-cli:commons-cli:jar:1.2:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.2.1:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
[DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.15:compile
[DEBUG] org.flywaydb:flyway-core:jar:4.0.2:compile
[DEBUG] Created new class realm plugin>org.flywaydb:flyway-maven-plugin:4.0.2
[DEBUG] Importing foreign packages into class realm plugin>org.flywaydb:flyway-maven-plugin:4.0.2
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.flywaydb:flyway-maven-plugin:4.0.2
[DEBUG] Included: org.flywaydb:flyway-maven-plugin:jar:4.0.2
[DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG] Included: org.slf4j:slf4j-jdk14:jar:1.7.16
[DEBUG] Included: org.slf4j:jcl-over-slf4j:jar:1.7.16
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.2.1
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.1
[DEBUG] Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1
[DEBUG] Included: commons-cli:commons-cli:jar:1.2
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4
[DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.15
[DEBUG] Included: org.flywaydb:flyway-core:jar:4.0.2
[DEBUG] Configuring mojo org.flywaydb:flyway-maven-plugin:4.0.2:migrate from plugin realm ClassRealm[plugin>org.flywaydb:flyway-maven-plugin:4.0.2, parent: sun.misc.Launcher$AppClassLoader#55f96302]
[DEBUG] Configuring mojo 'org.flywaydb:flyway-maven-plugin:4.0.2:migrate' with include-project-dependencies configurator -->
[DEBUG] (f) driver = com.google.appengine.api.rdbms.AppEngineDriver
[DEBUG] (f) mavenProject = MavenProject: reyes.r.christopher:mvn-flyway-cloudsql-test:1.0-SNAPSHOT # /Users/chris.reyes/github/creyes17/mvn-flyway-cloudsql-test/pom.xml
[DEBUG] (f) password = REDACTED
[DEBUG] (f) schemas = []
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter#44a2b17b
[DEBUG] (f) url = jdbc:google:rdbms://REDACTED:3306/hello_world?serverTimezone=UTC&useSSL=true&verifyServerCertificate=true&requireSSL=true
[DEBUG] (f) user = REDACTED
[DEBUG] -- end configuration --
[DEBUG] flyway.properties not found. Skipping.
[INFO] Flyway 4.0.2 by Boxfuse
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.834 s
[INFO] Finished at: 2017-06-21T10:22:07-07:00
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.2:migrate (default-cli) on project mvn-flyway-cloudsql-test: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call rdbms.OpenConnection in a thread that is neither the original request thread nor a thread created by ThreadManager -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.2:migrate (default-cli) on project mvn-flyway-cloudsql-test: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call rdbms.OpenConnection in a thread that is neither the original request thread nor a thread created by ThreadManager
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call rdbms.OpenConnection in a thread that is neither the original request thread nor a thread created by ThreadManager
at org.flywaydb.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:541)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: com.google.apphosting.api.ApiProxy$CallNotFoundException: Can't make API call rdbms.OpenConnection in a thread that is neither the original request thread nor a thread created by ThreadManager
at com.google.apphosting.api.ApiProxy$CallNotFoundException.foreignThread(ApiProxy.java:800)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:112)
at com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.makeSyncCall(RdbmsApiProxyClient.java:94)
at com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.openConnection(RdbmsApiProxyClient.java:71)
at com.google.cloud.sql.jdbc.internal.SqlProtoClient.openConnection(SqlProtoClient.java:58)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:65)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:25)
at com.google.appengine.api.rdbms.AppEngineDriver.connect(AppEngineDriver.java:83)
at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:409)
at org.flywaydb.core.internal.util.jdbc.DriverDataSource.getConnection(DriverDataSource.java:370)
at org.flywaydb.core.internal.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:50)
at org.flywaydb.core.Flyway.execute(Flyway.java:1326)
at org.flywaydb.core.Flyway.migrate(Flyway.java:917)
at org.flywaydb.maven.MigrateMojo.doExecute(MigrateMojo.java:30)
at org.flywaydb.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:539)
... 22 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/MojoExecutionException
I've confirmed that I'm able to log in using the same credentials directly to cloud sql using the gcloud tool: gcloud sql connect REDACTED --user=$user. When I type \s into the mysql tool that opens up, I can confirm that the user is the same and the connection is the same as the $instance that I've been using. I've tried using the gcloud tool before and after trying mvn flyway:migrate but it doesn't change the error message.
I looked at Migrating to Google Cloud SQL using flyway, what jar files should be copied?, but my error message was different. I tried the fix anyways (dropping in the mysql jdbc jar) but it didn't change the error message at all.
Thanks for any help!
I spoke with Jinjun at Google and he was able to point me to some different Google documentation. I needed to use their MySQL SocketFactory and reformat the jdbc url string.
Specifically, I added the following dependency to pom.xml:
<!-- https://mvnrepository.com/artifact/com.google.cloud.sql/mysql-socket-factory-connector-j-6 -->
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>mysql-socket-factory-connector-j-6</artifactId>
<version>1.0.2</version>
</dependency>
Then, I changed the JDBC URL connector string to
jdbc:mysql://google/hello_world?cloudSqlInstance=${instance}&socketFactory=com.google.cloud.sql.mysql.SocketFactory
I've updated my example github repo and tested it on a few different machines to test portability.

maven-pmd-plugin disable for one module

I'm trying to disable execution of maven-pmd-plugin for one of maven project module, but can't find a working solution.
Right now I have the next in the module:
<properties>
<cpd.skip>true</cpd.skip>
<pmd.skip>true</pmd.skip>
<maven.pmd.enable>false</maven.pmd.enable>
<maven.pmd.cpd.enable>false</maven.pmd.cpd.enable>
</properties>
And have the next in the debug output:
[INFO] --- maven-pmd-plugin:3.2:cpd (pmd-cpd) # module ---
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-pmd-plugin:3.2:cpd from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-pmd-plugin:3.2, parent: sun.misc.Launcher$AppClassLoader#6e70c242]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-pmd-plugin:3.2:cpd' with basic configurator -->
[DEBUG] (f) aggregate = false
[DEBUG] (f) compileSourceRoots = [/cicd/module/src/main/java]
[DEBUG] (f) format = xml
[DEBUG] (f) ignoreIdentifiers = false
[DEBUG] (f) ignoreLiterals = false
[DEBUG] (f) includeTests = false
[DEBUG] (f) includeXmlInSite = false
[DEBUG] (f) linkXRef = true
[DEBUG] (f) minimumTokens = 100
[DEBUG] (f) outputDirectory = /cicd/module/target/site
[DEBUG] (f) skip = true
[DEBUG] (f) skipEmptyReport = true
[DEBUG] (f) targetDirectory = /cicd/module/target
[DEBUG] (f) testSourceRoots = [/cicd/module/src/test/java]
[DEBUG] (f) xrefLocation = /cicd/module/target/site/xref
[DEBUG] (f) xrefTestLocation = /cicd/module/target/site/xref-test
[DEBUG] -- end configuration --
[DEBUG] Exclusions: **/*~,**/#*#,**/.#*,**/%*%,**/._*,**/CVS,**/CVS/**,**/.cvsignore,**/RCS,**/RCS/**,**/SCCS,**/SCCS/**,**/vssver.scc,**/project.pj,**/.svn,**/.svn/**,**/.arch-ids,**/.arch-ids/**,**/.bzr,**/.bzr/**,**/.MySCMServerInfo,**/.DS_Store,**/.metadata,**/.metadata/**,**/.hg,**/.hg/**,**/.git,**/.gitignore,**/.gitattributes,**/.git/**,**/BitKeeper,**/BitKeeper/**,**/ChangeSet,**/ChangeSet/**,**/_darcs,**/_darcs/**,**/.darcsrepo,**/.darcsrepo/**,**/-darcs-backup*,**/.darcs-temp-mail
[DEBUG] Inclusions: **/*.java
[DEBUG] Searching for files in directory /cicd/module/src/main/java
[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
[DEBUG] Executing CPD...
I'm wondering why does it execute if skip=true
According to the official FAQ I need to "Simply put maven.pmd.enable=false into your project properties for that one sub-project." Probably I have not correctly put that into the pom. Is it just <properties> in module pom file?
-Dpmd.skip=true -Dcpd.skip=true gives the same result
If you want to disable a maven module, you have configure pmd in that module. And then exclude all.
Like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<analysisCache>true</analysisCache>
<!-- enable incremental analysis -->
<excludes>
<exclude>**/**</exclude>
</excludes>
</configuration>
</plugin>
Maven multimodul-documentation ;hier
describes, that configuration in submodules override top level pom definition.
I found a better solution, look at Disable a Maven plugin defined in a parent POM.
This way you disable the plugin so it is not run at all for the module, so nothing gets generated so this way the build time will also dcrease.

How can I get Maven to compile from code modified (delombok'd) instead of from src/main/java

Using the delombok maven plugin places all my files in 'target/generated-sources/delombok'. When I try and run the maven compiler it complains about duplicate classes so I set addOutputDirectory to false as this question recommends. The problem now is that the delombok'ed files are ignored and so the compiler complains about missing methods.
How can I tell the maven compiler plugin to ignore the default 'src/main/java' directory and instead to use the 'target/generated-sources/delombok' directory to compile from?
Running mvn compile -X produces the following output when the compiler runs:
[DEBUG] (f) compileSourceRoots = [C:\Users\Jamey.Holden\workspace\Apollo\Website\src\main\java, C:\Users\Jamey.Holden\workspace\Apollo\Website\target\generated-sources\java]
[DEBUG] (f) compilerId = javac
[DEBUG] (f) debug = true
[DEBUG] (f) encoding = UTF-8
[DEBUG] (f) failOnError = true
[DEBUG] (f) forceJavacCompilerUse = false
[DEBUG] (f) fork = false
[DEBUG] (f) generatedSourcesDirectory = C:\Users\Jamey.Holden\workspace\Apollo\Website\target\generated-sources\annotations
[DEBUG] (f) mojoExecution = org.apache.maven.plugins:maven-compiler-plugin:3.0:compile {execution: default-compile}
[DEBUG] (f) optimize = false
[DEBUG] (f) outputDirectory = C:\Users\Jamey.Holden\workspace\Apollo\Website\target\classes
[DEBUG] (f) proc = none
[DEBUG] (f) projectArtifact = ic.apollo:website:war:0.1
[DEBUG] (f) showDeprecation = false
[DEBUG] (f) showWarnings = false
[DEBUG] (f) skipMultiThreadWarning = false
[DEBUG] (f) source = 1.6
[DEBUG] (f) staleMillis = 0
[DEBUG] (f) target = 1.6
[DEBUG] (f) verbose = false
[DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession#393e6226
[DEBUG] (f) session = org.apache.maven.execution.MavenSession#393e6226
Then further down where command line options are printed I can see that the -sourcepath argument is: -sourcepath C:\Users\Jamey.Holden\workspace\Apollo\Website\src\main\java;C:\Users\Jamey.Holden\workspace\Apollo\Website\target\generated-sources\java;
Neither of these are the delombok directory, so it's fair enough that it can't find all the getters and setters when it tries to compile.
UPDATE
I think I'm getting to the bottom of the problem. I was setting proc=none to prevent annotation processing, because I am using queryDSL to generate meta-entities and when this was not set to avoid annotation processing the compiler had a duplicate entities found error. Removing proc=none and the querydsl annotation processor solved the problem. Now I've just go to get m2e to work again.
It looks you didn't read the documentation cause the plugin needs to be configured correctly like this which is the generate-sources life-cycle phase and afterwards the source files which have been generated will automatically be picked up by the maven-compiler-plugin.
<build>
<plugins>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>0.11.6.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
This is not going to be useful for everyone. But IF you use lombok to write your own annotation processor, then you need to have a different configuration.
To create a compiler without lombok you need to set proc to none:
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<proc>none</proc>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
And with lombok you must explicitly set the annotation processor :
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessors>
<annotationProcessor>lombok.core.AnnotationProcessor</annotationProcessor>
</annotationProcessors>
</configuration>
</plugin>
</plugins>
Do something similar to
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<includes>
<include>target/generated-sources/delombok/*.java</include>
</includes>
<excludes>
<exclude>src/main/java</exclude>
</excludes>
</configuration>
</plugin>

Maven unable to find packages in jar

I have two projects. Project A has Project B as a dependency in it's pom.
<dependency>
<groupId>my.package.abc</groupId>
<artifactId>abc-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Project B's pom:
<groupId>my.package.abc</groupId>
<artifactId>abc-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
However, when I attempt to build Project A with Maven (via eclipse using arguments "clean install -X"), I get compilation errors:
[ERROR] ...\src\main\java\my\package\abc\client\Myclass.java:[3,37] error: package my.package.abc.common.client does not exist
I get package * does not exist errors for literally every package from Project B. I checked the local Maven repo, and the jar is present and inside the jar the compiled files are there. According to the debug output, Project B is successfully added to the classpath when starting to compile Project A.
[DEBUG] Classpath:
...
[DEBUG] ...\.m2\repository\my\package\abc\abc-common\0.0.1-SNAPSHOT\abc-common-0.0.1-SNAPSHOT.jar
So, if Maven is finding Project B, and Project B does have all the classes inside it that it's supposed to, why is it unable to find any of those classes during the compilation phase?
EDIT:
The total output from "clean install -X" on Project A is too big, so this is a larger but still abridged version.
[INFO] Deleting directory ..\workspace\abc-bci-web\target\classes\my\package
[INFO] Deleting directory ..\workspace\abc-bci-web\target\classes\my
[INFO] Deleting directory ..\workspace\abc-bci-web\target\classes\gov
[INFO] Deleting directory ..\workspace\abc-bci-web\target\classes
[INFO] Deleting directory ..\workspace\abc-bci-web\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) # abc-bci-web ---
[DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.apache.maven.shared:maven-filtering:jar:1.0-beta-4:compile
[DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3
[DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
[DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:1.0-beta-4
[DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.4
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.13
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6
[DEBUG] Excluded: classworlds:classworlds:jar:1.1
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.4.3, parent: sun.misc.Launcher$AppClassLoader#3d882ea9]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources' with basic configurator -->
[DEBUG] (f) buildFilters = []
[DEBUG] (f) encoding = UTF-8
[DEBUG] (f) escapeWindowsPaths = true
[DEBUG] (s) includeEmptyDirs = false
[DEBUG] (s) outputDirectory = ..\workspace\abc-bci-web\target\classes
[DEBUG] (s) overwrite = false
[DEBUG] (f) project = MavenProject: my.package.abc:abc-bci-web:0.0.1-SNAPSHOT # ..\workspace\abc-bci-web\pom.xml
[DEBUG] (s) resources = [Resource {targetPath: null, filtering: true, FileSet {directory: ..\workspace\abc-bci-web\src\main\resources, PatternSet [includes: {**/*}, excludes: {}]}}]
[DEBUG] (f) session = org.apache.maven.execution.MavenSession#71f15b67
[DEBUG] (f) useBuildFilters = true
[DEBUG] (s) useDefaultDelimiters = true
[DEBUG] -- end configuration --
...
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[DEBUG] resource with targetPath null
directory ..\workspace\abc-bci-web\src\main\resources
excludes []
includes [**/*]
[DEBUG] ignoreDelta true
[INFO] Copying 5 resources
[DEBUG] file applicationContext.xml has a filtered file extension
[DEBUG] filering ..\workspace\abc-bci-web\src\main\resources\my\package\abc\server\config\applicationContext.xml to ..\workspace\abc-bci-web\target\classes\my\package\abc\server\config\applicationContext.xml
[DEBUG] file log4j-at-info.xml has a filtered file extension
[DEBUG] filering ..\workspace\abc-bci-web\src\main\resources\log4j-at-info.xml to ..\workspace\abc-bci-web\target\classes\log4j-at-info.xml
[DEBUG] file log4j-debug.xml has a filtered file extension
[DEBUG] filering ..\workspace\abc-bci-web\src\main\resources\log4j-debug.xml to ..\workspace\abc-bci-web\target\classes\log4j-debug.xml
[DEBUG] file log4j-info.xml has a filtered file extension
[DEBUG] filering ..\workspace\abc-bci-web\src\main\resources\log4j-info.xml to ..\workspace\abc-bci-web\target\classes\log4j-info.xml
[DEBUG] file SystemSettings.properties has a filtered file extension
[DEBUG] filering ..\workspace\abc-bci-web\src\main\resources\SystemSettings.properties to ..\workspace\abc-bci-web\target\classes\SystemSettings.properties
[INFO]
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) # abc-bci-web ---
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.1:
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.8:compile
[DEBUG] org.apache.maven:maven-toolchain:jar:1.0:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.8:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.8:runtime
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.1
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.1
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.1
[DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.1
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
[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:2.0.5
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:1.8
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:1.8
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:1.8
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-toolchain:jar:1.0
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.1, parent: sun.misc.Launcher$AppClassLoader#3d882ea9]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile' with basic configurator -->
[DEBUG] (f) basedir = ..\workspace\abc-bci-web
[DEBUG] (f) buildDirectory = ..\workspace\abc-bci-web\target
[DEBUG] (f) classpathElements = [..\workspace\abc-bci-web\target\classes, ..\.m2\repository\my\dps\frameworks\dps-gwt-framework\2.13-SNAPSHOT\dps-gwt-framework-2.13-SNAPSHOT.jar, ..\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar, ..\.m2\repository\com\allen-sauer\gwt\log\gwt-log\3.1.8\gwt-log-3.1.8.jar, ..\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar, ..\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar,
...
..\.m2\repository\my\package\abc\abc-domain\0.0.1-SNAPSHOT\abc-domain-0.0.1-SNAPSHOT.jar, ..\.m2\repository\my\package\abc\abc-common\0.0.1-SNAPSHOT\abc-common-0.0.1-SNAPSHOT.jar]
[DEBUG] (f) compileSourceRoots = [..\workspace\abc-bci-web\src\main\java]
[DEBUG] (f) compilerArgument = -implicit:none
[DEBUG] (f) compilerId = javac
[DEBUG] (f) debug = true
[DEBUG] (f) encoding = UTF-8
[DEBUG] (f) failOnError = true
[DEBUG] (f) fork = false
[DEBUG] (f) generatedSourcesDirectory = ..\workspace\abc-bci-web\target\generated-sources\annotations
[DEBUG] (f) optimize = false
[DEBUG] (f) outputDirectory = ..\workspace\abc-bci-web\target\classes
[DEBUG] (f) outputFileName = abc-bci-web
[DEBUG] (f) projectArtifact = my.package.abc:abc-bci-web:war:0.0.1-SNAPSHOT
[DEBUG] (f) session = org.apache.maven.execution.MavenSession#71f15b67
[DEBUG] (f) showDeprecation = false
[DEBUG] (f) showWarnings = false
[DEBUG] (f) source = 1.6
[DEBUG] (f) staleMillis = 0
[DEBUG] (f) target = 1.6
[DEBUG] (f) verbose = false
[DEBUG] -- end configuration --
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [..\workspace\abc-bci-web\src\main\java]
[DEBUG] Classpath: [..\workspace\abc-bci-web\target\classes
..\.m2\repository\my\dps\frameworks\dps-gwt-framework\2.13-SNAPSHOT\dps-gwt-framework-2.13-SNAPSHOT.jar
..\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar
..\.m2\repository\com\allen-sauer\gwt\log\gwt-log\3.1.8\gwt-log-3.1.8.jar
..\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar
..\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar
...
..\.m2\repository\my\package\abc\abc-domain\0.0.1-SNAPSHOT\abc-domain-0.0.1-SNAPSHOT.jar
..\.m2\repository\my\package\abc\abc-common\0.0.1-SNAPSHOT\abc-common-0.0.1-SNAPSHOT.jar]
[DEBUG] Output directory: ..\workspace\abc-bci-web\target\classes
[DEBUG] Classpath:
[DEBUG] ..\workspace\abc-bci-web\target\classes
[DEBUG] ..\.m2\repository\my\dps\frameworks\dps-gwt-framework\2.13-SNAPSHOT\dps-gwt-framework-2.13-SNAPSHOT.jar
[DEBUG] ..\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar
[DEBUG] ..\.m2\repository\com\allen-sauer\gwt\log\gwt-log\3.1.8\gwt-log-3.1.8.jar
[DEBUG] ..\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar
[DEBUG] ..\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar
...
[DEBUG] ..\.m2\repository\my\package\abc\abc-domain\0.0.1-SNAPSHOT\abc-domain-0.0.1-SNAPSHOT.jar
[DEBUG] ..\.m2\repository\my\package\abc\abc-common\0.0.1-SNAPSHOT\abc-common-0.0.1-SNAPSHOT.jar
[DEBUG] Source roots:
[DEBUG] ..\workspace\abc-bci-web\src\main\java
[DEBUG] Command line options:
[DEBUG] -d ..\workspace\abc-bci-web\target\classes -classpath ..\workspace\abc-bci-web\target\classes;..\.m2\repository\my\dps\frameworks\dps-gwt-framework\2.13-SNAPSHOT\dps-gwt-framework-2.13-SNAPSHOT.jar;..\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;..\.m2\repository\com\allen-sauer\gwt\log\gwt-log\3.1.8\gwt-log-3.1.8.jar;..\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;..\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;..\.m2\repository\my\package\abc\abc-domain\0.0.1-SNAPSHOT\abc-domain-0.0.1-SNAPSHOT.jar;..\.m2\repository\my\package\abc\abc-common\0.0.1-SNAPSHOT\abc-common-0.0.1-SNAPSHOT.jar; -sourcepath ..\workspace\abc-bci-web\src\main\java; C:...\src\main\java\my\packge\abc\client\AbcBciWeb.java C:...\src\main\java\my\packge\abc\client\review\ch\ChDetailEntryPanel.java C:...\src\main\java\my\packge\abc\client\review\sww\SwwDetailCell.java C:...\src\main\java\my\packge\abc\client\AbcMainPanel.java C:...\src\main\java\my\packge\abc\client\review\sww\SwwDetailEntryPanel.java C:...\src\main\java\my\packge\abc\client\review\sww\SwwReviewTab.java C:...\src\main\java\my\packge\abc\client\review\ReviewComposite.java C:...\src\main\java\my\packge\abc\client\review\juvenile\JuvReviewTab.java C:...\src\main\java\my\packge\abc\client\review\ch\ChDetailCell.java C:...\src\main\java\my\packge\abc\client\review\sww\SwwNameList.java C:...\src\main\java\my\packge\abc\client\AbcMenuPanel.java C:...\src\main\java\my\packge\abc\client\review\events\NameSelectionChangeEvent.java C:...\src\main\java\my\packge\abc\client\review\sww\SwwDetailCellList.java C:...\src\main\java\my\packge\abc\client\review\ReviewTabController.java C:...\src\main\java\my\packge\abc\client\review\ReviewMenuPanel.java C:...\src\main\java\my\packge\abc\client\review\ch\ChReviewTab.java C:...\src\main\java\my\packge\abc\client\review\ch\ChNameList.java C:...\src\main\java\my\packge\abc\client\review\ncic\NcicReviewTab.java C:...\src\main\java\my\packge\abc\client\review\fbi\FbiReviewTab.java C:...\src\main\java\my\packge\abc\client\review\events\NameSelectionChangeHandler.java C:...\src\main\java\my\packge\abc\client\review\ch\ChDetailCellList.java C:...\src\main\java\my\packge\abc\client\review\ReviewTabHandler.java -s ..\workspace\abc-bci-web\target\generated-sources\annotations -g -nowarn -target 1.6 -source 1.6 -encoding UTF-8 -implicit:none
[INFO] Compiling 22 source files to ..\workspace\abc-bci-web\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[3,37] error: package my.package.abc.common.client does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[4,52] error: package my.package.abc.common.client.view.incidents does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[5,37] error: package my.package.abc.common.shared does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[6,51] error: package my.package.abc.common.shared.authorization does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[17,31] error: cannot find symbol
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[3,44] error: package my.package.abc.common.client.events does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[4,44] error: package my.package.abc.common.client.events does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[5,44] error: package my.package.abc.common.client.events does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[6,44] error: package my.package.abc.common.client.events does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[7,49] error: package my.package.abc.common.client.view.header does not exist
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,47] error: type BaseMainPanel does not take parameters
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,75] error: cannot find symbol
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,103] error: cannot find symbol
...
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.497s
[INFO] Finished at: Tue Jun 19 13:20:24 MDT 2012
[INFO] Final Memory: 21M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project abc-bci-web: Compilation failure: Compilation failure:
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[3,37] error: package my.package.abc.common.client does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[4,52] error: package my.package.abc.common.client.view.incidents does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[5,37] error: package my.package.abc.common.shared does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[6,51] error: package my.package.abc.common.shared.authorization does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcBciWeb.java:[17,31] error: cannot find symbol
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[3,44] error: package my.package.abc.common.client.events does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[4,44] error: package my.package.abc.common.client.events does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[5,44] error: package my.package.abc.common.client.events does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[6,44] error: package my.package.abc.common.client.events does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[7,49] error: package my.package.abc.common.client.view.header does not exist
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,47] error: type BaseMainPanel does not take parameters
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,75] error: cannot find symbol
[ERROR]
[ERROR] ...\src\main\java\my\packge\abc\client\AbcMainPanel.java:[17,103] error: cannot find symbol
...
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project abc-bci-web: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
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:534)
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.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 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/MojoFailureException
You have a spelling mistake in the name of your package in project B (my.packge.abc => my.package.abc)
did you do a successful "mvn clean install" on project b first?
since project a has a dependency on b that build must go first and the .jar file must be in your local repository.
If it works in eclipse you may just have configured the classpath using eclipse project dependencies which does not influence how maven works.
are you doing all of that from the command line? I suggest you to wipe all your artitacts from Maven's cache (the ~/.m2/repository) and re{clean, install} project B then A.
Maybe the version in the cache is buggy. Did you try
jar tvf [your jar]
to check what's in there?
Maybe you used two maven binaries with two different cache directory. Typically an eclipse maven build (with plugin's maven) and a command line maven build (external binary).
Could it be that project B is not build yet (the snapshot version doesn't exist jet), or is out of date.
so if you first do a clean install on project B and then a clean install on project A it should run as expected.
I would recommend to make a project with a child projects A and B, then the parent project will build both projects
This was one of the top hits when I was searching for answers to the exact same scenario. Unfortunately, no answer appeared in the thread.
It took a lot of wrangling, but in my case the pom.xml for project B (the dependency) was copying the .java files into the .jar instead of the .class files. Changing the resources section in the pom.xml accordingly gave a clean build and run.

Resources