Chas,

Marius means are you using the *latest* 1.1-SNAPSHOT?

I have some works to do on the maven archetypes in the next couple of days
so I'll make sure they are all working correctly when I do the code
refactoring.

Cheers, Tim

On 24/08/2009 09:49, "Charles F. Munat" <c...@munat.com> wrote:

> 
> Hi, Marius...
> 
> I don't know what you mean by "Are you using master?" What I did was use
> the Maven archetype to create a basic JPA lift app. Then I changed
> directory to the top directory and ran "mvn compile." That's it. I got
> the errors you see. I didn't do anything else.
> 
> I've tried blowing away .m2 and I've tried changing the scala version to
> 2.7.5 (from 2.7.4). No difference.
> 
> Does the basic JPA lift app not compile until you do something else to
> it? The blank one worked fine. Can you create and compile the Basic JPA
> app on your machine without error? Maybe it's something on my machine,
> but everything else is working fine.
> 
> The Maven command I used is reproduced below.
> 
> Chas.
> 
> marius d. wrote:
>> Charles,
>> 
>> AFAIK I removed all dependencies to javax.servlet.* classes even from
>> archetypes.  Are you using master? ... I did a full search and servlet
>> things are not being used. The archetype looks ok to me ... Am I
>> missing something?
>> 
>> Br's,
>> Marius
>> 
>> On Aug 24, 9:06 am, "Charles F. Munat" <c...@munat.com> wrote:
>>> Nope. Same error, even after blowing away m2 and rerunning the basic
>>> archetype to create a new app.
>>> 
>>> Chas.
>>> 
>>> Charles F. Munat wrote:
>>>> No on blowing away m2. I did switch to the blank archetype (which is
>>>> what I actually wanted) and it worked fine. But I can try again with the
>>>> basic and blowing away m2.
>>>> Chas.
>>>> Derek Chen-Becker wrote:
>>>>> It looks like this is still the older archive before HttpServletRequest
>>>>> → HTTPRequest. The code in master has the change applied, so I'm not
>>>>> sure why it's failing. The warnings are normal (I haven't figured out
>>>>> all of the tricks with the velocity templating), but something isn't
>>>>> being pulled correctly. Have you tried blowing away your .m2?
>>>>> Derek
>>>>> On Sun, Aug 23, 2009 at 9:45 PM, Charles F. Munat <c...@munat.com
>>>>> <mailto:c...@munat.com>> wrote:
>>>>>     I found this in the lift book and used it:
>>>>>     mvn archetype:generate \
>>>>>     -DarchetypeRepository=http://scala-tools.org/repo-snapshots\
>>>>>     -DarchetypeGroupId=net.liftweb \
>>>>>     -DarchetypeArtifactId=lift-archetype-jpa-basic \
>>>>>     -DarchetypeVersion=1.1-SNAPSHOT \
>>>>>     -DgroupId=com.foo.jpaweb \
>>>>>     -DartifactId=JPADemo \
>>>>>     -Dversion=1.0-SNAPSHOT
>>>>>     During the creation of the basic jpa app, I got this:
>>>>>     Downloading:
>>>>>    
>>>>> http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-...
>>>>>     44K
>>>>>     
>>>>> <http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-...>
>>>>>     downloaded  (lift-archetype-jpa-basic-1.1-SNAPSHOT.jar)
>>>>>     [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
>>>>>     '66b831a190e2e072816e5b2acc8064287d94b371'; remote =
>>>>>     '023a3bb1cf2994e837b18394a2eb3975c8735552' - RETRYING
>>>>>     Downloading:
>>>>>    
>>>>> http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-...
>>>>>     44K
>>>>>     
>>>>> <http://scala-tools.org/repo-snapshots/net/liftweb/lift-archetype-jpa-...>
>>>>>     downloaded  (lift-archetype-jpa-basic-1.1-SNAPSHOT.jar)
>>>>>     [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
>>>>>     '66b831a190e2e072816e5b2acc8064287d94b371'; remote =
>>>>>     '023a3bb1cf2994e837b18394a2eb3975c8735552' - IGNORING
>>>>>     And a bunch of warnings:
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/pom.xml [line 37,column 16]
>>>>> :
>>>>>     ${scala.version} is not a valid reference.
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/pom.xml [line 43,column 16]
>>>>> :
>>>>>     ${scala.version} is not a valid reference.
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/pom.xml [line 85,column 25]
>>>>> :
>>>>>     ${scala.version} is not a valid reference.
>>>>>     [WARNING] PT Don't override file /private/var/www/lift/admin/pom.xml
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/web/pom.xml [line 13,column
>>>>>     9] : ${parent.artifactId} is not a valid reference.
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/web/pom.xml [line 24,column
>>>>>     16] : ${pom.groupId} is not a valid reference.
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/web/pom.xml [line 26,column
>>>>>     16] : ${pom.version} is not a valid reference.
>>>>>     [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
>>>>>     reference : template = archetype-resources/spa/pom.xml [line 14,column
>>>>>     9] : ${parent.artifactId} is not a valid reference.
>>>>>     The build completed successfully anyway. Afterward, I tried "mvn
>>>>>     compile" in the top directory and got the following error:
>>>>>     [WARNING]
>>>>>     
>>>>> /private/var/www/lift/admin/web/src/main/scala/bootstrap/liftweb/Boot.scal
>>>>> a:70:
>>>>>     error: type mismatch;
>>>>>     [WARNING]  found   :
>>>>>     net.liftweb.util.Box[javax.servlet.http.HttpServletRequest]
>>>>>     [WARNING]  required:
>>>>>     net.liftweb.util.Box[net.liftweb.http.provider.HTTPRequest]
>>>>>     [WARNING]       case null =>
>>>>>     Full(LiftRules.defaultLocaleCalculator(request))
>>>>>     [WARNING]
>>>>> ^
>>>>>     [WARNING]
>>>>>     
>>>>> /private/var/www/lift/admin/web/src/main/scala/bootstrap/liftweb/Boot.scal
>>>>> a:75:
>>>>>     error: type mismatch;
>>>>>     [WARNING]  found   :
>>>>>     (net.liftweb.util.Box[javax.servlet.http.HttpServletRequest]) =>
>>>>>     java.util.Locale
>>>>>     [WARNING]  required:
>>>>>     (net.liftweb.util.Box[net.liftweb.http.provider.HTTPRequest]) =>
>>>>>     java.util.Locale
>>>>>     [WARNING]     LiftRules.localeCalculator = localeCalculator _
>>>>>     [WARNING]                                  ^
>>>>>     [WARNING] two errors found
>>>>>     [INFO]
>>>>>     
>>>>> ------------------------------------------------------------------------
>>>>>     [ERROR] BUILD FAILURE
>>>>>     Hmmmm. Ideas?
>>>>>     Chas.
>>>>>     Charles F. Munat wrote:
>>>>>> Anyone know offhand what the mvn command is to create a blank JPA
>>>>>> project (split, not single)? We should probably collect all the
>>>>>> archetype commands and put them on the new wiki (and keep them up to
>>>>>> date with the latest version number).
>>>>>> I'm happy to do it if I can figure out what the right versions are...
>>>>>> Chas.
>>> 
>> 
> 
> > 
> 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to