On Thu, Sep 4, 2008 at 4:40 PM, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> What do you have in the IT build log :
> D:/ide/maven/maven-
> eclipse-plugin/target/surefire-reports/build-output/org.apache.maven.plugin.eclipse.it.EclipsePluginIT_testProject01.build.log
Thanks.
Silly of me not to look in the output files.
The IT plugin is still black magic to me and I haven't looked around
enough to get a feel for what it is doing or where I should be
looking.
Here is the error:
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven-plugins
Version: 12-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-plugins:pom:12-SNAPSHOT
I get this because the test repository created locally does not know
how to obtain SNAPSHOTs from people.apache.org and so it is failing to
download them.
I'm behind a firewall so I need to use a proxy to download these things.
By default I have people.apache.org disabled.
Running:
mvn -Prun-its,apache install
(where the apache profile turns on people.apache.org for both
artifacts and plugins)
does not work since the profiles are not passed through to the plugin IT tester.
Instead I need to make apache an activePorfile in settings.xm to fix
the problem.
Now only project-44 fails:
[DEBUG] Unable to get resource
'eclipsetest:checkstyle-config:pom:1.0' from repository central
(http://repo1.maven.org/maven2)
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository
eclipsetest:checkstyle-config:pom:1.0
... (then later)
Unable to write to file:
D:\ide\maven\maven-eclipse-plugin\target\test-classes\projects\project-44\.checkstyle2
The pom file for project-44 has:
<file>
<name>.checkstyle2</name>
<url>
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/projects/project-44/eclipse-settings/checkstyle-config.xml
</url>
</file>
</additionalConfig>
</configuration>
Which is probably failing because of proxies again.
To fix this, I needed to add a proxies section to settings.xml.
So everything but the ability to re-run the test because of
org.apache.maven.surefire.booter.SurefireExecutionException:
projects/j2ee-simple/primary-source/target/classes/TestServlet
(wrong name: TestServlet);
I had to manually delete the target/test-classes/projects directory.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]