szeiger / ornate

A Markdown-based site generator
http://szeiger.github.io/ornate-doc/
Other
80 stars 12 forks source link

`ornate:run` overrides the project `run` #9

Closed caente closed 7 years ago

caente commented 7 years ago

Hi! Thanks for ornate, it seems awesome.

I'm having an strange problem, when I enable the plugin on my project, something like:

lazy val myProject = Project("myProject")
    .enablePlugins(com.novocode.ornate.sbtplugin.OrnatePlugin)

It seems like when calling myProject/run, it tries to call myProject/ornate:run, provoking a no main class detected exception.

I even tried calling the main class directly, i.e.

myProject/runMain my.project.Main

with the same error, it tries to use the run from ornate, and it fails to find my.project.Main

I wonder if this is a known issue or if it's because I misunderstood something.

thanks!