- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Create simple Scala project results in syntax errors
Tue, 2009-08-25, 21:36
Hello,
I un-intentially answered directly to Miles how helped me to pin-point
the problem. Carl.Smotricz also helped me with valuable advice.
After a fresh installation of Eclipse and the Scala Plugin everything
works as expected. It seems that some of the other plugins I have
installed interfered with the JDT Weaving settings.
Miles and Carl: Thanks again for the advice.
Best regards, Lars
2009/8/25 Miles Sabin :
> On Mon, Aug 24, 2009 at 11:02 PM, Lars Vogel wrote:
>> The JDT weaving remains disabled no matter how often I try to activate
>> this. I have not found information on
>> http://www.scala-lang.org/node/94 why this could be happen.
>>
>> I use Eclipse 3.5 and the Scala plugin 2.7.5.final.
>>
>> Any advice?
>
> Getting JDT weaving enabled is essential ... there's no point
> attempting anything until that's fixed.
>
> Can you give me a little more information about your environment?
> Platform? JDK version?
>
> Also, is your Eclipse installation read-only?
>
> Cheers,
>
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)7813 944 528
> skype: milessabin
> http://www.chuusai.com/
> http://twitter.com/milessabin
>
Sat, 2009-08-29, 13:57
#2
Re: Creating Scaladocs with Maven
It's a bug. I'll investigate. Thanks for reporting it.
On Wed, Aug 26, 2009 at 09:08, Philip Köster wrote:
> I'm using `maven-scala-plugin' 2.11 and am a bit confused about its usage.
> This is what my POM currently looks like:
>
>
>
>
> org.scala-tools
> maven-scala-plugin
>
> UTF-8
>
> -Xms64m
> -Xmx1g
>
> src/main/java
>
>
>
>
>
> Now I can create the Scaladocs saying `mvn site'.
>
> However, this is not quite what I want. `mvn site' takes some time
> executing, and it generates Maven project documentation that I don't need.
> I'd rather skip that site stuff and simply say `mvn scala:doc', as described
> in the plug-in documentation, but that issues a build failure: ``Required
> goal not found: scala:doc in org.scala-tools:maven-scala-plugin:2.11''.
>
> Does the `doc' goal no longer exist? How can I create Scaladocs only,
> without the rest of the site?
>
> This is how I use the Javadoc plug-in in `project/build/pluginManagement':
>
>
> org.apache.maven.plugins
> maven-javadoc-plugin
>
> UTF-8
>
> ${project.reporting.outputDirectory}/javadocs
> UTF-8
> UTF-8
> true
>
>
>
> attach-javadoc
> verify
>
> jar
>
>
>
>
>
> Can I use the Scala plugin in a similar manner so that it would produce the
> Scaladocs every time I run `mvn install'?
>
> Cheers
> ---Phil
>
Sat, 2009-08-29, 14:07
#3
Re: Creating Scaladocs with Maven
already fixed in 2.12-SNAPSHOT
On Sat, Aug 29, 2009 at 14:55, David Bernard wrote:
> It's a bug. I'll investigate. Thanks for reporting it.
>
> On Wed, Aug 26, 2009 at 09:08, Philip Köster wrote:
>> I'm using `maven-scala-plugin' 2.11 and am a bit confused about its usage.
>> This is what my POM currently looks like:
>>
>>
>>
>>
>> org.scala-tools
>> maven-scala-plugin
>>
>> UTF-8
>>
>> -Xms64m
>> -Xmx1g
>>
>> src/main/java
>>
>>
>>
>>
>>
>> Now I can create the Scaladocs saying `mvn site'.
>>
>> However, this is not quite what I want. `mvn site' takes some time
>> executing, and it generates Maven project documentation that I don't need.
>> I'd rather skip that site stuff and simply say `mvn scala:doc', as described
>> in the plug-in documentation, but that issues a build failure: ``Required
>> goal not found: scala:doc in org.scala-tools:maven-scala-plugin:2.11''.
>>
>> Does the `doc' goal no longer exist? How can I create Scaladocs only,
>> without the rest of the site?
>>
>> This is how I use the Javadoc plug-in in `project/build/pluginManagement':
>>
>>
>> org.apache.maven.plugins
>> maven-javadoc-plugin
>>
>> UTF-8
>>
>> ${project.reporting.outputDirectory}/javadocs
>> UTF-8
>> UTF-8
>> true
>>
>>
>>
>> attach-javadoc
>> verify
>>
>> jar
>>
>>
>>
>>
>>
>> Can I use the Scala plugin in a similar manner so that it would produce the
>> Scaladocs every time I run `mvn install'?
>>
>> Cheers
>> ---Phil
>>
>
I'm using `maven-scala-plugin' 2.11 and am a bit confused about its
usage. This is what my POM currently looks like:
org.scala-tools
maven-scala-plugin
UTF-8
-Xms64m
-Xmx1g
src/main/java
Now I can create the Scaladocs saying `mvn site'.
However, this is not quite what I want. `mvn site' takes some time
executing, and it generates Maven project documentation that I don't
need. I'd rather skip that site stuff and simply say `mvn scala:doc', as
described in the plug-in documentation, but that issues a build failure:
``Required goal not found: scala:doc in
org.scala-tools:maven-scala-plugin:2.11''.
Does the `doc' goal no longer exist? How can I create Scaladocs only,
without the rest of the site?
This is how I use the Javadoc plug-in in `project/build/pluginManagement':
org.apache.maven.plugins
maven-javadoc-plugin
UTF-8
${project.reporting.outputDirectory}/javadocs
UTF-8
UTF-8
true
attach-javadoc
verify
jar
Can I use the Scala plugin in a similar manner so that it would produce
the Scaladocs every time I run `mvn install'?
Cheers
---Phil