github / maven-plugins

Official GitHub Maven Plugins
MIT License
587 stars 197 forks source link

Why do I recieve the output that the field 'name' is not defined when I have defined the repo name? #91

Closed Gum-Joe closed 9 years ago

Gum-Joe commented 9 years ago

What happens is that, although I have defined the name of the artefact in maven, it says it could not be found. P.s: I am using it in a reactor in a parent Pom and child module Here is my pom.xml: ``<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.gumjoe</groupId>
<artifactId>TeddyAlive</artifactId>
<packaging>jar</packaging>
<version>0.1-ALPHA-SNAPSHOT</version>

<name>TeddyAlive</name>
<description></description>

<properties>
    <build.number>161</build.number>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<github.global.server>github</github.global.server>
</properties>
internal.repo Temporary Staging Repository file://${project.build.directory}/mvn-repo
<dependencies>         
<dependency>
        <groupId>com.gumjoe</groupId>
        <artifactId>Universal-Setup-API</artifactId>
        <version>0.1-ALPHA-SNAPSHOT</version>
    </dependency>
     <dependency>
        <groupId>com.gumjoe</groupId>
        <artifactId>Universal-Utils-API</artifactId>
        <version>0.1-ALPHA-SNAPSHOT</version>
    </dependency>                 
    <dependency>
        <groupId>com.custardsource.dybdob</groupId>
        <artifactId>java-diff-utils-copy</artifactId>
        <version>1.0.1</version>
    </dependency>
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>18.0</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>net.sf.jopt-simple</groupId>
        <artifactId>jopt-simple</artifactId>
        <version>4.7</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.eclipse.jgit</groupId>
        <artifactId>org.eclipse.jgit</artifactId>
        <version>3.6.1.201501031845-r</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>1.14.8</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
    </dependency>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-compress</artifactId>
        <version>1.9</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.3.1</version>
    </dependency>
</dependencies>

<build>
    <finalName>${project.name}</finalName>
    <plugins>
     <plugin>
        <groupId>com.github.github</groupId>
        <artifactId>site-maven-plugin</artifactId>
        <version>0.9</version>
        <configuration>
            <message>Maven artifacts for ${project.version}</message>  <!-- git commit message -->
            <noJekyll>true</noJekyll>                                  <!-- disable webpage processing -->
            <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
            <branch>refs/heads/mvn-repo</branch>                       <!-- remote branch name -->
            <includes><include>**/*</include></includes>
            <repositoryName>TeddyAlive</repositoryName>      <!-- github repo name -->
            <repositoryOwner>Gum-Joe</repositoryOwner>    <!-- github username  -->
        </configuration>
        <executions>
          <!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
          <execution>
            <goals>
              <goal>site</goal>
            </goals>
            <phase>deploy</phase>
          </execution>
        </executions>
    </plugin>

<plugin>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.8.1</version>
    <configuration>
        <altDeploymentRepository>jitpack.io::default::https://jitpack.io</altDeploymentRepository>
    </configuration>
</plugin>
 <plugin>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.8.1</version>
    <configuration>
        <altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
    </configuration>
</plugin> 
net.md-5 scriptus 0.2 git-${project.name}-%s-${build.number} initialize describe
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.5</version>
            <configuration>
                <archive>
                    <manifestEntries>
                        <Main-Class>com.gumjoe.teddyalive.teddyalive</Main-Class>
                        <Implementation-Version>${describe}</Implementation-Version>
                    </manifestEntries>
                </archive>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>2.3</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <filters>
                    <filter>
                        <artifact>_:_</artifact>
                        <excludes>
                            <exclude>**/*.java</exclude>
                            <exclude>**/_.SF</exclude>
                            <exclude>__/_.DSA</exclude>
                        </excludes>
                    </filter>
                </filters>
                <minimizeJar>true</minimizeJar>
            </configuration>
        </plugin>
    </plugins>
</build>

``

Gum-Joe commented 9 years ago

Don't worry, found a fix