Hi,
I downloaded dagger and wanted to build it with mavan, but it fails both to validate and test.
I also couldn't build the example directory.
[ERROR] Failed to execute goal on project dagger-androidmanifest-plugin: Could n
ot resolve dependencies for project com.squareup:dagger-androidmanifest-plugin:m
aven-plugin:1.0-SNAPSHOT: Could not find artifact com.squareup:dagger-compiler:j
ar:1.0-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/re
positories/snapshots) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dagger-androidmanifest-plugin
C:\Users\yzibin\workspace\dagger-master>mvn validate
The example directory:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.861s
[INFO] Finished at: Sat Nov 10 15:14:00 EST 2012
[INFO] Final Memory: 5M/73M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5:compile (default-compile) on project dagger-example: Execution default-compile
of goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile failed: Plug
in org.apache.maven.plugins:maven-compiler-plugin:2.5 or one of its dependencies
could not be resolved: Could not find artifact com.squareup:dagger-compiler:jar
:1.0-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [H
elp 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
C:\Users\yzibin\workspace\dagger-master\example>
Here is all I had on my console:
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mo
dule-fml/1.0/doxia-module-fml-1.0.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-dec
oration-model/1.0/doxia-decoration-model-1.0.jar (48 KB at 253.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mo
dule-xdoc/1.0/doxia-module-xdoc-1.0.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sit
e-renderer/1.0/doxia-site-renderer-1.0.jar (46 KB at 229.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mo
dule-xhtml/1.0/doxia-module-xhtml-1.0.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-cor
e/1.0/doxia-core-1.0.jar (54 KB at 256.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/m
aven-plugin-tools-api/2.8/maven-plugin-tools-api-2.8.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mod
ule-fml/1.0/doxia-module-fml-1.0.jar (19 KB at 148.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/net/sf/jtidy/jtidy/r938/jtidy-r
938.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mod
ule-xdoc/1.0/doxia-module-xdoc-1.0.jar (28 KB at 271.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/mave
n-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mod
ule-apt/1.0/doxia-module-apt-1.0.jar (46 KB at 129.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-d
oxia-tools/1.0.2/maven-doxia-tools-1.0.2.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-mod
ule-xhtml/1.0/doxia-module-xhtml-1.0.jar (22 KB at 122.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/commons-logging/commons-logging
/1.0.4/commons-logging-1.0.4.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven
-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar (21 KB at 156.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/m
aven-plugin-tools-java/2.8/maven-plugin-tools-java-2.8.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/ma
ven-plugin-tools-api/2.8/maven-plugin-tools-api-2.8.jar (55 KB at 213.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/1.11
/qdox-1.11.jar
Downloaded: http://repo.maven.apache.org/maven2/net/sf/jtidy/jtidy/r938/jtidy-r9
38.jar (245 KB at 1029.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/m
aven-plugin-tools-beanshell/2.8/maven-plugin-tools-beanshell-2.8.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-do
xia-tools/1.0.2/maven-doxia-tools-1.0.2.jar (41 KB at 286.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/
1.0.4/commons-logging-1.0.4.jar (38 KB at 297.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/bsh/bsh/1.3.0/bsh-1.3.0.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/ma
ven-plugin-tools-java/2.8/maven-plugin-tools-java-2.8.jar (17 KB at 67.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/bsh/bsh/1.3.0/bsh-1.3.0.jar (237
KB at 997.8 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/1.11/
qdox-1.11.jar (172 KB at 622.1 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/ma
ven-plugin-tools-beanshell/2.8/maven-plugin-tools-beanshell-2.8.jar (14 KB at 25
.8 KB/sec)
[WARNING]
Goal prefix is specified as: 'dagger'. Maven currently expects it to be 'dagger-
androidmanifest'.
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 1 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dagger-and
roidmanifest-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\androidmanifest\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ dagger-androidm
anifest-plugin ---
[INFO] Compiling 3 source files to C:\Users\yzibin\workspace\dagger-master\andro
idmanifest\target\classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger Example 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger-example --
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dagger-exa
mple ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\example\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ dagger-example
[INFO] Compiling 8 source files to C:\Users\yzibin\workspace\dagger-master\examp
le\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Dagger (Parent) ................................... SUCCESS [0.740s]
[INFO] Dagger ............................................ SUCCESS [4.155s]
[INFO] Dagger Compiler ................................... SUCCESS [0.639s]
[INFO] Dagger AndroidManifest.xml Module Generator ....... SUCCESS [7.273s]
[INFO] Dagger Example .................................... SUCCESS [0.947s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.960s
[INFO] Finished at: Sat Nov 10 15:11:27 EST 2012
[INFO] Final Memory: 13M/68M
[INFO] ------------------------------------------------------------------------
C:\Users\yzibin\workspace\dagger-master>mvn validate
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Dagger (Parent)
[INFO] Dagger
[INFO] Dagger Compiler
[INFO] Dagger AndroidManifest.xml Module Generator
[INFO] Dagger Example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger (Parent) 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger Compiler 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger-compiler -
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger AndroidManifest.xml Module Generator 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Dagger (Parent) ................................... SUCCESS [0.703s]
[INFO] Dagger ............................................ SUCCESS [0.037s]
[INFO] Dagger Compiler ................................... SUCCESS [0.070s]
[INFO] Dagger AndroidManifest.xml Module Generator ....... FAILURE [0.296s]
[INFO] Dagger Example .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.306s
[INFO] Finished at: Sat Nov 10 15:11:33 EST 2012
[INFO] Final Memory: 4M/75M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dagger-androidmanifest-plugin: Could n
ot resolve dependencies for project com.squareup:dagger-androidmanifest-plugin:m
aven-plugin:1.0-SNAPSHOT: Failure to find com.squareup:dagger-compiler:jar:1.0-S
NAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in
the local repository, resolution will not be reattempted until the update inter
val of sonatype-nexus-snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dagger-androidmanifest-plugin
C:\Users\yzibin\workspace\dagger-master>mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Dagger (Parent)
[INFO] Dagger
[INFO] Dagger Compiler
[INFO] Dagger AndroidManifest.xml Module Generator
[INFO] Dagger Example
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger (Parent) 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dagger 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ dagger ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dagger ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ dagger ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ da
gger ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\yzibin\workspace\dagger-mast
er\core\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:testCompile (default-testCompile) @ dagger
[INFO] Compiling 10 source files to C:\Users\yzibin\workspace\dagger-master\core
\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ dagger ---
[INFO] Surefire report directory: C:\Users\yzibin\workspace\dagger-master\core\t
arget\surefire-reports
T E S T S
Running dagger.ExtensionTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.112 sec
Running dagger.InjectionOfLazyTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Running dagger.InjectionTest
Tests run: 31, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.113 sec <<< F
AILURE!
Running dagger.InjectStaticsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running dagger.internal.KeysTest
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running dagger.LazyInjectionTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running dagger.MembersInjectorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
Running dagger.ModuleIncludesTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running dagger.ProblemDetectorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running dagger.SetBindingTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Results :
Tests in error:
noConstructorInjectionsForClassesWithTypeParameters(dagger.InjectionTest): dag
ger.InjectionTest and dagger.InjectionTest$1Parameterized disagree on InnerClass
es attribute
Tests run: 89, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Dagger (Parent) ................................... SUCCESS [0.703s]
[INFO] Dagger ............................................ FAILURE [3.255s]
[INFO] Dagger Compiler ................................... SKIPPED
[INFO] Dagger AndroidManifest.xml Module Generator ....... SKIPPED
[INFO] Dagger Example .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.167s
[INFO] Finished at: Sat Nov 10 15:11:48 EST 2012
[INFO] Final Memory: 9M/103M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
10:test (default-test) on project dagger: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\yzibin\workspace\dagger-master\core\target\sure
fire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :dagger
C:\Users\yzibin\workspace\dagger-master>