You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by William Colen <wi...@gmail.com> on 2009/11/30 19:44:16 UTC

PEAR Packaging Maven Plugin

Is the PEAR Packaging Maven Plugin working? Couldn't access the
documentation at
http://incubator.apache.org/uima/sandbox.html#pear.maven.task, also couldn't
make it work using the usage example at
http://incubator.apache.org/uima/doc-uima-pears.html

Thanks,
William

Re: PEAR Packaging Maven Plugin

Posted by William Colen <wi...@gmail.com>.
Thank you!

To build the PearPackagingMavenPlugin I added a dummy scm configuration to
override any other configuration.

  <scm>
    <connection>scm:svn:http://127.0.0.1/svn/my-project</connection>
    <developerConnection>scm:svn:https://127.0.0.1/svn/my-project</developerConnection>
    <tag>HEAD</tag>
    <url>http://127.0.0.1/websvn/my-project</url>
  </scm>


With that I could execute "mvn install" and now I'm able to use the plugin.

On Wed, Dec 2, 2009 at 3:44 AM, Rogan Creswick <cr...@gmail.com> wrote:

> On Tue, Dec 1, 2009 at 9:25 PM, Marshall Schor <ms...@schor.com> wrote:
> >> 1. I tried to perform a mvn install in PearPackagingMavenPlugin source
> but
> >> got the following error:
> >>
> >> java.lang.NullPointerException: The scm url cannot be null.
> >>
>
> I've experienced that one.  If I remember correctly, it's actually a
> red herring, and doesn't have anything to do with the scm url.  I'm
> guessing (based on what parts of my local uimaj pom I have commented
> out) that it's part of the Distribution Management configuration, but
> I can't say for sure.
> >>
> >> 2. After that I tried to use the compiled version, but I got another
> error:
> >> [INFO] Internal error in the plugin manager executing goal
> >> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package':
> Unable
> >> to find the mojo
> >> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package' in
> the
> >> plugin 'org.apache.uima:PearPackagingMavenPlugin'
> >> org/apache/uima/pear/tools/PackageCreatorException
> >>
>
> I've had this sort of thing happen because maven gets hungup somehow
> after it's tried and failed to satisfy a dependency.  (I can't say
> it's exactly the same... I'm running from memory.)  Something ends up
> stuck in ~/.m2/repository that prevents subsequent queries from
> working correctly.  Anyhow, try (manually) deleting the
> PearPackagingMavenPlugin directory tree from your ~/.m2 directory and
> try again.
>
> --Rogan
>

Re: PEAR Packaging Maven Plugin

Posted by Rogan Creswick <cr...@gmail.com>.
On Tue, Dec 1, 2009 at 9:25 PM, Marshall Schor <ms...@schor.com> wrote:
>> 1. I tried to perform a mvn install in PearPackagingMavenPlugin source but
>> got the following error:
>>
>> java.lang.NullPointerException: The scm url cannot be null.
>>

I've experienced that one.  If I remember correctly, it's actually a
red herring, and doesn't have anything to do with the scm url.  I'm
guessing (based on what parts of my local uimaj pom I have commented
out) that it's part of the Distribution Management configuration, but
I can't say for sure.
>>
>> 2. After that I tried to use the compiled version, but I got another error:
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package': Unable
>> to find the mojo
>> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package' in the
>> plugin 'org.apache.uima:PearPackagingMavenPlugin'
>> org/apache/uima/pear/tools/PackageCreatorException
>>

I've had this sort of thing happen because maven gets hungup somehow
after it's tried and failed to satisfy a dependency.  (I can't say
it's exactly the same... I'm running from memory.)  Something ends up
stuck in ~/.m2/repository that prevents subsequent queries from
working correctly.  Anyhow, try (manually) deleting the
PearPackagingMavenPlugin directory tree from your ~/.m2 directory and
try again.

--Rogan

Re: PEAR Packaging Maven Plugin

Posted by Marshall Schor <ms...@schor.com>.
Hi William,

William Colen wrote:
> Hi, Marshall,
>
> Thanks for pointing where to find the documentation. Now I could move a
> little bit more.
> Now I have other issues.
>
> 1. I tried to perform a mvn install in PearPackagingMavenPlugin source but
> got the following error:
>
> java.lang.NullPointerException: The scm url cannot be null.
>   

I've never seen that message.  I don't know what causes it...  A quick
web-search found this message with maven - 1 - but I presume you're
using the latest Maven or something close to that, right?

What source did you use (e.g., 2.2.2 source distribution, the current
SVN / trunk or tag?)?

>     at
> org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:181)
>     at
> org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:722)
>     at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:593)
>     at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:452)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> 2. After that I tried to use the compiled version, but I got another error:
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package': Unable
> to find the mojo
> 'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package' in the
> plugin 'org.apache.uima:PearPackagingMavenPlugin'
> org/apache/uima/pear/tools/PackageCreatorException
>   

I've never seen this error, either...  Which compiled version did you
install?  Did you install it to your local maven repository?
Do you have your maven set up to search the apache incubator repository
(located at http://people.apache.org/repo/m2-incubating-repository) for
needed uima dependencies?
Sorry not to be more helpful...  -Marshall
> Do you know what I'm missing?
>
> Thank you,
> William
>
>
> On Mon, Nov 30, 2009 at 8:08 PM, Marshall Schor <ms...@schor.com> wrote:
>
>   
>> William Colen wrote:
>>     
>>> Is the PEAR Packaging Maven Plugin working?
>>>       
>> I think so.  We're using the 2.3.0 (not yet released version) to build
>> things for the 2.3.0 upcoming release.
>>     
>>>  Couldn't access the
>>> documentation at
>>> http://incubator.apache.org/uima/sandbox.html#pear.maven.task
>>>       
>> The link is broken, as you have observed (not sure it ever was
>> working...).  It looks like the documentation build for this is not
>> saved in SVN, but it is available as part of the binary download for it
>> (it is included in the 2.2.2 Sandbox distribution release, available
>> from here:
>>
>> http://incubator.apache.org/uima/downloads.cgi#Latest%20Official%20Releases
>>
>>   Go to the part of the page labeled: UIMA Annotator Addons & Simple
>> Server & Pear packaging tools to get it.
>>
>>     
>>> , also couldn't
>>> make it work using the usage example at
>>> http://incubator.apache.org/uima/doc-uima-pears.html
>>>
>>>       
>> Can you say what is going wrong?
>>
>>
>>     
>>> Thanks,
>>> William
>>>
>>>
>>>       
>
>   

Re: PEAR Packaging Maven Plugin

Posted by William Colen <wi...@gmail.com>.
Hi, Marshall,

Thanks for pointing where to find the documentation. Now I could move a
little bit more.
Now I have other issues.

1. I tried to perform a mvn install in PearPackagingMavenPlugin source but
got the following error:

java.lang.NullPointerException: The scm url cannot be null.
    at
org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:181)
    at
org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:722)
    at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:593)
    at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:452)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

2. After that I tried to use the compiled version, but I got another error:
[INFO] Internal error in the plugin manager executing goal
'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package': Unable
to find the mojo
'org.apache.uima:PearPackagingMavenPlugin:2.2.2-incubating:package' in the
plugin 'org.apache.uima:PearPackagingMavenPlugin'
org/apache/uima/pear/tools/PackageCreatorException

Do you know what I'm missing?

Thank you,
William


On Mon, Nov 30, 2009 at 8:08 PM, Marshall Schor <ms...@schor.com> wrote:

>
>
> William Colen wrote:
> > Is the PEAR Packaging Maven Plugin working?
>
> I think so.  We're using the 2.3.0 (not yet released version) to build
> things for the 2.3.0 upcoming release.
> >  Couldn't access the
> > documentation at
> > http://incubator.apache.org/uima/sandbox.html#pear.maven.task
>
> The link is broken, as you have observed (not sure it ever was
> working...).  It looks like the documentation build for this is not
> saved in SVN, but it is available as part of the binary download for it
> (it is included in the 2.2.2 Sandbox distribution release, available
> from here:
>
> http://incubator.apache.org/uima/downloads.cgi#Latest%20Official%20Releases
>
>   Go to the part of the page labeled: UIMA Annotator Addons & Simple
> Server & Pear packaging tools to get it.
>
> > , also couldn't
> > make it work using the usage example at
> > http://incubator.apache.org/uima/doc-uima-pears.html
> >
>
> Can you say what is going wrong?
>
>
> > Thanks,
> > William
> >
> >
>

Re: PEAR Packaging Maven Plugin

Posted by Marshall Schor <ms...@schor.com>.

William Colen wrote:
> Is the PEAR Packaging Maven Plugin working?

I think so.  We're using the 2.3.0 (not yet released version) to build
things for the 2.3.0 upcoming release.
>  Couldn't access the
> documentation at
> http://incubator.apache.org/uima/sandbox.html#pear.maven.task

The link is broken, as you have observed (not sure it ever was
working...).  It looks like the documentation build for this is not
saved in SVN, but it is available as part of the binary download for it
(it is included in the 2.2.2 Sandbox distribution release, available
from here:
  
http://incubator.apache.org/uima/downloads.cgi#Latest%20Official%20Releases

   Go to the part of the page labeled: UIMA Annotator Addons & Simple
Server & Pear packaging tools to get it.

> , also couldn't
> make it work using the usage example at
> http://incubator.apache.org/uima/doc-uima-pears.html
>   

Can you say what is going wrong?


> Thanks,
> William
>
>