Are you using OpenJDK by any chance? IIRC the YUI compressor doesn't like it.
Derek On Wed, Oct 21, 2009 at 6:58 PM, AndyM <[email protected]> wrote: > > Sorry about the spam. I was using 2.75 not 2.7.5.. Feel free to delete > the above posts. > > More errors though. spa builds fine, web does not... > > INFO] null > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.RuntimeException > at > com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber > (JavaScriptCompressor.java:299) > at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse > (JavaScriptCompressor.java:335) > at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init> > (JavaScriptCompressor.java:532) > at net.sf.alchim.mojo.yuicompressor.YuiCompressorMojo.processFile > (YuiCompressorMojo.java:178) > at net.sf.alchim.mojo.yuicompressor.MojoSupport.processDir > (MojoSupport.java:151) > at net.sf.alchim.mojo.yuicompressor.MojoSupport.execute > (MojoSupport.java:105) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo > (DefaultPluginManager.java:451) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > (DefaultLifecycleExecuto > > ...... > > > On Oct 21, 8:44 pm, AndyM <[email protected]> wrote: > > That gets me one step closer, thanks, but then I still have problem. > > The next mvn install that I do gives me the following: > > > > 1 required artifact is missing. > > for artifact: > > com.foo.jpaweb:spa:jar:1.0-SNAPSHOT > > > > Another post had the same problem, said to do mvn install. I tried > > doing mvn install in the spa directory as well, gives me the same > > error. So I'm missing the artifcact that I'm trying to build? This > > doesn't make any sense. Ideas? > > > > On Oct 21, 7:48 am, Steve Swing <[email protected]> wrote: > > > > > > > > > > > > > Does mvn -Dscala.version=2.7.5 install work for you? > > > > > If so you can define this in pom.xml files to avoid typing on the cmd- > > > line every time you build: > > > <properties> > > > <scala.version>2.7.5</scala.version> > > > </properties> > > > > > On Oct 20, 8:38 pm, AndyM <[email protected]> wrote: > > > > > > Still getting the same issue, with > > > > > > mvn -U 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 > > > > > > On Oct 20, 7:58 pm, David Pollak <[email protected]> > > > > wrote: > > > > > > > For some reason the pom.xml files in the JPA archetypes referred to > lift M4 > > > > > rather than SNAPSHOT. I've pushed a change. Once the build ( > http://hudson.scala-tools.org/job/Lift/1298/) is done, try re-executing > > > > > your mvn command (make sure you do a mvn -U to pull the latest). > > > > > > > To the committers - sorry for not going through review board on > this one, > > > > > but it was a clear problem with a clear fix (kind of like pushing a > fix to a > > > > > type-o in documentation) > > > > > > > On Tue, Oct 20, 2009 at 4:28 PM, AndyM <[email protected]> > wrote: > > > > > > > > I'm having trouble doing an mvn install on the JPA example from > the > > > > > > book... > > > > > > > > > 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 > > > > > > > > >cd JPADemo > > > > > > >mvn install > > > > > > > > org.apache.maven.reactor.MavenExecutionException: The POM > expression: $ > > > > > > {scala.version} could not be evaluated. Reason: Expression value > '$ > > > > > > {scala.version}' references itself in > 'com.foo.jpaweb:JPADemo:pom:1.0- > > > > > > SNAPSHOT'. for project com.foo.jpaweb:JPADemo at > /home/amast/lift/ > > > > > > bookexample/JPADemo/pom.xml > > > > > > at > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) > > > > > > .... [deleted for brevity] > > > > > > at > org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > > > Caused by: org.apache.maven.project.InvalidProjectModelException: > The > > > > > > POM expression: ${scala.version} could not be evaluated. Reason: > > > > > > Expression value '${scala.version}' references itself in > > > > > > 'com.foo.jpaweb:JPADemo:pom:1.0-SNAPSHOT'. for project > > > > > > com.foo.jpaweb:JPADemo at > /home/amast/lift/bookexample/JPADemo/pom.xml > > > > > > at > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal > > > > > > (DefaultMavenProjectBuilder.java:882) > > > > > > at > > > > > > > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInte > rnal > > > > > > (DefaultMavenProjectBuilder.java:506) > > > > > > ... [deleted for brevity] > > > > > > Caused by: > > > > > > > org.apache.maven.project.interpolation.ModelInterpolationException: > > > > > > The POM expression: ${scala.version} could not be evaluated. > Reason: > > > > > > Expression value '${scala.version}' references itself in > > > > > > 'com.foo.jpaweb:JPADemo:pom:1.0-SNAPSHOT'. > > > > > > at > > > > > > > > > org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpol > ateInternal > > > > > > (RegexBasedModelInterpolator.java:172) > > > > > > ...[deleted for brevity] > > > > > > > > Any help would be greatly appreciated. > > > > > > > -- > > > > > Lift, the simply functional web frameworkhttp://liftweb.net > > > > > Beginning Scalahttp://www.apress.com/book/view/1430219890 > > > > > Follow me:http://twitter.com/dpp > > > > > Surf the harmonics > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
