jsf – Integrate Spark using maven

Question:

Hi.

I bought the theme+layout spark from primefaces.

In the community they wrote me to use the layout. I would have to import the spark-theme.1.0.war file. Once imported, the full set of the primeface spark would appear.

I did exactly what was said, but I was told to copy the sources and source folders to META-INF and put this instruction in pom.xml :

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

and update the project. Once this was done, the layout was to appear, but it didn't work.

Once again I asked the team for help and they indicated the maven build.

By going to the Build Maven option and putting this instruction in Goal:

install:install-file -Dfile=D:\spark-1.0-theme.jar -DgroupId=org.primefaces.theme -DartifactId=spark -Dversion=1.0 -Dpackaging=jar -DlocalRepositoryPath= C:\Users\root\.m2\repository\internal -DgeneratePom=true

And run the run and go back to pom.xml and put the:

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

That would return the spark layout to me.

Well it hasn't been a long time since I've been using maven and when I do all that, when I download it gives me an ERROR. A failure when trying to perform this procedure.

Could you help me to continue my college project?

Answer:

It pom.xml add in your pom.xml or in the .m2 settings.xml that your .m2 is also a repository.

But the best thing to do, considering that your application can be installed on a machine other than the one you are going to perform the procedure on, is to create a remote repository for the manually acquired libraries.

https://emarineli.wordpress.com/2009/07/01/repositorio-maven-com-nexus-em-5-minutos/

Scroll to Top