I have a parent pom deployed to Artifactory (3.9.3), which when downloaded into 
local Maven repo by Maven itself (3.2.5, as a normal part of the Maven build 
lifecycle), is not the same as what is deployed. If I download the file 
directly with curl, I get the expected file. I have confirmed that the file put 
in my local cache from a 'mvn install' or 'mvn deploy' is the unmodified file, 
and the file deployed in Artifactory is also correct. The .sha1 file in my 
local M2 cache has a different value than the SHA1 reported for this file in 
artifactory. It _mostly_ looks like innocuous XML cleanup (replacing 
<tag></tag> with <tag/> and removing newlines between attributes in elements 
leaving a very long line that had been formatted for readability. The part that 
caused me to even look into this is I have a <repositories> element which is 
being completely removed from the copy that Maven downloads into the M2 cache, 
so my build fails because it can't find any dependencies. However this does not 
happen if I put the <repositories> in a profile. Attached is a stripped down 
version of the pom which exhibits the problem for me (internal hostnames in the 
url have been sanitized with art.example.com, releaseName property is set in 
the aggregator/parent POM of each source repository, and if necessary the 
eclipse.release property is overridden in the same pom.xml as releaseName, the 
p2.type is set on the command-line in CI so developers get the URL it).



I've already emailed jFrog to see if it's on the Artifactory end but I get the 
right file when I download it with anything other than Maven. Wanted to cover 
my bases for fast resolution by checking here too.

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.
<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.lgc</groupId>
    <artifactId>master</artifactId>
    <version>1.1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <properties>
        <eclipse.release>juno</eclipse.release>
        <p2.type/>
        <releaseName/>
        <tychoVersion>0.22.0</tychoVersion>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tychoVersion}</version>
                <inherited>true</inherited>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tychoVersion}</version>
                <configuration>
                    <resolver>p2</resolver>
                    <executionEnvironmentDefault>JavaSE-1.8</executionEnvironmentDefault>
                    <environments>
                        <environment><os>linux</os><ws>gtk</ws><arch>x86</arch></environment>
                    </environments>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>rm_daily</id>
            <name>rm_daily</name>
            <layout>p2</layout>
            <url>http://art.example.com/artifactory/OSGI/daily/${releaseName}/${p2.type}/</url>
        </repository>
        <repository>
            <id>eclipse.platform</id>
            <name>eclipse.platform</name>
            <layout>p2</layout>
            <url>http://art.example.com/artifactory/eclipse-${eclipse.release}/</url>
        </repository>
    </repositories> 

    <distributionManagement>
        <repository>
            <id>snapshots</id>
            <name>art.example.com-releases</name>
            <url>http://art.example.com/artifactory/maven-lgc</url>
        </repository>
        <snapshotRepository>
            <id>snapshots</id>
            <name>art.example.com-snapshots</name>
            <url>http://art.example.com/artifactory/maven-lgc</url>
        </snapshotRepository>
    </distributionManagement>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to