Hi all,

I am still not lucky. :(

I played with it a while, and it seems that I receive the (quite
insane) error because of conflicting versions.

With clean mvn repo, playing with the following archetype:

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-modular-struts-archetype
-DarchetypeVersion=2.1.0-M2-SNAPSHOT -DgroupId=com.engard
-DartifactId=zkproject
-DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse

I executed 'mvn clean install', 'mvn appfuse:full-source', 'mvn
dependency:resolve', then 'mvn appfuse:full-source' again, mvn missed
the mysql:mysql-connector-java:jar:5.1.10.

I guessed it happens because root project's pom.xml referred to
<jdbc.version>5.1.13</jdbc.version>, but appfuse-2.1.0-M2-SNAPSHOT.pom
referred to 5.1.10. Changing the project's pom.xml fixed this error,
but then mvn was complaining about missing
org.springframework:spring-tx:jar:3.0.4.RELEASE, and indeed, my repo
only contained 3.0.3 of this lib, although every other spring was
3.0.4. My project's web-1.0-SNAPSHOT.war contained the 3.0.3 version,
so there is a mix of versions somehow. :( Excerpt from 'mvn
dependency:resolve' output:

[INFO]    org.springframework:spring-aop:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-asm:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-aspects:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-beans:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-context:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-context-support:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-core:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-expression:jar:3.0.3.RELEASE:compile
[INFO]    org.springframework:spring-jdbc:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-orm:jar:3.0.4.RELEASE:compile
[INFO]    org.springframework:spring-test:jar:3.0.4.RELEASE:test
[INFO]    org.springframework:spring-tx:jar:3.0.3.RELEASE:compile
[INFO]    
org.springframework.security:spring-security-config:jar:3.0.3.RELEASE:compile
[INFO]    
org.springframework.security:spring-security-core:jar:3.0.3.RELEASE:compile


So, I still cannot run appfuse:full-source, although I can learn with
the project Matt gave to me.

Regards,
Ferenc

On Tue, Aug 31, 2010 at 5:21 PM, ramzi khlil <ramzi.atv...@gmail.com> wrote:
> I had the same problem to get appfuse full source.
> To solve the problem I had to build the project and then request the full
> source.
> Building the project solves all the dependecies and then we can run
> appfuse:full-source without problems.
>
> On Sun, Aug 15, 2010 at 5:02 PM, Ferenc Engárd <ferenc.eng...@gmail.com>
> wrote:
>>
>> Hi Matt,
>>
>> Thanks for your help!
>>
>> I still struggle a bit with maven -- after enabling maven dependency
>> management, 1) I had to set manually the "Maven Dependencies" in Java
>> Build Path in 'web' project setup to eliminate hundreds of missing
>> symbols errors, 2) still after that, I do not see a "Maven
>> Dependencies" entry in web project's hierarchy. But nevertheless, it
>> is exciting. :)
>>
>> Thanks,
>> Ferenc
>>
>> On Fri, Aug 6, 2010 at 3:14 PM, Matt Raible <m...@raibledesigns.com>
>> wrote:
>> > I believe it's a Java Sun JDK issue, but regardless, you can download a
>> > project with full-source and eclipse:eclipse run from:
>> >
>> > http://static.raibledesigns.com/downloads/zkproject.zip
>> >
>> > Hope this helps,
>> >
>> > Matt
>> >
>> > On Fri, Aug 6, 2010 at 4:45 AM, Ferenc Engárd <ferenc.eng...@gmail.com>
>> > wrote:
>> >>
>> >> I don't exactly understand what you exactly mean ''Change JAVA_HOME to
>> >> the JDK". JAVA_HOME env var is not set, I simply installed sun-java6
>> >> JDK from Karmic (interestingly enough, Lucid do not contain the sun
>> >> java packages...). There is only one java binary on the system. I
>> >> tried to set JAVA_HOME explicitly to /usr/lib/jvm/sun-java6-bin, but
>> >> the results are the same.
>> >>
>> >> Meanwhile I tried it with openjdk:
>> >>
>> >> f...@fery-laptop:~/tmp$ mvn --version
>> >> Apache Maven 2.2.1 (rdebian-1)
>> >> Java version: 1.6.0_18
>> >> Java home: /usr/lib/jvm/java-6-openjdk/jre
>> >> Default locale: en_US, platform encoding: UTF-8
>> >> OS name: "linux" version: "2.6.32-24-generic" arch: "i386" Family:
>> >> "unix"
>> >>
>> >> But the error is the same. :(
>> >>
>> >> There is no Java5 in the Ubuntu Karmic or Lucid, and I didn't want to
>> >> install it by hand.
>> >>
>> >> It seems that there is some curse on my machines (2 notebooks, 3
>> >> different type of network connection) to obstruct maven here. :) But I
>> >> would really wonder what is the cause of the problem. I will happily
>> >> help if you need some more logs or investigation.
>> >>
>> >> Matt, I am planning to start playing with ZK framework, and quickstart
>> >> the system with appfuse, as I am not really experienced with java web
>> >> world. I picked out struts2 randomly instead of the GUI-less core
>> >> because I guessed it is easier to replace the dependencies instead of
>> >> writing many things from scratch (web.xml etc.). (And also the modular
>> >> project seemed nicer to me, and there is no modular core archetype.)
>> >>
>> >> Could you please pick up an appropriate archetype for me, make a
>> >> full-source, (the 'mvn eclipse:eclipse' is also welcomed ;)) and send
>> >> me the .tgz (.zip) directly? Just for learning (that's why I wanted
>> >> full-source) and playing, so the snapshot is also ok if you feel it
>> >> better. . :)
>> >>
>> >> Thanks,
>> >> Ferenc
>> >>
>> >> On Wed, Aug 4, 2010 at 6:03 PM, Matt Raible <m...@raibledesigns.com>
>> >> wrote:
>> >> > Other things I can think of:
>> >> >
>> >> > 1. Change JAVA_HOME to the JDK instead of the JRE.
>> >> > 2. Try Java 5.
>> >> >
>> >> > On Wed, Aug 4, 2010 at 10:00 AM, Ferenc Engárd
>> >> > <ferenc.eng...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> I have purged the maven2 package and reinstalled.
>> >> >>
>> >> >> f...@fery-laptop:~$ mvn --version
>> >> >> Apache Maven 2.2.1 (rdebian-1)
>> >> >> Java version: 1.6.0_20
>> >> >> Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
>> >> >> Default locale: en_US, platform encoding: UTF-8
>> >> >> OS name: "linux" version: "2.6.32-24-generic" arch: "i386" Family:
>> >> >> "unix"
>> >> >>
>> >> >> Nothing changed. :( Any other idea?
>> >> >>
>> >> >> Ferenc
>> >> >>
>> >> >> On Wed, Aug 4, 2010 at 5:27 PM, Matt Raible <m...@raibledesigns.com>
>> >> >> wrote:
>> >> >> > I'm guessing this is caused by your Maven installation. I'd
>> >> >> > suggest
>> >> >> > re-installing 2.2.1 and making sure "which mvn" points to your new
>> >> >> > installation.
>> >> >> > On Aug 4, 2010, at 9:18 AM, Ferenc Engárd wrote:
>> >> >> >
>> >> >> > Then ther root of the problem must be locally, but I have
>> >> >> > absolutely
>> >> >> > no
>> >> >> > idea
>> >> >> > where to search.
>> >> >> >
>> >> >> > Tried 2.0.2, the log is here below. This f*** junit 4.4 is the
>> >> >> > guilty
>> >> >> > here,
>> >> >> > too...
>> >> >> >
>> >> >> > Cleaned repo, empty settings.xml, plain ADSL connection, tested
>> >> >> > with
>> >> >> > 2.0.2
>> >> >> > and 2.1.0.M1... Anybody else has any idea? Maybe some more verbose
>> >> >> > log?
>> >> >> >
>> >> >> > Ferenc
>> >> [...]
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> >> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to