property reference failure in profile repository element

15 views
Skip to first unread message

Leon Xie

unread,
Jan 11, 2017, 3:49:46 AM1/11/17
to Maven and Scala
hi all,

I have the below maven pom snippet:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<project>

       <properties>
   
        <!-- development maven repository -->
        <mavenRepository.dev.id>aaa_repository</mavenRepository.dev.id>
        <mavenRepository.dev.name>aaa_repository</mavenRepository.dev.name>
        <mavenRepository.dev.url>http://10.10.10.10/public</mavenRepository.dev.url>

      </properties>

    <profiles>
        <profile>
            <!-- develoment profile is used during development stage-->
            <id>dev_profile</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <property>
                    <name>profile</name>
                    <value>dev</value>
                </property>
            </activation>

            <!-- normal artifact repositories -->
            <repositories>
                <repository>
                    <id>${mavenRepository.dev.id}</id>
                    <name>${mavenRepository.dev.name}</name>
                    <url>${mavenRepository.dev.url}</url>
                </repository>
            </repositories>

            <!-- plugin repositories -->
            <pluginRepositories>
                <pluginRepository>
                    <id>${mavenRepository.dev.id}</id>
                    <name>${mavenRepository.dev.name}</name>
                    <url>${mavenRepository.dev.url}</url>
                </pluginRepository>
            </pluginRepositories>
</project>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

because my server COULD NOT access internet, I configured maven to use private remote repository.
when I run 'mvn package', I got the below error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.4.2.RELEASE/spring-boot-starter-parent-1.4.2.RELEASE.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project com.demo:demo:0.1-SNAPSHOT (/home/demo/git/demo/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.4.2.RELEASE from/to ${mavenRepository.dev.id} (${mavenRepository.dev.url}): No connector available to access repository ${mavenRepository.dev.id} (${mavenRepository.dev.url}) of type default using the available factories WagonRepositoryConnectorFactory and 'parent.relativePath' points at wrong local POM @ line 8, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

could somebody point me in the right direction???
thanks a lot in advance.

Martin Grigorov

unread,
Jan 11, 2017, 5:13:17 AM1/11/17
to maven-a...@googlegroups.com
Hi,

Your question is not related to this plugin anyhow.
You should ask at Maven users@ mailing list or StackOverflow.

--

---
You received this message because you are subscribed to the Google Groups "Maven and Scala" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-and-scala+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages