From: wde <wd...@fr...> - 2010-01-08 08:46:51
|
yes you are right, the first build works fine > >On Fri, Jan 8, 2010 at 2:01 PM, Peter Thomas <ptr...@gm...> wrote: > >> Hi, >> >> Hmm, I thought tests also were working fine with Maven. You can also try: >> >> 1) use the Ant build targets >> 2) skip tests in Maven (there is a way to do this on the command line) >> >> Regards, >> >> Peter. >> >> >> On Fri, Jan 8, 2010 at 1:29 PM, wde <wd...@fr...> wrote: >> >>> Thank you for your quick answer :+) >>> >>> I try your solution and It seems to work better. >>> >>> I got the following error after compilation >>> >>> Tests run: 18, Failures: 0, Errors: 10, Skipped: 0, Time elapsed: 2.938 >>> sec <<< FAILURE! >>> testUserInsertAndLoad(info.jtrac.JtracTest) Time elapsed: 0.016 sec <<< >>> ERROR! >>> org.springframework.dao.DataIntegrityViolationException: could not insert: >>> [info.jtrac.domain.User]; nested exception is >>> org.hibernate.exception.ConstraintViolationException: could not insert: >>> [info.jtrac.domain.User] >>> at >>> org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:622) >>> at >>> org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) >>> at >>> org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:378) >>> >>> But I will investigate this >>> >>> >>> Thanks >>> >>> >>> >>> >>> >>> >>> >>> >>> >Hi, >>> > >>> >Actually the build process has changed in trunk. It should be much >>> easier >>> >now because it uses Maven without any custom plugins. So just open the >>> >project in your IDE using standard Maven 2 support. For example NetBeans >>> >will open it just fine. >>> > >>> >And the Ant build will continue to work, refer the link in this commit >>> log >>> >for more details: >>> > >>> >http://fisheye3.atlassian.com/changelog/j-trac/?cs=1342 >>> > >>> >We will update the site documentation for this. >>> > >>> >Regards, >>> > >>> >Peter. >>> > >>> >On Fri, Jan 8, 2010 at 12:22 PM, wde <wd...@fr...> wrote: >>> > >>> >> Hello all, >>> >> >>> >> I'm trying to build Jtrac from the SVN source code. >>> >> >>> >> I install the antprops maven 2 plugin as specified in the documentation >>> : >>> >> >>> >> C:\jtrac-svn\maven-antprops-plugin>mvn install >>> >> [INFO] Scanning for projects... >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] Building ant build properties file generator >>> >> [INFO] task-segment: [install] >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> >>> >> Downloading: >>> >> ... >>> >> >>> >> [INFO] [install:install {execution: default-install}] >>> >> [INFO] Installing >>> C:\jtrac-src\maven-antprops-plugin\target\maven-antprops- >>> >> plugin-1.0.jar to C:\Documents and >>> >> >>> Settings\wde\.m2\repository\info\jtrac\maven-antprops-plugin\1.0\maven-antprops-p >>> >> lugin-1.0.jar >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] BUILD SUCCESSFUL >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] Total time: 4 minutes 13 seconds >>> >> [INFO] Finished at: Fri Jan 08 07:34:20 CET 2010 >>> >> [INFO] Final Memory: 13M/24M >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> >>> >> >>> >> >>> >> Then I run the following command in the jtrac source code directory : >>> >> >>> >> C:\jtrac-svn\jtrac>mvn antprops:generate >>> >> [INFO] Scanning for projects... >>> >> [INFO] Searching repository for plugin with prefix: 'antprops'. >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [ERROR] BUILD ERROR >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] The plugin 'org.apache.maven.plugins:maven-antprops-plugin' does >>> not >>> >> exist or no valid version could be found >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] For more information, run Maven with the -e switch >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> [INFO] Total time: < 1 second >>> >> [INFO] Finished at: Fri Jan 08 07:40:16 CET 2010 >>> >> [INFO] Final Memory: 3M/7M >>> >> [INFO] >>> >> >>> ------------------------------------------------------------------------ >>> >> >>> >> >>> >> Thank you for your help >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> This SF.Net email is sponsored by the Verizon Developer Community >>> >> Take advantage of Verizon's best-in-class app development support >>> >> A streamlined, 14 day to market process makes app distribution fast and >>> >> easy >>> >> Join now and get one step closer to millions of Verizon customers >>> >> http://p.sf.net/sfu/verizon-dev2dev >>> >> _______________________________________________ >>> >> j-trac-users mailing list >>> >> j-t...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/j-trac-users >>> >> >>> > >>> >>> >------------------------------------------------------------------------------ >>> >This SF.Net email is sponsored by the Verizon Developer Community >>> >Take advantage of Verizon's best-in-class app development support >>> >A streamlined, 14 day to market process makes app distribution fast and >>> easy >>> >Join now and get one step closer to millions of Verizon customers >>> >http://p.sf.net/sfu/verizon-dev2dev >>> >_______________________________________________ >>> >j-trac-users mailing list >>> >j-t...@li... >>> >https://lists.sourceforge.net/lists/listinfo/j-trac-users >>> > >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.Net email is sponsored by the Verizon Developer Community >>> Take advantage of Verizon's best-in-class app development support >>> A streamlined, 14 day to market process makes app distribution fast and >>> easy >>> Join now and get one step closer to millions of Verizon customers >>> http://p.sf.net/sfu/verizon-dev2dev >>> _______________________________________________ >>> j-trac-users mailing list >>> j-t...@li... >>> https://lists.sourceforge.net/lists/listinfo/j-trac-users >>> >> >> > >------------------------------------------------------------------------------ >This SF.Net email is sponsored by the Verizon Developer Community >Take advantage of Verizon's best-in-class app development support >A streamlined, 14 day to market process makes app distribution fast and easy >Join now and get one step closer to millions of Verizon customers >http://p.sf.net/sfu/verizon-dev2dev >_______________________________________________ >j-trac-users mailing list >j-t...@li... >https://lists.sourceforge.net/lists/listinfo/j-trac-users > |