2010-12-30 3 views
0

Ich versuche, die PrimeFaces 1.1-Quellen an meine Anwendungsanforderungen anzupassen. Allerdings habe ich Probleme beim Kompilieren der Quellen bekommen.Kompilieren von PrimeFaces 1.1

Ich verwende die Quellen aus:

http://repository.prime.com.tr/org/primefaces/primefaces/1.1/

heruntergeladen und extrahiert:

primefaces-1.1-sources.jar

aber wenn ich versuche, die primefaces-1.1 zu laufen. Es schlägt fehl, weil es auf einige XML-Dateien verweist, die die Tag-Informationen enthalten, aber ich konnte diese in den Quellen nicht finden. Ich nehme an, diese Build-Datei ist für PrimeFaces 2.x?

Oder fehlt mir etwas? Wäre toll wenn du mir helfen könntest!

Maven Mit „Install“


"c:\program files (x86)\jetbrains\intellij idea 10.0\jre\jre\bin\java" -Dclassworlds.conf=D:\Werk\Binaries\Maven\bin\m2.conf -Dmaven.home=D:\Werk\Binaries\Maven -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0\bin" -Dfile.encoding=windows-1252 -classpath "D:\Werk\Binaries\Maven\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --no-plugin-updates --strict-checksums --update-snapshots -f C:\Users\Mark\Downloads\primefaces-1.1-sources\pom.xml install 
[WARNING] Command line option -npu is deprecated and will be removed in future Maven versions. 
[WARNING] Command line option -npr is deprecated and will be removed in future Maven versions. 
[INFO] Scanning for projects... 
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.primefaces:primefaces:jar:1.1 
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 156, column 12 
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. 
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. 
[WARNING] 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building primefaces 1.1 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- xslt-maven-plugin:1.0:transform (generate-ui-metadata) @ primefaces --- 
[ERROR] XSL file does not exist: C:\Users\Mark\Downloads\primefaces-1.1-sources\src\main\resources-maven-jsf\misc\resolve_entities.xsl 
[INFO] 
[INFO] --- xslt-maven-plugin:1.0:transform (generate-touch-metadata) @ primefaces --- 
[ERROR] XSL file does not exist: C:\Users\Mark\Downloads\primefaces-1.1-sources\src\main\resources-maven-jsf\misc\resolve_entities.xsl 
[INFO] 
[INFO] --- maven-jsf-plugin:1.1.3:generate-tld (generate-ui) @ primefaces --- 
[INFO] Generating TLD 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.711s 
[INFO] Finished at: Thu Dec 30 11:29:43 CET 2010 
[INFO] Final Memory: 2M/15M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.primefaces:maven-jsf-plugin:1.1.3:generate-tld (generate-ui) on project primefaces: Execution generate-ui of goal org.primefaces:maven-jsf-plugin:1.1.3:generate-tld failed. NullPointerException -> [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/PluginExecutionException 

Process finished with exit code 1 
+0

können Sie Fehlerprotokoll –

Antwort

3

Wenn Sie nur eine einzige Klasse ändern müssen (oder wenige), kann es am einfachsten, allein dieser Klasse Quellcode zu nehmen, modifizieren und kompilieren es mit der Rest von Primefaces als JAR im Klassenpfad, dann ersetzen Sie diese einzelne Klassendatei in der JAR.

+0

Dank diese Lösung funktioniert! :) –

+0

Einfache Lösung :) – Jitesh