maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Duncan" <stephen.dun...@gmail.com>
Subject Re: Is really MASSEMBLY-1 fixed?
Date Wed, 08 Mar 2006 22:19:27 GMT
Just to provide another way to run a project, that doesn't involve an
assembly descriptor, which may be of use until the incorporate that
plan into a new version of the Netbeans plugin/module/thingy.

Use the following:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-antrun-plugin</artifactId>
  <configuration>
    <tasks>
      <java fork="true" classname="com.foo.MainClass">
        <classpath refid="maven.runtime.classpath"/>
      </java>
    </tasks>
  </configuration>
</plugin>

And then run mvn antrun:run

-Stephen

On 3/8/06, Milos Kleint <mkleint@gmail.com> wrote:
> I've been looking for a default way to run maven projects within
> netbeans. I had the same issue with jar-with-dependencies.  We
> discussed it at dev@mevenide.codehaus.org and we have a different
> solution that works fine and is actually exactly the same as the
> netbeans ant projects get run.
> Check http://docs.codehaus.org/display/MEVENIDE/RunDebugJarProjects
> for details on the assembly descriptor to use and how to setup the jar
> plugin.. then all you should be required to do is run "java -jar
> <myartifact>.jar" in the target/dist directory (that's where the
> assembly plugin prepares the environment)
>
> Regards
>
> Milos Kleint
>
>
> On 3/8/06, Jozef Kotlár <jozef.kotlar@eea.sk> wrote:
> > Hello,
> >
> > I would like to have confirmed from someone that according my
> > observation is http://jira.codehaus.org/browse/MASSEMBLY-1 still open,
> > at least with published maven a and plugins.
> >
> > With maven version 2.0.2 and empty local repository
> > I've used the attached test case and procedure and the result is the
> > same:
> >
> > $ java -jar target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
> > Failed to load Main-Class manifest attribute from
> > target/mng-1380-1.0-SNAPSHOT-jar-with-dependencies.jar
> >
> > Maybe I am doing something wrong?
> >
> > Thanks,
> > Dodo.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message