Developing with Maven : [ERROR] Unresolveable build extension: Plugin com.day.jcr.vault
i trying deploy aem maven, followed tutorial.
when run command mvn clear package, following error:
c:\workspace\myproject\app>mvn clean package
[info] scanning projects...
[warning] pom com.day.jcr.vault:maven-vault-plugin:jar:0.0.10 missing
, no dependency information available
[error] build not read 1 project -> [help 1]
[error]
[error] project com.uum:app:1-snapshot (c:\workspace\myproject\app\pom.xml
) has 3 errors
[error] unresolveable build extension: plugin com.day.jcr.vault:maven-vault-
plugin:0.0.10 or 1 of dependencies not resolved: failure find
com.day.jcr.vault:maven-vault-plugin:jar:0.0.10 in http://repo.maven.apache.org/
maven2 cached in local repository, resolution not reattempted un
til update interval of central has elapsed or updates forced -> [help 2]
[error] unknown packaging: content-package @ line 12, column 16
[error] 'dependencies.dependency.groupid' :core:jar missing. @ line 1
8, column 22
[error]
[error] see full stack trace of errors, re-run maven -e swit
ch.
[error] re-run maven using -x switch enable full debug logging.
[error]
[error] more information errors , possible solutions, please rea
d following articles:
[error] [help 1] http://cwiki.apache.org/confluence/display/maven/projectbuildin
gexception
[error] [help 2] http://cwiki.apache.org/confluence/display/maven/pluginresoluti
onexception
my myproject/app/pom.xml looks this:
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelversion>
<parent>
<groupid>com.uum</groupid>
<artifactid>parent</artifactid>
<relativepath>../parent/pom.xml</relativepath>
<version>1-snapshot</version>
</parent>
<artifactid>app</artifactid>
<packaging>content-package</packaging>
<name>sample application package</name>
<dependencies>
<dependency>
<groupid><!-- {groupid} --></groupid>
<artifactid>core</artifactid>
<version>${project.version}</version>
</dependency>
<!-- add additional dependencies -->
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/meta-inf</directory>
<targetpath>../vault-work/meta-inf</targetpath>
</resource>
<resource>
<directory>${basedir}/jcr_root</directory>
<excludes>
<exclude>**/.vlt</exclude>
<exclude>**/.vltignore</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/.ds_store</exclude>
<exclude>**/target/**</exclude>
<exclude>libs/**</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupid>com.day.jcr.vault</groupid>
<artifactid>maven-vault-plugin</artifactid>
<extensions>true</extensions>
<configuration>
<group>sample</group>
<requiresroot>true</requiresroot>
<install>true</install>
<verbose>true</verbose>
<packagefile>${project.build.directory}/${project.artifactid}-${project.version}.zip</packagefile>
<version>${project.version}</version>
<properties>
<achandling>overwrite</achandling>
</properties>
<embeddeds>
<embedded>
<groupid><!-- {groupid} --></groupid>
<artifactid>core</artifactid>
<target><!-- {install path in repository (e.g. /apps/myproject/install)} --></target>
</embedded>
</embeddeds>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>installpackages</id>
<activation>
</activation>
<build>
<plugins>
<plugin>
<groupid>com.day.jcr.vault</groupid>
<artifactid>maven-vault-plugin</artifactid>
<executions>
<execution>
<id>install-package</id>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
any idea how work?
thanks in advance
here sample profile project have. know works. can see jar under (..\.m2\repository\com\day\jcr\vault\maven-vault-plugin\0.0.6) give try:
<profile>
<id>full</id>
<activation>
<activebydefault>false</activebydefault>
</activation>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/content/jcr_root</directory>
<excludes>
<exclude>**/*.vlt/**</exclude>
<exclude>**/*.vlt</exclude>
<exclude>**/*.ds_store</exclude>
</excludes>
<targetpath>.</targetpath>
</resource>
<resource>
<directory>${basedir}/src/main/content/meta-inf</directory>
<excludes>
<exclude>**/*.vlt/**</exclude>
<exclude>**/*.vlt</exclude>
<exclude>**/*.ds_store</exclude>
</excludes>
<targetpath>../vault-work/meta-inf</targetpath>
</resource>
</resources>
<plugins>
<!-- use vault plugin create & install package -->
<plugin>
<groupid>com.day.jcr.vault</groupid>
<artifactid>maven-vault-plugin</artifactid>
<version>0.0.6</version>
<extensions>true</extensions>
<executions>
<execution>
<id>create-package</id>
<goals>
<goal>package</goal>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<embeddeds>
<embedded>
<groupid>${project.groupid}</groupid>
<artifactid>company-core</artifactid>
<target>/apps/company/install</target>
</embedded>
</embeddeds>
</configuration>
</plugin>
</plugins>
</build>
</profile>
More discussions in Archived Spaces
adobe
Comments
Post a Comment