Hi guys,
I'm trying to package the 2.0 jars, following this page :
http://mina.apache.org/developer-guide.html#DeveloperGuide-ReleasingaPointRelease%2528CommittersOnly%2529
It's totally FU. When I run a mvn -Dwith-LGPL-dependencies -DdryRun=true
release:prepare (or even the mvn -Dwith-LGPL-dependencies
release:prepare command), after having removed the MINA repository (to
be sure), then I get many errors like :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.mina:mina-integration-beans:jar:2.0.0-RC2-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.mina
-DartifactId=mina-integration-beans -Dversion=2.0.0-RC2-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.apache.mina
-DartifactId=mina-integration-beans -Dversion=2.0.0-RC2-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.mina:mina-integration-xbean:jar:2.0.0-RC2-SNAPSHOT
2) org.apache.mina:mina-integration-beans:jar:2.0.0-RC2-SNAPSHOT
2) org.apache.mina:mina-core:jar:2.0.0-RC2-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.mina
-DartifactId=mina-core -Dversion=2.0.0-RC2-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
It looks like we have to do a mvn -Pserial clean install before. Then,
when you run the release:prepare again, it gives another error :
...
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Building Apache MINA Core
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] Deleting directory /Users/elecharny/mina/trunk/core/target
[INFO] [INFO] [remote-resources:process {execution: default}]
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [WARNING] Using platform encoding (MacRoman actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] [INFO] Copying 0 resource
[INFO] [INFO] Copying 3 resources
[INFO] [INFO] [compiler:compile {execution: default-compile}]
[INFO] [INFO] Compiling 285 source files to
/Users/elecharny/mina/trunk/core/target/classes
[INFO] [INFO] [resources:testResources {execution: default-testResources}]
[INFO] [WARNING] Using platform encoding (MacRoman actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] [INFO] Copying 4 resources
[INFO] [INFO] Copying 3 resources
[INFO] [INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] [INFO] Compiling 62 source files to
/Users/elecharny/mina/trunk/core/target/test-classes
[INFO] [INFO] [surefire:test {execution: default-test}]
[INFO] [INFO] Surefire report directory:
/Users/elecharny/mina/trunk/core/target/surefire-reports
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
...
[INFO] Tests run: 189, Failures: 0, Errors: 0, Skipped: 4
[INFO]
[INFO] [INFO] [bundle:bundle {execution: default-bundle}]
[INFO] [INFO] Preparing source:jar
[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent
recursive invocation.
[INFO] [INFO] No goals needed for project - skipping
[INFO] [INFO] [source:jar {execution: attach-source}]
[INFO] [INFO] Building jar:
/Users/elecharny/mina/trunk/core/target/mina-core-2.0.0-sources.jar
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Building Apache MINA APR Transport
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] Deleting directory
/Users/elecharny/mina/trunk/transport-apr/target
[INFO] Downloading:
http://repo1.maven.org/maven2/org/apache/mina/mina-core/2.0.0/mina-core-2.0.0.jar
[INFO] [INFO] Unable to find resource
'org.apache.mina:mina-core:jar:2.0.0' in repository central
(http://repo1.maven.org/maven2)
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Failed to resolve artifact.
[INFO]
[INFO] Missing:
[INFO] ----------
[INFO] 1) org.apache.mina:mina-core:jar:2.0.0
[INFO]
[INFO] Try downloading the file manually from the project website.
[INFO]
[INFO] Then, install it using the command:
[INFO] mvn install:install-file -DgroupId=org.apache.mina
-DartifactId=mina-core -Dversion=2.0.0 -Dpackaging=jar -Dfile=/path/to/file
[INFO]
[INFO] Alternatively, if you host your own repository you can deploy
the file there:
[INFO] mvn deploy:deploy-file -DgroupId=org.apache.mina
-DartifactId=mina-core -Dversion=2.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[INFO]
[INFO] Path to dependency:
[INFO] 1) org.apache.mina:mina-transport-apr:bundle:2.0.0
[INFO] 2) org.apache.mina:mina-core:jar:2.0.0
[INFO]
[INFO] ----------
[INFO] 1 required artifact is missing.
Looks like the version 2.0.0 it is suppose to prepare is simply not
copied into the .m2/repository directory.
WTF ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com