[
https://issues.apache.org/jira/browse/CONTINUUM-2726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brent N Atkinson reopened CONTINUUM-2726:
-----------------------------------------
Assignee: Brent N Atkinson
Re-opening since I can now reproduce this behavior. The reason I was unable to
before is that it depends on the state of the file system at the time of the
import. The issue is not with using git as an scm. It stems from the method
continuum uses to import POMs over HTTP and the URL patterns necessary to
access POMs from the ASF git repositories. This also explains why it was
possible to use file upload successfully.
The quick version of what is happening:
* To support multi-module import over HTTP without an scm checkout, a crawl
is attempted to replicate the project directory structure locally (complete
with POMs)
* The URL pattern is used to construct a root path to replicate project
structure under
* The replication root is shared between separate imports
* Overlapping paths can conflict causing replication to fail
Specifically, using the Commons Math URL as an example:
{noformat}https://git-wip-us.apache.org/repos/asf?p=commons-math.git;a=blob_plain;f=pom.xml;hb=HEAD{noformat}
Replication will happen under $REPLICATION_ROOT/repos and the root pom file
will be named asf. While this naming would not work with Maven by default, the
import simply needs a valid file. Import will be successful as long as a file
can be created. This is why I could successfully import the project locally: I
had a clean replication root.
However, if you import a project from an ASF subversion repository first, such
as Maven 3:
{noformat}https://svn.apache.org/repos/asf/maven/maven-3/trunk/pom.xml{noformat}
Replication happens under $REPLICATION_ROOT/repos/asf/maven/maven-3/trunk/ and
the root pom file will be named pom.xml and will succeed. However, due to the
fact that the replication root is reused, commons-math's POM (repos/asf) will
conflict with Maven 3's directory structure (repos/asf is a directory) and
creation of the Commons Math's POM subsequently fails.
> Does not appear to be possible to use Git as an SCM
> ---------------------------------------------------
>
> Key: CONTINUUM-2726
> URL: https://issues.apache.org/jira/browse/CONTINUUM-2726
> Project: Continuum
> Issue Type: Bug
> Reporter: Sebb
> Assignee: Brent N Atkinson
> Priority: Critical
> Attachments: commons-math-successful.png,
> commons-math-tls-failure-message.png
>
>
> Commons MATH now uses Git.
> Does not appear to be possible to use Continuum to build it.
> Tried the following URLs:
> https://git-wip-us.apache.org/repos/asf/commons-math
> => Unknown error trying to build POM.
> https://git-wip-us.apache.org/repos/asf?p=commons-math.git
> => POM file does not exist. Either the POM you specified or one of its
> modules does not exist.
> What is the correct incantation for Git projects?
> If this is documented anywhere I could not find it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)