This page is no longer maintained — Please continue to the home page at www.scala-lang.org

using continuations plugin with 2.8.0.RC1 and maven

13 replies
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR[INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Dear Josh,
i really should make the switch to SBT...
Best wishes,
--greg

On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
I should have a fix pushed soon ;)

On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
i really should make the switch to SBT...
Best wishes,
--greg

On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
You should be able to pull the current version and try it out.

On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
I should have a fix pushed soon ;)

On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
i really should make the switch to SBT...
Best wishes,
--greg

On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com


Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Dear Josh,
Thanks for your efforts!
i'm still seeing the same behavior. Here's what i did.
> pushd ~/.m2/repository/org/scala-tools > mv maven-scala-plugin hide.maven-scala-plugin> popd (into project)> mvn -U scala:console> ...scala> error: bad option: -P:continuations:enable
Best wishes,
--greg

On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
You should be able to pull the current version and try it out.

On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
I should have a fix pushed soon ;)

On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
i really should make the switch to SBT...
Best wishes,
--greg

On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com





--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven

Hi Greg,

It's part of the version 2.14-SNAPSHOT (I deploy it manually to
scala-tools.org/repo-snapshots)
Do you update your pom.xml to use this version ?

/davidB

On Thu, Apr 29, 2010 at 00:07, Meredith Gregory
wrote:
> Dear Josh,
> Thanks for your efforts!
> i'm still seeing the same behavior. Here's what i did.
>> pushd ~/.m2/repository/org/scala-tools
>> mv maven-scala-plugin hide.maven-scala-plugin
>> popd (into project)
>> mvn -U scala:console
>> ...
> scala> error: bad option: -P:continuations:enable
> Best wishes,
> --greg
>
> On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth
> wrote:
>>
>> You should be able to pull the current version and try it out.
>>
>> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth
>> wrote:
>>>
>>> I should have a fix pushed soon ;)
>>>
>>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory
>>> wrote:
>>>>
>>>> Dear Josh,
>>>> i really should make the switch to SBT...
>>>> Best wishes,
>>>> --greg
>>>>
>>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth
>>>> wrote:
>>>>>
>>>>> Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry
>>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven
>>>>> fixes).
>>>>>
>>>>> - Josh
>>>>>
>>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory
>>>>> wrote:
>>>>>>
>>>>>> Dear Josh, et al,
>>>>>> Actually, although this works for compilation, it turns out that it
>>>>>> does not work seamlessly for the console. Specifically,
>>>>>> > mvn scala:console
>>>>>> results in the complaint
>>>>>> scala> error: bad option: -P:continuations:enable
>>>>>> just after scala launches.
>>>>>> This happens when the scala plugin is configured as
>>>>>>     
>>>>>>         org.scala-tools
>>>>>>         maven-scala-plugin
>>>>>>         
>>>>>>           
>>>>>>             
>>>>>>               compile
>>>>>>               testCompile
>>>>>>             
>>>>>>           
>>>>>>         
>>>>>>
>>>>>>           ${scala.version}
>>>>>>  true
>>>>>>           
>>>>>>    -P:continuations:enable
>>>>>>           
>>>>>>  
>>>>>>    -Xmx128m
>>>>>>  
>>>>>>  
>>>>>>    
>>>>>>      org.scala-lang.plugins
>>>>>>      continuations
>>>>>>      ${scala.version}
>>>>>>    
>>>>>>  
>>>>>>         
>>>>>>       
>>>>>> Best wishes,
>>>>>> --greg
>>>>>>
>>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory
>>>>>> wrote:
>>>>>>>
>>>>>>> Dear Josh,
>>>>>>> Thanks! That did the trick!
>>>>>>> Best wishes,
>>>>>>> --greg
>>>>>>>
>>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> you need to specify continuations as a compilerPlugin not a
>>>>>>>> dependency (the API is part of the scala-library)
>>>>>>>>
>>>>>>>> so under you want:
>>>>>>>>
>>>>>>>>                        
>>>>>>>>
>>>>>>>> org.scala-lang.plugins
>>>>>>>>                             continuations
>>>>>>>>                             ${scala.version}
>>>>>>>>                        
>>>>>>>>                    
>>>>>>>>
>>>>>>>>
>>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml
>>>>>>>>
>>>>>>>> - Josh
>>>>>>>>
>>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Dear Scalarazzi,
>>>>>>>>> i'm still running into a spot of trouble attempting to use the
>>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant
>>>>>>>>> data in my pom.xml file is
>>>>>>>>>
>>>>>>>>>     2.8.0.RC1
>>>>>>>>>     1.1
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>       org.scala-lang.plugins
>>>>>>>>>       continuations
>>>>>>>>>       ${scala.version}
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>>         org.scala-tools
>>>>>>>>>         maven-scala-plugin
>>>>>>>>>         
>>>>>>>>>           
>>>>>>>>>             
>>>>>>>>>               compile
>>>>>>>>>               testCompile
>>>>>>>>>             
>>>>>>>>>           
>>>>>>>>>         
>>>>>>>>>
>>>>>>>>>           ${scala.version}
>>>>>>>>>  true
>>>>>>>>>           
>>>>>>>>>    -P:continuations:enable
>>>>>>>>>           
>>>>>>>>>  
>>>>>>>>>    -Xmx128m
>>>>>>>>>  
>>>>>>>>>         
>>>>>>>>>       
>>>>>>>>> This results in the following error.
>>>>>>>>> bash-3.2$ mvn compile
>>>>>>>>> ...
>>>>>>>>> [INFO] cmd:
>>>>>>>>>  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
>>>>>>>>> -classpath
>>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar
>>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar
>>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile
>>>>>>>>> scala.tools.nsc.Main
>>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args
>>>>>>>>> [ERROR] error: bad option: -P:continuations:enable
>>>>>>>>> [ERROR] one error found
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process
>>>>>>>>> exited with an error: 1(Exit value: 1)
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Total time: 10 seconds
>>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010
>>>>>>>>> [INFO] Final Memory: 26M/79M
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> bash-3.2$
>>>>>>>>> Any guidance or suggestions are welcome!
>>>>>>>>> Best wishes,
>>>>>>>>> --greg
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> L.G. Meredith
>>>>>>>>> Managing Partner
>>>>>>>>> Biosimilarity LLC
>>>>>>>>> 1219 NW 83rd St
>>>>>>>>> Seattle, WA 98117
>>>>>>>>>
>>>>>>>>> +1 206.650.3740
>>>>>>>>>
>>>>>>>>> http://biosimilarity.blogspot.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> L.G. Meredith
>>>>>>> Managing Partner
>>>>>>> Biosimilarity LLC
>>>>>>> 1219 NW 83rd St
>>>>>>> Seattle, WA 98117
>>>>>>>
>>>>>>> +1 206.650.3740
>>>>>>>
>>>>>>> http://biosimilarity.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> L.G. Meredith
>>>>>> Managing Partner
>>>>>> Biosimilarity LLC
>>>>>> 1219 NW 83rd St
>>>>>> Seattle, WA 98117
>>>>>>
>>>>>> +1 206.650.3740
>>>>>>
>>>>>> http://biosimilarity.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 1219 NW 83rd St
>>>> Seattle, WA 98117
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>
>>
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 1219 NW 83rd St
> Seattle, WA 98117
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>

Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Dear David,
Doh! Thanks!
Best wishes,
--greg

On Wed, Apr 28, 2010 at 3:10 PM, David Bernard <david.bernard.31@gmail.com> wrote:
Hi Greg,

It's part of the version 2.14-SNAPSHOT (I deploy it manually to
scala-tools.org/repo-snapshots)
Do you update your pom.xml to use this version ?

/davidB

On Thu, Apr 29, 2010 at 00:07, Meredith Gregory
<lgreg.meredith@gmail.com> wrote:
> Dear Josh,
> Thanks for your efforts!
> i'm still seeing the same behavior. Here's what i did.
>> pushd ~/.m2/repository/org/scala-tools
>> mv maven-scala-plugin hide.maven-scala-plugin
>> popd (into project)
>> mvn -U scala:console
>> ...
> scala> error: bad option: -P:continuations:enable
> Best wishes,
> --greg
>
> On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <joshua.suereth@gmail.com>
> wrote:
>>
>> You should be able to pull the current version and try it out.
>>
>> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <joshua.suereth@gmail.com>
>> wrote:
>>>
>>> I should have a fix pushed soon ;)
>>>
>>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory
>>> <lgreg.meredith@gmail.com> wrote:
>>>>
>>>> Dear Josh,
>>>> i really should make the switch to SBT...
>>>> Best wishes,
>>>> --greg
>>>>
>>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com>
>>>> wrote:
>>>>>
>>>>> Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry
>>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven
>>>>> fixes).
>>>>>
>>>>> - Josh
>>>>>
>>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory
>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>
>>>>>> Dear Josh, et al,
>>>>>> Actually, although this works for compilation, it turns out that it
>>>>>> does not work seamlessly for the console. Specifically,
>>>>>> > mvn scala:console
>>>>>> results in the complaint
>>>>>> scala> error: bad option: -P:continuations:enable
>>>>>> just after scala launches.
>>>>>> This happens when the scala plugin is configured as
>>>>>>      <plugin>
>>>>>>         <groupId>org.scala-tools</groupId>
>>>>>>         <artifactId>maven-scala-plugin</artifactId>
>>>>>>         <executions>
>>>>>>           <execution>
>>>>>>             <goals>
>>>>>>               <goal>compile</goal>
>>>>>>               <goal>testCompile</goal>
>>>>>>             </goals>
>>>>>>           </execution>
>>>>>>         </executions>
>>>>>> <configuration>
>>>>>>           <scalaVersion>${scala.version}</scalaVersion>
>>>>>>  <displayCmd>true</displayCmd>
>>>>>>           <args>
>>>>>>    <arg>-P:continuations:enable</arg>
>>>>>>           </args>
>>>>>>  <jvmArgs>
>>>>>>    <jvmArg>-Xmx128m</jvmArg>
>>>>>>  </jvmArgs>
>>>>>>  <compilerPlugins>
>>>>>>    <compilerPlugin>
>>>>>>      <groupId>org.scala-lang.plugins</groupId>
>>>>>>      <artifactId>continuations</artifactId>
>>>>>>      <version>${scala.version}</version>
>>>>>>    </compilerPlugin>
>>>>>>  </compilerPlugins>
>>>>>>         </configuration>
>>>>>>       </plugin>
>>>>>> Best wishes,
>>>>>> --greg
>>>>>>
>>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory
>>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>>
>>>>>>> Dear Josh,
>>>>>>> Thanks! That did the trick!
>>>>>>> Best wishes,
>>>>>>> --greg
>>>>>>>
>>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth
>>>>>>> <joshua.suereth@gmail.com> wrote:
>>>>>>>>
>>>>>>>> you need to specify continuations as a compilerPlugin not a
>>>>>>>> dependency (the API is part of the scala-library)
>>>>>>>>
>>>>>>>> so under <plugin> you want:
>>>>>>>> <compilerPlugins>
>>>>>>>>                         <compilerPlugin>
>>>>>>>>
>>>>>>>> <groupId>org.scala-lang.plugins</groupId>
>>>>>>>>                             <artifactId>continuations</artifactId>
>>>>>>>>                             <version>${scala.version}</version>
>>>>>>>>                         </compilerPlugin>
>>>>>>>>                     </compilerPlugins>
>>>>>>>>
>>>>>>>>
>>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml
>>>>>>>>
>>>>>>>> - Josh
>>>>>>>>
>>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory
>>>>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> Dear Scalarazzi,
>>>>>>>>> i'm still running into a spot of trouble attempting to use the
>>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant
>>>>>>>>> data in my pom.xml file is
>>>>>>>>> <properties>
>>>>>>>>>     <scala.version>2.8.0.RC1</scala.version>
>>>>>>>>>     <doxiaVersion>1.1</doxiaVersion>
>>>>>>>>>   </properties>
>>>>>>>>> <dependency>
>>>>>>>>>       <groupId>org.scala-lang.plugins</groupId>
>>>>>>>>>       <artifactId>continuations</artifactId>
>>>>>>>>>       <version>${scala.version}</version>
>>>>>>>>>  </dependency>
>>>>>>>>> <plugin>
>>>>>>>>>         <groupId>org.scala-tools</groupId>
>>>>>>>>>         <artifactId>maven-scala-plugin</artifactId>
>>>>>>>>>         <executions>
>>>>>>>>>           <execution>
>>>>>>>>>             <goals>
>>>>>>>>>               <goal>compile</goal>
>>>>>>>>>               <goal>testCompile</goal>
>>>>>>>>>             </goals>
>>>>>>>>>           </execution>
>>>>>>>>>         </executions>
>>>>>>>>> <configuration>
>>>>>>>>>           <scalaVersion>${scala.version}</scalaVersion>
>>>>>>>>>  <displayCmd>true</displayCmd>
>>>>>>>>>           <args>
>>>>>>>>>    <arg>-P:continuations:enable</arg>
>>>>>>>>>           </args>
>>>>>>>>>  <jvmArgs>
>>>>>>>>>    <jvmArg>-Xmx128m</jvmArg>
>>>>>>>>>  </jvmArgs>
>>>>>>>>>         </configuration>
>>>>>>>>>       </plugin>
>>>>>>>>> This results in the following error.
>>>>>>>>> bash-3.2$ mvn compile
>>>>>>>>> ...
>>>>>>>>> [INFO] cmd:
>>>>>>>>>  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
>>>>>>>>> -classpath
>>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar
>>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar
>>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile
>>>>>>>>> scala.tools.nsc.Main
>>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args
>>>>>>>>> [ERROR] error: bad option: -P:continuations:enable
>>>>>>>>> [ERROR] one error found
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process
>>>>>>>>> exited with an error: 1(Exit value: 1)
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Total time: 10 seconds
>>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010
>>>>>>>>> [INFO] Final Memory: 26M/79M
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> bash-3.2$
>>>>>>>>> Any guidance or suggestions are welcome!
>>>>>>>>> Best wishes,
>>>>>>>>> --greg
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> L.G. Meredith
>>>>>>>>> Managing Partner
>>>>>>>>> Biosimilarity LLC
>>>>>>>>> 1219 NW 83rd St
>>>>>>>>> Seattle, WA 98117
>>>>>>>>>
>>>>>>>>> +1 206.650.3740
>>>>>>>>>
>>>>>>>>> http://biosimilarity.blogspot.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> L.G. Meredith
>>>>>>> Managing Partner
>>>>>>> Biosimilarity LLC
>>>>>>> 1219 NW 83rd St
>>>>>>> Seattle, WA 98117
>>>>>>>
>>>>>>> +1 206.650.3740
>>>>>>>
>>>>>>> http://biosimilarity.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> L.G. Meredith
>>>>>> Managing Partner
>>>>>> Biosimilarity LLC
>>>>>> 1219 NW 83rd St
>>>>>> Seattle, WA 98117
>>>>>>
>>>>>> +1 206.650.3740
>>>>>>
>>>>>> http://biosimilarity.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 1219 NW 83rd St
>>>> Seattle, WA 98117
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>
>>
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 1219 NW 83rd St
> Seattle, WA 98117
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
Ah, I did not deploy a snapshot to the repo yet.... Sorry, I'll take care of that soon.

- Josh
On Apr 28, 2010, at 6:07 PM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:

Dear Josh,
Thanks for your efforts!
i'm still seeing the same behavior. Here's what i did.
> pushd ~/.m2/repository/org/scala-tools > mv maven-scala-plugin hide.maven-scala-plugin> popd (into project)> mvn -U scala:console> ...scala> error: bad option: -P:continuations:enable
Best wishes,
--greg

On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth < (joshua [dot] suereth [at] gmail [dot] com> wrote:
You should be able to pull the current version and try it out.

On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth < (joshua [dot] suereth [at] gmail [dot] com> wrote:
I should have a fix pushed soon ;)

On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] com> wrote:
Dear Josh,
i really should make the switch to SBT...
Best wishes,
--greg

On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth < (joshua [dot] suereth [at] gmail [dot] com> wrote:
Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry I've been using SBT recently, so I hadn't been up-to-snuff with my maven fixes).

- Josh

On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] com> wrote:
Dear Josh, et al,
Actually, although this works for compilation, it turns out that it does not work seamlessly for the console. Specifically, 
> mvn scala:console
results in the complaint
scala> error: bad option: -P:continuations:enable
just after scala launches.
This happens when the scala plugin is configured as
     <plugin>        <groupId>org.scala-tools</groupId>         <artifactId>maven-scala-plugin</artifactId>        <executions>           <execution>            <goals>               <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>         </executions> <configuration>           <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>           <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>  <compilerPlugins>    <compilerPlugin>            <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>    </compilerPlugin>  </compilerPlugins>         </configuration>              </plugin>
Best wishes,
--greg

On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] com> wrote:
Dear Josh,
Thanks! That did the trick!
Best wishes,
--greg

On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth < (joshua [dot] suereth [at] gmail [dot] com> wrote:
you need to specify continuations as a compilerPlugin not a dependency (the API is part of the scala-library)

so under <plugin> you want:
<compilerPlugins>
                        <compilerPlugin>
                            <groupId>org.scala-lang.plugins</groupId>
                            <artifactId>continuations</artifactId>
                            <version>${scala.version}</version>
                        </compilerPlugin>
                    </compilerPlugins>


See http://github.com/jsuereth/scala-arm/blob/master/pom.xml

- Josh

On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory < (lgreg [dot] meredith [at] gmail [dot] com> wrote:
Dear Scalarazzi,
i'm still running into a spot of trouble attempting to use the continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant data in my pom.xml file is
<properties>    <scala.version>2.8.0.RC1</scala.version>    <doxiaVersion>1.1</doxiaVersion>  </properties>
<dependency>      <groupId>org.scala-lang.plugins</groupId>      <artifactId>continuations</artifactId>      <version>${scala.version}</version>  </dependency>
<plugin>        <groupId>org.scala-tools</groupId>        <artifactId>maven-scala-plugin</artifactId>         <executions>          <execution>            <goals>              <goal>compile</goal>              <goal>testCompile</goal>             </goals>          </execution>        </executions> <configuration>          <scalaVersion>${scala.version}</scalaVersion>  <displayCmd>true</displayCmd>          <args>    <arg>-P:continuations:enable</arg>           </args>  <jvmArgs>    <jvmArg>-Xmx128m</jvmArg>   </jvmArgs>        </configuration>              </plugin>
This results in the following error.
bash-3.2$ mvn compile...
[INFO] cmd:  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -classpath /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile scala.tools.nsc.Main /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args [ERROR] error: bad option: -P:continuations:enable[ERROR] one error found[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 10 seconds[INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010 [INFO] Final Memory: 26M/79M[INFO] ------------------------------------------------------------------------bash-3.2$ 
Any guidance or suggestions are welcome!
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com




--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com





--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: using continuations plugin with 2.8.0.RC1 and maven

Don't worry Josh, I did it.

On Thu, Apr 29, 2010 at 00:34, Josh Suereth wrote:
> Ah, I did not deploy a snapshot to the repo yet.... Sorry, I'll take care of
> that soon.
>
> - Josh
> On Apr 28, 2010, at 6:07 PM, Meredith Gregory
> wrote:
>
> Dear Josh,
> Thanks for your efforts!
> i'm still seeing the same behavior. Here's what i did.
>> pushd ~/.m2/repository/org/scala-tools
>> mv maven-scala-plugin hide.maven-scala-plugin
>> popd (into project)
>> mvn -U scala:console
>> ...
> scala> error: bad option: -P:continuations:enable
> Best wishes,
> --greg
>
> On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth
> wrote:
>>
>> You should be able to pull the current version and try it out.
>>
>> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth
>> wrote:
>>>
>>> I should have a fix pushed soon ;)
>>>
>>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory
>>> wrote:
>>>>
>>>> Dear Josh,
>>>> i really should make the switch to SBT...
>>>> Best wishes,
>>>> --greg
>>>>
>>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth
>>>> wrote:
>>>>>
>>>>> Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry
>>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven
>>>>> fixes).
>>>>>
>>>>> - Josh
>>>>>
>>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory
>>>>> wrote:
>>>>>>
>>>>>> Dear Josh, et al,
>>>>>> Actually, although this works for compilation, it turns out that it
>>>>>> does not work seamlessly for the console. Specifically,
>>>>>> > mvn scala:console
>>>>>> results in the complaint
>>>>>> scala> error: bad option: -P:continuations:enable
>>>>>> just after scala launches.
>>>>>> This happens when the scala plugin is configured as
>>>>>>     
>>>>>>         org.scala-tools
>>>>>>         maven-scala-plugin
>>>>>>         
>>>>>>           
>>>>>>             
>>>>>>               compile
>>>>>>               testCompile
>>>>>>             
>>>>>>           
>>>>>>         
>>>>>>
>>>>>>           ${scala.version}
>>>>>>  true
>>>>>>           
>>>>>>    -P:continuations:enable
>>>>>>           
>>>>>>  
>>>>>>    -Xmx128m
>>>>>>  
>>>>>>  
>>>>>>    
>>>>>>      org.scala-lang.plugins
>>>>>>      continuations
>>>>>>      ${scala.version}
>>>>>>    
>>>>>>  
>>>>>>         
>>>>>>       
>>>>>> Best wishes,
>>>>>> --greg
>>>>>>
>>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory
>>>>>> wrote:
>>>>>>>
>>>>>>> Dear Josh,
>>>>>>> Thanks! That did the trick!
>>>>>>> Best wishes,
>>>>>>> --greg
>>>>>>>
>>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> you need to specify continuations as a compilerPlugin not a
>>>>>>>> dependency (the API is part of the scala-library)
>>>>>>>>
>>>>>>>> so under you want:
>>>>>>>>
>>>>>>>>                        
>>>>>>>>
>>>>>>>> org.scala-lang.plugins
>>>>>>>>                             continuations
>>>>>>>>                             ${scala.version}
>>>>>>>>                        
>>>>>>>>                    
>>>>>>>>
>>>>>>>>
>>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml
>>>>>>>>
>>>>>>>> - Josh
>>>>>>>>
>>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Dear Scalarazzi,
>>>>>>>>> i'm still running into a spot of trouble attempting to use the
>>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant
>>>>>>>>> data in my pom.xml file is
>>>>>>>>>
>>>>>>>>>     2.8.0.RC1
>>>>>>>>>     1.1
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>       org.scala-lang.plugins
>>>>>>>>>       continuations
>>>>>>>>>       ${scala.version}
>>>>>>>>>  
>>>>>>>>>
>>>>>>>>>         org.scala-tools
>>>>>>>>>         maven-scala-plugin
>>>>>>>>>         
>>>>>>>>>           
>>>>>>>>>             
>>>>>>>>>               compile
>>>>>>>>>               testCompile
>>>>>>>>>             
>>>>>>>>>           
>>>>>>>>>         
>>>>>>>>>
>>>>>>>>>           ${scala.version}
>>>>>>>>>  true
>>>>>>>>>           
>>>>>>>>>    -P:continuations:enable
>>>>>>>>>           
>>>>>>>>>  
>>>>>>>>>    -Xmx128m
>>>>>>>>>  
>>>>>>>>>         
>>>>>>>>>       
>>>>>>>>> This results in the following error.
>>>>>>>>> bash-3.2$ mvn compile
>>>>>>>>> ...
>>>>>>>>> [INFO] cmd:
>>>>>>>>>  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
>>>>>>>>> -classpath
>>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar
>>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar
>>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile
>>>>>>>>> scala.tools.nsc.Main
>>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args
>>>>>>>>> [ERROR] error: bad option: -P:continuations:enable
>>>>>>>>> [ERROR] one error found
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process
>>>>>>>>> exited with an error: 1(Exit value: 1)
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Total time: 10 seconds
>>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010
>>>>>>>>> [INFO] Final Memory: 26M/79M
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> bash-3.2$
>>>>>>>>> Any guidance or suggestions are welcome!
>>>>>>>>> Best wishes,
>>>>>>>>> --greg
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> L.G. Meredith
>>>>>>>>> Managing Partner
>>>>>>>>> Biosimilarity LLC
>>>>>>>>> 1219 NW 83rd St
>>>>>>>>> Seattle, WA 98117
>>>>>>>>>
>>>>>>>>> +1 206.650.3740
>>>>>>>>>
>>>>>>>>> http://biosimilarity.blogspot.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> L.G. Meredith
>>>>>>> Managing Partner
>>>>>>> Biosimilarity LLC
>>>>>>> 1219 NW 83rd St
>>>>>>> Seattle, WA 98117
>>>>>>>
>>>>>>> +1 206.650.3740
>>>>>>>
>>>>>>> http://biosimilarity.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> L.G. Meredith
>>>>>> Managing Partner
>>>>>> Biosimilarity LLC
>>>>>> 1219 NW 83rd St
>>>>>> Seattle, WA 98117
>>>>>>
>>>>>> +1 206.650.3740
>>>>>>
>>>>>> http://biosimilarity.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 1219 NW 83rd St
>>>> Seattle, WA 98117
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>
>>
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 1219 NW 83rd St
> Seattle, WA 98117
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: using continuations plugin with 2.8.0.RC1 and maven
As always, you rock!

On Wed, Apr 28, 2010 at 6:41 PM, David Bernard <david.bernard.31@gmail.com> wrote:
Don't worry Josh, I did it.

On Thu, Apr 29, 2010 at 00:34, Josh Suereth <joshua.suereth@gmail.com> wrote:
> Ah, I did not deploy a snapshot to the repo yet.... Sorry, I'll take care of
> that soon.
>
> - Josh
> On Apr 28, 2010, at 6:07 PM, Meredith Gregory <lgreg.meredith@gmail.com>
> wrote:
>
> Dear Josh,
> Thanks for your efforts!
> i'm still seeing the same behavior. Here's what i did.
>> pushd ~/.m2/repository/org/scala-tools
>> mv maven-scala-plugin hide.maven-scala-plugin
>> popd (into project)
>> mvn -U scala:console
>> ...
> scala> error: bad option: -P:continuations:enable
> Best wishes,
> --greg
>
> On Wed, Apr 28, 2010 at 2:40 PM, Josh Suereth <joshua.suereth@gmail.com>
> wrote:
>>
>> You should be able to pull the current version and try it out.
>>
>> On Wed, Apr 28, 2010 at 4:41 PM, Josh Suereth <joshua.suereth@gmail.com>
>> wrote:
>>>
>>> I should have a fix pushed soon ;)
>>>
>>> On Wed, Apr 28, 2010 at 4:17 PM, Meredith Gregory
>>> <lgreg.meredith@gmail.com> wrote:
>>>>
>>>> Dear Josh,
>>>> i really should make the switch to SBT...
>>>> Best wishes,
>>>> --greg
>>>>
>>>> On Wed, Apr 28, 2010 at 1:11 PM, Josh Suereth <joshua.suereth@gmail.com>
>>>> wrote:
>>>>>
>>>>> Yes, I noticed this as a bug.   I'll try to patch the shortly (sorry
>>>>> I've been using SBT recently, so I hadn't been up-to-snuff with my maven
>>>>> fixes).
>>>>>
>>>>> - Josh
>>>>>
>>>>> On Wed, Apr 28, 2010 at 3:58 PM, Meredith Gregory
>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>
>>>>>> Dear Josh, et al,
>>>>>> Actually, although this works for compilation, it turns out that it
>>>>>> does not work seamlessly for the console. Specifically,
>>>>>> > mvn scala:console
>>>>>> results in the complaint
>>>>>> scala> error: bad option: -P:continuations:enable
>>>>>> just after scala launches.
>>>>>> This happens when the scala plugin is configured as
>>>>>>      <plugin>
>>>>>>         <groupId>org.scala-tools</groupId>
>>>>>>         <artifactId>maven-scala-plugin</artifactId>
>>>>>>         <executions>
>>>>>>           <execution>
>>>>>>             <goals>
>>>>>>               <goal>compile</goal>
>>>>>>               <goal>testCompile</goal>
>>>>>>             </goals>
>>>>>>           </execution>
>>>>>>         </executions>
>>>>>> <configuration>
>>>>>>           <scalaVersion>${scala.version}</scalaVersion>
>>>>>>  <displayCmd>true</displayCmd>
>>>>>>           <args>
>>>>>>    <arg>-P:continuations:enable</arg>
>>>>>>           </args>
>>>>>>  <jvmArgs>
>>>>>>    <jvmArg>-Xmx128m</jvmArg>
>>>>>>  </jvmArgs>
>>>>>>  <compilerPlugins>
>>>>>>    <compilerPlugin>
>>>>>>      <groupId>org.scala-lang.plugins</groupId>
>>>>>>      <artifactId>continuations</artifactId>
>>>>>>      <version>${scala.version}</version>
>>>>>>    </compilerPlugin>
>>>>>>  </compilerPlugins>
>>>>>>         </configuration>
>>>>>>       </plugin>
>>>>>> Best wishes,
>>>>>> --greg
>>>>>>
>>>>>> On Mon, Apr 26, 2010 at 10:48 PM, Meredith Gregory
>>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>>
>>>>>>> Dear Josh,
>>>>>>> Thanks! That did the trick!
>>>>>>> Best wishes,
>>>>>>> --greg
>>>>>>>
>>>>>>> On Mon, Apr 26, 2010 at 4:43 PM, Josh Suereth
>>>>>>> <joshua.suereth@gmail.com> wrote:
>>>>>>>>
>>>>>>>> you need to specify continuations as a compilerPlugin not a
>>>>>>>> dependency (the API is part of the scala-library)
>>>>>>>>
>>>>>>>> so under <plugin> you want:
>>>>>>>> <compilerPlugins>
>>>>>>>>                         <compilerPlugin>
>>>>>>>>
>>>>>>>> <groupId>org.scala-lang.plugins</groupId>
>>>>>>>>                             <artifactId>continuations</artifactId>
>>>>>>>>                             <version>${scala.version}</version>
>>>>>>>>                         </compilerPlugin>
>>>>>>>>                     </compilerPlugins>
>>>>>>>>
>>>>>>>>
>>>>>>>> See http://github.com/jsuereth/scala-arm/blob/master/pom.xml
>>>>>>>>
>>>>>>>> - Josh
>>>>>>>>
>>>>>>>> On Mon, Apr 26, 2010 at 7:10 PM, Meredith Gregory
>>>>>>>> <lgreg.meredith@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> Dear Scalarazzi,
>>>>>>>>> i'm still running into a spot of trouble attempting to use the
>>>>>>>>> continuations plugin with 2.8.0.RC1 under maven. Specifically, the relevant
>>>>>>>>> data in my pom.xml file is
>>>>>>>>> <properties>
>>>>>>>>>     <scala.version>2.8.0.RC1</scala.version>
>>>>>>>>>     <doxiaVersion>1.1</doxiaVersion>
>>>>>>>>>   </properties>
>>>>>>>>> <dependency>
>>>>>>>>>       <groupId>org.scala-lang.plugins</groupId>
>>>>>>>>>       <artifactId>continuations</artifactId>
>>>>>>>>>       <version>${scala.version}</version>
>>>>>>>>>  </dependency>
>>>>>>>>> <plugin>
>>>>>>>>>         <groupId>org.scala-tools</groupId>
>>>>>>>>>         <artifactId>maven-scala-plugin</artifactId>
>>>>>>>>>         <executions>
>>>>>>>>>           <execution>
>>>>>>>>>             <goals>
>>>>>>>>>               <goal>compile</goal>
>>>>>>>>>               <goal>testCompile</goal>
>>>>>>>>>             </goals>
>>>>>>>>>           </execution>
>>>>>>>>>         </executions>
>>>>>>>>> <configuration>
>>>>>>>>>           <scalaVersion>${scala.version}</scalaVersion>
>>>>>>>>>  <displayCmd>true</displayCmd>
>>>>>>>>>           <args>
>>>>>>>>>    <arg>-P:continuations:enable</arg>
>>>>>>>>>           </args>
>>>>>>>>>  <jvmArgs>
>>>>>>>>>    <jvmArg>-Xmx128m</jvmArg>
>>>>>>>>>  </jvmArgs>
>>>>>>>>>         </configuration>
>>>>>>>>>       </plugin>
>>>>>>>>> This results in the following error.
>>>>>>>>> bash-3.2$ mvn compile
>>>>>>>>> ...
>>>>>>>>> [INFO] cmd:
>>>>>>>>>  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
>>>>>>>>> -classpath
>>>>>>>>> /Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-lang/scala-compiler/2.8.0.RC1/scala-compiler-2.8.0.RC1.jar:/Users/lgm/.m2/repository/org/scala-tools/maven-scala-plugin/2.13.1/maven-scala-plugin-2.13.1.jar
>>>>>>>>> -Xbootclasspath/a:/Users/lgm/.m2/repository/org/scala-lang/scala-library/2.8.0.RC1/scala-library-2.8.0.RC1.jar
>>>>>>>>> -Xmx128m org_scala_tools_maven_executions.MainWithArgsInFile
>>>>>>>>> scala.tools.nsc.Main
>>>>>>>>> /private/var/folders/d7/d71xvV5wG8CkSpQL0b5mRE+++TI/-Tmp-/scala-maven-6501855268926442811.args
>>>>>>>>> [ERROR] error: bad option: -P:continuations:enable
>>>>>>>>> [ERROR] one error found
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] wrap: org.apache.commons.exec.ExecuteException: Process
>>>>>>>>> exited with an error: 1(Exit value: 1)
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> [INFO] Total time: 10 seconds
>>>>>>>>> [INFO] Finished at: Mon Apr 26 15:57:54 PDT 2010
>>>>>>>>> [INFO] Final Memory: 26M/79M
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> bash-3.2$
>>>>>>>>> Any guidance or suggestions are welcome!
>>>>>>>>> Best wishes,
>>>>>>>>> --greg
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> L.G. Meredith
>>>>>>>>> Managing Partner
>>>>>>>>> Biosimilarity LLC
>>>>>>>>> 1219 NW 83rd St
>>>>>>>>> Seattle, WA 98117
>>>>>>>>>
>>>>>>>>> +1 206.650.3740
>>>>>>>>>
>>>>>>>>> http://biosimilarity.blogspot.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> L.G. Meredith
>>>>>>> Managing Partner
>>>>>>> Biosimilarity LLC
>>>>>>> 1219 NW 83rd St
>>>>>>> Seattle, WA 98117
>>>>>>>
>>>>>>> +1 206.650.3740
>>>>>>>
>>>>>>> http://biosimilarity.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> L.G. Meredith
>>>>>> Managing Partner
>>>>>> Biosimilarity LLC
>>>>>> 1219 NW 83rd St
>>>>>> Seattle, WA 98117
>>>>>>
>>>>>> +1 206.650.3740
>>>>>>
>>>>>> http://biosimilarity.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 1219 NW 83rd St
>>>> Seattle, WA 98117
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>
>>
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 1219 NW 83rd St
> Seattle, WA 98117
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland