[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project test: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]
$ mvn package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] test [INFO] test-1 [INFO] test-2 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test-1 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-1 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mazhibin/project/xxx/mvn/test/test-1/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ test-1 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-1 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mazhibin/project/xxx/mvn/test/test-1/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ test-1 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-1 --- [INFO] Surefire report directory: /Users/mazhibin/project/xxx/mvn/test/test-1/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mushan.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test-1 --- [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test-2 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mazhibin/project/xxx/mvn/test/test-2/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ test-2 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mazhibin/project/xxx/mvn/test/test-2/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ test-2 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-2 --- [INFO] Surefire report directory: /Users/mazhibin/project/xxx/mvn/test/test-2/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.mushan.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
[ERROR] Non-resolvable parent POM for com.mushan:test-1:1.0-SNAPSHOT: Could not find artifact com.mushan:test-parent:pom:1.0-SNAPSHOT in release and 'parent.relativePath' points at wrong local POM @ line 5, column 11 -> [Help 2]