Primefaces: Build project gives errors - jsf

I tried to checkout PrimeFaces source codes from here
But when i try to open it from it's pom.xml and building it gives 187 errors exactly like DataTable Class not found or Carousel... not found etc.

After checking out the sources in the directory where pom.xml is type:
mvn install
This should download the required dependencies, compile the sources and package the binaries. At the end you will see something like:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Thu Nov 01 06:33:24 CET 2012
[INFO] Final Memory: 41M/366M
[INFO] ------------------------------------------------------------------------

Related

Override Maven's download of a 3rd party software with a local copy?

I am running the 32-bit build of Ubuntu 18.04 and attempting to build a 32-bit Jenkins from the source.
It fails in the last stage (see below) because it cannot find a Linux x86 build of Nodejs. They don't make 32-bit versions for Linux anymore. I'm fine with that - I have downloaded the 14.15.4 Nodejs sources and built my own 32-bit version. How can I override the Jenkins maven build that is attempting to download a non-existent package directly from the Nodejs distribution site?
I have tried prepositioning my home-built node-14.15.4-linux-x86.tar.gz in the appropriate location, but the build is getting killed because the package does not exist on the website it is attempting to download from (404 - Not Found). If I could stop it trying to download or tell it to pull the .tar.gz package from the local filesystem, I think that should fix the problem. I haven't found anything online and maven configurations are completely foreign to me.
[INFO] Installing node version v14.15.4
[INFO] Downloading https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-x86.tar.gz to /home/scott/.m2/repository/com/github/eirslett/node/14.15.4/node-14.15.4-linux-x86.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jenkins main module 2.275-SNAPSHOT:
[INFO]
[INFO] Jenkins main module ................................ SUCCESS [ 4.868 s]
[INFO] Jenkins BOM ........................................ SUCCESS [ 0.156 s]
[INFO] Jenkins cli ........................................ SUCCESS [ 10.285 s]
[INFO] Jenkins core ....................................... SUCCESS [01:12 min]
[INFO] Jenkins war ........................................ FAILURE [ 4.536 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:35 min
[INFO] Finished at: 2021-01-08T00:47:30-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:install-node-and-yarn (install node and yarn) on project jenkins-war: Could not download Node.js: Got error code 404 from the server. -> [Help 1]

Failure to operate liquibase checksum - server time - with Jhipster project

I want to operate basic liquibase operations with maven in a Jhipster project. I'm using nvm 10.16.1 and Jhipster 6.2.0. I get a message error.
I checked the if the precognized line for server time error was in my app-dev and yes it is.
url: jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
Here is the message error:
INFO] Starting Liquibase at lun., 12 août 2019 10:54:40 CEST (version 3.6.3 built at 2019-01-29 11:34:48)
[INFO] Settings
----------------------------
[INFO] driver: com.mysql.cj.jdbc.Driver
[INFO] url: jdbc:mysql://localhost:3306/project
[INFO] username: root
[INFO] password: *****
[INFO] use empty password: false
[INFO] properties file: null
[INFO] properties file will override? false
[INFO] prompt on non-local database? true
[INFO] clear checksums? false
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.394 s
[INFO] Finished at: 2019-08-12T10:54:41+02:00
[INFO] Final Memory: 31M/353M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.liquibase:liquibase-maven- plugin:3.6.3:clearCheckSums (default-cli) on project project: Error setting up or running Liquibase: liquibase.exception.DatabaseException: java.sql.SQLException: The server time zone value 'Paris, Madrid (heure d��t�)' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. -> [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
Process finished with exit code 1
TRY 2 : put the url in pom xml
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.version}</version>
<configuration>
<changeLogFile>${project.basedir}/src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile>${project.basedir}/src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>com.mysql.cj.jdbc.Driver</driver>
<url>jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC</url>
<defaultSchemaName>project</defaultSchemaName>
<username>root</username>
<password>*******</password>
<referenceUrl>hibernate:spring:fr.project.domain?dialect=org.hibernate.dialect.MySQL5InnoDBDialect&hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
<verbose>true</verbose>
<logging>debug</logging>
<contexts>!test</contexts>
</configuration>
The new error is:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM
C:\Users\clari\Documents\project\pom.xml: entity reference name can not
contain character =' (position: START_TAG seen
...mysql://localhost:3306/project?useUnicode=true&characterEncoding=...
#561:101) # line 561, column 101
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project
(C:\Users\clari\Documents\project\pom.xml) has 1 error
[ERROR] Non-parseable POM
C:\Users\clari\Documents\project\pom.xml: entity reference name can not contain character =' (position: START_TAG seen ...mysql://localhost:3306/project?useUnicode=true&characterEncoding=... #561:101) # line 561, column 101 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
Process finished with exit code 1
Could you please help me?
Thanks :)
You trace shows that you use liquibase-maven-plugin to execute clearCheckSums goal, the JDBC URL in application-dev.yml is read only by your java application not by maven liquibase plugin.
You must configure it also in pom.xml in the url property of liquibase-maven-plugin.
Warning, the & characters in the <url> should be encodes as XML entity &.
<url>jdbc:mysql://localhost:3306/project?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC</url>

Connecting Blob to Spark failing

I am trying to connect spark coming in Hortonworks 2.4 distribution to Azure Blob storage and I was getting error "wasb filesystem not recognized " . I checked and many suggested downloading azure-sdk-for-java and creating package.
I am trying to create package using mvn but while running both mvn test and mvn package ; the process is getting hanged while testing. There is no error given , it just failed to return anything. I had changed testconfiguration.xml to reflect my blob account name. Below is the log files I am getting.
Is there something else that needs to be done to get jars ?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Microsoft Azure Storage Client SDK 4.3.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # azure-storage ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/adminhorton/kspark/azure-storage-java-master/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # azure-storage ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # azure-storage ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # azure-storage ---
[INFO] Compiling 52 source files to /home/adminhorton/kspark/azure-storage-java-master/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.13:test (default-test) # azure-storage ---
[INFO] Surefire report directory: /home/adminhorton/kspark/azure-storage-java-master/target/surefire-reports
T E S T S
parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
Running com.microsoft.azure.storage.StorageAccountTests
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
Running com.microsoft.azure.storage.StorageUriTests
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
com.microsoft.azure.storage.StorageAccountTests.txt
com.microsoft.azure.storage.StorageUriTests.txt
com.microsoft.azure.storage.StorageAccountTests.txt
com.microsoft.azure.storage.StorageUriTests.txt
According to your description, I am not sure you have configured your Storage Configuration rightly in your project. So I recommend you can follow these steps to check your configurations:
1.Create your Azure storage Account and set it in core-site.xml as this format:
<property>
<name>fs.azure.account.key.youraccount.blob.core.windows.net</name>
<value>YOUR ACCESS KEY</value>
</property>
2.Restart the HDP service and use the Hadoop fs –ls wasb://**.blob.core.windows.net/ to list the files in the container.
I strongly recommend you can refer to this blog how-to-configure-hortonworks-hdp-to-access-azure-windows-storage and official document.
Meanwhile , #Yuval provided the great sample about how to connect to Azure blob with Java SDK.

Why does version appear twice in the artefact name when publishing?

When using the sbt-native-packager to publish artefacts, the version appears twice in the artefact name.
project/plugins.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")
build.sbt
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
packageArchetype.java_server
name := "name"
version := "version"
publishTo := Some("fake" at "http://oss.sonatype.org/nexus/content/repositories/fake")
deploymentSettings
SBT session
> universal:normalizedName
[info] name
> universal:version
[info] version
> universal:name
[info] name-version
> universal:publishLocal
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/zips/name-version.zip
[info] published name-version to /Users/synesso/.ivy2/local/name/name-version
/version/tgzs/name-version.tgz
[success] Total time: 1 s, completed 10/06/2014 4:37:16 PM
> universal:publish
[info] Wrote /Users/synesso/projects/z/target/scala-2.10/name_2.10-version.pom
a name-version
a name-version/lib
a name-version/lib/name.name-version.jar
a name-version/lib/org.scala-lang.scala-library-2.10.3.jar
[trace] Stack trace suppressed: run last universal:publish for the full output.
[error] (universal:publish) java.io.IOException: PUT operation to URL
http://oss.sonatype.org/nexus/content/repositories/fake/name/
name-version/version/name-version-version.zip failed with status code 301:
Moved Permanently
[error] Total time: 9 s, completed 10/06/2014 4:38:20 PM
When publishing locally the artefact name is OK, but publishing remotely gives an artefact name with "version" in it twice. (name-version-version.zip) Why? How do I ensure it appears only once?
This is a bug with the plugin. https://github.com/sbt/sbt-native-packager/issues/270, fixed in 0.8.0-M1

J2OBJC make dist "no rule to make target" error

I'm trying to build j2objc on my Ubuntu Desktop, and I get this error:
`root#craig-OptiPlex-3020:/home/craig/j2objc-0.8.8# make dist
./scripts/sysroot_path.sh: line 30: xcode-select: command not found
../scripts/sysroot_path.sh: line 30: xcode-select: command not found
make[1]: Entering directory /home/craig/j2objc-0.8.8/annotations'
Building j2objc annotations
make[1]: Leaving directory /home/craig/j2objc-0.8.8/annotations'
../scripts/sysroot_path.sh: line 30: xcode-select: command not found
make[1]: Entering directory /home/craig/j2objc-0.8.8/java_deps'
mvn generate-resources dependency:sources
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building j2objc 0.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.5:copy-dependencies (copy-dependencies) # j2objc ---
[INFO] Copying org.eclipse.equinox.common-3.6.0.v20100503.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.equinox.common-3.6.0.v20100503.jar
[INFO] Copying org.eclipse.core.resources-3.6.0.v20100526-0737.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.resources-3.6.0.v20100526-0737.jar
[INFO] Copying org.eclipse.core.runtime-3.6.0.v20100505.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.runtime-3.6.0.v20100505.jar
[INFO] Copying org.eclipse.core.jobs-3.5.0.v20100515.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.jobs-3.5.0.v20100515.jar
[INFO] Copying org.eclipse.core.contenttype-3.4.100.v20100505-1235.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.core.contenttype-3.4.100.v20100505-1235.jar
[INFO] Copying org.eclipse.text-3.5.100.v20110505-0800.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.text-3.5.100.v20110505-0800.jar
[INFO] Copying junit-4.10.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/junit-4.10.jar
[INFO] Copying mockito-core-1.9.5.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/mockito-core-1.9.5.jar
[INFO] Copying org.eclipse.equinox.preferences-3.3.0.v20100503.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.equinox.preferences-3.3.0.v20100503.jar
[INFO] Copying jsr305-2.0.2.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/jsr305-2.0.2.jar
[INFO] Copying org.eclipse.osgi-3.6.0.v20100517.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.osgi-3.6.0.v20100517.jar
[INFO] Copying org.eclipse.jdt.core-3.8.1.v20120531-0637.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/org.eclipse.jdt.core-3.8.1.v20120531-0637.jar
[INFO] Copying guava-13.0.jar to /home/craig/j2objc-0.8.8/java_deps/build_result/guava-13.0.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.5:sources (default-cli) # j2objc ---
[INFO]
[INFO] The following files have been resolved:
[INFO] org.hamcrest:hamcrest-core:java-source:sources:1.1
[INFO] org.eclipse.core:org.eclipse.core.jobs:java-source:sources:3.5.0.v20100515
[INFO] org.objenesis:objenesis:java-source:sources:1.0
[INFO] org.eclipse.core:org.eclipse.core.contenttype:java-source:sources:3.4.100.v20100505-1235
[INFO] org.jibx.config.3rdparty.org.eclipse:org.eclipse.text:java-source:sources:3.5.100.v20110505-0800
[INFO] org.eclipse.tycho:org.eclipse.jdt.core:java-source:sources:3.8.1.v20120531-0637
[INFO] com.google.guava:guava:java-source:sources:13.0
[INFO] org.eclipse.osgi:org.eclipse.osgi:java-source:sources:3.6.0.v20100517
[INFO] org.mockito:mockito-core:java-source:sources:1.9.5
[INFO] org.eclipse.equinox:org.eclipse.equinox.common:java-source:sources:3.6.0.v20100503
[INFO] org.eclipse.equinox:org.eclipse.equinox.preferences:java-source:sources:3.3.0.v20100503
[INFO] org.eclipse.core:org.eclipse.core.runtime:java-source:sources:3.6.0.v20100505
[INFO] junit:junit:java-source:sources:4.10
[INFO] org.eclipse.core:org.eclipse.core.resources:java-source:sources:3.6.0.v20100526-0737
[INFO]
[INFO] The following files have NOT been resolved:
[INFO] com.google.code.findbugs:jsr305:java-source:sources:2.0.2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.419s
[INFO] Finished at: Sun Apr 27 12:17:40 EDT 2014
[INFO] Final Memory: 10M/171M
[INFO] ------------------------------------------------------------------------
make[1]: *** No rule to make target /usr/local/apache-maven-3.0.5//repository/com/google/code/findbugs/jsr305/2.0.2/jsr305-2.0.2.jar', needed by /home/craig/j2objc-0.8.8/java_deps/build_result/jsr305-2.0.2.jar'. Stop.
make[1]: Leaving directory /home/craig/j2objc-0.8.8/java_deps'
make: *** [java_deps_dist] Error 2`
Before I tell you what I've tried, here's my info on my system, java version, and Maven version:
Mac OSX version - 10.9.2
Java version "1.7.0_51", OpenJDK Runtime Environment (IcedTea 2.4.6) (7u51-2.4.6-1ubuntu4)
Maven version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
Here's What I've tried:
Firstly, I've already looked at this thread and this thread since they had the same errors. Both haven't helped.
1. Deleting ~/.m2 then running make clean and make dist
2. running "mvn generate-resources dependency:sources" in the java_deps sub-directory, then running make clean and make dist
3. Updating Java and Maven versions to the most recent versions - as well as downgrading the versions.
4. Set M2_HOME to ~/.m2
5. Created a settings.xml file in the directory ~/.m2 with the following tag:
<localRepository>$M2_HOME/repository</localRepository>
Any help would be awesome, this thing is giving me a headache.
Thanks in advance.
I finally found the fix to this. From the top...
Downloaded/installed Maven's latest version...
Downloaded j2objc-0.9.1...
set the path for Maven...
export M2_HOME=/Users/Craig/apache-maven-3.2.1
export PATH=$PATH:$M2_HOME/bin
ran 'make dist'...it still gave me the error above
i then changed this path...
export M2_HOME=~/.m2
ran 'make'
WORKED!
Maven was looking at the wrong location for "../repository/com/google/findbugs/jsr305/2.0.2/jsr305-2.0.2.jar".
Changing the path before you run 'make' fixes this issue.
Once the make command finishes, run:
export PATH=$PATH:/<j2objc location>/dist
This allows you to use the commands j2objc and j2objcc.

Resources