Masalah Semasa Setup Epco Asw
بِسْـــــــــمِ ﷲِالرَّحْمَنِ الرَّحِيم. اَللَّهُمَّ صَلِّى عَلَى مُحَمَّدٍٍ، وَعَلَى آلِهِ مُحَمَّدٍٍ
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=ojdbc14-10.2.0.4.0.jar -DgeneratePom=truemvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=ojdbc14-10.2.0.4.0.jar -DgeneratePom=true
<?xml version="1.0" encoding="UTF-8"?><project> <modelVersion>4.0.0</modelVersion> <groupId>javax.transaction</groupId> <artifactId>jta</artifactId> <version>1.0.1B</version></project>
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=jta-1.0.1B.jar -DgeneratePom=true
https://stackoverflow.com/questions/1074869/find-oracle-jdbc-driver-in-maven-repository
http://www.java2s.com/Code/Jar/o/Downloadojdbc14102040jar.htm
Failed to execute goal on project dntasw: Could not resolve dependencies for project com.syarikat.asw:dntasw:jar:1.0: Failed to collect dependencies at com.oracle:ojdbc14:jar:10.2.0.4.0: Failed to read artifact descriptor for com.oracle:ojdbc14:jar:10.2.0.4.0: Could not transfer artifact com.oracle:ojdbc14:pom:10.2.0.4.0 from/to central (http://repo1.maven.org/maven2): Transfer failed for http://repo1.maven.org/maven2/com/oracle/ojdbc14/10.2.0.4.0/ojdbc14-10.2.0.4.0.pom: Unknown host repo1.maven.org -> [Help 1]
Penyelesaian: install ojdbc manual ke dalam local maven repo
Failed to execute goal on project dntasw: Could not resolve dependencies for project com.syarikat.asw:dntasw:jar:1.0: Could not transfer artifact javax.transaction:jta:jar:1.0.1B from/to appfuse (http://static.appfuse.org/repository): Transfer failed for http://static.appfuse.org/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar: Unknown host static.appfuse.org -> [Help 1]
'build.plugins.plugin.version' for org.codehaus.mojo:appassembler-maven-plugin is missing. @ line 197, column 21
--- aspectj-maven-plugin:1.0-beta-2:compile (default) @ dntasw ---bad version number found in C:\Users\user\.m2\repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3
TRY tukar JDK 6https://www.oracle.com/java/technologies/javase-java-archive-javase6-downloads.html
SELEPAS TUKAR JDK 6cd D:\NetBeansProjects\asw; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_45" M2_HOME=C:\\apache-maven-3.6.3 cmd /c "\"C:\\apache-maven-3.6.3\\bin\\mvn.cmd\" -DskipTests=true clean install package appassembler:assemble -Dmaven.test.skip=true"java.lang.UnsupportedClassVersionError: org/codehaus/plexus/classworlds/launcher/Launcher : 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)Could not find the main class: org.codehaus.plexus.classworlds.launcher.Launcher. Program will exit.Exception in thread "main"
REASON:
According to maven website, the last version to support Java 6 is 3.2.5, and 3.3 and up use Java 7. My hunch is that you're using Maven 3.3 or higher, and should either upgrade to Java 7 (and set proper source/target attributes in your pom) or downgrade maven.
https://stackoverflow.com/questions/31394456/java-6-unsupported-major-minor-version-51-0
java.lang.ArrayIndexOutOfBoundsException: 26721 at org.aspectj.org.objectweb.asm.ClassReader.readClassokay selepas tukar ke JDK 7
Tukar ke JDK 7
OK lepas guna JDK 7, dapat error ni pula
Failed to execute goal on project dntasw: Could not resolve dependencies for project com.syarikat.asw:dntasw:jar:1.0: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:2.0.2 -> org.codehaus.plexus:plexus-compiler-api:jar:1.5.3: Failed to read artifact descriptor for org.codehaus.plexus:plexus-compiler-api:jar:1.5.3: Could not transfer artifact org.codehaus.plexus:plexus-compiler-api:pom:1.5.3 from/to central (https://repo1.maven.org/maven2): Transfer failed for https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.pom: Received fatal alert: protocol_version -> [Help 1]
https://stackoverflow.com/questions/50824789/why-am-i-getting-received-fatal-alert-protocol-version-or-peer-not-authentic
Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2:hbm2ddl (default) on project dntasw: Execution default of goal org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2:hbm2ddl failed: Plugin org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:hibernate3-maven-plugin:jar:2.0-alpha-2 -> plexus:plexus-utils:jar:1.0.3: Failed to read artifact descriptor for plexus:plexus-utils:jar:1.0.3: Could not transfer artifact plexus:plexus-utils:pom:1.0.3 from/to central (https://repo1.maven.org/maven2): Transfer failed for https://repo1.maven.org/maven2/plexus/plexus-utils/1.0.3/plexus-utils-1.0.3.pom: Received fatal alert: protocol_version -> [Help 1]
Kena enable TLS untuk JDK 7, contoh:
D:\NetBeansProjects\asw>mvn -Dhttps.protocols=TLSv1.2 clean install -X
~~~
jika kiriman ini bermanfaat, tolong lawat iklan yang ada ya, terima kasih
Artikel ini hanyalah simpanan cache dari url asal penulis yang berkebarangkalian sudah terlalu lama atau sudah dibuang :
http://www.interpretzz.com/2021/03/masalah-semasa-setup-epco-asw.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Interpretzz+%28interpretZZ%29