Mavin not getting Citizensapi?

Discussion in 'Plugin Development' started by Toastman, May 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Toastman

    Hello all!

    I'm currently editing a previously created plugin, but I can't compile it due to eclipse not locating citizensapi (which the plugin hooks into)

    I've checked for typos, and even changed version number but it still won't detect. I even followed the link through on my webbrowser and http://repo.citizensnpcs.co is fully up and operational.

    If worse comes to worse, I'll put a hardcopy of the citizensapi 2.0.11 snapshot in my harddrive and point it to that, but with Mavin I actually don't know how to do that either.

    Anyone got any ideas?
     
  2. Offline

    Garris0n

    Uh...post your pom.xml? I'm assuming you mean "maven" and not some software I'm unaware of.
     
  3. Offline

    Toastman

    Sure thing!

    Code:
    <?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">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.thedemgel</groupId>
        <artifactId>UltraTrader-Common</artifactId>
        <version>1.0</version>
        <packaging>pom</packaging>
        <name>UltraTrader-Common</name>
     
        <url>http://demgelopensource.github.io/UltraTrader</url>
        <inceptionYear>2013</inceptionYear>
        <description>A rewrite of the popular CitiTraders originally by tehBeard and tenowg.</description>
     
        <organization>
            <name>Demgel OpenSource Coding</name>
            <url>http://demgelopensource.github.io/</url>
        </organization>
     
        <scm>
            <connection>scm:git:[email protected]:demgelopensource/UltraTrader.git</connection>
            <developerConnection>scm:git:[email protected]:demgelopensource/UltraTrader.git</developerConnection>
            <tag>HEAD</tag>
            <url>https://github.com/demgelopensource/UltraTrader</url>
        </scm>
     
        <distributionManagement>
            <site>
                <id>github-project-site</id>
                <!--<url>gitsite:[email protected]/demgelopensource/UltraTrader.git</url>-->
                <url/>
            </site>
            <repository>
                <id>xxx-maven2-repository</id>
                <name>Xxx Maven2 Repository</name>
                <url>scp://xxxx/maven2/</url>
            </repository>
            <snapshotRepository>
                <id>xxx-maven2-snapshot-repository</id>
                <name>Xxx Maven2 Snapshot Repository</name>
                <url>scp://xxxx/snapshots/maven2/</url>
            </snapshotRepository>
        </distributionManagement>
     
        <modules>
            <module>UltraTrader</module>
            <module>UltraTowny</module>
            <module>UltraFactions</module>
            <!--<module>UltraWorldGuard</module> -->
            <module>UltraRental</module>
            <module>UltraFrame</module>
            <module>UltraDenizen</module>
        </modules>
     
        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <ultratrader-version>1.1</ultratrader-version>
            <ultradenizen-version>1.0</ultradenizen-version>
            <ultraframe-version>1.0</ultraframe-version>
            <ultrarental-version>1.0</ultrarental-version>
        </properties>
     
        <build>
            <pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <source>1.7</source>
                            <target>1.7</target>
                        </configuration>
                    </plugin>
                </plugins>
            </pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.3</version>
                    <dependencies>
                        <dependency>
                            <groupId>lt.velykis.maven.skins</groupId>
                            <artifactId>reflow-velocity-tools</artifactId>
                            <version>1.0.0</version>
                        </dependency>
                        <!-- Reflow skin requires Velocity >= 1.7  -->
                        <dependency>
                            <groupId>org.apache.velocity</groupId>
                            <artifactId>velocity</artifactId>
                            <version>1.7</version>
                        </dependency>
                        <dependency>
                            <groupId>org.apache.maven.doxia</groupId>
                            <artifactId>doxia-module-markdown</artifactId>
                            <version>1.4</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <generateReports>true</generateReports>
                        <inputEncoding>UTF-8</inputEncoding>
                        <outputEncoding>UTF-8</outputEncoding>
                        <skipDeploy>true</skipDeploy>
                    </configuration>
                </plugin>
     
                <plugin>
                    <groupId>com.github.github</groupId>
                    <artifactId>site-maven-plugin</artifactId>
                    <version>0.9</version>
                    <executions>
                        <execution>
                            <configuration>
                                <server>github-project-site-new</server>
                                <repositoryName>${project.name}</repositoryName>
                                <repositoryOwner>${githubSiteOwner}</repositoryOwner>
                                <branch>refs/heads/gh-pages</branch>
                                <path>${project.distributionManagement.site.url}</path>
                                <merge>true</merge>
                                <message>Site for ${project.version}-b${buildNumber}</message>
                            </configuration>
                            <phase>site-deploy</phase>
                            <goals>
                                <goal>site</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
     
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>com.thedemgel</groupId>
                    <artifactId>UltraTrader</artifactId>
                    <version>${ultratrader-version}</version>
                </dependency>
            </dependencies>
        </dependencyManagement>
     
        <dependencies>
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.7.2-R0.3-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>net.snaq</groupId>
                <artifactId>dbpool</artifactId>
                <version>5.1</version>
            </dependency>
            <dependency>
                <groupId>com.thedemgel</groupId>
                <artifactId>YamlResourceBundle</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>5.1.26</version>
            </dependency>
            <dependency>
                <groupId>net.citizensnpcs</groupId>
                <artifactId>citizensapi</artifactId>
                <version>2.0.11-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>net.milkbowl.vault</groupId>
                <artifactId>Vault</artifactId>
                <version>1.2.27</version>
            </dependency>
            <dependency>
                <groupId>org.mcstats.bukkit</groupId>
                <artifactId>metrics</artifactId>
                <version>R7</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>com.comphenix.protocol</groupId>
                <artifactId>ProtocolLib</artifactId>
                <version>3.2.0</version>
            </dependency>
        </dependencies>
        <repositories>
            <repository>
                <id>bukkit-repo</id>
                <url>http://repo.bukkit.org/content/groups/public/</url>
            </repository>
            <repository>
                <id>citizens-repo</id>
                <url>repo.citizensnpcs.co</url>
            </repository>
            <!--<repository>
                <id>vault-repo</id>
                <url>http://ci.herocraftonline.com/plugin/repository/everything</url>
            </repository> -->
            <repository>
                <id>demgel-repo</id>
                <url>http://repository-tenowg.forge.cloudbees.com/release</url>
            </repository>
            <repository>
                <id>Plugin Metrics</id>
                <url>http://repo.mcstats.org/content/repositories/public</url>
            </repository>
            <repository>
                <id>comphenix-rep</id>
                <name>Comphenix Repository</name>
                <url>http://repo.comphenix.net/content/groups/public</url>
            </repository>
        </repositories>
     
        <reporting>
            <plugins>
                <plugin>
                    <artifactId>maven-changelog-plugin</artifactId>
                    <version>2.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <configuration>
                        <configLocation>checkstyle.xml</configLocation>
                    </configuration>
                    <version>2.10</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jxr-plugin</artifactId>
                    <version>2.3</version>
                </plugin>
                <plugin>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>3.2</version>
                </plugin>
                <plugin>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>2.7</version>
                    <reportSets>
                        <reportSet>
                            <reports>
                                <report>cim</report>
                                <report>index</report>
                                <report>issue-tracking</report>
                                <report>license</report>
                                <report>project-team</report>
                                <report>scm</report>
                                <report>summary</report>
                            </reports>
                        </reportSet>
                    </reportSets>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>findbugs-maven-plugin</artifactId>
                    <version>2.5.2</version>
                </plugin>
            </plugins>
        </reporting>
    </project>
    And the error I'm actually getting is this:

    Code:
    Description    Resource    Path    Location    Type
    ArtifactTransferException: Failure to transfer net.aufdemrand:denizen:jar:0.9.3-SNAPSHOT from repo.citizensnpcs.co was cached in the local repository, resolution will not be reattempted until the update interval of citizens-repo has elapsed or updates are forced. Original error: Could not transfer artifact net.aufdemrand:denizen:jar:0.9.3-SNAPSHOT from/to citizens-repo (repo.citizensnpcs.co): No connector available to access repository citizens-repo (repo.citizensnpcs.co) of type default using the available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory    pom.xml    /UltraDenizen    line 25    Maven Dependency Problem
    
    As you can see I'm modifying the UltraTrader plugin

    I *believe* it could have something to do with my Maven (which I did intend to type) version possibly being a 3.x (don't know how to check) and all the repos using a 2.x version

    Ugh this is driving me crazy, because it's *only* happening with the citizens API, the other APIs are hooking in fine.

    EDIT: Well I sorta fixed it... I just put an actual .jar of Citizensapi into the /.m2/... folder that the errors asked for and it worked. No auto-updating builds, unfortunately, but at least it gets the job done

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  4. Offline

    NathanWolf


    Code:
            <repository>
                <id>citizens-repo</id>
                <url>repo.citizensnpcs.co</url>
            </repository>
    Try <url>http://repo.citizensnpcs.co</url> ?

    That's the only thing I can see that's different. You may need to force Maven to update snapshots after making that change.
     
Thread Status:
Not open for further replies.

Share This Page