Problem with iso9660-maven-plugin

2014-07-03 Thread Roland Asmann
Hi all,

I am trying to switch one of our 'projects' to Maven and am running into 
some problems.

The project consists of some shell-scripts (which I want to replace with 
Maven) and configurations to build an Ubuntu pre-seed Image. What the 
scripts do in short:
- Mount an Ubuntu image
- Copy its content to a directory to work in
- Add our configurations
- Create a new Image

I have found a plugin to extract the image without mounting it (getting 
rid of the need for 'sudo' in our script) and copying the configurations 
is peanuts any day.
To repackage the image, I looked into the iso9660-maven-plugin, which 
was said to do just that.

Now, when I run my project, it always stops with the following error:

[ERROR] Failed to execute goal 
com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso 
(default) on project test: Execution default of goal 
com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso 
failed: String index out of range: 41 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso 
(default) on project test: Execution default of goal 
com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso 
failed: String index out of range: 41
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default of goal 
com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso 
failed: String index out of range: 41
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out 
of range: 41
at java.lang.String.substring(String.java:1946)
at 
com.github.stephenc.javaisotools.joliet.impl.JolietNamingConventions.apply(JolietNamingConventions.java:89)
at 
com.github.stephenc.javaisotools.iso9660.NamingConventions.processDirectory(NamingConventions.java:233)
at 
com.github.stephenc.javaisotools.iso9660.impl.ISO9660Factory.applyNamingConventions(ISO9660Factory.java:79)
at 
com.github.stephenc.javaisotools.joliet.impl.JolietHandler.(JolietHandler.java:60)
at 
com.github.stephenc.javaisotools.iso9660.impl.CreateISO.process(CreateISO.java:52)
at 
com.github.stephenc.javaisotools.maven.PackageMojo.execute(PackageMojo.java:317)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more

Looking through the code, it seems the plugin thinks the filename is too 
long. I added some logging and built a SNAPSHOT version to play with, 
but I am not quite sure about the calculation of the filename-length. 
All names that go in are exactly 64 characters long, but the plugin 
wants to shorten them still.

I was hoping that Mr. Connolly could perhaps take another look at it and 
give me some pointer/update the current version to work correctly.

A simple test-case is to just unpack an Ubuntu image (I was testing with 
10.04.4 amd64) and try to repackage it.

Thanks.

Roland


Re: Problem with iso9660-maven-plugin

2014-07-03 Thread Stephen Connolly
iso9660 limits filenames to 8+3 IIRC.

I have not had any reason to maintain that plugin in quite some time. If
you have pull requests let me know and I may find some time to investigate,
but I'm not making any promises given my current time commitments


On 3 July 2014 15:35, Roland Asmann  wrote:

> Hi all,
>
> I am trying to switch one of our 'projects' to Maven and am running into
> some problems.
>
> The project consists of some shell-scripts (which I want to replace with
> Maven) and configurations to build an Ubuntu pre-seed Image. What the
> scripts do in short:
> - Mount an Ubuntu image
> - Copy its content to a directory to work in
> - Add our configurations
> - Create a new Image
>
> I have found a plugin to extract the image without mounting it (getting
> rid of the need for 'sudo' in our script) and copying the configurations
> is peanuts any day.
> To repackage the image, I looked into the iso9660-maven-plugin, which
> was said to do just that.
>
> Now, when I run my project, it always stops with the following error:
>
> [ERROR] Failed to execute goal
> com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
> (default) on project test: Execution default of goal
> com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
> failed: String index out of range: 41 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal
> com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
> (default) on project test: Execution default of goal
> com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
> failed: String index out of range: 41
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:622)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default of goal
> com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
> failed: String index out of range: 41
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out
> of range: 41
> at java.lang.String.substring(String.java:1946)
> at
>
> com.github.stephenc.javaisotools.joliet.impl.JolietNamingConventions.apply(JolietNamingConventions.java:89)
> at
>
> com.github.stephenc.javaisotools.iso9660.NamingConventions.processDirectory(NamingConventions.java:233)
> at
>
> com.github.stephenc.javaisotools.iso9660.impl.ISO9660Factory.applyNamingConventions(ISO9660Factory.java:79)
> at
>
> com.github.stephenc.javaisotools.joliet.impl.JolietHandler.(JolietHandler.java:60)
> at
>
> com.github.stephenc.javaisotools.iso9660.impl.CreateISO.process(CreateISO.java:52)
> at
>
> com.github.stephenc.javaisotools.maven.PackageMojo.execute(PackageMojo.java:317)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> ... 20 more
>
> Looking through the code, it seems the plugin thinks the filename is too
> long. I added some logging and built a SNAPSHOT version to play with

Re: Problem with iso9660-maven-plugin

2014-07-03 Thread Roland Asmann
It seems this is a known issue: 
https://github.com/stephenc/java-iso-tools/issues/3

After changing this, I was able to generate my ISO, but I was unable to 
use it to boot a machine. I think this might be caused by another known 
issue: https://github.com/stephenc/java-iso-tools/issues/7

I'll see if I can figure something out, otherwise I will probably use 
the exec-plugin and run mkisofs as before...


On 03/07/14 17:52, Stephen Connolly wrote:
> iso9660 limits filenames to 8+3 IIRC.
>
> I have not had any reason to maintain that plugin in quite some time. If
> you have pull requests let me know and I may find some time to investigate,
> but I'm not making any promises given my current time commitments
>
>
> On 3 July 2014 15:35, Roland Asmann  wrote:
>
>  > Hi all,
>  >
>  > I am trying to switch one of our 'projects' to Maven and am running into
>  > some problems.
>  >
>  > The project consists of some shell-scripts (which I want to replace with
>  > Maven) and configurations to build an Ubuntu pre-seed Image. What the
>  > scripts do in short:
>  > - Mount an Ubuntu image
>  > - Copy its content to a directory to work in
>  > - Add our configurations
>  > - Create a new Image
>  >
>  > I have found a plugin to extract the image without mounting it (getting
>  > rid of the need for 'sudo' in our script) and copying the configurations
>  > is peanuts any day.
>  > To repackage the image, I looked into the iso9660-maven-plugin, which
>  > was said to do just that.
>  >
>  > Now, when I run my project, it always stops with the following error:
>  >
>  > [ERROR] Failed to execute goal
>  > com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
>  > (default) on project test: Execution default of goal
>  > com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
>  > failed: String index out of range: 41 -> [Help 1]
>  > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>  > execute goal
>  > com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
>  > (default) on project test: Execution default of goal
>  > com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
>  > failed: String index out of range: 41
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>  > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>  > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>  > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>  > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>  > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>  > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  > at
>  >
>  >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>  > at
>  >
>  >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  > at java.lang.reflect.Method.invoke(Method.java:622)
>  > at
>  >
>  >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>  > at
>  >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>  > at
>  >
>  >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>  > at
>  > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>  > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>  > default of goal
>  > com.github.stephenc.java-iso-tools:iso9660-maven-plugin:2.0.0:iso
>  > failed: String index out of range: 41
>  > at
>  >
>  >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>  > at
>  >
>  >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>  > ... 19 more
>  > Caused by: java.lang.StringIndexOutOfBoundsException: String index out
>  > of range: 41
>  > at java.lang.String.substring(String.java:1946)
>  > at
>  >
>  >
> com.github.stephenc.javaisotools.joliet.impl.JolietNamingConventions.apply(JolietNamingConventions.java:89)
>  > at
>  >
>  >
> com.github.stephenc.java

Re: M2E and Eclipse Luna ?

2014-07-03 Thread Dan Tran
looks like i am seeing this issue

http://dev.eclipse.org/mhonarc/lists/m2e-users/msg04471.html

-D


On Mon, Jun 30, 2014 at 8:53 PM, Dan Tran  wrote:

> Hello Jason
>
> which one  can we use to handle maven-plugin-plugin issue at Eclipse Luna?
>
> Possible to configure your nexus to use port 80 so that some of use with
> strict corp firewall policy can access it?
>
> Thanks
>
> -Dan
>
>
>
>
> On Fri, Jun 27, 2014 at 11:49 AM, Jason van Zyl  wrote:
>
>> All the extras now live as separate installable units here:
>>
>> http://repository.takari.io:8081/nexus/content/sites/m2e.extras/
>>
>> On Jun 27, 2014, at 12:42 PM, Dan Tran  wrote:
>>
>> > My apology,  should have been clearer
>> >
>> > I installed Eclipse Luna and
>> >
>> https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206
>> >
>> > the message at the pom is "Plugin execution not covered by lifecycle
>> > configuration:
>> org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor
>> > (execution: default-descriptor, phase: process-classes)"
>> >
>> > Thanks
>> >
>> > -D
>> >
>> >
>> >
>> >
>> > On Fri, Jun 27, 2014 at 4:21 AM, Jason van Zyl  wrote:
>> >
>> >> What exactly are you seeing? I have several plugins using the
>> >> "maven-plugin" packaging and they appear fine.
>> >>
>> >> On Jun 26, 2014, at 11:15 PM, Dan Tran  wrote:
>> >>
>> >>> I just try the latest eclipse and try to build exec-mojo-plugin at
>> MOJO,
>> >>> looks like m2e does not recognize maven-plugin-plugin
>> >>>
>> >>> Any one else seeing this?
>> >>>
>> >>> Thanks
>> >>>
>> >>> -D
>> >>
>> >> Thanks,
>> >>
>> >> Jason
>> >>
>> >> --
>> >> Jason van Zyl
>> >> Founder,  Apache Maven
>> >> http://twitter.com/jvanzyl
>> >> http://twitter.com/takari_io
>> >> -
>> >>
>> >> Selfish deeds are the shortest path to self destruction.
>> >>
>> >> -- The Seven Samuari, Akira Kurosawa
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>>
>> Thanks,
>>
>> Jason
>>
>> --
>> Jason van Zyl
>> Founder,  Apache Maven
>> http://twitter.com/jvanzyl
>> http://twitter.com/takari_io
>> -
>>
>> Three people can keep a secret provided two of them are dead.
>>
>>  -- Benjamin Franklin
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>


Re: Plugin to invoke SQLLDR

2014-07-03 Thread Michael Osipov

Am 2014-06-26 23:12, schrieb hanuman:

Hi All,

I am planning to invoke SQLLDR from in the POM.xml.
any idea which plugin we can use to invoke the same?


The best approach here is use Antrun Plugin or Exec. Externalize the 
password and do NOT pass as command line arg better yet -- use Oracle 
Wallet.


Michael


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