How to integrate Theme Spark - primefaces with Maven

1

Can anyone help me with my problem? I'm trying to integrate Theme Spark with maven to raise the theme. However, I'm having a lot of difficulties.

link

I looked in the documentation and did not have any instructions teaching how to perform the installation procedure of the theme.

Thank you

    
asked by anonymous 08.11.2015 / 19:56

2 answers

1

As a premium theme, it will not be open to the public unless you pay.

Probably when you buy them they give you the instructions to use it or you can contact their support.

    
09.11.2015 / 13:44
1

Good afternoon.

I solved my problem as follows:

The files that come with the premium theme are:

1. .Jar 
2. A pasta resources com o CSS, Images, Fonts e JS. 

To perform integration via Maven you need to:

  • Download Maven manually and configure it on the machine.
  • Via cmd I navigated to the folder that was saved the theme, ie .jar
  • Once you have installed and configured maven I ran the following command via cmd:

    mvn install:install-file -Dfile=spark-theme-1.0.jar -DgroupId=org.primefaces.themes -DartifactId=spark -Dversion=1.0 -Dpackaging=jar

  • And then I ran this dependency on pom.xml

    <dependency>
                <groupId>org.primefaces.themes</groupId>
                <artifactId>spark</artifactId>
                <version>1.0</version>
    </dependency>
    

    It worked out just a beauty! I hope to help other people.

        
    09.11.2015 / 19:59