You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Strayer <jo...@strayer.org> on 2007/06/06 19:17:20 UTC
M2 classpath generation
I'm currently using maven 2. Most of our applications are batch
applications that run from cron via a bash script. I've written a plugin
that (among other things) will read through the pom and generate a file that
sets the class path correctly for this application. Is there anything like
this for Maven 2?
--
Esse Quam Videre
To Be, rather than to Seem
Re: M2 classpath generation
Posted by Jon Strayer <jo...@strayer.org>.
Excellent! Thank you very much. I was assuming that since I had run mvn
package that I could leave package out of the appassembler run.
On 6/6/07, Steven Rowe <sa...@syr.edu> wrote:
>
> Hi Jon,
>
> This JIRA issue sounds similar:
>
> <http://jira.codehaus.org/browse/MOJO-714>
>
> Also, you should be running this goal like so:
>
> mvn package appassembler:assemble
>
> Steve
>
> Jon Strayer wrote:
> > I'm getting this exception when I try mvn appassembler:assemble
> >
> > [INFO] Trace
> > java.lang.NullPointerException
> > at
> > org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(
> > DefaultArtifactInstaller.java:71)
> > at org.codehaus.mojo.appassembler.AssembleMojo.installArtifact(
> > AssembleMojo.java:361)
> > at org.codehaus.mojo.appassembler.AssembleMojo.execute(
> > AssembleMojo.java:299)
> > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:443)
> > at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:539)
> >
> >
> > I suspect a configuration error, but I don't know where.
> >
> > On 6/6/07, Steven Rowe <sa...@syr.edu> wrote:
> >>
> >> This Appassembler plugin will do this and more:
> >>
> >> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
> >>
> >> Jon Strayer wrote:
> >> > I'm currently using maven 2. Most of our applications are batch
> >> > applications that run from cron via a bash script. I've written a
> >> > plugin that (among other things) will read through the pom and
> >> > generate a file that sets the class path correctly for this
> >> > application. Is there anything like this for Maven 2?
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Esse Quam Videre
To Be, rather than to Seem
Re: M2 classpath generation
Posted by Steven Rowe <sa...@syr.edu>.
Hi Jon,
This JIRA issue sounds similar:
<http://jira.codehaus.org/browse/MOJO-714>
Also, you should be running this goal like so:
mvn package appassembler:assemble
Steve
Jon Strayer wrote:
> I'm getting this exception when I try mvn appassembler:assemble
>
> [INFO] Trace
> java.lang.NullPointerException
> at
> org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(
> DefaultArtifactInstaller.java:71)
> at org.codehaus.mojo.appassembler.AssembleMojo.installArtifact(
> AssembleMojo.java:361)
> at org.codehaus.mojo.appassembler.AssembleMojo.execute(
> AssembleMojo.java:299)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>
>
> I suspect a configuration error, but I don't know where.
>
> On 6/6/07, Steven Rowe <sa...@syr.edu> wrote:
>>
>> This Appassembler plugin will do this and more:
>>
>> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>>
>> Jon Strayer wrote:
>> > I'm currently using maven 2. Most of our applications are batch
>> > applications that run from cron via a bash script. I've written a
>> > plugin that (among other things) will read through the pom and
>> > generate a file that sets the class path correctly for this
>> > application. Is there anything like this for Maven 2?
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: M2 classpath generation
Posted by Jon Strayer <jo...@strayer.org>.
I'm getting this exception when I try mvn appassembler:assemble
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(
DefaultArtifactInstaller.java:71)
at org.codehaus.mojo.appassembler.AssembleMojo.installArtifact(
AssembleMojo.java:361)
at org.codehaus.mojo.appassembler.AssembleMojo.execute(
AssembleMojo.java:299)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
I suspect a configuration error, but I don't know where.
On 6/6/07, Steven Rowe <sa...@syr.edu> wrote:
>
> This Appassembler plugin will do this and more:
>
> http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
>
> Jon Strayer wrote:
> > I'm currently using maven 2. Most of our applications are batch
> > applications that run from cron via a bash script. I've written a
> > plugin that (among other things) will read through the pom and
> > generate a file that sets the class path correctly for this
> > application. Is there anything like this for Maven 2?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Esse Quam Videre
To Be, rather than to Seem
Re: M2 classpath generation
Posted by Steven Rowe <sa...@syr.edu>.
This Appassembler plugin will do this and more:
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
Jon Strayer wrote:
> I'm currently using maven 2. Most of our applications are batch
> applications that run from cron via a bash script. I've written a
> plugin that (among other things) will read through the pom and
> generate a file that sets the class path correctly for this
> application. Is there anything like this for Maven 2?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org