|
|
|
fadhlirahim
|
Does mvn appfuse:full-source works on modular projects on Appfuse2.0 RC1?
-- /fadhli |
||||||||||||||||
|
mraible
|
Yes.
On 9/4/07, fadhli <[hidden email]> wrote: > Does mvn appfuse:full-source works on modular projects on Appfuse2.0 RC1? > > -- > /fadhli -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
fadhlirahim
|
You are the man Matt. Thanks. Am going to play around with this RC 1.
On 9/5/07, Matt Raible <[hidden email]> wrote: Yes. -- /fadhli |
||||||||||||||||
|
Brewster, Richard
|
In reply to this post
by mraible
Hi. I created the modular-struts archetype project for RC1. That built and ran OK. Then I ran mvn appfuse:full-source. That completed successfully, but then the project would no longer build. Seems that a lot of properties were no longer defined. The last failure message:
14) net.sf.ehcache:ehcache:jar:${ehcache.version} Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.sf.ehcache -DartifactId=ehcache \ -Dversion=${ehcache.version} -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.sf.ehcache -DartifactId=ehcache \ -Dversion=${ehcache.version} -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Is this a bug? -Richard Brewster
|
||||
|
mraible
|
I just tried this and it worked fine for me. I suspect it didn't work
for you because you're on Windows and there's some line ending issues or something like that. Is that true? I'm on OS X. Matt On 9/5/07, Richard Brewster <[hidden email]> wrote: > > Hi. I created the modular-struts archetype project for RC1. That built and > ran OK. Then I ran mvn appfuse:full-source. That completed successfully, > but then the project would no longer build. Seems that a lot of properties > were no longer defined. The last failure message: > > 14) net.sf.ehcache:ehcache:jar:${ehcache.version} > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=net.sf.ehcache -DartifactId=ehcache > \ > -Dversion=${ehcache.version} -Dpackaging=jar -Dfile=/path/to/file > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=net.sf.ehcache -DartifactId=ehcache \ > -Dversion=${ehcache.version} -Dpackaging=jar -Dfile=/path/to/file > \ > -Durl=[url] -DrepositoryId=[id] > > Is this a bug? > > -Richard Brewster > > > mraible wrote: > > > > Yes. > > > > On 9/4/07, fadhli <[hidden email]> wrote: > >> Does mvn appfuse:full-source works on modular projects on Appfuse2.0 RC1? > >> > >> -- > >> /fadhli > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > View this message in context: http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12510655 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
Brewster, Richard
|
Yes, I am on Windows. Line ending haven't been problem (except in some downloaded tutorials). Where are the properties supposed to be defined? The full-source command created dependencies in the core pom.xml under this comment:
<!-- Dependencies calculated by AppFuse when running full-source plugin --> like: <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>${ehcache.version}</version> </dependency> But ehcache.version is not defined in any of the three pom.xml files. -Richard
|
||||||||||||||||
|
mraible
|
Line ending shouldn't be an issue for the most part because we're not
parsing/replacing things in XML files. We are with the full-source plugin. We don't *have* to because Maven allows us to build pom.xml files programatically and write them out. However, they don't give us as much control as we'd like so we're parsing/replacing instead of writing out the whole file with unordered and uncommented properties. Try adding the following to the bottom of your root pom.xml file. If it works, please file a bug in JIRA nothing that it happens on Windows. I should be able to get access to a Windows instance to verify and fix. Thanks, Matt <!-- Properties calculated by AppFuse when running full-source plugin --> <acegi.version>1.0.4</acegi.version> <aspectj.version>1.5.3</aspectj.version> <clickstream.version>1.0.2</clickstream.version> <commons.beanutils.version>1.7.0</commons.beanutils.version> <commons.collections.version>3.2</commons.collections.version> <commons.dbcp.version>1.2.2</commons.dbcp.version> <commons.fileupload.version>1.1.1</commons.fileupload.version> <commons.io.version>1.3.2</commons.io.version> <displaytag.version>1.1.1</displaytag.version> <dwr.version>2.0.1</dwr.version> <ehcache.version>1.3.0</ehcache.version> <hibernate.annotations.version>3.3.0.ga</hibernate.annotations.version> <hibernate.version>3.2.5.ga</hibernate.version> <javamail.version>1.4</javamail.version> <jstl.version>1.1.2</jstl.version> <log4j.version>1.2.13</log4j.version> <oscache.version>2.3</oscache.version> <sitemesh.version>2.2.1</sitemesh.version> <struts.menu.version>2.4.3</struts.menu.version> <struts.version>2.0.9</struts.version> <urlrewrite.version>3.0.4</urlrewrite.version> <velocity.version>1.4</velocity.version> <xfire.version>1.2.6</xfire.version> On 9/5/07, Richard Brewster <[hidden email]> wrote: > > Yes, I am on Windows. Line ending haven't been problem (except in some > downloaded tutorials). Where are the properties supposed to be defined? > The full-source command created dependencies in the core pom.xml under this > comment: > > <!-- Dependencies calculated by AppFuse when running full-source plugin > --> > > like: > <dependency> > <groupId>net.sf.ehcache</groupId> > <artifactId>ehcache</artifactId> > <version>${ehcache.version}</version> > </dependency> > > But ehcache.version is not defined in any of the three pom.xml files. > > -Richard > > > > mraible wrote: > > > > I just tried this and it worked fine for me. I suspect it didn't work > > for you because you're on Windows and there's some line ending issues > > or something like that. Is that true? > > > > I'm on OS X. > > > > Matt > > > > On 9/5/07, Richard Brewster <[hidden email]> wrote: > >> > >> Hi. I created the modular-struts archetype project for RC1. That built > >> and > >> ran OK. Then I ran mvn appfuse:full-source. That completed > >> successfully, > >> but then the project would no longer build. Seems that a lot of > >> properties > >> were no longer defined. The last failure message: > >> > >> 14) net.sf.ehcache:ehcache:jar:${ehcache.version} > >> > >> Try downloading the file manually from the project website. > >> > >> Then, install it using the command: > >> mvn install:install-file -DgroupId=net.sf.ehcache > >> -DartifactId=ehcache > >> \ > >> -Dversion=${ehcache.version} -Dpackaging=jar > >> -Dfile=/path/to/file > >> Alternatively, if you host your own repository you can deploy the file > >> there: > >> mvn deploy:deploy-file -DgroupId=net.sf.ehcache -DartifactId=ehcache > >> \ > >> -Dversion=${ehcache.version} -Dpackaging=jar > >> -Dfile=/path/to/file > >> \ > >> -Durl=[url] -DrepositoryId=[id] > >> > >> Is this a bug? > >> > >> -Richard Brewster > >> > >> > >> mraible wrote: > >> > > >> > Yes. > >> > > >> > On 9/4/07, fadhli <[hidden email]> wrote: > >> >> Does mvn appfuse:full-source works on modular projects on Appfuse2.0 > >> RC1? > >> >> > >> >> -- > >> >> /fadhli > >> > > >> > > >> > -- > >> > http://raibledesigns.com > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [hidden email] > >> > For additional commands, e-mail: [hidden email] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12510655 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > >> > > > > > > -- > > http://raibledesigns.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > > > -- > View this message in context: http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12511182 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
Brewster, Richard
|
Thanks. That did work! I'll file the bug report.
Richard
|
||||||||||||||||
|
gumiyo
|
i got the same error as Richard. All the properties required by the dependencies are missing after running mvn appfuse:full-source.
dev On 9/5/07, Richard Brewster
<[hidden email]> wrote:
|
||||||||||||||||
|
mraible
|
Are you on Windows as well?
On 9/5/07, dev dev <[hidden email]> wrote: > i got the same error as Richard. All the properties required by the > dependencies are missing after running mvn appfuse:full-source. > > dev > > > On 9/5/07, Richard Brewster <[hidden email]> wrote: > > > > Thanks. That did work! I'll file the bug report. > > > > Richard > > > > > > > > mraible wrote: > > > > > > Line ending shouldn't be an issue for the most part because we're not > > > parsing/replacing things in XML files. We are with the full-source > > > plugin. We don't *have* to because Maven allows us to build pom.xml > > > files programatically and write them out. However, they don't give us > > > as much control as we'd like so we're parsing/replacing instead of > > > writing out the whole file with unordered and uncommented properties. > > > > > > Try adding the following to the bottom of your root pom.xml file. If > > > it works, please file a bug in JIRA nothing that it happens on > > > Windows. I should be able to get access to a Windows instance to > > > verify and fix. > > > > > > Thanks, > > > > > > Matt > > > > > > <!-- Properties calculated by AppFuse when running full-source > > > plugin --> > > > <acegi.version>1.0.4</acegi.version> > > > <aspectj.version>1.5.3</aspectj.version> > > > <clickstream.version>1.0.2</clickstream.version> > > > <commons.beanutils.version>1.7.0</commons.beanutils.version> > > > <commons.collections.version>3.2</commons.collections.version> > > > <commons.dbcp.version >1.2.2</commons.dbcp.version> > > > <commons.fileupload.version>1.1.1</commons.fileupload.version> > > > <commons.io.version>1.3.2</commons.io.version> > > > < displaytag.version>1.1.1</displaytag.version> > > > <dwr.version>2.0.1</dwr.version> > > > <ehcache.version>1.3.0</ehcache.version> > > > > > > <hibernate.annotations.version > >3.3.0.ga</hibernate.annotations.version> > > > <hibernate.version>3.2.5.ga</hibernate.version> > > > <javamail.version >1.4</javamail.version> > > > <jstl.version>1.1.2</jstl.version> > > > <log4j.version>1.2.13</log4j.version> > > > <oscache.version>2.3</oscache.version> > > > <sitemesh.version>2.2.1</sitemesh.version> > > > <struts.menu.version>2.4.3</struts.menu.version> > > > <struts.version>2.0.9</struts.version> > > > < urlrewrite.version>3.0.4</urlrewrite.version> > > > <velocity.version>1.4</velocity.version> > > > <xfire.version>1.2.6</xfire.version> > > > > > > On 9/5/07, Richard Brewster < [hidden email]> wrote: > > >> > > >> Yes, I am on Windows. Line ending haven't been problem (except in some > > >> downloaded tutorials). Where are the properties supposed to be > defined? > > >> The full-source command created dependencies in the core pom.xml under > > >> this > > >> comment: > > >> > > >> <!-- Dependencies calculated by AppFuse when running full-source > > >> plugin > > >> --> > > >> > > >> like: > > >> <dependency> > > >> <groupId>net.sf.ehcache</groupId> > > >> <artifactId>ehcache</artifactId> > > >> <version>${ehcache.version}</version> > > >> </dependency> > > >> > > >> But ehcache.version is not defined in any of the three pom.xml files. > > >> > > >> -Richard > > >> > > >> > > >> > > >> mraible wrote: > > >> > > > >> > I just tried this and it worked fine for me. I suspect it didn't work > > >> > for you because you're on Windows and there's some line ending issues > > >> > or something like that. Is that true? > > >> > > > >> > I'm on OS X. > > >> > > > >> > Matt > > >> > > > >> > On 9/5/07, Richard Brewster < [hidden email]> wrote: > > >> >> > > >> >> Hi. I created the modular-struts archetype project for RC1. That > > >> built > > >> >> and > > >> >> ran OK. Then I ran mvn appfuse:full-source. That completed > > >> >> successfully, > > >> >> but then the project would no longer build. Seems that a lot of > > >> >> properties > > >> >> were no longer defined. The last failure message: > > >> >> > > >> >> 14) net.sf.ehcache:ehcache:jar:${ehcache.version} > > >> >> > > >> >> Try downloading the file manually from the project website. > > >> >> > > >> >> Then, install it using the command: > > >> >> mvn install:install-file -DgroupId=net.sf.ehcache > > >> >> -DartifactId=ehcache > > >> >> \ > > >> >> -Dversion=${ ehcache.version} -Dpackaging=jar > > >> >> -Dfile=/path/to/file > > >> >> Alternatively, if you host your own repository you can deploy the > file > > >> >> there: > > >> >> mvn deploy:deploy-file -DgroupId= net.sf.ehcache > > >> -DartifactId=ehcache > > >> >> \ > > >> >> -Dversion=${ehcache.version} -Dpackaging=jar > > >> >> -Dfile=/path/to/file > > >> >> \ > > >> >> -Durl=[url] -DrepositoryId=[id] > > >> >> > > >> >> Is this a bug? > > >> >> > > >> >> -Richard Brewster > > >> >> > > >> >> > > >> >> mraible wrote: > > >> >> > > > >> >> > Yes. > > >> >> > > > >> >> > On 9/4/07, fadhli <[hidden email]> wrote: > > >> >> >> Does mvn appfuse:full-source works on modular projects on > > >> Appfuse2.0 > > >> >> RC1? > > >> >> >> > > >> >> >> -- > > >> >> >> /fadhli > > >> >> > > > >> >> > > > >> >> > -- > > >> >> > http://raibledesigns.com > > >> >> > > > >> >> > > > >> > --------------------------------------------------------------------- > > >> >> > To unsubscribe, e-mail: > [hidden email] > > >> >> > For additional commands, e-mail: [hidden email] > > >> >> > > > >> >> > > > >> >> > > > >> >> > > >> >> -- > > >> >> View this message in context: > > >> >> > > >> > http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12510655 > > >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. > > >> >> > > >> >> > --------------------------------------------------------------------- > > >> >> To unsubscribe, e-mail: > [hidden email] > > >> >> For additional commands, e-mail: [hidden email] > > >> >> > > >> >> > > >> > > > >> > > > >> > -- > > >> > http://raibledesigns.com > > >> > > > >> > > --------------------------------------------------------------------- > > >> > To unsubscribe, e-mail: > [hidden email] > > >> > For additional commands, e-mail: [hidden email] > > >> > > > >> > > > >> > > > >> > > >> -- > > >> View this message in context: > > >> > http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12511182 > > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > > >> > > >> > --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: > [hidden email] > > >> For additional commands, e-mail: [hidden email] > > >> > > >> > > > > > > > > > -- > > > http://raibledesigns.com > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [hidden email] > > > For additional commands, e-mail: [hidden email] > > > > > > > > > > > > > -- > > View this message in context: > http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12511557 > > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
gumiyo
|
yes Vista.
On 9/5/07, Matt Raible <[hidden email]> wrote: Are you on Windows as well? |
||||||||||||||||
|
mraible
|
In reply to this post
by Brewster, Richard
I've entered this issue in JIRA:
http://issues.appfuse.org/browse/APF-876 If you have time, can you see if it's fixed (on Windows) with 2.0-SNAPSHOT. Here's how to test: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app -DartifactId=myproject cd myproject mvn appfuse:full-source integration-test Thanks! Matt
|
||||||||||||||||
|
gumiyo
|
will do Thanks Matt. To work around it, just run "dos2unix" (assuming you have cygwin installed on your machine) against all the pom.xml and everything should work fine.
dev.
On 9/6/07, mraible <[hidden email]> wrote:
|
||||||||||||||||
|
gumiyo
|
In reply to this post
by mraible
Matt,
I tested it and got these errors. [ERROR] AUTOWIRE_BY_NAME cannot be resolved [ERROR] The import org.jmock cannot be resolved [ERROR] MockObjectTestCase cannot be resolved to a type [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Compiler errors : error at import org.springframework.test.AbstractTransactionalDataSourceSpringC ntextTests; ^^^^^^^^^^^^^^^^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas .java:8:0::0 The import org.springframework.test cannot be resolved error at public abstract class BaseDaoTestCase extends AbstractTransactionalDat SourceSpringContextTests { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas .java:20:0::0 AbstractTransactionalDataSourceSpringContextTests cannot be resol ed to a type error at setAutowireMode(AUTOWIRE_BY_NAME); ^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas .java:35:0::0 AUTOWIRE_BY_NAME cannot be resolved error at new HibernateTemplate((SessionFactory) applicationContext.getBean("ses ionFactory")); ^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas .java:87:0::0 applicationContext cannot be resolved error at import org.springframework.test.AbstractTransactionalDataSourceSpringC ntextTests; ^^^^^^^^^^^^^^^^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage TestCase.java:7:0::0 The import org.springframework.test cannot be resolved error at public abstract class BaseManagerTestCase extends AbstractTransactiona DataSourceSpringContextTests { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage TestCase.java:14:0::0 AbstractTransactionalDataSourceSpringContextTests cannot e resolved to a type error at setAutowireMode(AUTOWIRE_BY_NAME); ^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage TestCase.java:21:0::0 AUTOWIRE_BY_NAME cannot be resolved error at import org.jmock.MockObjectTestCase; ^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\impl\BaseM nagerMockTestCase.java:7:0::0 The import org.jmock cannot be resolved error at public abstract class BaseManagerMockTestCase extends MockObjectTestCa e { ^^^^^^^^^^^^^^^^^ C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\impl\BaseM nagerMockTestCase.java:14:0::0 MockObjectTestCase cannot be resolved to a type dev On 9/6/07, mraible <[hidden email]> wrote:
|
||||||||||||||||
|
mraible
|
Thanks - I guess I need to find a Windows box to test this stuff on, eh? ;-)
Matt
|
||||||||||||||||
|
mraible
|
Just for clarification - did you do this on a "core" archetype or a
"struts 2 modular" archetype? Thanks, Matt On 9/6/07, mraible <[hidden email]> wrote: > > Thanks - I guess I need to find a Windows box to test this stuff on, eh? ;-) > > Matt > > > gumiyo wrote: > > > > Matt, > > I tested it and got these errors. > > > > [ERROR] AUTOWIRE_BY_NAME cannot be resolved > > [ERROR] The import org.jmock cannot be resolved > > [ERROR] MockObjectTestCase cannot be resolved to a type > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Compiler errors : > > error at import > > org.springframework.test.AbstractTransactionalDataSourceSpringC > > ntextTests; > > ^^^^^^^^^^^^^^^^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas > > .java:8:0::0 The import org.springframework.test cannot be resolved > > error at public abstract class BaseDaoTestCase extends > > AbstractTransactionalDat > > SourceSpringContextTests { > > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > ^^^^^^^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas > > .java:20:0::0 AbstractTransactionalDataSourceSpringContextTests cannot be > > resol > > ed to a type > > error at setAutowireMode(AUTOWIRE_BY_NAME); > > ^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas > > .java:35:0::0 AUTOWIRE_BY_NAME cannot be resolved > > error at new HibernateTemplate((SessionFactory) applicationContext.getBean > > ("ses > > ionFactory")); > > ^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\dao\BaseDaoTestCas > > .java:87:0::0 applicationContext cannot be resolved > > error at import > > org.springframework.test.AbstractTransactionalDataSourceSpringC > > ntextTests; > > ^^^^^^^^^^^^^^^^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage > > TestCase.java:7:0::0 The import org.springframework.test cannot be > > resolved > > error at public abstract class BaseManagerTestCase extends > > AbstractTransactiona > > DataSourceSpringContextTests { > > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > ^^^^^^^^^^^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage > > TestCase.java:14:0::0 AbstractTransactionalDataSourceSpringContextTests > > cannot > > e resolved to a type > > error at setAutowireMode(AUTOWIRE_BY_NAME); > > ^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\BaseManage > > TestCase.java:21:0::0 AUTOWIRE_BY_NAME cannot be resolved > > error at import org.jmock.MockObjectTestCase; > > ^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\impl\BaseM > > nagerMockTestCase.java:7:0::0 The import org.jmock cannot be resolved > > error at public abstract class BaseManagerMockTestCase extends > > MockObjectTestCa > > e { > > ^^^^^^^^^^^^^^^^^ > > C:\cygwin\tmp\myproject\core\src\main\java\com\mycompany\app\service\impl\BaseM > > nagerMockTestCase.java:14:0::0 MockObjectTestCase cannot be resolved to a > > type > > > > dev > > > > On 9/6/07, mraible <[hidden email]> wrote: > >> > >> > >> I've entered this issue in JIRA: > >> > >> http://issues.appfuse.org/browse/APF-876 > >> > >> If you have time, can you see if it's fixed (on Windows) with > >> 2.0-SNAPSHOT > >> . > >> Here's how to test: > >> > >> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > >> -DarchetypeArtifactId=appfuse-modular-struts > >> -DremoteRepositories=http://static.appfuse.org/repository > >> -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app > >> -DartifactId=myproject > >> > >> cd myproject > >> mvn appfuse:full-source integration-test > >> > >> Thanks! > >> > >> Matt > >> > >> > >> Richard Brewster wrote: > >> > > >> > Hi. I created the modular-struts archetype project for RC1. That > >> built > >> > and ran OK. Then I ran mvn appfuse:full-source. That completed > >> > successfully, but then the project would no longer build. Seems that a > >> > lot of properties were no longer defined. The last failure message: > >> > > >> > 14) net.sf.ehcache:ehcache:jar:${ehcache.version} > >> > > >> > Try downloading the file manually from the project website. > >> > > >> > Then, install it using the command: > >> > mvn install:install-file -DgroupId=net.sf.ehcache > >> > -DartifactId=ehcache \ > >> > -Dversion=${ehcache.version} -Dpackaging=jar > >> > -Dfile=/path/to/file > >> > Alternatively, if you host your own repository you can deploy the file > >> > there: > >> > mvn deploy:deploy-file -DgroupId=net.sf.ehcache > >> -DartifactId=ehcache > >> \ > >> > -Dversion=${ehcache.version} -Dpackaging=jar > >> > -Dfile=/path/to/file \ > >> > -Durl=[url] -DrepositoryId=[id] > >> > > >> > Is this a bug? > >> > > >> > -Richard Brewster > >> > > >> > > >> > mraible wrote: > >> >> > >> >> Yes. > >> >> > >> >> On 9/4/07, fadhli <[hidden email]> wrote: > >> >>> Does mvn appfuse:full-source works on modular projects on Appfuse2.0 > >> >>> RC1? > >> >>> > >> >>> -- > >> >>> /fadhli > >> >> > >> >> > >> >> -- > >> >> http://raibledesigns.com > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [hidden email] > >> >> For additional commands, e-mail: [hidden email] > >> >> > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12532703 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [hidden email] > >> For additional commands, e-mail: [hidden email] > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/appfuse%3Afull-source-works-on-modular-projects-on-Appfuse2.0-RC1--tf4381575s2369.html#a12534557 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
||||||||||||||||
|
gumiyo
|
Some javascript/style in this post has been disabled (why?)
modular (not core)mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse -modular-struts -DremoteRepositories= http://static.appfuse.org/repository -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app -DartifactId=myproject On 9/6/07, Matt Raible
<[hidden email]> wrote: Just for clarification - did you do this on a "core" archetype or a |
||||||||||||||||
|
fadhlirahim
|
In reply to this post
by gumiyo
Some javascript/style in this post has been disabled (why?)
Thanks for the tip. My spring-modular full source ran smoothly.On 9/7/07, dev dev <[hidden email]> wrote:
will do Thanks Matt. To work around it, just run "dos2unix" (assuming you have cygwin installed on your machine) against all the pom.xml and everything should work fine. -- /fadhli |
||||||||||||||||
|
mraible
|
In reply to this post
by gumiyo
Should be fixed now - at least it works on my Windows XP box with both Cygwin and the good ol' Windows "cmd" prompt.
Matt
|
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |