Page 1 of 1

Build Error

Posted: Mon Oct 15, 2012 6:29 pm
by Sean
Hello,

I am having some difficulties with building logicaldoc from the source. It used to work all well up to now but now when I issue mvn -Dmaven.test.skip=true install it throws a Build Failure. See the following:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.jms:jms:jar:1.1

Try downloading the file manually from:
http://java.sun.com/products/jms/docs.html

Then, install it using the command:
mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) log4j:log4j:jar:1.2.15
3) javax.jms:jms:jar:1.1

2) javax.media:jai-core:jar:1.1.3

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javax.media -DartifactId=jai-core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.media -DartifactId=jai-core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) com.logicaldoc:logicaldoc-core:jar:5.2.1
3) javax.media:jai-core:jar:1.1.3

3) com.sun.media:jai-codec:jar:1.1.3

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) com.logicaldoc:logicaldoc-core:jar:5.2.1
3) com.sun.media:jai-codec:jar:1.1.3

----------
3 required artifacts are missing.

for artifact:
com.logicaldoc:logicaldoc-web:war:5.2.1



Could you please assist me to get my Build working again.
Many thanks

Re: Build Error

Posted: Wed Oct 17, 2012 7:16 am
by car031
This is a dependency from Oracle/Sun so you have to follow the indications given by maven, this dependency cannot be hosted in pur shared maven repo due to licensing reasons.

Re: Build Error

Posted: Wed Oct 17, 2012 10:56 am
by Sean
Hello,
Thank you for the reply. The thing is that the Build was working fine up to very recent, it's just since couple of days which I get this error...
Could you please be more specific and explain what I exactly have to do/download?
Many thanks again!

Re: Build Error

Posted: Wed Oct 17, 2012 4:34 pm
by mmeschieri
You have to search for the file jai-codec-1.1.3.jar

Than you can install it locally by executing
mvn install:install-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=jai-codec-1.1.3.jar

Re: Build Error

Posted: Mon Oct 22, 2012 5:53 pm
by Sean
Hello there,
Thank you for your help. I downloaded and installed those missing jars and those errors seem to haven been resolved. However after I execute mvn -Dmaven.test.skip=true
install
I get a FATAL error! Please have a look:

[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.xstream.converters.ConversionException: modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)

...



I need your help again! :)
Many thanks!