Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Add maven wrapper for the library as well as for the maven example#1906

Merged
WonderCsabo merged 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
dodgex:1894_add_maven_wrapperCopy head branch name to clipboard
Nov 24, 2016
Merged

Add maven wrapper for the library as well as for the maven example#1906
WonderCsabo merged 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
dodgex:1894_add_maven_wrapperCopy head branch name to clipboard

Conversation

@dodgex

@dodgex dodgex commented Nov 23, 2016

Copy link
Copy Markdown
Member

see #1894

@dodgex

dodgex commented Nov 23, 2016

Copy link
Copy Markdown
Member Author

I think we should not merge until we know what happened with #1905

@dodgex

dodgex commented Nov 24, 2016

Copy link
Copy Markdown
Member Author

[WARNING] Unknown file extension: /home/travis/build/androidannotations/androidannotations/AndroidAnnotations/mvnw
[WARNING] Missing header in: /home/travis/build/androidannotations/androidannotations/AndroidAnnotations/.mvn/wrapper/maven-wrapper.properties
[WARNING] Missing header in: /home/travis/build/androidannotations/androidannotations/AndroidAnnotations/mvnw.cmd

@WonderCsabo I think we should not add copyright headers here but instead see if we can tell the license check to ignore those files?

@WonderCsabo

Copy link
Copy Markdown
Member

You are right. Please add these files to license check exclude list (it it easy).

Another thing: make sure the unix mnw files are committed to the repo with executable rights.

@dodgex

dodgex commented Nov 24, 2016

Copy link
Copy Markdown
Member Author

You are right... mvnw shoud have +x. Any chance to do it from windows or do i need to checkout this branch on a linux system?

Will check this evening

@WonderCsabo

Copy link
Copy Markdown
Member

I think you have to use a linux system for this.

@dodgex

dodgex commented Nov 24, 2016

Copy link
Copy Markdown
Member Author

Looks like it is possible from windows too: http://blog.lesc.se/2011/11/how-to-change-file-premissions-in-git.html

@WonderCsabo

Copy link
Copy Markdown
Member

Cool. Just make sure it is committed with the correct permissions.

@WonderCsabo WonderCsabo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing: Travis should be modified to use the wrapper command instead of calling the pre-installed Maven binary.

Comment thread .travis.yml Outdated
- mvn -f AndroidAnnotations/pom.xml install -P travis
- mvn -f examples/maven/pom.xml install
- cd $TRAVIS_BUILD_DIR/AndroidAnnotations
- ./mvnw -f pom.xml install -P travis

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-f pom.xml is not needed, as we are in the correct dir.

Comment thread .travis.yml Outdated
- cd $TRAVIS_BUILD_DIR/AndroidAnnotations
- ./mvnw -f pom.xml install -P travis
- cd $TRAVIS_BUILD_DIR/examples/maven
- ./mvnw -f pom.xml install

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-f pom.xml is not needed, as we are in the correct dir.

Comment thread .travis.yml Outdated

after_success:
- if [[ $TRAVIS_REPO_SLUG == 'androidannotations/androidannotations' && $TRAVIS_BRANCH == 'develop' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_JDK_VERSION == 'oraclejdk7' ]]; then mvn -f AndroidAnnotations/pom.xml -DskipTests -Dquiet -s settings.xml deploy ; fi
- if [[ $TRAVIS_REPO_SLUG == 'androidannotations/androidannotations' && $TRAVIS_BRANCH == 'develop' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_JDK_VERSION == 'oraclejdk7' ]]; then cd $TRAVIS_BUILD_DIR/AndroidAnnotations && ./mvnw -f pom.xml -DskipTests -Dquiet -s settings.xml deploy ; fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-f pom.xml is not needed, as we are in the correct dir.

@WonderCsabo WonderCsabo merged commit cffcf57 into androidannotations:develop Nov 24, 2016
@dodgex dodgex deleted the 1894_add_maven_wrapper branch November 24, 2016 22:11
@WonderCsabo WonderCsabo added this to the 4.2 milestone Nov 24, 2016
@WonderCsabo

Copy link
Copy Markdown
Member

@dodgex pls update the dev instructons on the wiki.

@dodgex

dodgex commented Nov 24, 2016

Copy link
Copy Markdown
Member Author

Updated all usages of mvn with ./mvnw in wiki

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.