Re: mvn cannot find pom and jar inmaven central
David Niehaus <[email protected]> Wed, 10 Oct 2012 14:47:01 +0200
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody, in addition to the point below got the 2.6 snapshot version and build it with maven 3. It compiles fine but I got failure at the tests see below. I hope it helps see below: ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.prevayler.foundation.ChunkingTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec Running org.prevayler.foundation.DeepCopierTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Running org.prevayler.foundation.DurableOutputStreamTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec Running org.prevayler.implementation.CheckpointTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec Running org.prevayler.implementation.ConfusedFoodTasterStressTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec <<< FAILURE! Running org.prevayler.implementation.DeadKingDeepCopyTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE! Running org.prevayler.implementation.JournalFileRollingTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Running org.prevayler.implementation.JournalSerializerTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.484 sec Running org.prevayler.implementation.PersistenceTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec Running org.prevayler.implementation.PrevaylerFactoryTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running org.prevayler.implementation.QueryExecutionTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.prevayler.implementation.RollbackTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE! Running org.prevayler.implementation.SkipOldTransactionsTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec Running org.prevayler.implementation.snapshot.GenericSnapshotManagerTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec Running org.prevayler.implementation.SnapshotSerializerTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec Running org.prevayler.implementation.TransactionWithQueryTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec Running org.prevayler.implementation.TransientPrevaylerTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Results : Failed tests: testFoodTasting(org.prevayler.implementation.ConfusedFoodTasterStressTest) testDeadKing(org.prevayler.implementation.DeadKingDeepCopyTest) testRollback(org.prevayler.implementation.RollbackTest): expected:<......> but was:<...rollback...> Tests run: 53, Failures: 3, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Prevayler ......................................... SUCCESS [2.740s] [INFO] Prevayler Core .................................... SUCCESS [7.384s] [INFO] Extras parent ..................................... SUCCESS [0.038s] [INFO] Prevayler XStream Serializer ...................... SUCCESS [2.827s] [INFO] Spikes parent ..................................... SUCCESS [0.033s] [INFO] Prevayler Mirroring ............................... SUCCESS [4.009s] [INFO] Prevayler Factory ................................. SUCCESS [3.145s] [INFO] Prevayler Log4J Monitor ........................... SUCCESS [2.585s] [INFO] Prevayler Tests ................................... FAILURE [2.695s] [INFO] Prevayler Transactions Facade ..................... SKIPPED [INFO] Prevayler Memento Framework ....................... SKIPPED [INFO] Prevayler Mirroring Tests ......................... SKIPPED [INFO] Demos parent ...................................... SKIPPED [INFO] Prevayler Demo 1 .................................. SKIPPED [INFO] Prevayler JXPath Demo ............................. SKIPPED [INFO] Prevayler Scalability Demo ........................ SKIPPED [INFO] Prevayler Tutorial ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.061s [INFO] Finished at: Tue Oct 09 18:06:02 CEST 2012 [INFO] Final Memory: 14M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8.1:test (default-test) on project prevayler-tests: There are test failures. [ERROR] [ERROR] Please refer to /Users/niehausd/maven/prevayler/tests/target/surefire-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 switch. [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 read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command Am 09.10.2012 um 19:16 schrieb David Niehaus: > Hi everybody, > > > I've tryed to get the dependency working for prevayler 2.5. Maven 2 as well as maven 3 failed to resolve and download the files from maven central. > > //------------------------------------------------------------------------ > Downloading: http://repo1.maven.org/maven2/org/prevayler/prevayler/2.5/prevayler-2.5.jar > [INFO] Unable to find resource 'org.prevayler:prevayler:jar:2.5' in repository central (http://repo1.maven.org/maven2) > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Failed to resolve artifact. > > Missing: > ---------- > 1) org.prevayler:prevayler:jar:2.5 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.prevayler -DartifactId=prevayler -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file there: > mvn deploy:deploy-file -DgroupId=org.prevayler -DartifactId=prevayler -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > Path to dependency: > 1) ggi.oodb:ggicm-oodb:jar:1.0 > 2) org.prevayler:prevayler:jar:2.5 > > ---------- > 1 required artifact is missing. > > for artifact: > ggi.oodb:ggicm-oodb:jar:1.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > //------------------------------------------------------------------------ > //------------------------------------------------------------------------ > > I used the pom snippet provided here: > > http://search.maven.org/#artifactdetails%7Corg.prevayler%7Cprevayler%7C2.5%7Cpom > > It was a working pom. I just switched the local (repos) version 2.3 jar to the one in maven central. > > <dependency> > <groupId>prevayler</groupId> > <artifactId>prevayler</artifactId> > <version>2.5</version> > </dependency> > > <!-- local prevayler installation > <dependency> > <groupId>prevayler</groupId> > <artifactId>prevayler</artifactId> > <version>2.3</version> > <scope>compile</scope> > </dependency> > --> > > I'd appreciate any hint to get that working. > > thanks in advance > > David > > > > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev_______________________________________________ > To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion > _______________________________________________ > "Databases in Memoriam" -- http://www.prevayler.org ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion _______________________________________________ "Databases in Memoriam" -- http://www.prevayler.org