Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during artefact building #22

Closed
kospiotr opened this issue Jul 13, 2012 · 4 comments
Closed

Error during artefact building #22

kospiotr opened this issue Jul 13, 2012 · 4 comments

Comments

@kospiotr
Copy link

After cloning I'm trying to install archetypes with maven 3.0.4 and I'm getting following error:

The ful stack from console is:

C:\App\tmp>git clone https://github.com/tbroyer/gwt-maven-archetypes.git && cd g
wt-maven-archetypes && mvn clean install
Cloning into 'gwt-maven-archetypes'...
remote: Counting objects: 1642, done.
remote: Compressing objects: 100% (900/900), done.
remote: Total 1642 (delta 444), reused 1530 (delta 339)
Receiving objects: 100% (1642/1642), 169.40 KiB | 221 KiB/s, done.
Resolving deltas: 100% (444/444), done.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gwt-maven-archetypes
[INFO] modular-webapp
[INFO] modular-requestfactory
[INFO] guice-rf-activities
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-maven-archetypes 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt-maven-archetypes
 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ gwt-maven-arch
etypes ---
[INFO] Installing C:\App\tmp\gwt-maven-archetypes\pom.xml to C:\Users\pkosmowski
\.m2\repository\net\ltgt\gwt\archetypes\gwt-maven-archetypes\1.0-SNAPSHOT\gwt-ma
ven-archetypes-1.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building modular-webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ modular-webapp ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ modular-we
bapp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mo
dular-webapp ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-archetype-plugin:2.2:jar (default-jar) @ modular-webapp ---
[INFO] Building archetype jar: C:\App\tmp\gwt-maven-archetypes\modular-webapp\ta
rget\modular-webapp-1.0-SNAPSHOT
[INFO]
[INFO] --- maven-archetype-plugin:2.2:integration-test (default-integration-test
) @ modular-webapp ---
[INFO] Processing Archetype IT project: basic-webapp
[INFO] -------------------------------------------------------------------------

---
[INFO] Using following parameters for creating project from Archetype: modular-w
ebapp:1.0-SNAPSHOT
[INFO] -------------------------------------------------------------------------

---
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: artifactId, Value: basic-webapp
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Parameter: package, Value: it.pkg
[INFO] Parameter: packageInPathFormat, Value: it/pkg
[INFO] Parameter: gwt-maven-plugin-version, Value: 2.4.0
[INFO] Parameter: module, Value: Basic
[INFO] Parameter: module-short-name, Value: basic
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: gwt-version, Value: 2.4.0
[INFO] Parameter: jetty-maven-plugin-version, Value: 8.1.3.v20120416
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Parameter: package, Value: it.pkg
[INFO] Parameter: artifactId, Value: basic-webapp
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-client\pom.xml
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-shared\pom.xml
[INFO] Parent element not overwritten in C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\basic-web
app-server\pom.xml
[INFO] project created from Archetype in dir: C:\App\tmp\gwt-maven-archetypes\mo
dular-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp
[INFO] Comparing generated project with reference content: C:\App\tmp\gwt-maven-
archetypes\modular-webapp\target\test-classes\projects\basic-webapp\reference
[WARNING] Contents of file pom.xml are not equal
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gwt-maven-archetypes .............................. SUCCESS [0.355s]
[INFO] modular-webapp .................................... FAILURE [2.679s]
[INFO] modular-requestfactory ............................ SKIPPED
[INFO] guice-rf-activities ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.243s
[INFO] Finished at: Fri Jul 13 13:45:28 CEST 2012
[INFO] Final Memory: 8M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.2:integration-test (default-integration-test) on project modular-webapp:
[ERROR] Archetype IT 'basic-webapp' failed: Some content are not equals
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn  -rf :modular-webapp
@tbroyer
Copy link
Owner

tbroyer commented Jul 14, 2012

Could you please do a diff of C:\App\tmp\gwt-maven- archetypes\modular-webapp\target\test-classes\projects\basic-webapp\reference\pom.xml vs. C:\App\tmp\gwt-maven-archetypes\mo dular-webapp\target\test-classes\projects\basic-webapp\project\basic-webapp\pom.xml?

I bet this is about line endings, in which case I'd suggest tweaking your git configuration so that the reference/pom.xml is cloned with the same line endings as what Maven will generate, or simply skipping tests (they're run on BuildHive already, we know they're green).

@kospiotr
Copy link
Author

Thank you Thomas for the replay.
You are right that those files were diffrent beceuse of line endings.
I've tried to build it without tests with the following commands:

mvn clean install -DskipTests

and

mvn clean install -Dmaven.test.skip=true

but it did't work.

I've tried also to clone it again after changing my configuration:

git config --global core.autocrlf false

so:

git config core.autocrlf
false

and after cloning again I have same error, even when diff returns no changes this time:

C:\App\tmp\gwt-maven-archetypes>git diff C:\App\tmp\gwt-maven-archetypes\modular
-webapp\target\test-classes\projects\basic-webapp\reference\pom.xml C:\App\tmp\g
wt-maven-archetypes\modular-webapp\target\test-classes\projects\basic-webapp\pro
ject\basic-webapp\pom.xml

I downloaded zip copy of the project but situation is similar.

I'm gonna to dig more into comparing process. I will share with the result of my investigation if I will find anything.

@kospiotr
Copy link
Author

I think this issue can be closed because Jenkins compiles it properly. I must have broken my environment somehow.

@tbroyer
Copy link
Owner

tbroyer commented Jul 14, 2012

Ah you're right there doesn't seem to be a way to skip archetype:integration-test.

BTW, this is not the first time someone reports that the tests fail on Windows, it seems to be a known issue. I'll add a note on the README.

In the mean time, you can download the latest artifacts from the BuildHive job or delete the tests in your local clone so you can mvn install without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants