On 10.11.2013 10:58, Matthias Scholz wrote:
> Hi Ede,
> 
> at the moment I've no luck with maven :-(
> May it be possible, that the "Refractions Research Maven 2 Repository" 
> is down or have some trouble? I do not get the commons-compress artifact 
> at the moment:
> 
> "Failed to execute goal on project OpenJUMP: Could not resolve 
> dependencies for project org.openjump:OpenJUMP:jar:snapshot: Could not 
> find artifact org.apache.commons:commons-compress:jar:1.6-SNAPSHOT in 
> refractions (http://lists.refractions.net/m2)"

the artifact actually resides on 
 http://repository.apache.org/snapshots
which is defined later in the pom.

when not finding artifacts maven stupidly seems to just list the first 
configured repository.

you are in bad luck ;) apache just removed the snapshot from their mvn servers, 
maybe because they released compress-1.6 eventually. i'll  modify the pom 
accordingly.

additionally i just setup a mirroring of our snapshot m2 repository, so that 
once used libs cannot disappear so easily anymore on us.

> The Netbeans Maven repository browser shows no entries in this repository.
> 
> My second problem comes from the imageio-ext libs. You wrote, that i 
> have to add lib/imageio-ext/*.jar to the classpath. 

that goes only if you manually define a build path

>But in Maven 
> projects the classpath setting should be handled by Maven and not 
> manually. In Netbeans I have no possibility to set an additional 
> classpath entry. The only way to get OJ running from my IDE is to 
> comment out the "<scope>provided</scope>". This is not really optimal. 
> Are there any reasons for <scope>provided</scope>at the imageio-ext 
> libs? Do we have other possibilities?

probably ;) and i see your point, as i only use maven to build on a server for 
the snapshots/releases i didn't consider this scenario.

but before i jump through hoops, why don't you just define a manual run 
configuration? this should be the way to go in any way as we have lot's of 
runtime parameters and even changes to the classpath sometimes modify OJ 
behaviour.

i am no NetBeans user, so i may be wrong with the above. if so, there is 
definitely a way to hack pom so that you give Exec plugin more/other parameters
 
http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-using-plugin-dependencies.html
so you might want to investigate that road. as said, currently it is with the 
build/packaging in mind. this is what i use and can doublecheck in my 
environment.

..ede

> 
> Thanks
> 
> Matthias
> 
>> add lib/imageio-ext/*.jar to your classpath.. ede
>>
>> On 18.10.2013 19:48, Matthias Scholz wrote:
>>> Am 18.10.2013 12:16, schrieb edgar.sol...@web.de:
>>>> On 18.10.2013 11:04, Matthias Scholz wrote:
>>>>> Failed to execute goal on project OpenJUMP: Could not resolve
>>>>> dependencies for project org.openjump:OpenJUMP:jar:snapshot: Could not
>>>>> find artifact
>>>>> org.apache.commons:commons-compress:jar:1.6-20130810.172126-39 in
>>>>> refractions (http://lists.refractions.net/m2) -> [Help 1]
>>>> my bad.. please update and retry.. ede
>>> No problem. Thanks for your fast response :-)
>>>
>>> But OJ do not start on my linux box:
>>>
>>> java.lang.NoClassDefFoundError:
>>> it/geosolutions/imageio/gdalframework/GDALImageReaderSpi
>>>       at java.lang.ClassLoader.defineClass1(Native Method)
>>>       at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
>>>       at
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>>>       at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>>>       at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>>       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>       at java.security.AccessController.doPrivileged(Native Method)
>>>       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>       at
>>> com.vividsolutions.jump.workbench.imagery.geoimg.GeoImageFactory.<init>(GeoImageFactory.java:82)
>>>       at
>>> com.vividsolutions.jump.workbench.imagery.geoimg.GeoImageFactoryFileLayerLoader.register(GeoImageFactoryFileLayerLoader.java:43)
>>>       at
>>> org.openjump.OpenJumpConfiguration.postExtensionInitialization(OpenJumpConfiguration.java:637)
>>>       at
>>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:438)
>>>       at
>>> com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:381)
>>> Caused by: java.lang.ClassNotFoundException:
>>> it.geosolutions.imageio.gdalframework.GDALImageReaderSpi
>>>       at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>       at java.security.AccessController.doPrivileged(Native Method)
>>>       at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>       ... 17 more
>>>
>>> Not my day ....
>>>
>>>
>>> Regards
>>>
>>> Matthias
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most 
>>>> from
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to