Expand my Community achievements bar.

SOLVED

Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.4:install

Avatar

Level 2

Cannot access package file 

SYED1111_0-1673164875210.png

Any Suggestion for this

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SYED1111 ,

 

Looks like you are trying to install jar file as a zip.

 

Please check below in your POM file

<artifactId>name.of.your.package.core</artifactId>
 <packaging>bundle</packaging>
 <name>Name - Core</name>
 <description>Core bundle for Name</description>

Packaging should be defined as "bundle"

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @SYED1111 ,

 

I am not sure how your POM file is structured, but please make sure you have below important bits configured properly

 

<modules>
<module>core</module>
<module>ui.apps</module>
</modules>
<repositories>
        <repository>
            <id>adobe-public-releases</id>
            <name>Adobe Basel Public Repository</name>
            <url>https://repo.adobe.com/nexus/content/groups/public</url>
        </repository>
</repositories>

 

// This repository will be your project specific repository from where artifacts could be retrieved

 <!-- Content Package Plugin -->
                <plugin>
                    <groupId>com.day.jcr.vault</groupId>
                    <artifactId>content-package-maven-plugin</artifactId>
                    <version>1.0.2</version>
                    <configuration>
                        <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
                        <failOnError>true</failOnError>
                        <userId>${vault.user}</userId>
                        <password>${vault.password}</password>
                    </configuration>
                </plugin>
<profile>
            <id>autoInstallPackage</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.jackrabbit</groupId>
                            <artifactId>filevault-package-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>create-package</id>
                                    <goals>
                                        <goal>package</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>com.day.jcr.vault</groupId>
                            <artifactId>content-package-maven-plugin</artifactId>
                            <executions>
                                <execution>
                                    <id>install-package</id>
                                    <goals>
                                        <goal>install</goal>
                                    </goals>
                                    <configuration>
                                        <targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>

Please also refer to the documentation here:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

 

Thanks,

Chitra

Avatar

Level 2

Hey Chitra Thanks For Reply,

After changing version from 1.0.4 to 1.0.2 it showing like below

The config and plugins as it is which you mentioned above

SYED1111_0-1673193597909.png

 

 

Avatar

Correct answer by
Community Advisor

Hi @SYED1111 ,

 

Looks like you are trying to install jar file as a zip.

 

Please check below in your POM file

<artifactId>name.of.your.package.core</artifactId>
 <packaging>bundle</packaging>
 <name>Name - Core</name>
 <description>Core bundle for Name</description>

Packaging should be defined as "bundle"