vashishthask / eclipse-to-maven Goto Github PK
View Code? Open in Web Editor NEWeclipse-to-maven mavenises the existing Eclipse based workspace.
eclipse-to-maven mavenises the existing Eclipse based workspace.
./CalculatorsComponent/Calculators Test/.classpath
./LendNetMaven/LendNet Debugging/.classpath
./LendNetMaven/LendNet Escrow Files/.classpath
./LendNetMaven/LendNet Supporting Files/.classpath
./LendNetProdSupport/Tibco Connectivity Test/.classpath
from cmd line:
C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb>mvn clean install exec:java -Dexec.args="C:\workspace\unit-test-performance-app"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building eclipse-to-maven 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ eclipse-to-maven ---
[INFO] Deleting C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ eclipse-to-maven ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ eclipse-to-maven ---
[INFO] Compiling 27 source files to C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ eclipse-to-maven ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ eclipse-to-maven ---
[INFO] Compiling 8 source files to C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ eclipse-to-maven ---
[INFO] Surefire report directory: C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target\surefire-reports
Running com.shri.eclipsetomaven.classpathentry.SrcClasspathEntryProcessorTest
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\com\shri\test\main\Sample.java1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\Sample.txt
Move file: C:\Users\DUDU-V
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\test\com\shri\test\model\SampleTest.java1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\test\model.txt
Move file: C:\Users\DUDU-V
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Temp\j
unit9160255822368614802\junit5271156327477186159\src\main\java]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java\com [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Te
mp\junit9160255822368614802\junit5271156327477186159\src\main\java\com]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java\com\shri [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Loc
al\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java\com\shri]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java\com\shri\test [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppDat
a\Local\Temp\junit9160255822368614802\junit5271156327477186159\src\main\java\com\shri\test]
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\Main\com\shri\test\model\Main.java1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\Main\main.txt
Move file: C:\Users\DUDU-V
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\Resources\com\shri\test\application.properties1\AppData\Local\Temp\junit9160255822368614802\junit5271156327477186159\Resources\sample.xml
Move file: C:\Users\DUDU-V
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec
Running com.shri.eclipsetomaven.EclipseToMavenFoldersMoverTest
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\com\shri\test\main\Sample.java1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\Sample.txt
Move file: C:\Users\DUDU-V
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Temp\j
unit4347015193647767913\junit5055663745695695478\src\main\java]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java\com [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Te
mp\junit4347015193647767913\junit5055663745695695478\src\main\java\com]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java\com\shri [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Loc
al\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java\com\shri]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java\com\shri\test [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppDat
a\Local\Temp\junit4347015193647767913\junit5055663745695695478\src\main\java\com\shri\test]
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\test\com\shri\test\model\Model.java1\AppData\Local\Temp\junit4347015193647767913\junit5055663745695695478\test\model.txt
Move file: C:\Users\DUDU-V
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit769123427887391049\junit6763822916948782805\Resources\com\shri\test\application.properties1\AppData\Local\Temp\junit769123427887391049\junit6763822916948782805\Resources\sample.xml
Move file: C:\Users\DUDU-V
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\Main\com\shri\test\main\Sample.java1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\Main\Sample.txt
Move file: C:\Users\DUDU-V
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\src\main\java [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Temp\ju
nit924006401548611483\junit2758470528754517694\src\main\java]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\src\main\java\com [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Local\Tem
p\junit924006401548611483\junit2758470528754517694\src\main\java\com]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\src\main\java\com\shri [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData\Loca
l\Temp\junit924006401548611483\junit2758470528754517694\src\main\java\com\shri]
Unable to move+++ C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\src\main\java\com\shri\test [java.nio.file.DirectoryNotEmptyException: C:\Users\DUDU-V1\AppData
\Local\Temp\junit924006401548611483\junit2758470528754517694\src\main\java\com\shri\test]
Move file: C:\Users\DUDU-V1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\Model\com\shri\test\model\Model.java1\AppData\Local\Temp\junit924006401548611483\junit2758470528754517694\Model\model.txt
Move file: C:\Users\DUDU-V
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
Running com.shri.eclipsetomaven.EclipseToMavenTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
Running com.shri.eclipsetomaven.pom.ClasspathToPomConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running com.shri.eclipsetomaven.pom.PomDependencyCreatorImplTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.021 sec
Running com.shri.eclipsetomaven.util.ClasspathUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running com.shri.eclipsetomaven.util.CopyTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.029 sec
Running com.shri.eclipsetomaven.util.XMLUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Results :
Tests run: 17, Failures: 0, Errors: 0, Skipped: 5
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ eclipse-to-maven ---
[INFO] Building jar: C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target\eclipse-to-maven-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ eclipse-to-maven ---
[INFO] Installing C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\target\eclipse-to-maven-0.0.1-SNAPSHOT.jar to C:\Users\Dudu - Vaio.m2\repository\com\shri\eclipsetomaven\eclipse-to-maven\0.0.1-S
NAPSHOT\eclipse-to-maven-0.0.1-SNAPSHOT.jar
[INFO] Installing C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb\pom.xml to C:\Users\Dudu - Vaio.m2\repository\com\shri\eclipsetomaven\eclipse-to-maven\0.0.1-SNAPSHOT\eclipse-to-maven-0.0.1-SNAP
SHOT.pom
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ eclipse-to-maven >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ eclipse-to-maven <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ eclipse-to-maven ---
Downloading: http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.pom
Downloaded: http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.pom (747 B at 0.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom (601 B at 0.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom (11 KB at 10.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar (52 KB at 17.6 KB/sec)
[WARNING]
java.lang.UnsupportedClassVersionError: com/shri/eclipsetomaven/EclipseToMaven : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:285)
at java.lang.Thread.run(Thread.java:662)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.207s
[INFO] Finished at: Sat May 05 15:19:36 IDT 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project eclipse-to-maven: An exception occured while executing the Java class. com/shri/eclipsetomaven/Ec
lipseToMaven : Unsupported major.minor version 51.0 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
C:\Workspaces\vashishthask-eclipse-to-maven-b63c8fb>
<classpathentry exported="true" kind="lib" path="/Component Repository/lib/com/oracle/ojdbc6/11.2.0.2.0/ojdbc6.zip"/>
<classpathentry exported="true" kind="lib" path="/projecta/lib/jakarta-oro-2.0.8-ols.jar"/>
<classpathentry kind="lib" path="lib/framework-5.0.2-java11.jar"/>
<classpathentry exported="true" kind="lib" path="/projecta/lib/test-framework-6.0.5-SNAPSHOT.jar" sourcepath="/Component Repository/lib/au/com/abc/test-framework/6.0.5-SNAPSHOT/test-framework-6.0.5-SNAPSHOT-sources.jar"/>
<classpathentry kind="lib" path="/Legal DB Web App/jakarta-oro-2.0.8-ols.jar"/>
<classpathentry exported="true" kind="lib" path="/Component Repository/lib/au/com/abc/testframework/2.3.0/depend/jce-jdk13-1.24.jar"/>
Great work you have done here and I am surprised you do not have more watchers for this project.
I am not getting dependency information written into pom.xml. This is the pom you created:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<artifactId>Child</artifactId>
<packaging>jar</packaging>
<name>Child</name>
<dependencyManagement>
<dependencies/>
</dependencyManagement>
</project>
from the following .classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/Parent"/>
<classpathentry kind="output" path="bin"/>
</classpath>
As you can see, it is missing reference to the Parent project. Ideas and thanks again.
Klaus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.