pom builds empty jar, but only on release:perform

2 messages Options
Embed this post
Permalink
C. Benson Manica

pom builds empty jar, but only on release:perform

Reply Threaded More More options
Print post
Permalink
Hi, I have a simple POM that can build "package", "deploy", and
"release:prepare", but on "release:perform" it deploys an empty jar.  The
SVN labels also have no files associated with them.  Contents of POM
follow...

<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>
    <groupId>com.cnn</groupId>
    <artifactId>election-api</artifactId>
    <packaging>jar</packaging>
    <version>1.1-SNAPSHOT</version>
    <name>election-api</name>
    <url>http://maven.apache.org</url>
    <scm>
        <connection>scm:svn:
http://ide-svn.turner.com/svn/cnn/election/trunk/components/tags
</connection>
        <developerConnection>scm:svn:
http://ide-svn.turner.com/svn/cnn/election/trunk/components/tags
</developerConnection>
    </scm>
    <distributionManagement>
        <repository>
            <id>ide-artifactory-release</id>
            <name>IDE Artifactory Release</name>
            <url>http://ide-svn.turner.com/artifactory/libs-releases-local
</url>
        </repository>
        <snapshotRepository>
            <id>ide-artifactory-snapshot</id>
            <name>IDE Artifactory Repository</name>
            <url>http://ide-svn.turner.com/artifactory/libs-snapshots-local
</url>
        </snapshotRepository>
    </distributionManagement>
    <dependencies>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.14</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.intellij.idea</groupId>
            <artifactId>annotations</artifactId>
            <version>8.1.3</version>
        </dependency>
        <dependency>
            <groupId>com.cnn</groupId>
            <artifactId>election-core</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
    <build>
        <finalName>${pom.artifactId}-${pom.version}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

--
C. Benson Manica
[hidden email]
Martin Schayna-2

Re: pom builds empty jar, but only on release:perform

Reply Threaded More More options
Print post
Permalink
Hi,
check <connection> and <developerConnection> elements in your pom.xml.
Typically it points to real SVN path, not "tags" directory. Both
"release" goals
works with these settings instead of SVN path in your current working copy.
Martin Schayna

C. Benson Manica wrote:

> Hi, I have a simple POM that can build "package", "deploy", and
> "release:prepare", but on "release:perform" it deploys an empty jar.  The
> SVN labels also have no files associated with them.  Contents of POM
> follow...
>
> <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>
>     <groupId>com.cnn</groupId>
>     <artifactId>election-api</artifactId>
>     <packaging>jar</packaging>
>     <version>1.1-SNAPSHOT</version>
>     <name>election-api</name>
>     <url>http://maven.apache.org</url>
>     <scm>
>         <connection>scm:svn:
> http://ide-svn.turner.com/svn/cnn/election/trunk/components/tags
> </connection>
>         <developerConnection>scm:svn:
> http://ide-svn.turner.com/svn/cnn/election/trunk/components/tags
> </developerConnection>
>     </scm>
>     <distributionManagement>
>         <repository>
>             <id>ide-artifactory-release</id>
>             <name>IDE Artifactory Release</name>
>             <url>http://ide-svn.turner.com/artifactory/libs-releases-local
> </url>
>         </repository>
>         <snapshotRepository>
>             <id>ide-artifactory-snapshot</id>
>             <name>IDE Artifactory Repository</name>
>             <url>http://ide-svn.turner.com/artifactory/libs-snapshots-local
> </url>
>         </snapshotRepository>
>     </distributionManagement>
>     <dependencies>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.14</version>
>             <type>jar</type>
>             <scope>compile</scope>
>         </dependency>
>         <dependency>
>             <groupId>com.intellij.idea</groupId>
>             <artifactId>annotations</artifactId>
>             <version>8.1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>com.cnn</groupId>
>             <artifactId>election-core</artifactId>
>             <version>1.0</version>
>         </dependency>
>     </dependencies>
>     <build>
>         <finalName>${pom.artifactId}-${pom.version}</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.6</source>
>                     <target>1.6</target>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
> </project>
>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]