You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 08:48:27 UTC

[I] [MINSTALL-152] Maven Install Plugin Version 3.0.0-M1 unable to build POMs with packaging set "feature" [maven-install-plugin]

jira-importer opened a new issue, #258:
URL: https://github.com/apache/maven-install-plugin/issues/258

   **[Stan Brown](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=traffic)** opened **[MINSTALL-152](https://issues.apache.org/jira/browse/MINSTALL-152?redirect=false)** and commented
   
   I've received the following error executing the command mvn clean deploy:
   
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install (default-install) on project sis-gradaid-features-pprd: NoFileAssignedException: The packaging plugin for this project did not assign a main file to the project but it has attachments. Change packaging to 'pom'. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install (default-install) on project sis-gradaid-features-pprd: NoFileAssignedException
   
   The packaging in the POM that failed is set to "feature", which is managed by the plugin karaf-maven-plugin. 
   
   Maven versions 3.0.4 and 3.2.3 have been used to build our project.
   
   Here's the POM that failed:
   
    
   
   ```xml
   <?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/xsd/maven-4.0.0.xsd">
     <parent>
       <artifactId>sis</artifactId>
       <groupId>edu.uci.oit.sis</groupId>
       <version>0.5.33-SNAPSHOT</version>
     </parent>
   
     <!--
           Licensed to the Apache Software Foundation (ASF) under one or more
           contributor license agreements.  See the NOTICE file distributed with
           this work for additional information regarding copyright ownership.
           The ASF licenses this file to You under the Apache License, Version 2.0
           (the "License"); you may not use this file except in compliance with
           the License.  You may obtain a copy of the License at
   
               http://www.apache.org/licenses/LICENSE-2.0
   
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
       -->
   
     <modelVersion>4.0.0</modelVersion>
   
     <artifactId>sis-gradaid-features</artifactId>
     <packaging>feature</packaging>
   
     <name>SIS :: Grad Aid :: Features</name>
     <description>SIS Grad Aid Features</description>
   
     <properties>
       <fabric8.ignoreProject>true</fabric8.ignoreProject>
     </properties>
   
     <dependencies>
       <!-- add the artifact that should be in the feature in the dependencies set -->
     </dependencies>
   
     <build>
       <pluginManagement>
         <plugins>
           <plugin>
             <groupId>org.apache.karaf.tooling</groupId>
             <artifactId>karaf-maven-plugin</artifactId>
             <version>4.0.0</version>
             <extensions>true</extensions>
           </plugin>
         </plugins>
       </pluginManagement>
       <plugins>
         <plugin>
           <!--
             The Maven phase for karaf-maven-plugin is defined in the plugin's
             component.xml file.  the features generation happens during the compile
             phase.
           -->
           <groupId>org.apache.karaf.tooling</groupId>
           <artifactId>karaf-maven-plugin</artifactId>
   
           <configuration>
             <startLevel>50</startLevel>
             <aggregateFeatures>true</aggregateFeatures>
             <resolver>(obr)</resolver>
             <checkDependencyChange>true</checkDependencyChange>
             <failOnDependencyChange>false</failOnDependencyChange>
             <logDependencyChanges>true</logDependencyChanges>
             <overwriteChangedDependencies>true</overwriteChangedDependencies>
           </configuration>
         </plugin>
   
       </plugins>
     </build>
   
   </project>
   ```
   
    
   
   Here's the summary:
   
   ```
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary:
   [INFO] 
   [INFO] SIS :: Grad Aid :: PPRD ........................... SUCCESS [9.100s]
   [INFO] SIS :: Grad Aid :: Student Info :: PPRD ........... SUCCESS [21.268s]
   [INFO] SIS :: Grad Aid :: Features :: PPRD ............... FAILURE [2.040s]
   [INFO] SIS :: Grad Aid :: Hibernate :: Fragment :: PPRD .. SKIPPED
   [INFO] ------------------------------------------------------------------------
   ```
   
   Thanks for your help.
   
    
   
   
   ---
   
   **Affects:** 3.0.0-M1
   
   **Issue Links:**
   - [MINSTALL-151](https://issues.apache.org/jira/browse/MINSTALL-151) Projects without primary artifacts, but with attachment artifacts fail install
    (_**"is duplicated by"**_)
   
   1 votes, 3 watchers
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org