Not update plugin

When I create a plug-in for the idea by Maven, plugin is not updated (I change the version in pom.xml and plugin.xml). When I build the plugin using the IDEA, all is well. What could be the problem?

From pom.xml

<build>
 <resources>
 <resource>
 <filtering>true</filtering>
 <directory>${basedir}/META-INF</directory>
 <targetPath>META-INF</targetPath>
 <includes>
 <include>plugin.xml</include>
 </includes>
 </resource>
 <resource>
 <filtering>true</filtering>
 <directory>${basedir}/META-INF</directory>
 <targetPath>META-INF</targetPath>
 <includes>
 <include>MANIFEST.MF</include>
 </includes>
 </resource>
 <resource>
 <filtering>true</filtering>
 <directory>${basedir}/targets/classes</directory>
 <includes>
 <include>git.properties</include>
 </includes>
 </resource>
 </resources>

 <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>

 <plugin>
 <artifactId>maven-resources-plugin</artifactId>
 <version>2.3</version>
 <executions>
 <execution>
 <id>copy-prod-resources</id>
 <phase>process-resources</phase>
 <goals>
 <goal>copy-resources</goal>
 </goals>
 <configuration>
 <overwrite>true</overwrite> <!-- this is important -->
 <outputDirectory>${basedir}/target</outputDirectory>
 <resources>
 <resource>
 <directory>${basedir}/resource</directory>
 <include>updatePlugins.xml</include>
 </resource>
 </resources>
 </configuration>
 </execution>
 </executions>
 </plugin>

 <plugin>
 <artifactId>maven-dependency-plugin</artifactId>
 <version>2.8</version>
 </plugin>

 <plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-jar-plugin</artifactId>
 <version>2.4</version>
 <configuration>
 <archive>
 <manifestFile>META-INF/MANIFEST.MF</manifestFile>
 <addMavenDescriptor>false</addMavenDescriptor>
 </archive>
 </configuration>
 </plugin>

 <!-- Collect in Zip -->
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <finalName>${pack.name}</finalName>
                    <descriptors>
                        <descriptor>resource/plugin-assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attached</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
 </build>

2 comments
Comment actions Permalink

Jar and zip must be with the same name.

0
Comment actions Permalink

Jar and zip must be with the same name.

0

Please sign in to leave a comment.