[
https://issues.apache.org/jira/browse/DERBY-6809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007713#comment-17007713
]
sagar edited comment on DERBY-6809 at 1/3/20 7:43 PM:
------------------------------------------------------
Happy New Year to you too and the Team Derby.
Yes steep learning curve awaits for achieving LOW HANGING FRUIT which started
this all. Auto upgrade code via IDE suggestions ... thats first step.
Have checked out the sources and opened the maven2 project in Netbeans and on
clicking Build I get the following error ... No idea why derbyshared.jar is
required ??? Isnt it supposed to be built via these sources itself.
Secondly no idea why the sources are not listed in Netbeans ... Havent used
Maven in Netbeans ... I see no sources in Netbeans and DItto in Eclipse.
cd /home/sagars/NetBeansProjects/derby/derby/maven2/commons;
JAVA_HOME=/home/sagars/amazon-corretto-11.0.5.10.1-linux-x64
/home/sagars/netbeans/java/maven/bin/mvn --errors -e install
Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building Apache Derby Shared Code ALPHA_VERSION
------------------------------------------------------------------------
— maven-remote-resources-plugin:1.2.1:process (default) @ derbyshared —
— maven-resources-plugin:2.5:resources (default-resources) @ derbyshared —
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/src/main/resources
Copying 3 resources
— maven-compiler-plugin:2.3.2:compile (default-compile) @ derbyshared —
No sources to compile
— maven-resources-plugin:2.5:testResources (default-testResources) @
derbyshared —
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/src/test/resources
Copying 3 resources
— maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ derbyshared —
No sources to compile
— maven-surefire-plugin:2.9:test (default-test) @ derbyshared —
Surefire report directory:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
— maven-jar-plugin:2.3.1:jar (default-jar) @ derbyshared —
Building jar:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/derbyshared-ALPHA_VERSION.jar
— maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @ derbyshared —
— maven-antrun-plugin:1.6:run (default) @ derbyshared —
Parameter tasks is deprecated, use target instead
Executing tasks
main:
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 6.139 s
Finished at: 2020-01-04T01:05:46+05:30
Final Memory: 16M/57M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run
(default) on project derbyshared: An Ant BuildException has occured: Warning:
Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (default) on project
derbyshared: An Ant BuildException has occured: Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
BuildException has occured: Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/antrun/build-main.xml:4:
Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:588)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:418)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
... 22 more
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the
following articles:
[Help 1]
[http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException]
was (Author: sagsaw):
Happy New Year to you too and the Team Derby.
Yes steep learning curve awaits for achieving LOW HANGING FRUIT which started
this all.
Have checked out the sources and opened the maven2 project in Netbeans and on
clicking Build I get the following error ... No idea why derbyshared.jar is
required ??? Isnt it supposed to be built via these sources itself.
Secondly no idea why the sources are not listed in Netbeans ... Havent used
Maven in Netbeans ... I see no sources in Netbeans and DItto in Eclipse.
cd /home/sagars/NetBeansProjects/derby/derby/maven2/commons;
JAVA_HOME=/home/sagars/amazon-corretto-11.0.5.10.1-linux-x64
/home/sagars/netbeans/java/maven/bin/mvn --errors -e install
Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building Apache Derby Shared Code ALPHA_VERSION
------------------------------------------------------------------------
--- maven-remote-resources-plugin:1.2.1:process (default) @ derbyshared ---
--- maven-resources-plugin:2.5:resources (default-resources) @ derbyshared ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/src/main/resources
Copying 3 resources
--- maven-compiler-plugin:2.3.2:compile (default-compile) @ derbyshared ---
No sources to compile
--- maven-resources-plugin:2.5:testResources (default-testResources) @
derbyshared ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/src/test/resources
Copying 3 resources
--- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ derbyshared
---
No sources to compile
--- maven-surefire-plugin:2.9:test (default-test) @ derbyshared ---
Surefire report directory:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-jar-plugin:2.3.1:jar (default-jar) @ derbyshared ---
Building jar:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/derbyshared-ALPHA_VERSION.jar
--- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @ derbyshared
---
--- maven-antrun-plugin:1.6:run (default) @ derbyshared ---
Parameter tasks is deprecated, use target instead
Executing tasks
main:
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 6.139 s
Finished at: 2020-01-04T01:05:46+05:30
Final Memory: 16M/57M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run
(default) on project derbyshared: An Ant BuildException has occured: Warning:
Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (default) on project
derbyshared: An Ant BuildException has occured: Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
BuildException has occured: Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by:
/home/sagars/NetBeansProjects/derby/derby/maven2/commons/target/antrun/build-main.xml:4:
Warning: Could not find file
/home/sagars/NetBeansProjects/derby/derby/jars/insane/derbyshared.jar to copy.
at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:588)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:418)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
... 22 more
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the
following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> Java 1.8 feature use
> --------------------
>
> Key: DERBY-6809
> URL: https://issues.apache.org/jira/browse/DERBY-6809
> Project: Derby
> Issue Type: Improvement
> Components: Network Server
> Affects Versions: 11.0.0.0
> Reporter: sagar
> Priority: Major
> Attachments: 2017-12-04-143613_1366x768_scrot.png, latest.png
>
>
> Suggestion ...
> Is it possible to auto modify the existing source code using tools like
> Netbeans, and take advantage of the new features in JDK 1.8 for better
> multiuser performance and better utilization of current day multicore
> processors?
> Plainly put, can we have from 11.0 onwards a version of derby which takes
> advantage of the advancements and new features in java 1.8 ...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)